/* =========================================
   TIPOGRAFÍAS LOCALES WOFF2 (CERO CDNs)
   ========================================= */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/playfair-display-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/playfair-display-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/playfair-display-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/lato-light.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/lato-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/lato-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/material-icons.woff2') format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


:root {
    --bg-cream: #FDFBF7;      
    --bg-beige: #F2E8D5;      
    --wood-dark: #4A3B32;     
    --wood-light: #8D7465;    
    --gold: #C5A059;          
    --white: #FFFFFF;
    --gray-light: #eeeeee;
    --white-pink: #FDF1F1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* =========================================
   RESET GEOMÉTRICO UNIVERSAL (CLS = 0.00)
   ========================================= */
img, video {
    aspect-ratio: attr(width) / attr(height);
    max-width: 100%;
    height: auto;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--wood-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { 
    flex: 1; 
    margin-top: 100px; /* Compensa el header fijo */
}

h1, h2, h3, .nav-link, .btn-main, .headline, .promo-text { 
    font-family: 'Playfair Display', serif; 
}

a { text-decoration: none; color: inherit; }

/* =========================================
   2. UI KIT (BOTONES Y UTILIDADES)
   ========================================= */
.btn-main {
    padding: 15px 35px;
    background-color: var(--gold);
    color: var(--white);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    display: inline-block;
    font-weight: 700;
}
.btn-main:hover { background-color: var(--wood-dark); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--wood-dark); /* Ajuste de legibilidad */
}
.btn-outline:hover { background-color: var(--gold); color: var(--white); }

.section-title { font-size: 3rem; color: var(--wood-dark); margin-bottom: 10px; }
.section-subtitle { font-size: 1.1rem; color: var(--wood-light); font-style: italic; margin-bottom: 50px; }
.text-center { text-align: center; }

/* =========================================
   3. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background-color: var(--bg-cream);
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(74, 59, 50, 0.1);
}

.logo-container img { height: 70px; width: auto; transition: height 0.3s; }

header nav > ul { display: flex; gap: 30px; list-style: none; align-items: center; }

.nav-link {
    color: var(--wood-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }

/* Dropdown Desktop */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    z-index: 1001;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top: 3px solid var(--gold);
    padding: 8px 0;
}
.dropdown-content a {
    color: var(--wood-dark);
    padding: 12px 20px;
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: var(--bg-beige); color: var(--gold); }
.dropdown:hover .dropdown-content { display: block; }

/* ─────────────────────────────────────────
   HAMBURGER BUTTON
───────────────────────────────────────── */
.hamburger {
    display: none; /* Solo visible en mobile */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 6px;
    cursor: pointer;
    gap: 6px;
    padding: 0;
    transition: background 0.3s, border-color 0.3s;
    z-index: 1300;
    position: relative;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.3s ease,
                width     0.3s ease;
    transform-origin: center;
}

/* Animación a X cuando está activo */
.hamburger.is-active { background: var(--gold); border-color: var(--gold); }
.hamburger.is-active span { background-color: var(--white); }
.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─────────────────────────────────────────
   OVERLAY (fondo oscuro al abrir menú)
───────────────────────────────────────── */
#nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(74, 59, 50, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.35s ease;
}
#nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* ─────────────────────────────────────────
   MOBILE NAV DRAWER (Slide from right)
───────────────────────────────────────── */
#mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 85vw);
    height: 100dvh;
    background: var(--bg-cream);
    border-left: 3px solid var(--gold);
    z-index: 1200;
    transform: translateX(calc(100% + 10px));
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.4s;
    overflow-y: auto;
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
}

#mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Scroll bloqueado en body cuando menú abierto */
body.menu-open { overflow: hidden; }

