/* ══════════════════════════════════════════════════════════ */
/*  SOA COFFEE — Estilos Globales                             */
/*  Variables · Navbar · Hero · Secciones · Carta SPA         */
/* ══════════════════════════════════════════════════════════ */

:root {
    --cream:   #FAF8F4;
    --charcoal:#1E3A5F;
    --navy:    #1E3A5F;
    --sand:    #D4C8B8;
    --stone:   #8A8279;
    --olive:   #6B7C5C;
    --teal:    #1A9EA6;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { background-color: var(--cream); overflow-x: hidden; }
img  { display: block; max-width: 100%; }


/* ═══════════════════════════════════════════════════════════ */
/*  SPA — Transiciones de vista                                */
/* ═══════════════════════════════════════════════════════════ */
.spa-view {
    animation: spaFadeIn 0.3s ease both;
}
@keyframes spaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════ */
/*  NAVBAR — Píldora Flotante                                  */
/* ═══════════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 16px;
    left: 14px;
    right: 14px;
    z-index: 50;
}

.navbar-inner {
    height: 56px;
    border-radius: 9999px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(10, 10, 10, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

#navbar.is-scrolled .navbar-inner,
#navbar.is-carta .navbar-inner {
    background-color: rgba(15, 15, 15, 0.88);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

/* Logo / Isotipo */
.navbar-isotipo {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.logo-link:hover .navbar-isotipo { opacity: 0.75; }

/* Nav links */
.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
}
.nav-link:hover,
.nav-link.is-active {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.38);
}

/* CTA encuéntranos */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 6px 16px 6px 18px;
    transition: all 0.2s ease;
}
.nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}


/* ═══════════════════════════════════════════════════════════ */
/*  HAMBURGER                                                   */
/* ═══════════════════════════════════════════════════════════ */
.hamburger-line {
    display: block;
    width: 22px;
    height: 1.2px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.hamburger-line--short { width: 15px; margin-left: auto; }

#menu-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#menu-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 22px; }


/* ═══════════════════════════════════════════════════════════ */
/*  MOBILE MENU OVERLAY                                        */
/* ═══════════════════════════════════════════════════════════ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: rgba(255, 255, 255, 0.95); }


/* ═══════════════════════════════════════════════════════════ */
/*  HERO                                                        */
/* ═══════════════════════════════════════════════════════════ */
.hero-section {
    height: 100dvh;
    min-height: 640px;
}

.hero-bg img {
    animation: heroDrift 14s ease-in-out both;
}
@keyframes heroDrift {
    from { transform: scale(1.05); }
    to   { transform: scale(1.0); }
}

.hero-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.82) 0%,
        rgba(10, 10, 10, 0.28) 45%,
        rgba(10, 10, 10, 0.08) 100%
    );
}

.hero-eyebrow { line-height: 1; }
.anim-eyebrow { display: inline-block; }

.hero-headline {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.01em;
}

.hero-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
}

/* Hero CTA buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: gap 0.25s ease;
    cursor: pointer;
}
.btn-hero-primary:hover { gap: 14px; }
.btn-line { display: block; width: 28px; height: 1px; background: rgba(255,255,255,0.45); transition: width 0.25s ease; }
.btn-hero-primary:hover .btn-line { width: 40px; }
.btn-arrow { color: rgba(255,255,255,0.7); flex-shrink: 0; }

.btn-hero-secondary { text-decoration: none; transition: color 0.2s ease; }
.btn-hero-secondary:hover { color: rgba(255, 255, 255, 0.7) !important; }

/* Scroll indicator */
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50%       { opacity: 0.7;  transform: scaleY(1.15); }
}


/* ═══════════════════════════════════════════════════════════ */
/*  SHARED SECTION COMPONENTS                                   */
/* ═══════════════════════════════════════════════════════════ */
.section-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--stone);
}
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--charcoal);
}
.section-rule { width: 40px; height: 1px; }

/* Historia */
.historia-img { transition: transform 8s ease; }
.historia-img:hover { transform: scale(1.04); }


