/* ==========================================================================
   CAFÉ & CO. · v2
   Índice
   1.  Tokens
   2.  Reset y base
   3.  Scrollbar, selección y cursor
   4.  Utilidades (contenedor, títulos, botones, revelados)
   5.  Navegación + menú móvil
   6.  Hero (taza con efecto ripple)
   7.  Origen
   8.  Espacios
   9.  Menú (anatomía de la bebida)
   10. Marquesina
   11. Galería
   12. FAQ (chat con el barista)
   13. Ubicación
   14. CTA final y footer
   15. Flotantes: FAB y lightbox
   16. Responsive
   17. Movimiento reducido
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    /* Paleta "latte" */
    --leche: #F5EDE1;
    --leche-2: #ECDFCC;
    --latte: #D9BC9A;
    --porcelana: #FBF7F1;
    --canela: #B06B3A;
    --canela-deep: #8C4E25;
    --canela-light: #E6A867;
    --tostado: #6B4A35;
    --espresso: #2E1F16;
    --espresso-2: #3A281D;
    --crema-dim: rgba(245, 237, 225, .72);
    --line: rgba(46, 31, 22, .12);
    --line-light: rgba(245, 237, 225, .16);
    --open: #4E9A62;
    --closed: #C0634A;

    /* Tipografía */
    --font-display: 'Instrument Serif', 'Times New Roman', serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Escala */
    --container: min(1240px, 100% - 48px);
    --section-y: clamp(96px, 11vw, 160px);
    --radius: 22px;
    --nav-h: 84px;

    /* Movimiento */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Taza del hero */
    --cup: min(600px, 44vw, 74svh);
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background: var(--leche);
    color: var(--espresso);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}
html, body { overflow-x: clip; }
body { background: var(--leche); line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
svg use { pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--canela); outline-offset: 4px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 2000; background: var(--espresso); color: var(--leche); padding: 10px 16px; border-radius: 999px; transition: top .3s; }
.skip-link:focus { top: 16px; }

/* Textura de papel en toda la página (capa fija, sin mezcla para no repintar al hacer scroll) */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .22  0 0 0 0 .12  0 0 0 .5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    opacity: .06;
}

/* ==========================================================================
   3. SCROLLBAR, SELECCIÓN Y CURSOR
   ========================================================================== */
/* Scrollbar con forma de grano: cápsula espresso con la "hendidura" canela */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--leche-2); box-shadow: inset 1px 0 0 var(--line); }
::-webkit-scrollbar-thumb {
    background-color: var(--espresso);
    background-image: linear-gradient(90deg, transparent 44%, var(--canela-light) 44% 56%, transparent 56%);
    background-size: 100% 70%; background-position: center; background-repeat: no-repeat;
    border: 3px solid var(--leche-2); border-radius: 999px; min-height: 60px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--canela-deep); }
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: var(--espresso) var(--leche-2); }
}
::selection { background: var(--canela); color: var(--leche); }

/* Cursor: un grano de café que se inclina según el movimiento */
.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor { display: block; }
.cursor-bean, .cursor-label { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .3s; }
.cursor.is-visible .cursor-bean { opacity: 1; }
.cursor svg { max-width: none; }
.cursor.is-hidden .cursor-bean, .cursor.is-hidden .cursor-label { opacity: 0 !important; }
.bean-svg {
    --bean: #3A2418; --crease: #C98A50; --shine: rgba(255, 236, 214, .28);
    position: absolute; width: 20px; height: 26px; left: -10px; top: -13px; overflow: visible;
    transform: rotate(calc(var(--rot, 0) * 1deg + 30deg)) scale(var(--s, 1));
    transition: transform .35s var(--ease-back);
    filter: drop-shadow(0 2px 2px rgba(46, 31, 22, .35));
}
.bean-body { fill: var(--bean); transition: fill .3s; }
.bean-shine { fill: var(--shine); }
.bean-crease { fill: none; stroke: var(--crease); stroke-width: 3; stroke-linecap: round; transition: stroke .3s; }
.cursor-steam { position: absolute; width: 24px; height: 22px; left: -12px; top: -40px; overflow: visible; opacity: 0; transition: opacity .3s; }
.cursor-steam path { fill: none; stroke: rgba(107, 74, 53, .55); stroke-width: 1.8; stroke-linecap: round; opacity: 0; }
.cursor.is-link .cursor-steam { opacity: 1; }
.cursor.is-link .cursor-steam path { animation: cursorSteam 1.5s ease-in-out infinite; }
.cursor.is-link .cursor-steam path:nth-child(2) { animation-delay: .3s; }
.cursor.is-link .cursor-steam path:nth-child(3) { animation-delay: .6s; }
@keyframes cursorSteam { 0% { transform: translateY(8px) scaleY(.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-8px) scaleY(1.2); opacity: 0; } }
.cursor.is-link .bean-svg { --s: 1.3; --bean: var(--canela); --crease: #F3D3AE; }
.cursor.is-view .bean-svg { --s: 1.15; }
.cursor.is-stir .bean-svg { --bean: #FBF7F1; --crease: var(--canela); --shine: rgba(255, 255, 255, .6); animation: stir 1.2s linear infinite; }
@keyframes stir { to { transform: rotate(calc(var(--rot, 0) * 1deg + 390deg)) scale(1.2); } }
.cursor.on-dark .bean-svg { --bean: #F3E9DC; --crease: var(--canela); --shine: rgba(255, 255, 255, .5); }
.cursor.on-dark.is-link .bean-svg { --bean: var(--canela-light); --crease: var(--espresso); }
.cursor.on-dark .cursor-steam path { stroke: rgba(245, 237, 225, .6); }
.cursor.is-down .bean-svg { --s: .8; }
.cursor-label {
    margin: 16px 0 0 18px; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
    background: var(--espresso); color: var(--leche); font-family: var(--font-display); font-style: italic; font-size: 1rem;
    transition: opacity .25s, scale .35s var(--ease-back); scale: .6;
}
.cursor.is-view .cursor-label { opacity: 1; scale: 1; }
.cursor.on-dark .cursor-label { background: var(--leche); color: var(--espresso); }

/* ==========================================================================
   4. UTILIDADES
   ========================================================================== */
.container { width: var(--container); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); background: var(--bg, var(--leche)); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--canela-deep);
    margin-bottom: 18px;
}
.eyebrow svg { width: 16px; height: 16px; }
[data-theme="dark"] .eyebrow { color: var(--canela-light); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 1.3rem + 4.4vw, 5.4rem);
    line-height: .95; letter-spacing: -.015em;
}
.section-title em, .cta-title em { font-style: italic; color: var(--canela); }
[data-theme="dark"] .section-title em, [data-theme="dark"] .cta-title em { color: var(--canela-light); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-lead { margin-top: 22px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--tostado); max-width: 52ch; line-height: 1.65; }
[data-theme="dark"] .section-lead { color: var(--crema-dim); }

/* Divisor ondulado: la sección anterior "se derrama" sobre la siguiente */
.wave-divider { position: absolute; left: 0; top: -1px; width: 100%; height: clamp(28px, 4vw, 60px); pointer-events: none; }
.wave-divider path { fill: var(--wave, var(--leche)); }