/* Header dentro del drawer */
.mobile-nav-header {
    position: relative;
    padding: 12px 20px 14px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-logo-img {
    width: 60px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Botón X dentro del drawer */
.mobile-nav-close {
    position: absolute;
    top: 6px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 2.3rem;
    color: var(--wood-dark);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.2s ease;
    z-index: 10;
}
.mobile-nav-close:hover { 
    color: var(--gold); 
    transform: scale(1.1);
}

/* Lista principal del menú móvil */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-list > li {
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wood-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s, background 0.2s;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active { color: var(--gold); background: rgba(197, 160, 89, 0.05); }

/* Flecha del accordion */
.accordion-arrow {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: var(--gold);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
}

.mobile-dropdown.accordion-open > .mobile-nav-link .accordion-arrow {
    transform: rotate(180deg);
}

/* Submenu accordion */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(197, 160, 89, 0.04);
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.mobile-submenu li a {
    display: block;
    padding: 14px 30px 14px 45px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--wood-light);
    transition: color 0.2s, padding-left 0.2s;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}
.mobile-submenu li:last-child a { border-bottom: none; }
.mobile-submenu li a:hover { color: var(--gold); padding-left: 55px; }

/* Separador decorativo dentro del drawer */
.mobile-nav-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 10px 30px;
    opacity: 0.4;
}

/* Datos de contacto en el pie del drawer */
.mobile-nav-footer {
    padding: 25px 30px 10px;
    border-top: 1px solid rgba(197, 160, 89, 0.25);
    margin-top: auto;
    font-size: 0.82rem;
    color: var(--wood-light);
    line-height: 1.8;
}
.mobile-nav-footer strong { color: var(--wood-dark); display: block; margin-bottom: 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.mobile-nav-footer a { color: var(--gold); }

/* =========================================
   4. HERO SECTION (PORTADA)
   ========================================= */
.hero {
    /* CAMBIO 1: Altura reducida para que se vea la sección de abajo */
    height: 85vh; /* Antes era calc(100vh - 100px) */
    
    /* Estas propiedades ya no son necesarias para la imagen de fondo, pero las dejamos para el centrado */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    /* Importante: oculta cualquier parte del video que sobresalga */
    overflow: hidden; 
}

/* Overlay oscuro para mejorar lectura de texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* CAMBIO 2: Tono cálido traslúcido en lugar de negro */
    /* Usamos un color dorado/madera con 50% de opacidad para el efecto cálido */
    background: rgba(160, 130, 90, 0.5); 
    z-index: 1; /* Por encima del video (z-0) pero debajo del texto (z-2) */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 { font-size: 4rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 2px; text-transform: uppercase; }

/* Estilos para el Video de Fondo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover; /* Asegura que el video cubra todo el área sin deformarse */
    z-index: 0; /* Lo mandamos al fondo de todo */
}

/* ─── Video Explicativo Bajo Demanda ─────────────────────────────────────── */
.video-demand {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background-color: #000;
    display: block;
    object-fit: cover;
}

/* ─── Patrón Facade (Carga diferida 0 KB de iframe de video) ─────────────── */
.video-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.video-facade:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.video-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.video-facade:hover img {
    transform: scale(1.03);
    filter: brightness(0.85);
}

.video-facade .facade-play-btn {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.9);
    border: 2px solid var(--gold-light, #ffd700);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}

.video-facade .facade-play-btn svg {
    margin-left: 3px;
}

.video-facade:hover .facade-play-btn,
.video-facade:focus-within .facade-play-btn {
    transform: scale(1.15);
    background: #d4a017;
    box-shadow: 0 12px 30px rgba(212, 160, 23, 0.5);
}

.video-facade.is-loaded {
    cursor: default;
}

.video-facade iframe,
.video-facade video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 3;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 3; 
    opacity: 0.8;
}

.scroll-indicator span {
    display: block;
    width: 25px;
    height: 25px;
    border-bottom: 3px solid var(--gold); 
    border-right: 3px solid var(--gold);
    transform: rotate(45deg); 
    margin: -12px auto; 
    /* CORRECCIÓN AQUÍ: Quitamos la palabra "Animation" */
    animation: scrollDown 2s infinite; 
}

.scroll-indicator span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: -0.4s; }

/* Definición de la animación de caída (CORREGIDO) */
@keyframes scrollDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* Variaciones de Hero por página (Clases opcionales para limpiar el HTML) */
.hero-home { 
    background-image: url('/assets/images/hero-cafeteria-artesanal-san-miguel-desktop.webp'); 
    background-color: #333; 
}
@media (max-width: 768px) {
    .hero-home {
        background-image: url('/assets/images/hero-cafeteria-artesanal-san-miguel-mobile.webp');
    }
}

/* =========================================
   5. SECCIÓN HISTORIA & GRIDS (HOME Y SUCURSALES)
   ========================================= */
.history-section { 
    padding: 60px 10% 80px 10%;
    text-align: center; 
    background-color: var(--bg-cream); 
}

.history-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
    text-align: left; 
    margin-top: 40px;
}

