/* ==========================================================================
   ISLITA · MENÚ QR
   Misma línea que las pantallas: laguna #051d23, salmón #f0c6b9, arena,
   Birthstone Bounce sobre Archivo condensada, marcos de hoja (dos esquinas
   grandes y dos chicas). Tres mundos: cielo (comidas), tierra (cócteles) y
   mar (bebidas). Pensado para celular, se ve bien también en tablet y PC.
   ========================================================================== */

/* ---------------------------------------------------------------- fuentes */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Birthstone Bounce'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/birthstone-bounce-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Birthstone Bounce'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/birthstone-bounce-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ base */
:root {
  --lagoon: #051d23;
  --lagoon-deep: #031317;
  --surface: #082a30;
  --leaf: #113d3e;
  --emerald: #02594d;
  --salmon: #f0c6b9;
  --salmon-strong: #e9a995;
  --on-salmon: #16504b;
  --cream: #f6efe6;
  --sand: #d9cbbd;
  --sand-faint: #a99a8c;
  --script: 'Birthstone Bounce', 'Segoe Script', cursive;
  --sans: 'Archivo', 'Arial Narrow', 'Segoe UI', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-back: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --leaf-r: 26px 8px 26px 8px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--lagoon); }
body {
  margin: 0; min-height: 100dvh; color: var(--cream); background: var(--lagoon);
  font-family: var(--sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--salmon); outline-offset: 3px; border-radius: 12px; }
html.on-cover, html.on-cover body, html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
html.on-cover body { overscroll-behavior: none; }

/* logo: piezas animables (igual que en las pantallas) */
.logo { display: block; width: 100%; height: 100%; color: var(--cream); overflow: visible; }
.logo .logo__ring, .logo .logo__letters, .logo .logo__bubble, .logo .logo__straw { transform-box: fill-box; transform-origin: center; }
@keyframes logo-ring { from { opacity: 0; transform: rotate(-80deg) scale(0.72); } to { opacity: 1; transform: none; } }
@keyframes logo-straw { from { opacity: 0; transform: translate(-14%, 20%) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes logo-letters { from { opacity: 0; transform: translateY(14%) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes logo-bubble { from { opacity: 0; transform: translateY(80%) scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes bob { from { transform: translateY(1.2px); } to { transform: translateY(-1.8px); } }

/* ------------------------------------------------- piezas de ilustración */
.cloud { position: absolute; left: 0; will-change: transform; animation: cloud-drift var(--d) linear infinite; animation-delay: var(--dl); }
.cloud svg { width: 100%; height: auto; }
@keyframes cloud-drift { from { transform: translate3d(-110%, 0, 0); } to { transform: translate3d(110vw, 0, 0); } }

.flock { position: absolute; left: 0; width: 90px; height: 50px; will-change: transform; animation: flock-fly var(--d) linear infinite; animation-delay: var(--dl); }
.flock--izq { animation-name: flock-fly-izq; }
.flock--izq .bird svg { transform: scaleX(-1); }
.bird { position: absolute; display: block; }
.bird svg { width: 100%; height: auto; overflow: visible; }
.bird__wings { transform-box: fill-box; transform-origin: 50% 100%; animation: flap var(--f) ease-in-out infinite alternate; animation-delay: var(--fd); }
@keyframes flock-fly { from { transform: translate3d(-120px, 0, 0); } to { transform: translate3d(calc(100vw + 40px), -30px, 0); } }
@keyframes flock-fly-izq { from { transform: translate3d(calc(100vw + 40px), 0, 0); } to { transform: translate3d(-120px, -24px, 0); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-0.55); } }

.palm { position: absolute; pointer-events: none; aspect-ratio: 420 / 1000; }
.palm__trunk { position: absolute; inset: 0; width: 100%; height: 100%; }
.palm__crown { position: absolute; left: -9.05%; top: -6.4%; width: 142.86%; height: 60%; transform-origin: 50% 50%; will-change: transform; animation: palm-sway 6.5s ease-in-out infinite alternate; }
.palm__crown svg { width: 100%; height: 100%; overflow: visible; }
@keyframes palm-sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3deg); } }

.waves { position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; }
.wave { position: absolute; left: 0; width: 200%; height: 70px; will-change: transform; animation: wave-run linear infinite; }
@keyframes wave-run { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.bubble { position: absolute; bottom: -20px; border-radius: 50%; border: 1.5px solid rgba(220, 250, 245, 0.55);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.5) 0 14%, rgba(220, 250, 245, 0.06) 30%, rgba(220, 250, 245, 0) 70%);
  will-change: transform; animation: bubble-rise var(--d) linear infinite; animation-delay: var(--dl); }
@keyframes bubble-rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate3d(10px, -52lvh, 0); } 90% { opacity: 0.8; } 100% { transform: translate3d(-6px, -104lvh, 0); opacity: 0; } }