/* ---------- Botones ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    height: 56px; padding: 0 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
    font-size: 1rem; font-weight: 500; white-space: nowrap; will-change: transform;
    transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
}
.btn-label { display: inline-flex; align-items: center; gap: 10px; transition: transform .35s var(--ease-out); pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-dark { --fill: var(--latte); background: var(--espresso); color: var(--leche); box-shadow: 0 14px 30px -14px rgba(46, 31, 22, .7); }
.btn-line { --fill: var(--espresso); border: 1.5px solid rgba(46, 31, 22, .22); color: var(--espresso); }
.btn-line .wa-icon { color: var(--open); }
.btn-cream { --fill: var(--canela-light); background: var(--leche); color: var(--espresso); }
.btn-cream svg { color: var(--open); }
.btn-ghost-light { --fill: var(--leche); border: 1.5px solid var(--line-light); color: var(--leche); }

/* El "líquido" sube por el botón con una ola en la superficie, como un vaso llenándose */
.btn::before, .nav-cta::before {
    content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: calc(100% + 60px); height: 150%;
    background: var(--fill, var(--latte));
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'><path d='M0 6 Q7.5 0 15 6 T30 6 T45 6 T60 6 V12 H0Z'/></svg>") repeat-x 0 0 / 60px 12px, linear-gradient(#000, #000) 0 11px / 100% 100% no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'><path d='M0 6 Q7.5 0 15 6 T30 6 T45 6 T60 6 V12 H0Z'/></svg>") repeat-x 0 0 / 60px 12px, linear-gradient(#000, #000) 0 11px / 100% 100% no-repeat;
    transform: translateY(102%);
    transition: transform 1.1s cubic-bezier(.3, .7, .35, 1);
    animation: btnWave 1.4s linear infinite paused;
}
@keyframes btnWave { to { translate: -60px 0; } }
@media (hover: hover) {
    .btn:hover::before, .nav-cta:hover::before { transform: translateY(-14%); animation-play-state: running; }
    .btn-dark:hover, .btn-cream:hover, .btn-ghost-light:hover { color: var(--espresso); }
    .btn-line:hover { color: var(--leche); border-color: var(--espresso); }
    .btn-line:hover .wa-icon { color: #7FD196; }
    .btn-dark:hover { box-shadow: 0 20px 40px -14px rgba(46, 31, 22, .8); }
    .btn-ghost-light:hover { border-color: var(--leche); }
    .btn-cream:hover svg { color: var(--espresso); }
}
.btn { transition: color .45s ease .1s, border-color .4s, box-shadow .4s; }
.cup-icon .steam-i { opacity: 0; transform: translateY(3px); transition: opacity .3s, transform .5s var(--ease-out); }
.btn:hover .cup-icon .steam-i { opacity: 1; transform: none; }
.splash { position: absolute; z-index: -1; border-radius: 50%; background: var(--canela); transform: scale(0); opacity: .55; pointer-events: none; animation: splash .7s ease-out forwards; }
@keyframes splash { to { transform: scale(1); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--canela-deep); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease-out); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover svg { transform: translateX(4px); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--open); animation: pulse 2.2s ease-out infinite; flex-shrink: 0; }
.is-closed .status-dot { background: var(--closed); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78, 154, 98, .45); } 80%, 100% { box-shadow: 0 0 0 9px rgba(78, 154, 98, 0); } }

/* ---------- Revelado al hacer scroll (solo con JS activo) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* "Llenado": la imagen aparece de abajo hacia arriba con borde de ola, como café sirviéndose */
.js [data-reveal="fill"] { opacity: 1; transform: none; }
[data-reveal="fill"] { position: relative; overflow: hidden; }
.js [data-reveal="fill"]::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 26px); z-index: 2; pointer-events: none;
    background: var(--bg, var(--leche));
    -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 24px) no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 26'><path d='M0 0 H80 V12 Q70 24 60 12 T40 12 T20 12 T0 12 Z'/></svg>") bottom / 80px 26px repeat-x;
            mask: linear-gradient(#000, #000) top / 100% calc(100% - 24px) no-repeat, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 26'><path d='M0 0 H80 V12 Q70 24 60 12 T40 12 T20 12 T0 12 Z'/></svg>") bottom / 80px 26px repeat-x;
    transform: translateY(0);
    transition: transform 1.5s var(--ease-in-out); transition-delay: var(--d, 0s);
}
.js [data-reveal="fill"].is-in::after { transform: translateY(calc(-100% - 2px)); }
.js [data-reveal="fill"] img { transform: scale(1.16); transition: transform 2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fill"].is-in img { transform: scale(1); }

.js [data-reveal="pop"] { transform: scale(.4) rotate(-60deg); transition: opacity .6s ease, transform 1.2s var(--ease-back); transition-delay: .5s; }
.js [data-reveal="pop"].is-in { transform: none; }

.js [data-reveal="stagger"] { opacity: 1; transform: none; }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s ease, transform .8s var(--ease-back); transition-delay: calc(var(--i, 0) * 90ms + .1s); }
.js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }

/* ==========================================================================
   5. NAVEGACIÓN
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--nav-h); display: flex; align-items: center; transition: background-color .4s, height .4s var(--ease-out), box-shadow .4s, transform .5s var(--ease-out); }
.js .nav { opacity: 0; transform: translateY(-12px); }
.is-loaded .nav { opacity: 1; transform: none; transition: opacity .8s ease .1s, transform .8s var(--ease-out) .1s, background-color .4s, height .4s var(--ease-out), box-shadow .4s; }
.nav.is-solid { background: rgba(245, 237, 225, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); height: 68px; box-shadow: 0 1px 0 var(--line); }
.nav.is-solid.on-dark { background: rgba(46, 31, 22, .9); color: var(--leche); box-shadow: 0 1px 0 var(--line-light); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.01em; line-height: 1; }
.logo em { color: var(--canela); }
.on-dark .logo em { color: var(--canela-light); }
.nav-links { display: flex; gap: clamp(20px, 2.6vw, 36px); font-size: .95rem; }
.nav-links a { position: relative; padding: 6px 0; opacity: .78; transition: opacity .3s; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; border-radius: 50%; background: var(--canela); transform: translate(-50%, 4px) scale(0); transition: transform .45s var(--ease-back); }
.nav-links a:hover, .nav-links a.is-current { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: translate(-50%, 0) scale(1); }
.nav-cta { --fill: var(--canela); position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--espresso); color: var(--leche); font-size: .9rem; font-weight: 500; transition: transform .4s var(--ease-out), background-color .3s, color .3s; }
.nav-cta svg { width: 16px; height: 16px; color: #7FD196; }
.nav-cta:hover { transform: translateY(-2px); }
.on-dark .nav-cta { --fill: var(--canela-light); background: var(--leche); color: var(--espresso); }
.on-dark .nav-cta svg { color: var(--open); }

.burger { display: none; position: relative; width: 46px; height: 46px; z-index: 1100; border-radius: 50%; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease-out), top .5s var(--ease-out), left .4s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; left: 20px; }
.menu-open .burger span:first-child { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 23px; left: 12px; transform: rotate(-45deg); }

/* Menú móvil: el espresso "se sirve" de abajo hacia arriba con una ola,
   y una taza de latte gira en la esquina */
.mobile-menu { position: fixed; inset: 0; z-index: 990; visibility: hidden; color: var(--leche); overflow: hidden; transition: visibility 0s .9s; }
.menu-open .mobile-menu { visibility: visible; transition: visibility 0s; }
.mm-pour {
    position: absolute; left: 0; right: 0; top: -28px; height: calc(100% + 28px);
    background: radial-gradient(90% 50% at 85% 100%, rgba(230, 168, 103, .18), transparent 70%), var(--espresso);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28'><path d='M0 14 Q15 0 30 14 T60 14 T90 14 T120 14 V28 H0Z'/></svg>") repeat-x 0 0 / 120px 28px, linear-gradient(#000, #000) 0 27px / 100% 100% no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28'><path d='M0 14 Q15 0 30 14 T60 14 T90 14 T120 14 V28 H0Z'/></svg>") repeat-x 0 0 / 120px 28px, linear-gradient(#000, #000) 0 27px / 100% 100% no-repeat;
    transform: translateY(100%);
    transition: transform .8s var(--ease-in-out) .15s;
}
.menu-open .mm-pour { transform: translateY(0); transition: transform .85s var(--ease-in-out); animation: pourWave .9s linear; }
@keyframes pourWave { to { -webkit-mask-position: -120px 0, 0 27px; mask-position: -120px 0, 0 27px; } }

.mm-inner {
    position: relative; z-index: 2; height: 100%; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transition: opacity .25s;
    display: flex; flex-direction: column; gap: 28px;
    padding: calc(var(--nav-h) + 8px) 28px calc(28px + env(safe-area-inset-bottom));
}
.menu-open .mm-inner { opacity: 1; transition: opacity .3s .55s; } /* el contenido aparece cuando el espresso ya cubrió la pantalla */