.history-text h3 { font-size: 2rem; color: var(--wood-dark); margin-bottom: 20px; }
.history-text p { margin-bottom: 15px; color: var(--wood-light); }

.history-img-container {
    width: 100%;
    height: 400px; /* Altura fija para consistencia */
    position: relative;
}

.history-img, .placeholder-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border: 8px solid var(--white); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* Sección de Características (Home - Fondo oscuro) */
.features-section {
    background-color: var(--wood-dark);
    color: var(--bg-cream);
    padding: 80px 10%;
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 0;
}

.feature-item {
    flex: 1;
    min-width: 300px;
    padding: 0 20px;
}

.feature-item.bordered {
    border-left: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.feature-item h3 { color: var(--gold); margin-bottom: 15px; font-size: 1.5rem; }

/* =========================================
   6. PÁGINA: GASTRONOMÍA
   ========================================= */
.promo-bar-flex {
    background-color: var(--wood-dark);
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--gold);
}

.promo-text {
    color: var(--bg-cream);
    font-size: 1.6rem;
    font-style: italic;
}

.promo-action { display: flex; align-items: center; gap: 20px; }
.promo-arrow { color: var(--gold); font-size: 1.5rem; animation: bounceRight 2s infinite; }

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.cookbook-section { padding: 80px 10%; max-width: 1200px; margin: 0 auto; }

.paper-header { text-align: center; margin-bottom: 80px; }
.headline { font-size: 3.5rem; letter-spacing: 5px; color: var(--wood-dark); margin-bottom: 10px; }

.cookbook-article {
    display: flex;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.cookbook-article.reverse { flex-direction: row-reverse; }

.article-text { flex: 1; }
.article-text h3 { font-size: 2.2rem; margin-bottom: 20px; color: var(--gold); }
.article-text p { font-size: 1.05rem; margin-bottom: 15px; color: #555; }

.drop-cap::first-letter {
    font-size: 3.5rem;
    color: var(--wood-dark);
    float: left;
    margin-right: 10px;
    line-height: 0.8;
    font-family: 'Playfair Display', serif;
}

.article-image { flex: 1; height: 350px; }
.article-placeholder {
    width: 100%; height: 100%;
    background-color: var(--gray-light);
    border: 4px solid var(--bg-beige);
}

.divider-gold {
    border: 0; 
    border-top: 1px solid var(--gold); 
    margin: 50px auto; 
    width: 50%; 
    opacity: 0.5;
}

/* =========================================
   7. PÁGINA: CONTACTO
   ========================================= */
.contact-section { background-color: var(--bg-beige); padding: 80px 5%; }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.map-container, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.map-container iframe { width: 100%; height: 100%; min-height: 500px; }

.contact-form-container { padding: 40px; }
.contact-form-container h2 { color: var(--wood-dark); margin-bottom: 6px; font-size: 2rem; }
.contact-form-container p { margin-bottom: 22px; color: var(--wood-light); }

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; margin-bottom: 16px; min-width: 0; }

.form-group label { display: block; margin-bottom: 6px; color: var(--wood-dark); font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 12px; border: 1px solid #ddd; background: var(--bg-cream);
    font-family: 'Lato', sans-serif; transition: border 0.3s; border-radius: 4px; box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--gold); outline: none; background: #fff;
}

/* =========================================
   8. FOOTER (ACTUALIZADO)
   ========================================= */
footer {
    background-color: #2e241e;
    color: var(--bg-beige);
    border-top: 5px solid var(--gold);
    /* 1. Reducimos el padding superior e inferior */
    padding: 40px 0 15px; 
}

.footer-container {
    display: flex;
    /* 2. Centramos las columnas en el medio de la pantalla */
    justify-content: center; 
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* 3. Agregamos un GAP fijo para separarlas prolijamente */
    gap: 60px; 
    /* 4. Centramos el texto dentro de cada columna */
    text-align: center; 
}

.footer-col { 
    flex: 1; 
    min-width: 250px; 
    /* Opcional: limitar el ancho máximo para que no se estiren demasiado */
    max-width: 300px; 
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    display: inline-block;
}

/* Ajuste para centrar los items de contacto (icono + texto) */
.contact-info-item { 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Centrado horizontal */
    gap: 12px; 
    margin-bottom: 15px; 
}

.schedule-list { list-style: none; }
.schedule-list li { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 5px; }

/* Ajuste para centrar los iconos de redes */
.socials { 
    display: flex; 
    gap: 15px; 
    margin-top: 15px; 
    justify-content: center; /* Centrado horizontal */
}