/* ================================================================ PORTADA */
.cover {
  position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none;
  background: linear-gradient(180deg, #1a5f8c 0%, #2477a8 30%, #3a8fbf 48%, #f3b787 63%, #f6c99a 66%);
}
.cover__sky { position: absolute; inset: 0 0 34% 0; }
.cover__glow { position: absolute; left: 50%; top: 62%; width: 140vmax; height: 60vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 214, 160, 0.55), rgba(255, 214, 160, 0) 70%); }

.cover__brand { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 7vh); display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 3; }
/* centrado óptico: el aro abierto y el popote hacen que el logo, centrado al píxel,
   se vea corrido a la izquierda; se compensa moviéndolo un poco a la derecha */
.cover__logo { --ajuste-optico: 6px; transform: translateX(var(--ajuste-optico)); width: min(40vw, 25vh, 190px); aspect-ratio: 1; filter: drop-shadow(0 8px 24px rgba(5, 29, 35, 0.35)); }
.cover__script { position: absolute; left: 0; right: 0; z-index: 3; margin: 0; text-align: center; font-family: var(--script); font-weight: 500; font-size: min(22vw, 13vh, 118px); line-height: 1; color: var(--cream);
  text-shadow: 0 4px 22px rgba(5, 29, 35, 0.45), 0 0 2px rgba(5, 29, 35, 0.25); }

.cover__island { position: absolute; left: 50%; bottom: 29%; width: min(100vw, 520px); height: 36vh; transform: translateX(-50%); z-index: 2; }
.island { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.palm--isla1 { left: 31.5%; bottom: 16%; width: 21%; }
.palm--isla2 { left: 54.5%; bottom: 20%; width: 15%; transform: scaleX(-1); }
.palm--isla2 .palm__crown { animation-duration: 7.4s; animation-delay: -2s; }

.cover__sea { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 2;
  background: linear-gradient(180deg, #22aeb8 0%, #13878f 30%, #0b6a73 62%, #074f58 100%); }
.waves--cover { top: -34px; height: 80px; }
.waves--cover .wave { top: 0; }
.waves--cover .wave--1 { fill: #3ec3c9; animation-duration: 16s; top: 6px; }
.waves--cover .wave--2 { fill: #22aeb8; animation-duration: 11s; animation-direction: reverse; top: 14px; opacity: 0.95; }
.waves--cover .wave--3 { fill: rgba(246, 239, 230, 0.35); animation-duration: 8s; top: 26px; height: 40px; }
.cover__shine { position: absolute; left: 50%; top: 4%; width: 46vw; height: 50%; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 230, 190, 0.32) 0 3px, rgba(255, 230, 190, 0) 3px 14px);
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent);
  animation: shimmer 3.2s ease-in-out infinite alternate; }
@keyframes shimmer { from { opacity: 0.45; transform: translateX(-50%) scaleX(0.92); } to { opacity: 0.9; transform: translateX(-50%) scaleX(1.06); } }

.cover__cta { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 6vh); display: flex; justify-content: center; z-index: 4; }
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 62px; min-width: 230px; padding: 0 36px;
  border-radius: 999px; background: var(--salmon); color: var(--on-salmon);
  font-weight: 800; font-size: 19px; font-stretch: 88%; letter-spacing: 0.01em; touch-action: manipulation;
  box-shadow: 0 14px 34px rgba(3, 19, 23, 0.4), inset 0 -3px 0 rgba(22, 80, 75, 0.14);
  transition: transform 0.35s var(--ease-back), box-shadow 0.35s var(--ease-out);
}
.cta::before { content: ''; position: absolute; inset: -8px; border-radius: inherit; border: 2px solid rgba(240, 198, 185, 0.7); animation: cta-ring 2.6s var(--ease-out) infinite; pointer-events: none; }
.cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 70%) -150% 0 / 60% 100% no-repeat;
  animation: cta-shine 4.2s ease-in-out infinite 2.4s; pointer-events: none; }