/* ═══════════════════════════════════════════════════════════ */
/*  GALERÍA                                                     */
/* ═══════════════════════════════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.gallery-item {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Última imagen sola en fila → span 3 */
.gallery-item:nth-child(3n+1):last-child {
    grid-column: span 3;
    aspect-ratio: 16 / 7;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }
    .gallery-item:nth-child(3n+1):last-child {
        grid-column: span 1;
        aspect-ratio: 3 / 4;
    }
    .gallery-item:nth-child(2n+1):last-child {
        grid-column: span 2;
        aspect-ratio: 16 / 7;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/*  EVENTOS                                                     */
/* ═══════════════════════════════════════════════════════════ */
.event-card { padding: 28px 28px 32px; }
.event-badge {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 9999px;
    padding: 3px 10px;
}


/* ═══════════════════════════════════════════════════════════ */
/*  ENCUÉNTRANOS                                                */
/* ═══════════════════════════════════════════════════════════ */
.map-wrapper { min-height: 420px; }
.contact-block { margin-bottom: 28px; }
.contact-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
}
.contact-phone-link { transition: color 0.2s ease; }
.contact-phone-link:hover { color: rgba(255,255,255,0.9) !important; }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}
.social-link:hover { color: rgba(255,255,255,0.85); }


/* ═══════════════════════════════════════════════════════════ */
/*  FOOTER                                                      */
/* ═══════════════════════════════════════════════════════════ */
.footer-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.38;
    transition: opacity 0.2s ease;
}
.footer-logo:hover { opacity: 0.55; }

.footer-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover { color: rgba(255,255,255,0.65); }


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA SPA — Layout principal                               */
/* ═══════════════════════════════════════════════════════════ */
.carta-container {
    min-height: 100vh;
    background: var(--cream);
}

/* Hero carta */
.carta-hero {
    background: var(--navy);
    padding: 100px 32px 36px;
    position: relative;
}
@media (min-width: 768px) {
    .carta-hero { padding: 108px 64px 40px; }
}

.carta-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    max-width: 960px;
    margin: 0 auto;
}
.carta-hero-isotipo {
    height: 72px;
    width: auto;
    opacity: 0.9;
    flex-shrink: 0;
    margin-bottom: 4px;
}
.carta-hero-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}
.carta-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
}
.carta-hero-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
    letter-spacing: 0.1em;
}

/* Botón volver */
.carta-back-btn {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 9999px;
    padding: 7px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: all 0.2s ease;
}
.carta-back-btn:hover {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.9);
}
@media (max-width: 767px) {
    .carta-back-btn { display: none; }
}


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Navegación de categorías (sticky)                  */
/* ═══════════════════════════════════════════════════════════ */
.carta-cat-nav {
    position: sticky;
    top: 80px;
    z-index: 40;
    background: var(--cream);
    border-bottom: 1px solid rgba(212,200,184,0.5);
}
.carta-cat-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 24px;
}

@media (min-width: 768px) {
    .carta-cat-tabs { padding: 14px 48px; gap: 10px; }
}

.carta-cat-tab {
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--stone);
    background: transparent;
    border: 1px solid rgba(212,200,184,0.6);
    border-radius: 9999px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.carta-cat-tab:hover { color: var(--navy); border-color: rgba(30,58,95,0.3); }
.carta-cat-tab.is-active {
    color: var(--navy);
    background: rgba(30,58,95,0.06);
    border-color: rgba(30,58,95,0.3);
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Secciones (cs)                                     */
/* ═══════════════════════════════════════════════════════════ */
.carta-main {
    max-width: 1100px;
    margin: 0 auto;
}

.cs {
    padding: 56px 24px 64px;
    border-bottom: 1px solid rgba(212,200,184,0.4);
}
@media (min-width: 768px) {
    .cs { padding: 64px 48px 72px; }
}

.cs--alt { background: #F5F3EF; }
.cs--dark { background: var(--charcoal); }

.cs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.cs-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 6px;
}
.cs-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--charcoal);
}
.cs--dark .cs-title { color: #fff; }

.cs-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: var(--stone);
    font-style: italic;
    margin-top: 4px;
}

.cs-price-block {
    text-align: right;
    flex-shrink: 0;
}
.cs-price-big {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--navy);
    display: block;
}
.cs-price-inc {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    color: var(--stone);
    letter-spacing: 0.1em;
}

.cs-subsection-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 16px;
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212,200,184,0.5);
}
.cs-subsection-title:first-child { margin-top: 0; }


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Items grid (ci)                                    */
/* ═══════════════════════════════════════════════════════════ */
.ci-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .ci-grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}

