/* =====================================================================
   Gusto di Mare · style.css
   Tipografía: Playfair Display + Montserrat. Paleta verde + dorado + crema.
   Organizado en bloques. Mobile-first donde se puede.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --bg: #f6f4ee;
    --bg-paper: #fbfaf6;
    --dark: #14161a;
    --green: #0b5c4e;
    --green-deep: #084236;
    --green-soft: #14776a;
    --text: #6c7077;
    --text-strong: #2a2e34;
    --heading: #13161a;
    --line: #e1ddd2;
    --gold: #c8a14a;
    --gold-soft: #efdda1;
    --error: #b3261e;
    --success: #1a6b4d;
    --shadow-sm: 0 4px 14px rgba(15, 25, 22, .06);
    --shadow-md: 0 12px 32px rgba(15, 25, 22, .1);
    --shadow-lg: 0 24px 60px rgba(15, 25, 22, .18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --transition: .25s cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Honeypot anti-bot: invisible para humanos. tabindex va en el HTML. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 6px;
    background: var(--green);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    z-index: 200;
}
.skip-link:focus { left: 16px; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- Utilidades (evitan style="..." inline → CSP estricta) ---------- */
.em-green { color: var(--green); font-style: italic; }
.em-gold { color: var(--gold); font-style: italic; }
.overline-green {
    color: var(--green);
    letter-spacing: .3em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 600;
}
.overline-green--mb { margin-bottom: 18px; }
.hours-title-label {
    color: var(--green);
    font-size: .78rem;
    margin-bottom: 14px;
    letter-spacing: .16em;
}
.reviews-h2 {
    margin: 8px 0 12px;
    font-family: "Playfair Display", serif;
    color: #1a1d20;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    font-weight: 400;
}
.reviews-rating-line {
    font-size: 1.05rem;
    color: #6c7077;
    margin: 0;
}
.review-stars-inline {
    color: var(--gold);
    letter-spacing: .2em;
}
.footer-day-label { color: #f1ead3; }

/* ---------- 3. Nav superior ---------- */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 244, 238, .92);
    border-bottom: 1px solid #ece7d8;
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.top-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 84px;
}
/* ---- Brand tipográfica (recrea el logo: caps doradas + "di" italico + onda) ---- */
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: .06em;
    font-size: clamp(1.35rem, 1.7vw, 1.7rem);
    padding: 4px 0;
}
.brand .brand-it {
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
    font-size: .82em;
    margin: 0 .18em;
    letter-spacing: 0;
    color: inherit;
}
.brand-wave {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 8px;
    margin-top: 4px;
    color: var(--gold);
    opacity: .85;
}
.brand:hover { color: #d4ad53; }
@media (max-width: 480px) {
    .brand { font-size: 1.2rem; }
    .brand-wave { height: 6px; max-width: 160px; }
}
.brand-sub {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: .68rem;
    letter-spacing: .3em;
    color: var(--green);
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 500;
}
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.nav-desktop a {
    color: #6a6f76;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
    padding: 6px 0;
}
.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--green); }
.nav-desktop a.active::after { transform: scaleX(1); }