/* Enlaces: solo número + título, mucho aire, nada más */
.mobile-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1.4svh, 12px); }
.mobile-links a { display: flex; align-items: flex-start; gap: 14px; padding: 4px 0; width: fit-content; }
.ml-num { min-width: 22px; padding-top: .7em; font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: var(--canela-light); opacity: 0; transition: opacity .4s; }
.ml-text { display: block; overflow: hidden; padding-bottom: .12em; }
.ml-title {
    display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 11.5vw, 3.4rem); line-height: 1;
    transform: translateY(105%); transition: transform .5s var(--ease-out), color .3s;
}
.menu-open .ml-title { transform: none; transition: transform 1s var(--ease-out) calc(.6s + var(--i) * 70ms), color .3s; }
.menu-open .ml-num { opacity: .9; transition-delay: calc(.8s + var(--i) * 70ms); }
.mobile-links a:active .ml-title, .mobile-links a.is-current .ml-title { font-style: italic; color: var(--canela-light); }

/* Pie: solo el CTA */
.mobile-menu-foot { opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .4s var(--ease-out); }
.menu-open .mobile-menu-foot { opacity: 1; transform: none; transition: opacity .6s ease, transform .8s var(--ease-out); transition-delay: calc(.65s + var(--i) * 60ms); }
.mobile-menu-foot .btn { width: 100%; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .6); }

/* Taza decorativa que asoma en la esquina */
.mm-cup { position: absolute; z-index: 1; width: 230px; height: 230px; right: -105px; top: 50%; margin-top: -60px; opacity: 0; transform: translate(40px, 40px) rotate(-40deg) scale(.9); transition: opacity .4s, transform .6s var(--ease-out); pointer-events: none; }
.menu-open .mm-cup { opacity: .95; transform: none; transition: opacity .8s ease .5s, transform 1.4s var(--ease-out) .5s; }
.mm-saucer { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #FFFFFF, var(--porcelana) 45%, #E2D5C3); box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .55), inset -6px -10px 20px rgba(107, 74, 53, .18); }
.mm-mug { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #FFFFFF, #F1E7DA 55%, #DCCDB9); box-shadow: 3px 5px 8px rgba(46, 31, 22, .35), inset -3px -5px 8px rgba(107, 74, 53, .15); }
.mm-coffee { position: absolute; inset: 9%; border-radius: 50%; background: #8A5230 center / cover; box-shadow: inset 6px 9px 16px rgba(46, 31, 22, .5); animation: spin 40s linear infinite paused; }
.menu-open .mm-coffee { animation-play-state: running; }
.mm-steam { position: absolute; left: 22%; top: -40%; width: 56%; overflow: visible; max-width: none; }
.mm-steam path { fill: none; stroke: rgba(245, 237, 225, .45); stroke-width: 6; stroke-linecap: round; filter: blur(4px); opacity: 0; animation: steam 4.2s ease-in-out infinite paused; }
.mm-steam path:nth-child(2) { animation-delay: 1.4s; } .mm-steam path:nth-child(3) { animation-delay: 2.8s; }
.menu-open .mm-steam path { animation-play-state: running; }

/* Con el menú abierto, el header se integra al fondo espresso */
.menu-open .nav, .menu-open .nav.is-solid { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--leche); }
.menu-open .nav .logo em { color: var(--canela-light); }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--leche); }

.sunlight {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(60% 70% at 12% 8%, rgba(255, 248, 232, .95), transparent 70%),
        radial-gradient(50% 60% at 85% 70%, rgba(217, 188, 154, .35), transparent 70%);
}
.window-shadow {
    position: absolute; pointer-events: none; width: 140vmax; height: 140vmax; left: -10vmax; top: -40vmax;
    background:
        repeating-linear-gradient(90deg, transparent 0 22%, rgba(107, 74, 53, .5) 22% 23.5%),
        repeating-linear-gradient(0deg, transparent 0 30%, rgba(107, 74, 53, .5) 30% 31.5%);
    transform: rotate(28deg) skewX(-14deg); filter: blur(18px); opacity: .08;
    will-change: transform; animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { translate: -14px 0; } to { translate: 18px 8px; } }

.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: calc(var(--nav-h) + 24px) 0 64px; }
.hero-text { position: relative; max-width: 620px; will-change: transform, opacity; }

.coffee-ring { position: absolute; z-index: -1; width: 300px; height: 300px; left: -70px; top: -60px; pointer-events: none; }
.js .coffee-ring { opacity: 0; transform: scale(.85) rotate(-20deg); transition: opacity 1.4s ease .3s, transform 1.6s var(--ease-out) .3s; }
.is-loaded .coffee-ring { opacity: 1; transform: none; }

.js .hero-eyebrow { opacity: 0; transform: translateY(10px); transition: opacity .8s ease .35s, transform .8s var(--ease-out) .35s; }
.is-loaded .hero-eyebrow { opacity: 1; transform: none; }

.hero-title { font-family: var(--font-display); font-size: clamp(3.1rem, 1.4rem + 6.2vw, 7.6rem); line-height: .9; letter-spacing: -.02em; margin-bottom: 30px; }
.line { display: block; padding-bottom: .08em; white-space: nowrap; }
.line-inner { display: inline-block; }
.js .line { clip-path: inset(-20% 100% -30% 0); transition: clip-path 1.3s var(--ease-out); }
.js .line-inner { transform: translateX(-30px); transition: transform 1.4s var(--ease-out); }
.is-loaded .line { clip-path: inset(-20% -10% -30% 0); transition-delay: .45s; }
.is-loaded .line--2 { transition-delay: .62s; }
.is-loaded .line-inner { transform: none; transition-delay: .45s; }
.is-loaded .line--2 .line-inner { transition-delay: .62s; }

/* Palabra rotativa: las letras caen como gotas y se derriten al salir */
.word-slot { position: relative; display: inline-block; vertical-align: baseline; font-style: italic; color: var(--canela); transition: width .7s var(--ease-out); padding-right: .06em; }
.word-sizer { display: inline-block; white-space: nowrap; }
.js:not(.reduced) .word-sizer { visibility: hidden; } /* solo mide; la palabra visible es .word */
.word { position: absolute; left: 0; top: 0; white-space: nowrap; }
.word span { display: inline-block; transform-origin: 50% 100%; opacity: 0; } /* ocultas hasta que empieza su animación */
.word.is-in span { animation: pour .9s var(--ease-back) both; animation-delay: calc(var(--i) * 55ms); }
.word.is-out span { animation: melt .55s cubic-bezier(.5, 0, .75, 0) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes pour {
    0% { opacity: 0; transform: translateY(-.7em) scaleY(1.35) scaleX(.8); }
    55% { opacity: 1; transform: translateY(.04em) scaleY(.82) scaleX(1.12); }
    100% { opacity: 1; transform: none; }
}
@keyframes melt { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(.35em) scaleY(.5) scaleX(1.15); } }
.wave-line { position: absolute; left: 0; right: .06em; bottom: -.02em; height: .14em; overflow: hidden; }
.wave-line svg { width: 200%; max-width: none; height: 100%; animation: waveX 2.4s linear infinite; }
.wave-line path { fill: none; stroke: var(--canela); stroke-width: 2.4; vector-effect: non-scaling-stroke; opacity: .75; }
@keyframes waveX { to { transform: translateX(-50%); } }