.cta:active, .cta.is-pressed { transform: scale(0.95); box-shadow: 0 6px 18px rgba(3, 19, 23, 0.35); }
@keyframes cta-ring { 0% { transform: scale(0.94); opacity: 0.9; } 100% { transform: scale(1.18, 1.45); opacity: 0; } }
@keyframes cta-shine { 0%, 60% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* idioma */
.lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  background: rgba(5, 29, 35, 0.42); border: 1px solid rgba(246, 239, 230, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lang button { position: relative; z-index: 1; min-width: 40px; height: 32px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--sand); transition: color 0.3s; }
.lang button.is-on { color: var(--on-salmon); }
.lang__pill { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 32px; border-radius: 999px; background: var(--salmon); transition: transform 0.45s var(--ease-back); }
.lang[data-on="en"] .lang__pill { transform: translateX(100%); }
.cover__lang { position: absolute; top: calc(var(--safe-t) + 14px); right: 14px; z-index: 5; }

/* entrada de la portada */
.cover .cover__logo .logo__ring, .cover .cover__logo .logo__straw, .cover .cover__logo .logo__letters, .cover .cover__logo .logo__bubble,
.cover__script, .cover__island, .cover__cta, .cover__lang { opacity: 0; }
.cover.is-in .cover__logo .logo__ring { animation: logo-ring 0.9s 0.15s var(--ease-out) both; }
.cover.is-in .cover__logo .logo__straw { animation: logo-straw 0.6s 0.5s var(--ease-back) both; }
.cover.is-in .cover__logo .logo__letters { animation: logo-letters 0.8s 0.35s var(--ease-out) both; }
.cover.is-in .cover__logo .logo__bubble { animation: logo-bubble 0.5s var(--ease-back) both, bob 3.4s ease-in-out infinite alternate; animation-delay: calc(0.7s + var(--i) * 0.08s), calc(1.4s + var(--i) * -1.1s); }
.cover.is-in .cover__script { animation: script-in 1.1s 0.75s var(--ease-out) both; }
.cover.is-in .cover__island { animation: island-in 1.3s 0.3s var(--ease-out) both; }
.cover.is-in .cover__cta { animation: rise-in 0.9s 1.35s var(--ease-back) both; }
.cover.is-in .cover__lang { animation: rise-in 0.7s 1.5s var(--ease-out) both; }
@keyframes script-in { from { opacity: 1; clip-path: inset(-40% 100% -40% -8%); transform: translateX(-24px); } to { opacity: 1; clip-path: inset(-40% -8% -40% -8%); transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes island-in { from { opacity: 0; transform: translate(-50%, 40px) scale(0.9); } to { opacity: 1; transform: translate(-50%, 0); } }
.cover__island { will-change: transform; }

/* =============================================================== TRANSICIÓN */
.iris { position: fixed; inset: 0; z-index: 50; pointer-events: all; }
html.is-iris .cover *, html.is-iris .cover *::before, html.is-iris .cover *::after { animation-play-state: paused !important; }
.iris__logo { will-change: transform; }
.iris__c { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 50%; transform: scale(0); will-change: transform; backface-visibility: hidden; }
.iris__c--1 { background: var(--salmon); }
.iris__c--2 { background: radial-gradient(70% 60% at 50% 46%, #0d3a40, #031317 85%); }
.iris__logo { position: absolute; left: 50%; top: 50%; width: min(46vw, 220px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.iris__logo .logo__ring, .iris__logo .logo__straw, .iris__logo .logo__letters, .iris__logo .logo__bubble { opacity: 0; }
.iris__logo.is-drawn .logo__ring { animation: logo-ring 0.72s 0.32s var(--ease-out) both; }
.iris__logo.is-drawn .logo__straw { animation: logo-straw 0.52s 0.6s var(--ease-back) both; }
.iris__logo.is-drawn .logo__letters { animation: logo-letters 0.62s 0.48s var(--ease-out) both; }
.iris__logo.is-drawn .logo__bubble { animation: logo-bubble 0.44s both var(--ease-back); animation-delay: calc(0.74s + var(--i) * 0.07s); }

/* ==================================================================== MUNDOS */
.worlds {
  position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none;
  transform: translate3d(0, 0, 0); will-change: transform; backface-visibility: hidden; contain: strict;
}
.world { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.world.is-on { opacity: 1; }
.world:not(.is-on) * { animation-play-state: paused !important; }

/* cielo · comidas */
.world--cielo { background: linear-gradient(180deg, #1a5f8c 0%, #2477a8 38%, #2d80b0 70%, #3f8cbb 100%); }
.world__glow { position: absolute; right: -30vw; top: -20vh; width: 100vw; height: 70vh; background: radial-gradient(closest-side, rgba(255, 222, 170, 0.28), rgba(255, 222, 170, 0)); }

/* tierra · cócteles: playa al atardecer */
.world--tierra { background: linear-gradient(180deg, #1d6f9a 0%, #2f86b4 34%, #7fb3c8 56%, #f2c08f 72%, #f6cd9c 76%); }
.sun { position: absolute; left: 50%; top: 61%; width: 300px; height: 300px; transform: translate(-50%, -50%); }
.sun__rays { position: absolute; inset: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 140, 0.55), rgba(255, 190, 120, 0) 70%); animation: sun-breathe 5s ease-in-out infinite alternate; }
.sun__disc { position: absolute; inset: 70px; border-radius: 50%; background: radial-gradient(circle, #f8d2a8 0 48%, #f6c08f 49% 72%, #f2a66e 73%); }
@keyframes sun-breathe { from { transform: scale(0.94); opacity: 0.8; } to { transform: scale(1.06); opacity: 1; } }
.world__sea { position: absolute; left: 0; right: 0; top: 66%; height: 16%; background: linear-gradient(180deg, #2ba7b3, #158a93); }
.waves--beach { top: -18px; height: 60px; }
.waves--beach .wave--1 { fill: #3ec3c9; animation-duration: 18s; height: 40px; top: 4px; }
.waves--beach .wave--2 { fill: rgba(246, 239, 230, 0.4); animation-duration: 10s; animation-direction: reverse; height: 30px; top: 14px; }
.world__sand { position: absolute; left: -10%; right: -10%; top: 79%; bottom: 0; border-radius: 50% 50% 0 0 / 40px 40px 0 0; background: linear-gradient(180deg, #ecd3a6, #dcbc84); }
.palm--izq { left: -96px; bottom: 4%; width: 200px; }
.palm--der { right: -88px; bottom: 7%; width: 176px; transform: scaleX(-1); }
.palm--der .palm__crown { animation-duration: 7.6s; animation-delay: -3s; }

/* mar · bebidas */
.world--mar { background: linear-gradient(180deg, #22aeb8 0%, #13878f 22%, #0b6a73 45%, #074f58 68%, #04363d 86%, #022429 100%); }
.rays { position: absolute; inset: 0; }
.rays i { position: absolute; top: -10%; width: 22vw; height: 80%; background: linear-gradient(180deg, rgba(200, 245, 235, 0.16), rgba(200, 245, 235, 0)); transform-origin: top center; animation: ray-sway 9s ease-in-out infinite alternate; }
.rays i:nth-child(1) { left: 6%; transform: rotate(14deg); animation-delay: -2s; }
.rays i:nth-child(2) { left: 34%; width: 14vw; transform: rotate(8deg); animation-delay: -5s; }
.rays i:nth-child(3) { left: 58%; transform: rotate(4deg); animation-delay: -1s; }
.rays i:nth-child(4) { left: 82%; width: 12vw; transform: rotate(-2deg); animation-delay: -7s; }
@keyframes ray-sway { from { opacity: 0.55; rotate: -3deg; } to { opacity: 1; rotate: 3deg; } }
.fish { position: absolute; left: 0; will-change: transform; animation: fish-swim var(--d) linear infinite; animation-delay: var(--dl); }
.fish svg { width: 100%; height: auto; transform: scaleX(-1); animation: fish-bob 2.6s ease-in-out infinite alternate; }
.fish--izq { animation-name: fish-swim-izq; }
.fish--izq svg { transform: none; }
@keyframes fish-swim { from { transform: translate3d(-80px, 0, 0); } to { transform: translate3d(calc(100vw + 40px), 0, 0); } }
@keyframes fish-swim-izq { from { transform: translate3d(calc(100vw + 40px), 0, 0); } to { transform: translate3d(-80px, 0, 0); } }
@keyframes fish-bob { from { translate: 0 -5px; } to { translate: 0 5px; } }
.seabed { position: absolute; left: 0; bottom: 0; width: 100%; height: 110px; opacity: 0.8; }

/* ====================================================================== MENÚ */
.app { position: relative; min-height: 100dvh; }
.top {
  position: sticky; top: 0; z-index: 20; transform: translate3d(0, 0, 0); padding: calc(var(--safe-t) + 10px) 14px 0;
  background: linear-gradient(180deg, rgba(5, 29, 35, 0.86), rgba(5, 29, 35, 0.72));
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(246, 239, 230, 0.08);
}
.top__row { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.top__logo { flex: none; width: 46px; height: 46px; }
.logo--top .logo__bubble { animation: bob 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.1s); }
.top__lang { flex: none; }

.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; border-radius: 999px;
  background: rgba(246, 239, 230, 0.1); border: 1px solid rgba(246, 239, 230, 0.16); transition: background 0.3s, border-color 0.3s; }
.search:focus-within { background: rgba(246, 239, 230, 0.16); border-color: rgba(240, 198, 185, 0.7); }
.search__icon { flex: none; width: 40px; display: grid; place-items: center; color: var(--salmon); }
.search__icon svg { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--cream); font: inherit; font-size: 16px; padding: 0 4px 0 0; }
.search input::placeholder { color: rgba(217, 203, 189, 0.75); }
.search input::-webkit-search-cancel-button { display: none; }
.search__clear { flex: none; width: 36px; height: 36px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center; color: var(--sand); opacity: 0; transform: scale(0.6); pointer-events: none; transition: opacity 0.25s, transform 0.35s var(--ease-back); }
.search__clear svg { width: 18px; height: 18px; }
.search.has-q .search__clear { opacity: 1; transform: none; pointer-events: auto; }

.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 760px; margin: 10px auto 0; }
.tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 16px 16px 0 0; color: var(--sand); transition: color 0.35s; }
.tab__icon { width: 26px; height: 22px; display: grid; place-items: center; transition: transform 0.45s var(--ease-back); }
.tab__icon svg { width: 100%; height: 100%; }
.tab__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.tab__txt b { font-size: 15px; font-weight: 800; font-stretch: 85%; }
.tab__txt small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }
.tab.is-on { color: var(--cream); }
.tab.is-on .tab__icon { transform: translateY(-2px) scale(1.1); color: var(--salmon); }
.tabs__ink { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--salmon); transition: transform 0.55s var(--ease-drawer), width 0.55s var(--ease-drawer); }
html.is-searching .tab.is-on { color: var(--sand); }
html.is-searching .tabs__ink { opacity: 0.3; }

.worlds .world.is-on { will-change: opacity; }
.content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 8px 14px calc(var(--safe-b) + 48px); }
.content.is-in .sec { animation: sec-in 0.6s var(--ease-out) both; }
.content[data-dir="1"].is-in .sec { animation-name: sec-in-r; }
.content[data-dir="-1"].is-in .sec { animation-name: sec-in-l; }
@keyframes sec-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sec-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes sec-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.sec__head { padding: 24px 4px 4px; }
.sec__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--salmon); }
.sec__kicker svg { width: 22px; height: 18px; }
.sec__title { margin: 0; padding: 0.14em 0 0.06em; font-family: var(--script); font-weight: 500; font-size: clamp(60px, 17vw, 92px); line-height: 1.02; color: var(--cream); text-shadow: 0 4px 26px rgba(5, 29, 35, 0.35); }
.sec__title span { display: block; margin: 0.06em 0 0 1.4em; font-size: 0.55em; line-height: 1.1; color: var(--salmon); }

/* grupos */
.group { margin-top: 34px; }
.group__photo { position: relative; margin: 0 0 14px; height: 168px; border-radius: var(--leaf-r); overflow: hidden; box-shadow: 0 16px 34px rgba(3, 19, 23, 0.35); }
.group__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.group__photo.is-seen img { transform: none; }
.group__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 29, 35, 0.9), rgba(5, 29, 35, 0.2) 55%, rgba(5, 29, 35, 0) 75%); }
.group__photo .group__title { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; margin: 0; line-height: 1; }
.group__title { font-family: var(--script); font-weight: 500; font-size: 50px; line-height: 1.15; color: var(--cream); margin: 0 4px 12px; padding-top: 0.06em; }
.group__title--plain { text-shadow: 0 3px 18px rgba(5, 29, 35, 0.4); }
.group[style*="--acc"] .group__title--plain::after { content: ''; display: block; width: 46px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--acc); }
.group__desc { margin: -4px 4px 14px; color: var(--cream); font-size: 15px; opacity: 0.9; }
.group__salsa { margin: 12px 6px 0; padding: 12px 16px; border-radius: var(--leaf-r); border: 1px dashed rgba(240, 198, 185, 0.35); background: rgba(5, 29, 35, 0.45); }
.group__salsa-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 4px; font-weight: 800; font-stretch: 80%; font-size: 17px; }
.group__salsa-t b { color: var(--salmon); font-stretch: 85%; }
.group__salsa-l { margin: 0; font-size: 14px; line-height: 1.45; color: var(--sand); }
.group__note { margin: 12px 6px 0; font-size: 14px; color: var(--salmon); font-style: italic; }
.group__items { display: grid; gap: 10px; }
.group--compact .group__items { gap: 8px; }

/* tarjetas */
.card {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left;
  border-radius: var(--leaf-r); background: rgba(5, 29, 35, 0.8); border: 1px solid rgba(246, 239, 230, 0.12);
  box-shadow: 0 10px 26px rgba(3, 19, 23, 0.22);
  transition: transform 0.35s var(--ease-back), background 0.3s, border-color 0.3s;
  touch-action: manipulation;
}
.card:active { transform: scale(0.975); background: rgba(5, 29, 35, 0.74); border-color: rgba(240, 198, 185, 0.5); }
@media (hover: hover) { .card:hover { border-color: rgba(240, 198, 185, 0.45); transform: translateY(-2px); } }
.card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card__name { font-size: 20px; font-weight: 800; font-stretch: 78%; line-height: 1.1; color: var(--cream); }
.card__desc { font-size: 14px; line-height: 1.35; color: var(--sand); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { flex: none; align-self: center; font-size: 20px; font-weight: 800; font-stretch: 85%; color: var(--salmon); white-space: nowrap; text-align: right; line-height: 1.05; }
.price small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); }
.thumb { position: relative; flex: none; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden;
  border-radius: 18px 6px 18px 6px; border: 1.5px dashed rgba(240, 198, 185, 0.45); background: rgba(240, 198, 185, 0.07); color: rgba(240, 198, 185, 0.7); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.thumb.has-img { border: 0; background: var(--surface); }
.thumb.has-img img { opacity: 1; }
.thumb.has-img > :not(img) { visibility: hidden; }
.thumb__plate { width: 42px; height: 42px; }
.thumb__glass { width: 38px; height: 50px; }
.thumb__glass .glass { width: 100%; height: 100%; color: var(--cream); overflow: visible; }
.glass .ice { fill: rgba(255, 255, 255, 0.4); }
.glass__liquid { transform-box: fill-box; transform-origin: bottom; }
.card--drink .thumb__glass .glass { transform-origin: 50% 100%; animation: sway 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -0.37s); }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.card--row { padding: 10px 16px 10px 12px; }
.card--row .thumb { width: 60px; height: 60px; }
.card--row .thumb__glass { width: 32px; height: 42px; }
.card--row .card__name { font-size: 18px; }
.card--row .price { font-size: 18px; }

/* aparición al hacer scroll */
.card, .group__photo, .group__title--plain, .group__desc, .mobilebar { opacity: 0; transform: translateY(22px); }
.card.is-seen, .group__photo.is-seen, .group__title--plain.is-seen, .group__desc.is-seen, .mobilebar.is-seen {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), background 0.3s, border-color 0.3s;
  transition-delay: calc(var(--k, 0) * 45ms), calc(var(--k, 0) * 45ms), 0s, 0s;
}
.card.is-seen:active { transform: scale(0.975); transition-delay: 0s; }
.is-seen .glass__liquid { animation: refill 1.1s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 45ms + 0.15s); }
@keyframes refill { from { transform: translateY(100%); } to { transform: none; } }

/* mobile bar */
.mobilebar { margin-top: 30px; display: grid; grid-template-columns: 38% 1fr; overflow: hidden; border-radius: var(--leaf-r); background: rgba(240, 198, 185, 0.94); color: var(--lagoon); }
.mobilebar img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.mobilebar__txt { padding: 16px 16px 18px; }
.mobilebar h2 { margin: 0 0 10px; font-family: var(--script); font-weight: 500; font-size: 38px; line-height: 1.12; color: var(--on-salmon); }
.mobilebar p { margin: 0 0 8px; font-size: 14px; line-height: 1.35; }
.mobilebar a { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; color: var(--on-salmon); text-decoration: none; }
.mobilebar a svg { width: 20px; height: 20px; }

/* búsqueda */
.sec--search { padding-top: 14px; }
.search__count { margin: 4px 6px 0; font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--salmon); }
.group--search { margin-top: 16px; }
.group__title--chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 14px 6px 10px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(5, 29, 35, 0.6); }
.group__title--chip svg { width: 22px; height: 18px; color: var(--salmon); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; }
.empty__logo { width: 96px; height: 96px; opacity: 0.85; animation: float-y 3s ease-in-out infinite alternate; }
@keyframes float-y { from { transform: translateY(-4px); } to { transform: translateY(6px); } }
.empty__t { margin: 18px 0 6px; font-size: 18px; }
.empty__t b { color: var(--salmon); }
.empty__tip { margin: 0; color: var(--sand); font-size: 14px; }