.lang-switcher {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d6d2c3;
    border-radius: var(--radius-pill);
    padding: 3px;
    background: #fff;
}
.lang-switcher button {
    border: 0;
    background: transparent;
    padding: 6px 11px;
    font-size: .74rem;
    letter-spacing: .12em;
    font-weight: 600;
    color: #6c7077;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    font-family: inherit;
}
.lang-switcher button.active { background: var(--green); color: #fff; }
.lang-switcher button:hover:not(.active) { color: var(--green); }

.hamburger {
    display: none;
    background: transparent;
    border: 1px solid #d6d2c3;
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: #444;
    align-items: center;
}

/* ---------- 4. Nav móvil overlay ---------- */
.nav-mobile {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #0f1f1b 0%, #0b3a32 50%, #0a2620 100%);
    color: #f1ead3;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 32px 28px max(40px, env(safe-area-inset-bottom)) 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility .35s;
}
.nav-mobile.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.nav-mobile .brand { color: var(--gold); font-size: 1.55rem; }
.nav-mobile .brand-wave { color: var(--gold); opacity: .9; }
.nav-mobile-close {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(212,175,55,.4);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: #f1ead3;
    cursor: pointer;
}
.nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: 6px;
}
.nav-mobile li { border-bottom: 1px solid rgba(212,175,55,.18); }
.nav-mobile li:last-child { border-bottom: 0; }
.nav-mobile a {
    display: block;
    padding: 18px 4px;
    color: #f1ead3;
    text-decoration: none;
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
    letter-spacing: .03em;
    transition: color var(--transition), padding var(--transition);
}
.nav-mobile a:hover, .nav-mobile a:focus-visible { color: var(--gold); padding-left: 12px; }
.nav-mobile-foot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}
.nav-mobile-foot .lang-switcher {
    align-self: center;
    background: rgba(0,0,0,.25);
    border-color: rgba(212,175,55,.35);
}
.nav-mobile-foot .lang-switcher button { color: #c8d1ce; }
.nav-mobile-foot .lang-switcher button.active { background: var(--gold); color: #1a1d20; }
.nav-mobile-call {
    background: var(--gold);
    color: #14161a;
    text-align: center;
    text-decoration: none;
    padding: 16px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .85rem;
}
body.nav-open { overflow: hidden; }

/* ---------- 5. Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    text-align: center;
    color: #f4ecd9;
    overflow: hidden;
    padding: 60px 0;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11,30,26,.55) 0%, rgba(11,30,26,.55) 60%, rgba(11,30,26,.85) 100%),
        url("https://www.dropbox.com/scl/fi/e7lsovcafqanj9ol6kuqx/Gustodimare1.png?rlkey=r5er9ovgtaqhzcz0hkmmtrfmo&raw=1") center/cover no-repeat;
    z-index: -1;
    transform: scale(1.02);
}
.hero-inner { max-width: 820px; margin-inline: auto; }
.hero .overline {
    letter-spacing: .35em;
    text-transform: uppercase;
    font-size: .82rem;
    color: var(--gold-soft);
    margin-bottom: 18px;
    font-weight: 500;
}
.hero h1 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    line-height: 1.08;
    font-size: clamp(2.6rem, 6.4vw, 6.4rem);
    color: #faf3df;
    text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero-sub {
    margin: 26px auto 0;
    max-width: 580px;
    font-size: 1.05rem;
    color: #ece4cf;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
/* ---- Botones del hero (pildoras premium) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 600;
    padding: 16px 34px;
    color: #f4ecd9;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    font-family: inherit;
    border-radius: var(--radius-pill);
    min-height: 54px;
    white-space: nowrap;
}

/* Primary: oro brillante con sombra suave */
.btn-primary {
    background: linear-gradient(135deg, #d4ad53 0%, var(--gold) 100%);
    border-color: var(--gold);
    color: #1a1d20;
    box-shadow: 0 8px 24px rgba(200, 161, 74, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(200, 161, 74, .55);
    background: linear-gradient(135deg, #e0bc63 0%, #d4ad53 100%);
}

/* Secondary: outline cristalino con blur */
.btn-secondary {
    background: rgba(11, 30, 26, .35);
    border-color: rgba(248, 235, 207, .55);
    color: #f4ecd9;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(248, 235, 207, .14);
    border-color: rgba(248, 235, 207, .9);
    transform: translateY(-2px);
}

/* WhatsApp: icono redondo, NO compite visualmente con los CTAs principales */
.btn-whatsapp {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .42);
    flex-shrink: 0;
}
.btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.06);
    background: #1cb455;
    border-color: #1cb455;
    box-shadow: 0 14px 28px rgba(37, 211, 102, .55);
}
.btn-whatsapp svg {
    width: 26px;
    height: 26px;
}
/* Texto del WhatsApp oculto visualmente pero accesible para screen-readers */
.btn-whatsapp .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 30, 26, .55);
    border: 1px solid rgba(212,175,55,.4);
    backdrop-filter: blur(6px);
    color: #f4ecd9;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 0 0 rgba(255,107,107,.6);
}
.status-dot.open {
    background: #5dd8a5;
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(93, 216, 165, .55); }
    50%      { box-shadow: 0 0 0 7px rgba(93, 216, 165, 0); }
}