.social-icon {
    width: 45px; height: 45px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    transition: all 0.3s ease;
}
.social-icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-icon:hover { background-color: var(--gold); transform: translateY(-3px); color: var(--wood-dark); }
.social-icon:hover svg { fill: currentColor; }

.copyright {
    text-align: center; 
    /* Reducimos este margen también */
    margin-top: 30px; 
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem; color: #aaa;
}

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* ─── TABLET GRANDE / LANDSCAPE (≤ 1024px) ─────────────────── */
@media (max-width: 1024px) {

    /* Header: activar hamburger */
    .hamburger { display: flex; }
    header nav > ul { display: none; } /* Menú desktop oculto */
    header { padding: 0 5%; }

    /* Reducir paddings de secciones */
    .history-section  { padding: 50px 6% 60px; }
    .cookbook-section { padding: 60px 6%; }
    .features-section { padding: 60px 6%; }
    .promo-bar-flex   { padding: 30px 6%; }
    .contact-section  { padding: 20px 4% 60px; }

    /* History grid: menos gap */
    .history-grid { gap: 35px; }

    /* Cookbook articles: menos gap */
    .cookbook-article { gap: 40px; margin-bottom: 70px; }

    /* Features */
    .feature-item { min-width: 220px; }

    /* Hero */
    .hero-content h1 { font-size: 3.2rem; }
}

/* ─── TABLET PEQUEÑA / MOBILE GRANDE (≤ 768px) ─────────────── */
@media (max-width: 768px) {

    /* Main offset */
    main { margin-top: 80px; }

    /* Header más compacto */
    header { height: 80px; padding: 0 5%; }
    .logo-container img { height: 54px; }

    /* Drawer ajuste de padding-top */
    #mobile-nav { padding-top: 0; }

    /* ── Tipografías ── */
    .section-title  { font-size: 2rem; }
    .headline       { font-size: 2.2rem; letter-spacing: 3px; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .middle-title   { font-size: 1.8rem; margin: 50px 0 30px; }

    /* ── Hero ── */
    .hero            { height: 75vh; }
    .hero-content h1 { font-size: 2.4rem; margin-bottom: 14px; }
    .hero-content p  { font-size: 0.95rem; letter-spacing: 1.5px; }
    .scroll-indicator { bottom: 25px; }
    .hero-balbin,
    .hero-tribulato  { height: 45vh; }

    /* ── History Grid → columna única ── */
    .history-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 25px;
    }
    .history-text { text-align: center; }
    .history-text h3 { font-size: 1.6rem; }
    .history-img-container { height: 260px; }
    .custom-list { text-align: left; display: inline-block; }

    /* ── Features → columna única ── */
    .features-section { padding: 50px 5%; }
    .features-grid { flex-direction: column; gap: 0; }
    .feature-item { min-width: 100%; padding: 25px 10px; }
    .feature-item.bordered {
        border: none;
        border-top: 1px solid var(--gold);
        border-bottom: 1px solid var(--gold);
        padding: 25px 10px;
    }

    /* ── Promo Bar → columna ── */
    .promo-bar-flex { flex-direction: column; text-align: center; gap: 20px; padding: 30px 5%; }
    .promo-text { font-size: 1.2rem; }
    .promo-action { flex-direction: column; gap: 12px; }
    .promo-arrow { transform: rotate(90deg); animation: none; }

    /* ── Cookbook Articles → columna ── */
    .cookbook-article,
    .cookbook-article.reverse {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
        text-align: center;
    }
    .article-text h3 { font-size: 1.7rem; }
    .article-image { height: 240px; width: 100%; }
    .drop-cap::first-letter { font-size: 2.5rem; }
    .paper-header { margin-bottom: 40px; }

    /* ── Menu Grid → 1 columna ── */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }
    .card-image-box { height: 220px; }

    /* ── Brunch Feature → columna ── */
    .brunch-feature { flex-direction: column; text-align: center; padding: 40px 20px; gap: 25px; }
    .brunch-text h3 { font-size: 1.8rem; }
    .brunch-img { width: 100%; height: 250px; }

    /* ── Contact → columna ── */
    .contact-wrapper { flex-direction: column; border-radius: 20px; }
    .map-container iframe { min-height: 280px; }
    .contact-form-container { padding: 24px 18px; }
    .contact-form-container h2 { font-size: 1.5rem; margin-bottom: 4px; }
    .contact-form-container p { margin-bottom: 16px; font-size: 0.92rem; line-height: 1.35; }
    .form-row { display: flex; flex-direction: row; gap: 12px; margin-bottom: 14px; }
    .form-row .form-group { flex: 1; min-width: 0; margin-bottom: 0; }
    .form-group { margin-bottom: 14px; }
    .form-group label { margin-bottom: 4px; font-size: 0.85rem; }
    .form-group input, .form-group textarea, .form-group select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    /* ── Divider ── */
    .divider-gold { width: 80%; margin: 30px auto; }

    /* ── Footer → columna centrada ── */
    .footer-container { flex-direction: column; align-items: center; gap: 35px; padding: 0 30px; }
    .footer-col { min-width: 100%; max-width: 100%; }

    /* ── Regalos custom section ── */
    .custom-gift-section { flex-direction: column; text-align: center; padding: 35px 20px; gap: 25px; }

    /* ── Botones ── */
    .btn-main { padding: 13px 25px; font-size: 0.82rem; }
}