.hero-desc { font-size: clamp(1rem, .92rem + .35vw, 1.2rem); line-height: 1.6; color: var(--tostado); max-width: 38ch; margin-bottom: 36px; }
.js .hero-reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.is-loaded .hero-reveal { opacity: 1; transform: none; }
.is-loaded .hero-desc { transition-delay: .95s; }
.is-loaded .hero-ctas { transition-delay: 1.08s; }
.is-loaded .hero-ticket-wrap { transition-delay: 1.25s; }
.is-loaded .scroll-cue { transition-delay: 1.8s; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-ticket-wrap { display: inline-block; }

/* Ticket de información */
.ticket {
    position: relative; display: inline-flex; align-items: stretch;
    background: var(--porcelana); color: var(--tostado); font-size: .88rem;
    border-radius: 6px; box-shadow: 0 10px 24px -14px rgba(107, 74, 53, .5);
    transform: rotate(-1.5deg); transition: transform .5s var(--ease-back);
    -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket:hover { transform: rotate(0) translateY(-2px); }
.ticket > * { padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.t-label { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--canela-deep); border-right: 1.5px dashed rgba(107, 74, 53, .3); padding-left: 22px !important; }
.t-loc { padding-right: 22px !important; }
.t-loc a { display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(107, 74, 53, .3); transition: color .3s, border-color .3s; }
.t-loc svg { width: 14px; height: 14px; }
.t-loc a:hover { color: var(--canela-deep); border-color: var(--canela-deep); }

/* ---------- La taza (vista cenital, luz desde arriba a la izquierda) ---------- */
.cup-stage { position: relative; width: var(--cup); aspect-ratio: 1; margin-right: -3vw; will-change: transform; }
.cup-place { position: absolute; inset: 0; }
.js .cup-place { opacity: 0; transform: translate(60px, -50px) rotate(-35deg) scale(1.08); }
.is-loaded .cup-place { animation: placeCup 1.5s var(--ease-out) .2s forwards; }
@keyframes placeCup {
    0% { opacity: 0; transform: translate(60px, -50px) rotate(-35deg) scale(1.08); }
    35% { opacity: 1; }
    100% { opacity: 1; transform: none; }
}

/* Plato: borde con brillo, ala inclinada y el "pozo" donde descansa la taza */
.saucer {
    position: absolute; inset: 0; border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(107, 74, 53, .10) 58%, rgba(107, 74, 53, .03) 63%, transparent 66%),
        radial-gradient(circle at 34% 28%, #FFFFFF 0%, var(--porcelana) 42%, #EADFD0 100%);
    box-shadow:
        30px 46px 70px -10px rgba(107, 74, 53, .30),
        8px 12px 18px -6px rgba(107, 74, 53, .22),
        inset -8px -12px 26px rgba(107, 74, 53, .14),
        inset 5px 7px 12px rgba(255, 255, 255, .95);
}
.saucer::before { /* línea del borde elevado */
    content: ""; position: absolute; inset: 4.5%; border-radius: 50%;
    box-shadow: inset 2px 3px 4px rgba(107, 74, 53, .10), 0 -1px 0 rgba(255, 255, 255, .9), inset -1px -2px 1px rgba(255, 255, 255, .8);
}
.saucer::after { /* ala del plato bajando hacia el pozo */
    content: ""; position: absolute; inset: 11%; border-radius: 50%;
    background: radial-gradient(circle at 60% 64%, transparent 70%, rgba(255, 255, 255, .5) 82%, transparent 100%);
}
.saucer-spin { position: absolute; inset: 0; will-change: transform; }
.spoon { position: absolute; width: 7%; left: 16.1%; top: 67.6%; transform: rotate(-45deg); filter: drop-shadow(5px 8px 5px rgba(46, 31, 22, .28)); }
.saucer-bean { position: absolute; width: 7%; height: auto; filter: drop-shadow(3px 5px 4px rgba(46, 31, 22, .3)); }
.saucer-bean--1 { left: 72%; top: 9%; transform: rotate(20deg); }
.saucer-bean--2 { left: 82%; top: 16%; transform: rotate(-35deg); width: 6%; }

/* Asa: una barra sólida pegada al cuerpo de la taza (así se ve desde arriba) */
.handle {
    position: absolute; width: 25%; height: 9.5%; left: 70%; top: 64%;
    transform: rotate(34deg); transform-origin: 0 50%;
    border-radius: 6px 50% 50% 6px / 6px 50% 50% 6px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F6EEE4 40%, #E3D5C3 78%, #CDBBA5 100%);
    box-shadow: 12px 16px 18px -6px rgba(107, 74, 53, .38), 3px 4px 6px -2px rgba(107, 74, 53, .3), inset 0 1px 0 #fff;
}
.handle::after { /* brillo longitudinal */
    content: ""; position: absolute; left: 22%; right: 12%; top: 22%; height: 18%; border-radius: 999px; background: rgba(255, 255, 255, .9); filter: blur(1px);
}

/* Taza: borde grueso con brillo, pared interior sombreada y el café */
.cup {
    position: absolute; inset: 14%; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #F8F2EA 45%, #E6D8C6 100%);
    box-shadow:
        3px 5px 6px rgba(107, 74, 53, .35),
        20px 28px 40px -8px rgba(107, 74, 53, .38),
        inset 0 0 0 1px rgba(255, 255, 255, .9),
        inset -4px -6px 10px rgba(107, 74, 53, .14);
}
.cup::before { /* filo del borde */
    content: ""; position: absolute; inset: 1.5%; border-radius: 50%;
    box-shadow: inset 1px 2px 2px rgba(255, 255, 255, 1), inset -1px -1px 2px rgba(107, 74, 53, .18);
    pointer-events: none;
}
.cup-wall { /* pared interior: sombra arriba-izquierda, luz abajo-derecha */
    position: absolute; inset: 7%; border-radius: 50%;
    background: linear-gradient(135deg, #CDBBA5 0%, #E9DDCD 45%, #FBF6EF 80%, #FFFFFF 100%);
    box-shadow: inset 4px 6px 10px rgba(107, 74, 53, .3);
}
.coffee {
    position: absolute; inset: 10.5% 9.5% 9.5% 10.5%; border-radius: 50%; overflow: hidden;
    background-color: #8A5230; background-size: cover; background-position: center;
    transform: translateZ(0);
}
.coffee-shade { /* sombra que proyecta el borde sobre el líquido + menisco */
    position: absolute; inset: 10.5% 9.5% 9.5% 10.5%; border-radius: 50%; pointer-events: none;
    box-shadow: inset 10px 14px 22px rgba(46, 31, 22, .5), inset 0 0 0 2px rgba(210, 160, 110, .35), inset -3px -4px 8px rgba(255, 230, 200, .18);
}
.coffee-gloss { /* reflejo de la ventana en el café */
    position: absolute; inset: 10.5% 9.5% 9.5% 10.5%; border-radius: 50%; pointer-events: none;
    background:
        radial-gradient(14% 7% at 30% 24%, rgba(255, 252, 245, .55), transparent 70%),
        radial-gradient(42% 24% at 34% 28%, rgba(255, 250, 240, .16), transparent 70%);
}

.steam { position: absolute; left: 28%; width: 44%; bottom: 46%; height: 70%; overflow: visible; pointer-events: none; z-index: 2; max-width: none; }
.steam path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 7; stroke-linecap: round; filter: blur(5px); opacity: 0; animation: steam 4.5s ease-in-out infinite; animation-play-state: paused; }
.steam path:nth-child(2) { animation-delay: 1.5s; } .steam path:nth-child(3) { animation-delay: 3s; }
.is-steaming .steam path { animation-play-state: running; }
@keyframes steam { 0% { transform: translateY(40px) scaleY(.6); opacity: 0; } 35% { opacity: .8; } 100% { transform: translateY(-50px) scaleY(1.2) scaleX(1.2); opacity: 0; } }

.cup-hint { position: absolute; left: -6%; top: 6%; z-index: 4; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--tostado); display: flex; align-items: flex-end; gap: 6px; pointer-events: none; opacity: 0; transition: opacity 1s ease 2.4s; }
.cup-hint svg { width: 64px; height: 46px; }
.cup-hint path { fill: none; stroke: var(--tostado); stroke-width: 1.4; stroke-linecap: round; }
.is-loaded .cup-hint { opacity: .85; }
.hint-touch, .label-short { display: none; }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tostado); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue svg { width: 14px; height: 22px; }
.scroll-cue rect { fill: none; stroke: var(--tostado); stroke-width: 1.4; }
.scroll-cue .wheel { stroke: var(--tostado); stroke-width: 1.6; stroke-linecap: round; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(5px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   7. ORIGEN
   ========================================================================== */
.origen { --bg: var(--leche); }
.origen-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.origen-media { position: sticky; top: calc(var(--nav-h) + 20px); }
.arch-frame { aspect-ratio: .72; max-height: calc(100svh - var(--nav-h) - 60px); width: 100%; margin-inline: auto; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--leche-2); box-shadow: 0 40px 70px -40px rgba(46, 31, 22, .5); }
.arch-frame img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }
.stamp { position: absolute; left: -26px; bottom: 9%; width: 132px; height: 132px; border-radius: 50%; background: var(--canela); color: var(--leche); display: grid; place-items: center; box-shadow: 0 18px 40px -14px rgba(46, 31, 22, .55); }
.stamp-ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.stamp-ring text { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .5px; fill: var(--leche); }
.stamp-bean { width: 30px; height: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }

.origen-content { padding-top: clamp(0px, 4vw, 40px); }
.origen .section-title { margin-bottom: 36px; }
.infuse { font-family: var(--font-display); font-size: clamp(1.65rem, 1rem + 1.9vw, 2.55rem); line-height: 1.2; margin-bottom: 34px; }
.infuse .w { color: rgba(46, 31, 22, .16); transition: color .5s ease; }
.infuse .w.on { color: var(--espresso); }
.infuse .w.on.accent { color: var(--canela); font-style: italic; }
.no-js .infuse, .reduced .infuse .w { color: var(--espresso); }

.notes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 64px; }
.notes li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--porcelana); border: 1px solid var(--line); font-size: .92rem; color: var(--tostado); }
.note-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }

.journey { position: relative; display: grid; gap: 44px; padding-left: 64px; }
.journey-line { position: absolute; left: 13px; top: 8px; bottom: 8px; width: 10px; height: calc(100% - 16px); overflow: visible; }
.journey-track { stroke: rgba(107, 74, 53, .18); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* Se rellena escalando en Y desde arriba: stroke-dasharray + pathLength falla junto con non-scaling-stroke (pinta guiones sueltos) */
.journey-fill { stroke: var(--canela); stroke-width: 2.5; vector-effect: non-scaling-stroke; transform-origin: 0 0; transform: scaleY(0); }
.journey-drop { position: absolute; left: 12px; top: 8px; width: 12px; height: 15px; background: var(--canela); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; will-change: transform; box-shadow: 0 4px 10px rgba(176, 107, 58, .45); }
.journey-drop::before { content: ""; position: absolute; left: 50%; top: -5px; width: 6px; height: 8px; translate: -50% 0; background: inherit; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step-num { position: absolute; left: -64px; top: -6px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .05em; background: var(--leche); border: 1.5px solid rgba(107, 74, 53, .25); color: var(--tostado); transition: background-color .5s, color .5s, border-color .5s, transform .6s var(--ease-back); }
.step.is-on .step-num { background: var(--canela); border-color: var(--canela); color: var(--leche); transform: scale(1.08); }
.step h3 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin-bottom: 8px; transition: color .5s; }
.step p { color: var(--tostado); max-width: 46ch; line-height: 1.6; }
.step:not(.is-on) h3 { color: rgba(46, 31, 22, .45); }
.step { grid-column: 1 / -1; }
.step > div { grid-column: 1 / -1; }

/* ==========================================================================
   8. ESPACIOS
   ========================================================================== */
.espacios { --bg: var(--leche-2); --wave: var(--leche); }
.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.space-card { perspective: 900px; }
.space-media { aspect-ratio: .8; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--latte); box-shadow: 0 30px 50px -30px rgba(46, 31, 22, .45); transform-style: preserve-3d; transition: transform .6s var(--ease-out), box-shadow .6s; will-change: transform; }
.space-media img { width: 100%; height: 100%; object-fit: cover; }
.space-card:hover .space-media { box-shadow: 0 40px 60px -30px rgba(46, 31, 22, .6); }
.space-media img { transition: transform 1.2s var(--ease-out), filter .6s; }
.space-card:hover .space-media img { transform: scale(1.06) !important; }
.space-body { padding: 26px 6px 0; }
.space-tag { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--canela-deep); margin-bottom: 10px; }
.space-body h3 { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1; margin-bottom: 12px; }
.space-body p { color: var(--tostado); line-height: 1.6; margin-bottom: 18px; max-width: 36ch; }

/* ==========================================================================
   9. MENÚ
   ========================================================================== */
.menu { --bg: var(--espresso); --wave: var(--leche-2); color: var(--leche); }
.menu-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

.drink-viz { position: sticky; top: calc(var(--nav-h) + 30px); display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 40px 24px 32px; border-radius: 32px; background: radial-gradient(80% 60% at 50% 30%, rgba(230, 168, 103, .14), transparent 70%), var(--espresso-2); border: 1px solid var(--line-light); }
.viz-stage { position: relative; width: 240px; height: 320px; display: grid; place-items: end center; }
.viz-steam { position: absolute; left: 50%; top: -20px; width: 150px; translate: -50% 0; overflow: visible; opacity: 0; transition: opacity .6s; }
.viz-steam path { fill: none; stroke: rgba(245, 237, 225, .5); stroke-width: 6; stroke-linecap: round; filter: blur(4px); animation: steam 4s ease-in-out infinite; }
.viz-steam path:nth-child(2) { animation-delay: 1.3s; } .viz-steam path:nth-child(3) { animation-delay: 2.6s; }
.is-hot .viz-steam { opacity: 1; }