/* ====================================================================== FICHA */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(3, 19, 23, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.45s var(--ease-out); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 620px; margin: 0 auto; max-height: calc(100dvh - var(--safe-t) - 28px);
  display: flex; flex-direction: column; border-radius: 30px 30px 0 0; overflow: hidden;
  background: var(--lagoon); box-shadow: 0 -20px 60px rgba(3, 19, 23, 0.5);
  transform: translateY(calc(100% + 40px)); transition: transform 0.55s var(--ease-drawer);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateY(var(--drag, 0px)); }
.sheet__panel.is-dragging { transition: none; }
.sheet[data-world="cielo"] .sheet__panel { background: linear-gradient(180deg, #0f4d72, #082a30 55%); }
.sheet[data-world="tierra"] .sheet__panel { background: linear-gradient(180deg, #6b5a46, #2a3a3a 40%, #082a30 70%); }
.sheet[data-world="mar"] .sheet__panel { background: linear-gradient(180deg, #0b6a73, #053a42 50%, #051d23); }
.sheet__grab { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3; display: grid; place-items: center; touch-action: none; }
.sheet__grab i { width: 44px; height: 5px; border-radius: 5px; background: rgba(246, 239, 230, 0.7); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 29, 35, 0.6); color: var(--cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet__close svg { width: 20px; height: 20px; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--safe-b) + 26px); }

.sheet__photo { position: relative; margin: 0; height: min(42vh, 330px); overflow: hidden; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease-out); }
.sheet.is-open .sheet__photo img { transform: none; }
.sheet__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 29, 35, 0.95) 2%, rgba(5, 29, 35, 0) 46%); }
.sheet__photo:not(.is-ref) figcaption { display: none; }
.sheet__photo figcaption { position: absolute; right: 14px; bottom: 10px; z-index: 1; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246, 239, 230, 0.55); }
.sheet__glass { position: absolute; left: 18px; bottom: -6px; z-index: 2; width: 86px; height: 112px; filter: drop-shadow(0 10px 18px rgba(3, 19, 23, 0.5)); }
.sheet__glass .glass { width: 100%; height: 100%; color: var(--cream); transform-origin: 50% 100%; animation: sway 3.4s ease-in-out infinite alternate; }
.sheet.is-open .sheet__glass .glass__liquid { animation: refill 1.3s 0.25s var(--ease-out) both; }