.ci {
    padding: 16px 0;
    border-bottom: 1px solid rgba(212,200,184,0.4);
}
.ci--highlight {
    background: rgba(30,58,95,0.03);
    border: 1px dashed rgba(30,58,95,0.18);
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 4px;
}
.ci--dark { border-bottom-color: rgba(255,255,255,0.08); }

.ci-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.ci-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.3;
}
.ci-name em { font-style: italic; font-size: 12px; color: var(--stone); }
.ci-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    white-space: nowrap;
    flex-shrink: 0;
}
.ci-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--stone);
    line-height: 1.55;
    margin-bottom: 7px;
    font-style: italic;
}
.ci-alg { display: flex; flex-wrap: wrap; gap: 4px; }

/* Allergen badge */
.alg {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: var(--teal);
    background: rgba(26,158,166,0.08);
    border: 1px solid rgba(26,158,166,0.2);
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.04em;
}


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Lista compacta de bebidas (ci-list / ci-row)       */
/* ═══════════════════════════════════════════════════════════ */
.ci-list { margin-top: 0; }
.ci-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(212,200,184,0.35);
}
.ci-row:last-child { border-bottom: none; }
.ci-row--sub .ci-row-name { padding-left: 12px; color: var(--stone); font-size: 12px; }
.ci-row--header .ci-row-name,
.ci-row--header .ci-row-price {
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--stone);
    font-weight: 400;
}

.ci-row-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--charcoal);
    flex: 1;
}
.ci-row-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bebidas layout (2 columnas en desktop) */
.bebidas-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 768px) {
    .bebidas-cols { grid-template-columns: 1fr 1fr; }
}


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Extras box                                         */
/* ═══════════════════════════════════════════════════════════ */
.carta-extras {
    margin-top: 28px;
    background: rgba(212,200,184,0.15);
    border: 1px solid rgba(212,200,184,0.5);
    border-radius: 8px;
    padding: 18px 20px 20px;
}
.extras-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 14px;
}
.extras-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}
.extras-grid span {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--stone);
}
.extras-grid b { color: var(--navy); font-weight: 500; }


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Leyenda alérgenos                                  */
/* ═══════════════════════════════════════════════════════════ */
.carta-alg-legend {
    padding: 40px 24px 48px;
    background: #F5F3EF;
    border-top: 1px solid rgba(212,200,184,0.5);
}
@media (min-width: 768px) {
    .carta-alg-legend { padding: 48px 48px 56px; }
}
.legend-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 16px;
}
.legend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 16px;
}
.legend-grid span {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: var(--stone);
}
.legend-grid b { color: var(--teal); }
.legend-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    color: rgba(138,130,121,0.6);
    line-height: 1.7;
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Footer                                             */
/* ═══════════════════════════════════════════════════════════ */
.carta-footer {
    background: var(--charcoal);
    padding: 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
@media (min-width: 768px) {
    .carta-footer { padding: 28px 48px; }
}


/* ═══════════════════════════════════════════════════════════ */
/*  RESPONSIVE — Mobile ajustes                                */
/* ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .carta-hero { padding-top: 92px; padding-bottom: 28px; }
    .carta-hero-inner { gap: 14px; }
    .carta-hero-isotipo { height: 38px; }
    .cs-header { flex-direction: column; gap: 16px; }
    .cs-price-block { text-align: left; }
    .cs-price-big { font-size: 1.6rem; }
    .cs { padding: 40px 20px 48px; }
    .carta-alg-legend { padding: 32px 20px 40px; }
}

@media (max-width: 500px) {
    #navbar { top: 10px; left: 8px; right: 8px; }
    .carta-cat-nav { top: 74px; }
    .hero-headline { font-size: clamp(2.2rem, 8vw, 2.8rem); }
    .gallery-grid { gap: 2px; }
}


/* ═══════════════════════════════════════════════════════════ */
/*  NAVBAR — Estado claro (sobre secciones con fondo cream)    */
/* ═══════════════════════════════════════════════════════════ */
#navbar.is-light .navbar-inner {
    background-color: rgba(250, 248, 244, 0.82);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}
#navbar.is-light .nav-link {
    color: rgba(30, 58, 95, 0.6);
    border-bottom-color: transparent;
}
#navbar.is-light .nav-link:hover,
#navbar.is-light .nav-link.is-active {
    color: rgba(30, 58, 95, 0.95);
    border-bottom-color: rgba(30, 58, 95, 0.25);
}
#navbar.is-light .nav-cta {
    color: rgba(30, 58, 95, 0.85);
    border-color: rgba(30, 58, 95, 0.18);
}
#navbar.is-light .nav-cta:hover {
    background: rgba(30, 58, 95, 0.05);
    border-color: rgba(30, 58, 95, 0.32);
}
#navbar.is-light .hamburger-line {
    background: rgba(30, 58, 95, 0.65);
}