/* ─── MOBILE CHICO (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {

    /* Header */
    header { height: 70px; padding: 0 4%; }
    .logo-container img { height: 46px; }
    main { margin-top: 70px; }
    #mobile-nav { padding-top: 0; }

    /* Tipografías más pequeñas */
    .section-title  { font-size: 1.7rem; }
    .headline       { font-size: 1.8rem; letter-spacing: 2px; }
    .history-text h3 { font-size: 1.4rem; }
    .article-text h3 { font-size: 1.5rem; }
    .brunch-text h3 { font-size: 1.6rem; }
    .middle-title   { font-size: 1.5rem; }

    /* Hero muy compacto */
    .hero            { height: 80vh; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-content p  { font-size: 0.85rem; letter-spacing: 1px; }
    .hero-balbin,
    .hero-tribulato  { height: 38vh; }

    /* Secciones */
    .history-section  { padding: 35px 4% 45px; }
    .cookbook-section { padding: 40px 4%; }
    .features-section { padding: 40px 4%; }
    .history-img-container { height: 210px; }
    .article-image    { height: 190px; }
    .brunch-img       { height: 200px; }
    .card-image-box   { height: 180px; }

    /* Paddings cookbook */
    .cookbook-article,
    .cookbook-article.reverse { gap: 20px; margin-bottom: 35px; }

    /* Drop cap más pequeño */
    .drop-cap::first-letter { font-size: 2rem; }

    /* Contacto */
    .contact-form-container { padding: 20px 14px; }
    .contact-form-container h2 { font-size: 1.35rem; margin-bottom: 3px; }
    .contact-form-container p { margin-bottom: 12px; font-size: 0.88rem; line-height: 1.3; }
    .form-row { display: flex; flex-direction: row; gap: 10px; margin-bottom: 11px; }
    .form-row .form-group { flex: 1; min-width: 0; margin-bottom: 0; }
    .form-group { margin-bottom: 11px; }
    .form-group label { margin-bottom: 3px; font-size: 0.82rem; }
    .form-group input, .form-group textarea, .form-group select {
        padding: 9px 10px;
        font-size: 0.9rem;
    }
    .map-container iframe   { min-height: 220px; }

    /* Brunch */
    .brunch-feature { padding: 30px 15px; }

    /* Regalos */
    .btn-gift { padding: 13px 20px; font-size: 0.82rem; }
    .custom-gift-section { padding: 28px 15px; }

    /* Footer */
    .footer-container { gap: 28px; padding: 0 20px; }
    .copyright { font-size: 0.78rem; }

    /* Drawer más angosto */
    #mobile-nav { width: 92vw; }
    .mobile-nav-link { padding: 16px 22px; font-size: 1rem; }
    .mobile-submenu li a { padding: 12px 22px 12px 38px; }
    .mobile-nav-footer { padding: 20px 22px 8px; }
}

/* =========================================
   ADD-ONS: SUCURSALES Y LISTAS
   ========================================= */

/* Fondos específicos para cada sucursal */
/* Ajuste de altura para sucursales (un poco más bajo que el home) */
.hero-balbin, .hero-tribulato {
    height: 60vh;
    color: var(--bg-cream); /* IMPORTANTE: Texto oscuro para contraste */
}