.sheet__body { position: relative; padding: 6px 22px 0; }
.sheet__body > * { opacity: 0; transform: translateY(16px); }
.sheet.is-open .sheet__body > * { opacity: 1; transform: none; transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
.sheet.is-open .sheet__body > *:nth-child(1) { transition-delay: 0.12s; }
.sheet.is-open .sheet__body > *:nth-child(2) { transition-delay: 0.18s; }
.sheet.is-open .sheet__body > *:nth-child(3) { transition-delay: 0.24s; }
.sheet.is-open .sheet__body > *:nth-child(4) { transition-delay: 0.3s; }
.sheet.is-open .sheet__body > *:nth-child(n+5) { transition-delay: 0.36s; }
.sheet__kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--salmon); }
.sheet__kicker svg { width: 20px; height: 16px; }
.sheet__name { margin: 10px 0 0; padding-top: 0.08em; font-family: var(--script); font-weight: 500; font-size: clamp(46px, 12.5vw, 62px); line-height: 1.12; color: var(--cream); }
.sheet__desc { margin: 14px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--sand); }
.sheet__label { margin: 22px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--salmon); }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: var(--leaf-r); background: rgba(246, 239, 230, 0.07); border: 1px solid rgba(246, 239, 230, 0.1); }
.opts span { font-weight: 700; font-size: 16px; }
.opts small { display: block; font-weight: 500; font-size: 13px; color: var(--sand); }
.opts b { font-size: 19px; font-stretch: 85%; color: var(--salmon); white-space: nowrap; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(240, 198, 185, 0.14); border: 1px solid rgba(240, 198, 185, 0.32); font-size: 14px; font-weight: 700; }
.sheet__note { margin: 16px 0 0; font-size: 14px; font-style: italic; color: var(--salmon); }
.sheet__price { margin-top: 24px; }
.sheet__price span { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--salmon); color: var(--on-salmon); font-size: 26px; font-weight: 800; font-stretch: 85%;
  box-shadow: 0 10px 24px rgba(3, 19, 23, 0.35); }