/* ═══════════════════════════════════════════════════════════ */
/*  GALERÍA — 5 columnas desktop (override)                    */
/* ═══════════════════════════════════════════════════════════ */
.gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.gallery-item {
    aspect-ratio: 4 / 5;
    cursor: pointer;
}
/* Neutralizar la regla base span-3: 10 items / 5 cols = sin huérfano */
.gallery-item:nth-child(3n+1):last-child {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
}
/* Tablet: 3 cols — última imagen sola */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .gallery-item:nth-child(3n+1):last-child { grid-column: span 3; aspect-ratio: 16 / 7; }
    .gallery-item { aspect-ratio: 4 / 5; }
}
/* Mobile: 2 cols (10 items = 5 filas exactas, sin huérfanos) */
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
    .gallery-item:nth-child(3n+1):last-child { grid-column: span 1; aspect-ratio: 4 / 5; }
    .gallery-item { aspect-ratio: 4 / 5; }
}


/* ═══════════════════════════════════════════════════════════ */
/*  LIGHTBOX — Visor de imágenes nativo                        */
/* ═══════════════════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}
.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 244, 0.9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    cursor: pointer;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(30, 58, 95, 0.65);
    background: rgba(30, 58, 95, 0.06);
    border: 1px solid rgba(30, 58, 95, 0.14);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.lightbox-close:hover {
    color: rgba(30, 58, 95, 0.95);
    background: rgba(30, 58, 95, 0.1);
    border-color: rgba(30, 58, 95, 0.28);
}
.lightbox-img-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-width: 100vw;
    max-height: 100vh;
}
.lightbox-img {
    max-width: min(85vw, 500px);
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 3px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: scale(0.96);
    transition: transform 0.28s ease;
}
.lightbox.is-open .lightbox-img {
    transform: scale(1);
}


/* ═══════════════════════════════════════════════════════════ */
/*  CTA CARTA — Sección de transición entre Historia y Galería */
/* ═══════════════════════════════════════════════════════════ */
.cta-carta-section {
    background: var(--cream);
    padding: 52px 24px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-carta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
}
.cta-carta-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--stone);
}
.btn-cta-carta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 9999px;
    padding: 16px 48px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.25);
}
.btn-cta-carta:hover {
    background: transparent;
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.12);
    transform: translateY(-2px);
}
.cta-carta-note {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 300;
    color: var(--stone);
    letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════ */
/*  CARTA — Alineación: cabeceras centradas, platos izq/dcha   */
/* ═══════════════════════════════════════════════════════════ */

/* Cabecera de sección: título y precio apilados, centrados */
.carta-main .cs-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.carta-main .cs-eyebrow { text-align: center; }
.carta-main .cs-title   { text-align: center; }

/* Precio de sección: debajo del título, discreto */
.carta-main .cs-price-block {
    text-align: center;
    margin-top: 6px;
}
.carta-main .cs-price-big {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 300;
    color: var(--stone);
}
.carta-main .cs-price-inc {
    color: var(--stone);
    opacity: 0.75;
}

/* Subtítulos de subsección: izquierda (igual que el resto del contenido) */
.carta-main .cs-subsection-title {
    text-align: left;
}

/* Items de plato */
.carta-main .ci-top {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.carta-main .ci-name  { text-align: left; }
.carta-main .ci-price { text-align: right; flex-shrink: 0; }
.carta-main .ci-desc  { text-align: left; }
.carta-main .ci-alg   { justify-content: flex-start; }

/* Grids de items */
.carta-main .ci-grid {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.carta-main .ci-list {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Extras y bebidas */
.carta-main .extras-title          { text-align: left; }
.carta-main .extras-grid           { justify-content: flex-start; text-align: left; }
.carta-main .bebidas-col           { text-align: left; }
.carta-main .bebidas-col .cs-note  { text-align: left; }
.carta-main .carta-extras          { text-align: left; }

/* Leyenda alérgenos */
.carta-alg-legend            { text-align: left; }
.carta-alg-legend .legend-grid { justify-content: flex-start; }

/* carta-hero-inner → column layout definido en la sección base */