.hero-balbin {
    /* Si la imagen no carga, se verá este color Arena */
    background-color: var(--white-pink);     
    /* Si usas imagen, le ponemos un degradado SUAVE claro encima, no negro */
    background-image: linear-gradient(rgba(232, 220, 202, 0.3), rgba(232, 220, 202, 0.3)), url('/assets/images/hero-sucursal-balbin-san-miguel-desktop.webp');
}

.hero-tribulato {
    background-color: var(--white-pink); /* Mismo color arena base */
    background-image: linear-gradient(rgba(232, 220, 202, 0.3), rgba(232, 220, 202, 0.3)), url('/assets/images/hero-sucursal-tribulato-san-miguel-desktop.webp');
}

@media (max-width: 768px) {
    .hero-balbin {
        background-image: linear-gradient(rgba(232, 220, 202, 0.3), rgba(232, 220, 202, 0.3)), url('/assets/images/hero-sucursal-balbin-san-miguel-mobile.webp');
    }
    .hero-tribulato {
        background-image: linear-gradient(rgba(232, 220, 202, 0.3), rgba(232, 220, 202, 0.3)), url('/assets/images/hero-sucursal-tribulato-san-miguel-mobile.webp');
    }
}

/* Estilo para las listas de características */
.custom-list {
    margin-top: 20px;
    list-style: none; /* Quitamos el punto por defecto */
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--wood-light);
}

.custom-list li::before {
    content: '•'; /* O puedes usar '✓' */
    color: var(--gold);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* =========================================
   ADD-ONS: CONTACTO Y SCROLLBAR
   ========================================= */

/* 1. Ajuste de Margen Superior en Contacto */
/* Sobreescribimos el padding-top original de 80px a 40px */
.contact-section {
    padding-top: 20px; 
}

/* 2. Tarjeta de Contacto más redondeada */
.contact-wrapper {
    border-radius: 50px; /* Antes era 8px, ahora es mucho más suave */
    /* Opcional: Si quieres que el mapa también respete la curva, aseguramos esto: */
    overflow: hidden; 
}

/* 3. SCROLLBAR PERSONALIZADO (Elegante y Dorado) */
/* Ancho de la barra */
::-webkit-scrollbar {
    width: 12px;
}

/* El "carril" por donde corre la barra */
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

/* La "barra" en sí misma */
::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 6px;
    border: 3px solid var(--bg-cream); /* Crea un espacio blanco alrededor para que se vea flotante */
}

/* Color al pasar el mouse por la barra */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--wood-light);
}

/* =========================================
   NUEVOS ESTILOS: GRILLA GASTRONÓMICA
   ========================================= */

/* Título intermedio decorativo */
.middle-title {
    text-align: center;
    margin: 80px 0 50px;
    font-size: 2.5rem;
    color: var(--wood-dark);
}

/* Contenedor de la grilla (3 columnas) */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Cada tarjeta individual */
.menu-card {
    text-align: center;
    background: var(--white);
    padding: 20px;
    border-radius: 8px; /* Un toque sutil */
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el mouse */
}

/* Contenedor de imagen cuadrado (mantiene la estética del sitio) */
.card-image-box {
    width: 100%;
    height: 300px; /* Cuadrado perfecto */
    margin-bottom: 25px;
    border: 4px solid var(--bg-beige); /* El borde beige que ya usas */
    overflow: hidden;
    position: relative;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s ease;
}

.menu-card:hover .card-image-box img {
    scale: 1.05; /* Zoom suave en la foto */
}

.menu-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.menu-card p {
    font-size: 0.95rem;
    color: var(--wood-light);
}

/* Sección especial para Brunch (Ancho completo) */
.brunch-feature {
    background-color: var(--wood-dark);
    color: var(--bg-cream);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    border-radius: 4px;
}

.brunch-text { flex: 1; }
.brunch-text h3 { color: var(--gold); font-size: 2.5rem; margin-bottom: 20px; }
.brunch-img { flex: 1; height: 400px; border: 4px solid var(--gold); }
.brunch-img img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive para el Brunch */
@media (max-width: 768px) {
    .brunch-feature { flex-direction: column; text-align: center; padding: 40px 20px; }
    .brunch-img { width: 100%; height: 300px; }
}

/* =========================================
   ADD-ONS: SECCIÓN REGALOS (MODIFICADO)
   ========================================= */