.glass {
    position: relative; width: 190px; height: 260px; transition: opacity .5s, transform .7s var(--ease-out);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 260' preserveAspectRatio='none'><path d='M3 3 H187 L170 250 Q169 257 162 257 H28 Q21 257 20 250 Z' fill='rgba(245,237,225,0.05)' stroke='rgba(245,237,225,0.5)' stroke-width='3' stroke-linejoin='round'/><path d='M22 240 H168' stroke='rgba(245,237,225,0.18)' stroke-width='2'/></svg>") center / 100% 100% no-repeat;
}
.glass-liquid {
    position: absolute; left: 7px; right: 7px; top: 6px; bottom: 6px; overflow: hidden;
    display: flex; flex-direction: column-reverse;
    clip-path: polygon(0 0, 100% 0, 91% 97%, 88% 100%, 12% 100%, 9% 97%);
}
.layer { flex: 0 0 auto; height: 0; position: relative; transition: height .9s var(--ease-out); transition-delay: var(--ld, 0s); }
.layer[data-layer="espresso"] { background: linear-gradient(#4E2A19, #24130B); }
.layer[data-layer="espresso"]::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: linear-gradient(#C98A50, transparent); opacity: .9; }
.layer[data-layer="leche"] { background: linear-gradient(#EAD8C0, #C9A27A); }
.layer[data-layer="espuma"] { background: radial-gradient(circle at 20% 40%, rgba(220, 200, 175, .7) 0 2px, transparent 3px) 0 0 / 14px 12px, #FBF5EC; }
.layer[data-layer="licor"] { background: linear-gradient(#E9AB55, #B8741F); }
.layer[data-layer="filtrado"] { background: linear-gradient(rgba(170, 92, 40, .9), rgba(98, 48, 18, .97)); }
.layer[data-layer="coldbrew"] { background: linear-gradient(#45261A, #1B0D06); }
.layer[data-layer="te"] { background: linear-gradient(rgba(214, 150, 70, .85), rgba(150, 82, 28, .95)); }
.layer[data-layer="frappe"] { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35) 0 1.5px, transparent 2.5px) 0 0 / 11px 10px, linear-gradient(#C9A27A, #9C6E48); }
.layer[data-layer="bebida"] { background: linear-gradient(#B07A4E, #6E4426); }
.layer[data-layer="crema"] { background: radial-gradient(ellipse at 50% 100%, #F3E6D3 0 30%, transparent 31%) 0 0 / 22px 14px, #FFF9F0; }
.ice { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.ice i { position: absolute; width: 46px; height: 42px; border-radius: 9px; background: rgba(255, 255, 255, .22); border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: inset 3px 3px 6px rgba(255, 255, 255, .25); animation: bob 4s ease-in-out infinite alternate; }
.ice i:nth-child(1) { left: 14%; top: 40%; rotate: 12deg; }
.ice i:nth-child(2) { left: 50%; top: 34%; rotate: -18deg; animation-delay: -1.5s; }
.ice i:nth-child(3) { left: 30%; top: 58%; rotate: 30deg; animation-delay: -3s; }
.has-ice .ice { opacity: 1; }
@keyframes bob { to { transform: translateY(-6px); } }
.glass-shine { position: absolute; left: 22px; top: 18px; width: 12px; height: 70%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .28), transparent); pointer-events: none; }

.plate { position: absolute; left: 50%; top: 50%; width: 270px; height: 270px; margin: -135px 0 0 -135px; border-radius: 50%; padding: 14px; background: radial-gradient(circle at 35% 30%, #FFFFFF, #E9DDCD); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.7) rotate(-60deg); transition: opacity .5s, transform .9s var(--ease-back); }
.plate img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.is-food .glass, .is-food .viz-steam { opacity: 0; transform: scale(.85) translateY(20px); }
.is-food .plate { opacity: 1; transform: none; }
.plate img { transition: opacity .3s, transform .6s var(--ease-back); }
.plate.is-swapping img { opacity: 0; transform: rotate(-40deg) scale(.85); }
.plate::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(46, 31, 22, .08), inset 0 8px 18px rgba(46, 31, 22, .18); pointer-events: none; }

.viz-info { text-align: center; min-height: 92px; }
.viz-name { font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1; color: var(--canela-light); margin-bottom: 14px; }
.viz-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: .85rem; color: var(--crema-dim); }
.viz-legend li { display: inline-flex; align-items: center; gap: 8px; animation: fadeUp .5s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.viz-legend .pair { color: var(--canela-light); font-style: italic; font-family: var(--font-display); font-size: 1.05rem; }
.viz-legend .pair svg { width: 16px; height: 16px; }
.viz-legend .sw { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.tabs { position: relative; display: inline-flex; padding: 6px; border-radius: 999px; background: rgba(245, 237, 225, .06); border: 1px solid var(--line-light); margin-bottom: 30px; max-width: 100%; }
.tab { position: relative; z-index: 1; height: 46px; padding: 0 22px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--crema-dim); white-space: nowrap; transition: color .4s; }
.tab.is-active { color: var(--espresso); }
.tab:not(.is-active):hover { color: var(--leche); }
.tab-indicator { position: absolute; top: 6px; left: 0; height: 46px; width: 0; border-radius: 999px; background: var(--canela-light); transition: transform .55s var(--ease-out), width .55s var(--ease-out); }

.pane { display: grid; gap: 6px; }
.pane[hidden] { display: none; }
.item { position: relative; display: block; width: 100%; text-align: left; padding: 18px 22px; border-radius: 18px; transition: background-color .35s; }
.item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--canela-light); transform: scaleY(0); transition: transform .45s var(--ease-out); }
.item:hover, .item.is-active { background: rgba(245, 237, 225, .05); }
.item.is-active::before { transform: scaleY(1); }
.item-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.item-name { font-family: var(--font-display); font-size: clamp(1.45rem, 1.2rem + .6vw, 1.85rem); line-height: 1.1; }
.item-dots { flex: 1; min-width: 20px; border-bottom: 1.5px dotted rgba(245, 237, 225, .25); transform: translateY(-5px); }
.item-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--canela-light); }
.item-desc { display: block; color: var(--crema-dim); font-size: .95rem; line-height: 1.55; max-width: 54ch; }
.pane:not([hidden]) .item { animation: fadeUp .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.menu-note { margin-top: 26px; padding-left: 22px; font-size: .85rem; color: var(--crema-dim); font-style: italic; }

/* ==========================================================================
   10. MARQUESINA
   ========================================================================== */
.marquee-wrap { position: relative; z-index: 5; overflow: hidden; padding-block: 50px; margin-block: -50px; pointer-events: none; }
.marquee { position: relative; background: var(--canela); color: var(--leche); padding: 18px 0; margin: -28px -5vw; width: 110vw; transform: rotate(-2deg); overflow: hidden; box-shadow: 0 20px 40px -20px rgba(46, 31, 22, .5); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; }
.marquee span { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.6rem); line-height: 1; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 1.2rem; opacity: .7; }

/* ==========================================================================
   11. GALERÍA
   ========================================================================== */
.galeria { --bg: var(--leche); position: relative; background: var(--leche); }
.galeria-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.5svh, 44px); overflow: hidden; padding-top: var(--nav-h); }
.galeria-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.galeria-head .eyebrow { margin-bottom: 12px; }
.galeria-head .section-title { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.6rem); }
.galeria-count { font-family: var(--font-display); font-size: 1.6rem; color: var(--tostado); white-space: nowrap; }
.galeria-count span:first-child { color: var(--canela); font-style: italic; font-size: 2.4rem; }

.gal-viewport { overflow: hidden; padding-block: 24px 70px; margin-bottom: -40px; }
.gal-track { --ph: clamp(200px, 42svh, 400px); display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); width: max-content; padding-inline: max(24px, (100vw - 1240px) / 2); will-change: transform; }
.polaroid {
    position: relative; display: block; padding: 12px 12px 54px; background: var(--porcelana); border-radius: 4px;
    box-shadow: 0 2px 4px rgba(46, 31, 22, .08), 0 24px 44px -20px rgba(46, 31, 22, .45);
    transform: rotate(var(--r)); transition: transform .6s var(--ease-back), box-shadow .6s;
}
.polaroid::before { content: ""; position: absolute; left: 50%; top: -12px; width: 86px; height: 26px; translate: -50% 0; rotate: calc(var(--r) * -1.5); background: rgba(236, 223, 204, .75); box-shadow: 0 1px 2px rgba(46, 31, 22, .08); z-index: 2; }
.polaroid img { height: var(--ph); width: auto; max-width: none; object-fit: cover; filter: sepia(.12) saturate(1.05); transition: filter .6s; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0) translateY(-10px) scale(1.02); box-shadow: 0 2px 4px rgba(46, 31, 22, .08), 0 40px 60px -24px rgba(46, 31, 22, .55); }
.polaroid:hover img { filter: none; }
.pol-cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--tostado); }
.gal-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gal-progress span { display: block; height: 100%; background: var(--canela); transform-origin: left; transform: scaleX(0); will-change: transform; }

/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq { --bg: var(--leche-2); --wave: var(--leche); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq-intro .btn { margin-top: 34px; }

.chat { background: var(--porcelana); border-radius: 32px; padding: clamp(18px, 2.5vw, 30px); box-shadow: 0 30px 60px -40px rgba(46, 31, 22, .5); display: grid; gap: 14px; }
.chat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--canela); color: var(--leche); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; flex-shrink: 0; }
.chat-head strong { display: block; font-weight: 600; }
.chat-head div > span { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--tostado); }
.chat-head .status-dot { width: 7px; height: 7px; }

.qa { display: grid; }
.q {
    justify-self: end; max-width: 88%; text-align: left; padding: 14px 20px; border-radius: 22px 22px 6px 22px;
    background: var(--espresso); color: var(--leche); font-weight: 500; line-height: 1.45;
    transition: background-color .3s, transform .4s var(--ease-out);
}
.q:hover { background: var(--espresso-2); transform: translateX(-4px); }
.q[aria-expanded="true"] { background: var(--canela-deep); }
.a-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.a-wrap.is-open { grid-template-rows: 1fr; }
.a-inner { overflow: hidden; }
.a { position: relative; max-width: 88%; margin-top: 10px; padding: 14px 20px; border-radius: 22px 22px 22px 6px; background: var(--leche-2); color: var(--tostado); line-height: 1.6; }
.a p { transition: opacity .4s; }
.a.is-typing p, .a-wrap:not(.is-open) .a p { opacity: 0; }
.typing { position: absolute; left: 20px; top: 22px; display: flex; gap: 5px; opacity: 0; transition: opacity .2s; }
.a.is-typing .typing { opacity: 1; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tostado); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ==========================================================================
   13. UBICACIÓN
   ========================================================================== */
.ubicacion { --bg: var(--leche); }
.ubi-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.ubi-card { position: relative; background: var(--porcelana); border-radius: 28px; padding: clamp(28px, 3.5vw, 48px); box-shadow: 0 30px 60px -40px rgba(46, 31, 22, .5); }
.ubi-card h3 { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1vw, 2.6rem); line-height: 1; margin-bottom: 12px; }
.ubi-desc { color: var(--tostado); margin-bottom: 30px; line-height: 1.6; }
.ubi-row { display: flex; gap: 16px; padding: 20px 0; border-top: 1.5px dashed rgba(107, 74, 53, .2); }
.ubi-row > svg { width: 24px; height: 24px; color: var(--canela); flex-shrink: 0; margin-top: 2px; }
.ubi-row strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; margin-bottom: 6px; }
.ubi-row p { color: var(--tostado); line-height: 1.55; }
.hours-wrap { flex: 1; }
.ubi-status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; color: var(--tostado); padding: 4px 12px; border-radius: 999px; background: var(--leche); }
.hours li span:last-child { white-space: nowrap; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-inline: -12px; border-radius: 10px; color: var(--tostado); transition: background-color .4s; }
.hours li.is-today { background: var(--leche-2); color: var(--espresso); font-weight: 600; }
.hours li.is-today span:first-child::after { content: " · hoy"; color: var(--canela); font-weight: 500; font-style: italic; font-family: var(--font-display); font-size: 1.1em; }
.day-bar { margin-top: 12px; height: 4px; border-radius: 4px; background: var(--leche-2); overflow: hidden; }
.day-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--latte), var(--canela)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) .4s; }
.ubi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.map-wrap { position: relative; display: flex; flex-direction: column; }
.map-wrap .map { flex: 1; }
.map { position: relative; border-radius: 28px; overflow: hidden; min-height: 420px; background: #E9DCC8; box-shadow: 0 30px 60px -40px rgba(46, 31, 22, .5); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art .route-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-in-out) .5s; }
.map.is-in .route-draw { stroke-dashoffset: 0; }
.map .pin-drop, .map .pin-label { transform-box: fill-box; transform-origin: 50% 100%; }
.js .map .pin-drop { opacity: 0; transform: translateY(-60px); }
.js .map .pin-label { opacity: 0; transform: translateX(14px); }
.map.is-in .pin-drop { opacity: 1; transform: none; transition: transform .9s var(--ease-back) 2.6s, opacity .3s 2.6s; }
.map.is-in .pin-label { opacity: 1; transform: none; transition: transform .8s var(--ease-out) 3s, opacity .5s 3s; }
.map .pin-label rect { filter: drop-shadow(0 6px 10px rgba(46, 31, 22, .25)); }
.map .pin-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.map.is-in .pin-ring { animation: ring 2.4s ease-out 3.2s infinite; }
.map.is-in .pin-ring--2 { animation-delay: 4.4s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
.map-load { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--porcelana); font-weight: 500; font-size: .92rem; box-shadow: 0 10px 24px -10px rgba(46, 31, 22, .4); transition: transform .4s var(--ease-out); }
.map-load svg { width: 18px; height: 18px; color: var(--canela); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.3) saturate(.85); }
.map-load:hover { transform: translateY(-3px); }