/* ---------- 5b. Trust strip (debajo del hero) ---------- */
.trust-strip {
    background: var(--bg-paper);
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.trust-item {
    text-align: center;
    padding: 0 8px;
}
.trust-item svg {
    color: var(--gold);
    margin: 0 auto 10px;
}
.trust-item h3 {
    margin: 0 0 4px;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    color: var(--heading);
    font-size: 1.1rem;
}
.trust-item p {
    margin: 0;
    font-size: .88rem;
    color: var(--text);
    line-height: 1.5;
}

/* ---------- 5c. Sticky bottom bar (móvil) ---------- */
.sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    display: none;
    background: rgba(15, 31, 27, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, .25);
    padding: 8px max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.sticky-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: #f1ead3;
    text-decoration: none;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    border-radius: 8px;
    transition: background .2s;
}
.sticky-bar a:hover, .sticky-bar a:focus-visible {
    background: rgba(212, 175, 55, .12);
}
.sticky-bar a.primary {
    color: var(--gold);
}
.sticky-bar a svg {
    flex-shrink: 0;
}

/* ---------- 5d. Lightbox de galería ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    display: none;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ---------- 6. Secciones genéricas ---------- */
section { padding: 100px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.section-title { text-align: center; margin-bottom: 52px; }
.section-title .overline {
    letter-spacing: .3em;
    text-transform: uppercase;
    font-size: .78rem;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 10px;
}
.section-title h2 {
    margin: 0 0 14px;
    font-family: "Playfair Display", serif;
    color: var(--heading);
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
}
.section-title h2 em { color: var(--gold); font-style: italic; }
.section-title p { max-width: 620px; margin-inline: auto; color: var(--text); }

/* ---------- 7. Historia ---------- */
#historia { background: var(--bg-paper); }
.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.story-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.story-img img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.story-copy .overline {
    color: var(--green);
    letter-spacing: .3em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 600;
}
.story-copy h2 {
    font-family: "Playfair Display", serif;
    color: var(--heading);
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    font-weight: 400;
    margin: 8px 0 22px;
    line-height: 1.15;
}
.story-copy h2 em { color: var(--gold); font-style: italic; }
.story-copy p { font-size: 1.06rem; margin: 0 0 16px; color: #555a61; }
.chef-sign {
    margin-top: 24px;
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: #8d8d8d;
    font-size: 1.3rem;
}

/* ---------- 8. Carta ---------- */
#carta { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-paper) 100%); }

.menu-search {
    max-width: 480px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
}
.menu-search svg {
    position: absolute;
    left: 16px;
    color: #8a8e94;
    pointer-events: none;
}
.menu-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 12px 18px 12px 44px;
    font: inherit;
    font-size: .96rem;
    color: var(--text-strong);
    background: #fff;
    min-height: 46px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.menu-search input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11,92,78,.12);
}