/* 1. Tarjetas con Borde Arriba y Abajo */
.card-silver { 
    border-top: 4px solid #C0C0C0; 
    border-bottom: 4px solid #C0C0C0;
}
.card-gold { 
    border-top: 4px solid #D4AF37; 
    border-bottom: 4px solid #D4AF37;
}
.card-platinum { 
    border-top: 4px solid #797979; /* Un gris más oscuro para que se note en fondo blanco */
    border-bottom: 4px solid #797979;
}

/* 2. Imágenes "Ciegas" (Solo color de fondo opaco) */
.img-placeholder-silver {
    width: 100%; height: 100%;
    background-color: #C0C0C0; /* Plata */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}
.img-placeholder-gold {
    width: 100%; height: 100%;
    background-color: #D4AF37; /* Oro */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}
.img-placeholder-platinum {
    width: 100%; height: 100%;
    background-color: #5a5a5a; /* Platino oscuro */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}

/* 3. Botones Gift Card (Efecto Hover Negro/Dorado) */
.btn-gift {
    width: 100%;
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    
    /* Estado Normal (Hereda estilos base o definimos uno neutro) */
    background-color: var(--gold); 
    color: var(--white);
    border: 1px solid var(--gold);
}

/* Estado Hover (Lo que pediste: Fondo negro, letras doradas) */
.btn-gift:hover {
    background-color: #000000;
    color: var(--gold);
    border-color: #000000;
}

/* Estilos de lista y precios */
.gift-price {
    display: block;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin: 15px 0;
    color: var(--wood-dark);
    font-weight: bold;
}
.gift-details {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}
.gift-details li { margin-bottom: 5px; }

/* Sección personalizada */
.custom-gift-section {
    background-color: var(--bg-beige);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    border: 1px solid var(--gold);
}
@media (max-width: 768px) {
    .custom-gift-section { flex-direction: column; text-align: center; padding: 30px; }
}

/* =========================================
   MODAL CARTA — Patrón CSS puro (checkbox + label)
   ========================================= */

/* Checkbox siempre oculto (es solo el interruptor) */
.modal-toggle {
    display: none;
}

/* Activar overlay cuando el checkbox está marcado */
.modal-toggle:checked + .modal-overlay {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Overlay: fondo oscuro + blur */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 59, 50, 0.88);  /* Tono cálido de la marca */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;                              /* Por encima del header (z-index: 1000) */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Caja del modal */
.modal-content {
    background-color: var(--bg-cream);
    border: 2px solid var(--gold);
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(74, 59, 50, 0.5);
    /* Scrollbar del modal a tono con la marca */
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg-beige);
}

/* Scrollbar webkit dentro del modal */
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: var(--bg-beige); }
.modal-content::-webkit-scrollbar-thumb { background-color: var(--gold); border-radius: 4px; }

/* Header pegajoso (la × siempre visible al hacer scroll interno) */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    background: linear-gradient(to bottom, var(--bg-cream) 60%, transparent);
}

/* Botón × de cierre */
.close-modal {
    color: var(--wood-dark);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(197, 160, 89, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s, color 0.3s;
    border: 1px solid transparent;
}

.close-modal:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Cuerpo del modal */
.modal-body {
    padding: 0 30px 20px;
    text-align: center;
}

/* Título del modal */
.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--wood-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.4);
}

/* Imágenes de la carta (apiladas, scrolleables) */
.modal-body img {
    width: 100%;
    display: block;
    border-bottom: 2px solid var(--bg-beige);
}

/* Footer del modal */
.modal-footer {
    padding: 20px 30px;
    background: var(--bg-beige);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    text-align: center;
}

/* Botón "Cerrar carta" (al pie del modal) */
.btn-carta-cerrar {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--wood-dark);
    color: var(--bg-cream);
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid var(--wood-dark);
    border-radius: 2px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-carta-cerrar:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

/* Bloqueo de scroll del body cuando el modal está abierto */
body.no-scroll {
    overflow: hidden;
}

/* Responsive modal en mobile */
@media (max-width: 768px) {
    .modal-content {
        max-height: 88vh;
        border-radius: 6px;
    }
    .modal-body { padding: 0 16px 16px; }
    .modal-title { font-size: 1.5rem; letter-spacing: 2px; }
    .modal-footer { padding: 16px 20px; }
    .btn-carta-cerrar { padding: 12px 28px; font-size: 0.82rem; }
    .close-modal { font-size: 1.7rem; width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .modal-overlay { padding: 10px; }
    .modal-content { max-height: 92vh; }
    .modal-body { padding: 0 12px 12px; }
}