/* ------------------------------------------------------- pantallas grandes */
@media (min-width: 700px) {
  .group__items { grid-template-columns: 1fr 1fr; }
  .group__photo { height: 220px; }
  .sheet__panel { bottom: 50%; border-radius: 30px; transform: translateY(calc(50% + 100vh)); }
  .sheet.is-open .sheet__panel { transform: translateY(calc(50% + var(--drag, 0px))); }
}
@media (max-height: 640px) {
  .cover__brand { top: calc(var(--safe-t) + 4vh); }
  .cover__cta { bottom: calc(var(--safe-b) + 4vh); }
}

/* --------------------------------------------------- menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .card, .group__photo, .group__title--plain, .group__desc, .mobilebar { opacity: 1; transform: none; }
}

/* Barra de abajo de Safari, solo en el menú (la crea qr.js con el color de
   cada sección). Franja de 8 px pegada al borde de abajo: no toca el de arriba. */
.safari-barra { position: fixed; left: 0; right: 0; bottom: 0; height: 8px; z-index: 30; pointer-events: none; }

/* Sin el "rebote" de iOS al llegar arriba o abajo de golpe dentro del menú:
   ese estirón dejaba ver el fondo oscuro de la página. */
html:not(.on-cover), html:not(.on-cover) body { overscroll-behavior-y: none; }

/* Respaldo detrás de los fondos: sobra una pantalla arriba y otra abajo con el
   color de cada borde. Si iOS retrasa la capa fija al deslizar muy rápido, lo
   que se asoma es el mismo fondo, no negro. Va como degradado (no color plano)
   para que Safari no lo use en su barra de arriba. */
.worlds-pad { position: fixed; left: 0; right: 0; top: -100vh; height: 300vh; z-index: 0; pointer-events: none; transform: translate3d(0, 0, 0); }
html[data-world="cielo"] .worlds-pad { background-image: linear-gradient(180deg, #1a5f8c 0 50%, #3f8cbb 50% 100%); }
html[data-world="tierra"] .worlds-pad { background-image: linear-gradient(180deg, #1d6f9a 0 50%, #dcbc84 50% 100%); }
html[data-world="mar"] .worlds-pad { background-image: linear-gradient(180deg, #22aeb8 0 50%, #b0a37f 50% 100%); }