/* ==========================================================================
   14. CTA FINAL Y FOOTER
   ========================================================================== */
.cta { --wave: var(--leche); position: relative; background: var(--espresso); color: var(--leche); padding: calc(var(--section-y) + 30px) 0 var(--section-y); text-align: center; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 55%; width: 70vmax; height: 70vmax; translate: -50% -50%; background: radial-gradient(circle, rgba(230, 168, 103, .16), transparent 60%); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-title { font-family: var(--font-display); font-size: clamp(3rem, 1rem + 7.5vw, 8.4rem); line-height: .92; letter-spacing: -.02em; margin-bottom: 44px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.footer { position: relative; background: var(--espresso); color: var(--leche); padding-top: 70px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; border-top: 1px solid var(--line-light); }
.footer .logo { font-size: 2.4rem; }
.footer .logo em { color: var(--canela-light); }
.footer-brand p { margin-top: 14px; color: var(--crema-dim); max-width: 30ch; line-height: 1.6; }
.footer h4 { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--canela-light); margin-bottom: 18px; }
.f-link { display: flex; align-items: center; gap: 10px; color: var(--crema-dim); margin-bottom: 12px; transition: color .3s, transform .4s var(--ease-out); width: fit-content; }
.f-link svg { width: 18px; height: 18px; }
.f-link:hover { color: var(--leche); transform: translateX(4px); }
.f-text { color: var(--crema-dim); line-height: 1.8; }
.socials { display: flex; gap: 10px; }
.social { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .45s var(--ease-back), border-color .3s; }
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--leche); color: var(--espresso); border-color: var(--leche); transform: translateY(-5px) rotate(-8deg); }
.receipt-zone { position: relative; width: min(330px, 100% - 48px); margin: 70px auto 56px; }
.printer { position: relative; z-index: 2; height: 18px; border-radius: 10px; background: linear-gradient(#1C130D, #120C08); box-shadow: inset 0 1px 0 rgba(245, 237, 225, .12), 0 8px 16px -6px rgba(0, 0, 0, .6); }
.printer span { position: absolute; left: 14px; right: 14px; top: 8px; height: 3px; border-radius: 3px; background: #050302; }
.receipt-clip { position: relative; margin: -9px 14px 0; overflow: hidden; padding-bottom: 30px; }
.receipt {
    position: relative; padding: 26px 22px 34px; background: #FBF7F1; color: var(--espresso);
    font-size: .84rem; font-variant-numeric: tabular-nums; letter-spacing: .02em;
    background-image: linear-gradient(rgba(46, 31, 22, .07), transparent 30px);
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
    transform-origin: top center;
    transition: transform .6s var(--ease-back);
}
.js .receipt { transform: translateY(-101%); }
.receipt-zone.is-in .receipt { transform: none; transition: transform 2.6s cubic-bezier(.5, .05, .2, 1); }
.receipt-zone.is-in .receipt-clip:hover .receipt { transform: rotate(-1.5deg) translateY(4px); transition: transform .6s var(--ease-back); }
.r-brand { font-family: var(--font-display); font-size: 2rem; line-height: 1; text-align: center; }
.r-brand em { color: var(--canela); }
.r-sub { text-align: center; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--tostado); margin: 6px 0 16px; }
.r-meta, .r-total { display: flex; justify-content: space-between; gap: 12px; }
.r-meta { font-size: .74rem; color: var(--tostado); padding-bottom: 12px; border-bottom: 1.5px dashed rgba(46, 31, 22, .25); }
.r-items { padding: 12px 0; border-bottom: 1.5px dashed rgba(46, 31, 22, .25); display: grid; gap: 7px; }
.r-items li { display: flex; align-items: baseline; gap: 6px; }
.r-items i { flex: 1; border-bottom: 1.5px dotted rgba(46, 31, 22, .25); transform: translateY(-3px); }
.r-items span:last-child { white-space: nowrap; }
.r-total { padding-top: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; align-items: baseline; }
.r-total span:last-child { font-family: var(--font-display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.25rem; color: var(--canela-deep); }
.r-thanks { margin-top: 14px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--tostado); }
.r-barcode { height: 34px; margin: 14px auto 0; width: 80%; background: repeating-linear-gradient(90deg, var(--espresso) 0 2px, transparent 2px 4px, var(--espresso) 4px 5px, transparent 5px 8px, var(--espresso) 8px 11px, transparent 11px 12px); opacity: .85; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); font-size: .85rem; color: var(--crema-dim); border-top: 1px solid var(--line-light); }

/* ==========================================================================
   15. FLOTANTES: FAB Y LIGHTBOX
   ========================================================================== */
.fab { display: none; }

.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: transparent; color: var(--leche); display: none; align-items: center; justify-content: center; }
.lightbox[open] { display: flex; animation: lbIn .4s ease both; }
.lightbox::backdrop { background: rgba(26, 18, 12, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 16px; animation: lbZoom .5s var(--ease-out) both; }
.lightbox img { max-width: min(88vw, 1100px); max-height: 78svh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 40px 80px -30px #000; }
.lightbox figcaption { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.lb-close, .lb-nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 237, 225, .1); border: 1px solid var(--line-light); color: var(--leche); transition: background-color .3s; }
.lb-close:hover, .lb-nav:hover { background: rgba(245, 237, 225, .22); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(.94); } }

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */

/* Laptops de 13–14" (poca altura): todo el hero cabe sin scroll */
@media (min-width: 901px) and (max-height: 820px) {
    :root { --nav-h: 74px; --cup: min(540px, 42vw, 72svh); }
    .hero-title { font-size: clamp(3rem, .8rem + 5.4vw, 6.4rem); margin-bottom: 22px; }
    .hero-inner { padding: calc(var(--nav-h) + 10px) 0 48px; grid-template-columns: minmax(0, 580px) auto; justify-content: center; column-gap: clamp(32px, 5vw, 88px); }
    .nav-inner { width: min(var(--container), calc(580px + clamp(32px, 5vw, 88px) + var(--cup))); } /* mismo ancho que el contenido centrado del hero */
    .cup-stage { margin-right: 0; }
    .hero-desc { margin-bottom: 26px; }
    .hero-ctas { margin-bottom: 22px; }
    .btn { height: 52px; }
    .coffee-ring { width: 240px; height: 240px; }
    .scroll-cue { bottom: 14px; }
    .viz-stage { width: 220px; height: 280px; }
    .glass { width: 170px; height: 230px; }
    .drink-viz { padding: 28px 20px 24px; gap: 18px; }
    .item { padding: 14px 20px; }
    .gal-track { --ph: clamp(200px, 40svh, 340px); }
}

@media (max-width: 1100px) {
    .nav-links { gap: 18px; font-size: .9rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1020px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: block; }
}

@media (max-width: 900px) {
    :root { --nav-h: 68px; --cup: min(78vw, 40svh); --container: min(1240px, 100% - 40px); }
    .nav, .nav.is-solid { height: var(--nav-h); }
    .logo { font-size: 1.75rem; }

    /* Hero */
    .hero { align-items: flex-start; }
    .hero-inner { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: calc(var(--nav-h) + 14px) 0 40px; }
    .cup-stage { order: -1; margin: 0; }
    .hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .coffee-ring { width: 190px; height: 190px; left: -30px; top: -50px; }
    .hero-eyebrow { margin-bottom: 12px; font-size: .7rem; }
    .hero-title { font-size: clamp(2.9rem, 13.5vw, 4.2rem); margin-bottom: 14px; }
    .word { left: 50%; translate: -50% 0; }
    .hero-desc { font-size: 1rem; margin-bottom: 22px; max-width: 34ch; }
    .hero-ctas { width: 100%; max-width: 440px; flex-wrap: nowrap; gap: 10px; margin-bottom: 20px; }
    .hero-ctas .btn { flex: 1; height: 52px; padding: 0 14px; font-size: .95rem; }
    .label-long { display: none; }
    .label-short { display: inline; }
    .ticket { font-size: .8rem; }
    .t-loc { display: none !important; }
    .t-label { border-right: 0; padding-right: 22px !important; }
    .cup-hint { left: auto; right: -2%; top: auto; bottom: -4%; font-size: 1rem; }
    .cup-hint svg { width: 40px; height: 30px; transform: scale(-1, -1); }
    .hint-mouse { display: none; } .hint-touch { display: inline; }
    .scroll-cue { display: none; }
    .window-shadow { animation: none; }

    /* Origen */
    .origen-grid { grid-template-columns: minmax(0, 1fr); }
    .origen-media { position: relative; top: 0; max-width: 420px; width: 88%; margin-inline: auto; }
    .arch-frame { max-height: none; }
    .stamp { width: 104px; height: 104px; left: -14px; }
    .notes { margin-bottom: 48px; }
    .journey { padding-left: 56px; gap: 36px; }
    .step-num { left: -56px; }
    .step h3 { font-size: 1.7rem; }

    /* Espacios: carrusel con snap */
    .spaces { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc((100vw - 100%) / -2); padding-inline: calc((100vw - 100%) / 2); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
    .spaces::-webkit-scrollbar { display: none; }
    .space-card { flex: 0 0 min(80vw, 340px); scroll-snap-align: center; }

    /* Menú */
    .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .drink-viz { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 3; flex-direction: row; gap: 18px; padding: 16px 18px; border-radius: 24px; background: rgba(58, 40, 29, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .viz-stage { width: 96px; height: 128px; flex-shrink: 0; }
    .glass { width: 82px; height: 112px; }
    .glass-liquid { left: 4px; right: 4px; top: 3px; bottom: 3px; }
    .glass-shine { left: 10px; top: 8px; width: 6px; }
    .ice i { width: 20px; height: 18px; border-radius: 5px; }
    .viz-steam { width: 70px; top: -26px; }
    .plate { width: 112px; height: 112px; margin: -56px 0 0 -56px; padding: 6px; }
    .viz-info { text-align: left; min-height: 0; }
    .viz-name { font-size: 1.6rem; margin-bottom: 10px; }
    .viz-legend { justify-content: flex-start; gap: 6px 12px; font-size: .78rem; }
    .tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { flex: 1 0 auto; padding: 0 16px; font-size: .88rem; height: 42px; }
    .tab-indicator { height: 42px; }
    .item { padding: 16px 14px; }
    .item-price { font-size: 1.4rem; }
    .menu-note { padding-left: 14px; }

    /* Galería: scroll horizontal nativo con snap */
    .galeria { height: auto !important; padding-block: var(--section-y) 70px; }
    .galeria-pin { position: relative; height: auto; padding-top: 0; overflow: visible; }
    .gal-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
    .gal-viewport::-webkit-scrollbar { display: none; }
    .gal-track { --ph: min(56vw, 300px); transform: none !important; padding-inline: 20px; gap: 26px; }
    .gal-track li { scroll-snap-align: center; }
    .polaroid { padding: 10px 10px 46px; }
    .pol-cap { font-size: 1.1rem; bottom: 12px; }
    .galeria-count { font-size: 1.2rem; }
    .galeria-count span:first-child { font-size: 1.8rem; }

    /* FAQ */
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-intro { position: relative; top: 0; }
    .faq-intro .btn { margin-top: 24px; }
    .q, .a { max-width: 94%; }

    /* Ubicación */
    .ubi-grid { grid-template-columns: minmax(0, 1fr); }
    .map { min-height: 0; aspect-ratio: 5 / 4; }
    .map-load { position: relative; right: auto; bottom: auto; align-self: center; margin-top: 14px; }
    
    /* CTA y footer */
    .cta-title { margin-bottom: 34px; }
    .cta-actions { flex-direction: column; width: 100%; max-width: 360px; }
    .cta-actions .btn { width: 100%; }
    .footer { padding: 20px 0 76px; }
    .ubi-card { padding: 26px 22px; }
    .hours { font-size: .92rem; }
    .hours li.is-today span:first-child::after { content: " · hoy"; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { justify-content: center; text-align: center; }

    /* CTA flotante */
    .fab {
        display: inline-flex; align-items: center; gap: 10px; position: fixed; z-index: 950; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
        height: 52px; padding: 0 24px; border-radius: 999px; background: var(--espresso); color: var(--leche); font-weight: 500; white-space: nowrap;
        box-shadow: 0 16px 30px -10px rgba(46, 31, 22, .6);
        transform: translate(-50%, 140%); transition: transform .6s var(--ease-out), background-color .4s, color .4s;
    }
    .fab svg { width: 20px; height: 20px; flex-shrink: 0; color: #7FD196; }
    .fab.is-shown { transform: translate(-50%, 0); }
    .fab.on-dark { background: var(--leche); color: var(--espresso); }
    .fab.on-dark svg { color: var(--open); }
    .menu-open .fab { transform: translate(-50%, 140%); }

    .lb-prev, .lb-next { top: auto; bottom: 24px; translate: none; }
    .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
    .lightbox img { max-width: 94vw; max-height: 66svh; }
}

@media (max-width: 900px) and (max-height: 700px) {
    .hero-desc { display: none; }
}

@media (max-width: 420px) {
    .hero-ctas .btn { font-size: .9rem; padding: 0 10px; }
    .ticket > * { padding: 10px 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .tab { padding: 0 12px; }
}

/* Dispositivos táctiles: sin hover pegajoso */
@media (hover: none) {
    .space-card:hover .space-media img { transform: none !important; }
    .polaroid:hover { transform: rotate(var(--r)); }
}

/* Secciones fuera de pantalla: animaciones infinitas en pausa (clase puesta por main.js) */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ==========================================================================
   17. MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
    .infuse .w { color: var(--espresso); }
    .galeria { height: auto !important; }
    .galeria-pin { position: relative; height: auto; padding-block: var(--section-y); }
    .gal-viewport { overflow-x: auto; }
    .gal-track { transform: none !important; }
}