.dish-tags {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}
.dish-tag {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid;
    line-height: 1.4;
    white-space: nowrap;
}
.dish-tag.popular { color: #8a6d10; background: #fff5d8; border-color: var(--gold); }
.dish-tag.veg     { color: #1a6b4d; background: #ecf6f0; border-color: #4dbd9a; }
.dish-tag.spicy   { color: #b3261e; background: #fdf3f3; border-color: #e76b6b; }
.dish-tag.sea     { color: #1c4e8c; background: #e9f1fa; border-color: #4d7fbd; }
.dish-tag.chef    { color: #6c4d10; background: #fbeed1; border-color: var(--gold); }
.dish-tag.nonalc  { color: #1a6b4d; background: #e0f3eb; border-color: #6cc8a3; }

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.menu-tabs button {
    background: #fff;
    border: 1px solid #e1ddd2;
    color: #6a6f76;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 40px;
}
.menu-tabs button:hover { color: var(--green); border-color: var(--green); }
.menu-tabs button.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 6px 18px rgba(11, 92, 78, .25);
}
.menu-tabs button.featured { border-color: var(--gold); color: #8a6d10; }
.menu-tabs button.featured.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #1f1c10;
    box-shadow: 0 6px 18px rgba(200, 161, 74, .35);
}

.menu-note {
    text-align: center;
    margin: 14px auto 28px;
    max-width: 640px;
    font-size: .92rem;
    color: #8a8e94;
    font-style: italic;
}

.menu-list {
    max-width: 940px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding-top: 6px;
}
.menu-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text);
    font-style: italic;
}
.menu-item { padding: 4px 0; }
.dish-cat {
    display: inline-block;
    margin-top: 4px;
    font-size: .78rem;
    color: var(--green);
    font-style: italic;
    opacity: .8;
}

/* ---- Tira flotante de fotos de platos (scroll infinito sobre el menú) ---- */
.menu-photos {
    margin: 0 -20px 32px;
    padding: 6px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}
.menu-photos-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: menu-scroll 60s linear infinite;
    will-change: transform;
    padding: 8px 20px;
}
.menu-photos:hover .menu-photos-track { animation-play-state: paused; }
@keyframes menu-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .menu-photos-track { animation: none; transform: none !important; }
    .menu-photos { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
}
.menu-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
    flex-shrink: 0;
    background: #f0ece0;
    transition: transform .3s ease, box-shadow .3s ease;
}
.menu-photo:hover,
.menu-photo:focus-visible {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 20px 40px rgba(15,25,22,.2);
}
@media (max-width: 640px) {
    .menu-photo { width: 120px; height: 120px; border-radius: 12px; }
    .menu-photos-track { animation-duration: 45s; gap: 10px; }
}

.dish {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 22px 0 6px;
}
.dish-name {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-weight: 500;
    color: #1b1e21;
    font-size: 1.4rem;
    flex: 0 1 auto;
    min-width: 0;
    line-height: 1.3;
}
.leader {
    flex: 1 1 0;
    min-width: 18px;
    border-bottom: 1px dotted #c8c1a8;
    height: 0;
    align-self: flex-end;
    margin-bottom: 9px;
}
.dish-price {
    flex: 0 0 auto;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    color: #23262a;
    white-space: nowrap;
    font-weight: 500;
}
.dish-desc {
    margin: -2px 0 12px;
    font-size: .98rem;
    color: #777c83;
    max-width: 720px;
}

/* ---------- 9. Booking / Pedidos ---------- */
.booking { background: #fff; border-top: 1px solid #ece7d8; border-bottom: 1px solid #ece7d8; }

.booking-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: start;
}
.booking-card,
.info-card {
    background: var(--bg-paper);
    border: 1px solid #ece7d8;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.booking-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ece7d8;
}
.booking-card-head svg { color: var(--green); flex-shrink: 0; }
.booking-card-head strong {
    color: #1a1d20;
    font-size: 1.05rem;
    font-family: "Playfair Display", serif;
    font-weight: 500;
}
.booking-card-head span { display: block; font-size: .82rem; color: #6a6f76; }

.info-card h3 {
    margin: 0 0 14px;
    color: #1a1d20;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 500;
}
.info-card ol { padding-left: 18px; margin: 0 0 14px; }
.info-card li { margin-bottom: 10px; }
.info-card .hours {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ece7d8;
}
.info-card .hours-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    flex-wrap: wrap;
}
.info-card .hours-row strong { color: #1a1d20; }
.info-card .hours-row span { color: #555a61; font-variant-numeric: tabular-nums; }
.info-card .map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    border-bottom: 1px dashed var(--green);
    padding-bottom: 2px;
}
.info-card .map-link:hover { color: var(--green-deep); }

.map-embed {
    margin-top: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    background: #ece7d8;
}
.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.booking-grid .full { grid-column: 1 / -1; }

.field-label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555a61;
    margin-bottom: 6px;
    font-weight: 600;
}
.booking input, .booking textarea {
    width: 100%;
    border: 1px solid #d6d2c3;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
    color: #2b2f34;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 48px;
}
.booking textarea { min-height: 110px; resize: vertical; }
.booking input:focus, .booking textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(11,92,78,.12);
}
.booking input[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(179,38,30,.12);
}
.field-help { font-size: .78rem; color: #8a8e94; margin: 4px 0 0; }
.char-count {
    font-size: .78rem;
    color: #8a8e94;
    text-align: right;
    margin: 4px 0 0;
    font-variant-numeric: tabular-nums;
}

.book-btn {
    background: linear-gradient(135deg, var(--green), var(--green-soft));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    letter-spacing: .04em;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    font-size: .95rem;
}
.book-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(11,92,78,.32);
}
.book-btn:disabled { opacity: .65; cursor: not-allowed; }
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .9s linear infinite;
    display: none;
}
.book-btn.loading .spinner { display: inline-block; }
.book-btn.loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.book-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e0e8e3;
    background: #f4faf7;
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: .94rem;
}
.book-note.error { border-color: #f0c8c5; background: #fdf3f3; color: var(--error); }
.book-note.success { border-color: #c4e3d4; background: #ecf6f0; color: var(--success); }
.book-note .wa-fallback {
    display: inline-block;
    margin-top: 8px;
    color: #1a6b4d;
    text-decoration: underline;
    font-weight: 600;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.call-btn,
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
}
.call-btn { color: var(--green); border: 1px solid var(--gold); background: #fffaee; }
.call-btn:hover { background: #fff5d8; }
.wa-btn { color: #0e3422; background: #d8f4e3; border: 1px solid #4dbd9a; }
.wa-btn:hover { background: #c4eed7; }

/* ---------- 10. Galería ---------- */
#galeria { background: var(--bg-paper); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-grid figure {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform .6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- 11. Reseñas (wall infinito doble fila) ---------- */
.reviews { background: #faf8f0; border-top: 1px solid #ece7d8; border-bottom: 1px solid #ece7d8; padding-bottom: 60px; }
.review-top { text-align: center; margin-bottom: 36px; }
.reviews-rating-line strong { color: var(--heading); font-weight: 600; margin: 0 4px; }

.reviews-wall {
    margin: 0 0 50px;
    /* Fade en los bordes para que las cards desaparezcan suavemente */
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}
.reviews-row {
    overflow: hidden;
    margin-bottom: 18px;
}
.reviews-row:last-child { margin-bottom: 0; }

.reviews-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: reviews-scroll 80s linear infinite;
    will-change: transform;
}
.reviews-track--rev {
    animation-direction: reverse;
    animation-duration: 95s;
}
@keyframes reviews-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
/* Pausar al pasar el ratón */
.reviews-row:hover .reviews-track { animation-play-state: paused; }
/* Respetar usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .reviews-track { animation: none; transform: none !important; }
    .reviews-wall { mask-image: none; -webkit-mask-image: none; }
}

.review-card {
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid #ece7d8;
    border-radius: var(--radius-md);
    padding: 22px 24px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.review-card .review-stars {
    color: var(--gold);
    font-size: .95rem;
    letter-spacing: .15em;
    line-height: 1;
}
.review-card .review-quote {
    font-family: "Playfair Display", serif;
    color: #2e3135;
    font-size: 1.02rem;
    line-height: 1.55;
    font-style: italic;
    margin: 0;
    /* Limita a 4 líneas para que las tarjetas tengan altura uniforme */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card .review-author {
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    color: #6c7077;
    font-weight: 600;
}

@media (max-width: 640px) {
    .review-card { flex: 0 0 280px; padding: 20px; }
    .reviews-track { animation-duration: 60s; }
    .reviews-track--rev { animation-duration: 75s; }
}
.logos {
    border-top: 1px solid #ece7d8;
    margin-top: 60px;
    padding-top: 36px;
    text-align: center;
}
.logo-row {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    color: #9a9a9a;
    font-weight: 500;
    letter-spacing: .04em;
}

/* ---------- 12. Footer ---------- */
footer {
    background: linear-gradient(180deg, #11141a 0%, #0a0c10 100%);
    color: #8c95a0;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-title {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 18px;
    font-size: .82rem;
    font-weight: 600;
}
.footer-brand {
    font-family: "Playfair Display", serif;
    color: #f1ead3;
    font-size: 2.4rem;
    margin: 0 0 16px;
    line-height: 1;
}
.footer-grid p { margin: 0 0 12px; line-height: 1.7; }
.footer-grid a { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-grid a:hover { color: var(--gold); }
.footer-legal {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid #2a2f37;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .85rem;
}
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- 13. Chat ---------- */
.chat-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: #f1ead3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 110;
    transition: var(--transition);
    display: grid;
    place-items: center;
    border: 2px solid var(--gold);
}
.chat-toggle:hover { transform: scale(1.05); background: var(--green-deep); }
.chat-toggle .badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 14px; height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid var(--green);
}
.chat-box {
    position: fixed;
    right: 22px;
    bottom: 96px;
    width: min(360px, calc(100% - 28px));
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    z-index: 110;
    border: 1px solid #ece7d8;
}
.chat-box.open { display: block; animation: slideUp .3s ease; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-head {
    background: var(--green);
    color: #f1ead3;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-head-info { display: flex; flex-direction: column; line-height: 1.2; }
.chat-head-info strong {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #fbfaf6;
}
.chat-head-info span {
    font-size: .72rem;
    opacity: .85;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.chat-head-close {
    background: rgba(255,255,255,.1);
    border: 0;
    color: #fbfaf6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.chat-messages {
    max-height: 340px;
    overflow-y: auto;
    padding: 12px 8px 4px;
    background: var(--bg-paper);
}
.chat-msg {
    margin: 8px 10px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: .94rem;
    max-width: 88%;
    line-height: 1.45;
}
.chat-msg.bot {
    background: #fff;
    border: 1px solid #ece7d8;
    color: #555;
    margin-right: auto;
}
.chat-msg.user {
    margin-left: auto;
    background: var(--green);
    border: 1px solid var(--green);
    color: #fbfaf6;
}
.chat-disclaimer {
    padding: 8px 16px;
    font-size: .72rem;
    color: #8a8e94;
    background: var(--bg-paper);
    text-align: center;
    border-top: 1px dashed #ece7d8;
}
.chat-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 14px;
    background: #fff;
    border-top: 1px solid #ece7d8;
}
.chat-input {
    flex: 1;
    border: 1px solid #d6d2c3;
    border-radius: 22px;
    padding: 11px 14px;
    font: inherit;
    color: #333;
    min-height: 44px;
}
.chat-input:focus { outline: none; border-color: var(--green); }
.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    border: 0;
    display: grid;
    place-items: center;
}
.chat-send:hover { background: var(--green-deep); }

/* ---------- 14. RC badge ---------- */
.rc-badge {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 115;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(17, 20, 26, .92);
    border: 1px solid rgba(212, 175, 55, .75);
    border-radius: var(--radius-pill);
    padding: 7px 14px 7px 7px;
    box-shadow: var(--shadow-md);
}
.rc-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}
.rc-text { display: flex; flex-direction: column; line-height: 1.1; }
.rc-title {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .74rem;
}
.rc-subtitle {
    color: var(--gold);
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .9;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 980px) {
    .story-grid, .footer-grid, .review-grid { grid-template-columns: 1fr; gap: 32px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .nav-desktop, .top-nav .lang-switcher { display: none; }
    .hamburger { display: inline-flex; }
    .booking-wrap { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .menu-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px 8px;
        margin-left: -20px;
        margin-right: -20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .menu-tabs::-webkit-scrollbar { display: none; }
    .menu-tabs button { scroll-snap-align: start; }

    /* Sticky bar visible solo en móvil */
    .sticky-bar { display: grid; }
    body { padding-bottom: 78px; }
    .chat-toggle { bottom: 88px; }
    .chat-box { bottom: 162px; }
    .rc-badge { bottom: 84px; }
}

@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; max-width: 320px; }
    /* El WhatsApp se mantiene redondo, NO full-width */
    .hero-actions .btn-whatsapp { width: 54px; }
    .dish-name { font-size: 1.18rem; }
    .dish-price { font-size: 1.12rem; }
    .review { padding: 28px 22px; }
    .review-quote { font-size: 1.2rem; }
    .rc-badge { left: 12px; bottom: 12px; padding-right: 12px; }
    .rc-title { font-size: .68rem; }
    .rc-subtitle { font-size: .54rem; }
    .chat-toggle { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .chat-box { right: 12px; bottom: 84px; left: 12px; width: auto; }
    .booking-card, .info-card { padding: 22px; }
    .booking-grid { grid-template-columns: 1fr; }
}

/* ---------- 16. Print ---------- */
@media print {
    .top-nav, .nav-mobile, .chat-toggle, .chat-box, .rc-badge,
    .hero-actions, .booking, .reviews .logos, footer { display: none !important; }
    .hero { min-height: auto; padding: 20px 0; color: #000; }
    .hero::before { display: none; }
    .hero h1 { color: #000; text-shadow: none; }
    body { background: #fff; color: #000; }
    .menu-list { border-color: #999; }
    .dish-name, .dish-price { color: #000; }
}
