/* =============================================================
   Cevichería Dieguiño — estilos
   Arquetipo: Liquid Wave (olas, formas orgánicas, paleta marina + cítrica)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #F1F9F6;
  --bg-2:       #E2F3EE;
  --paper:      #FFFDF8;
  --deep:       #06404C;
  --deep-2:     #032B33;
  --ink:        #06262E;
  --ink-soft:   #2C474E;
  --ink-mute:   #557178;
  --accent:     #12A98F;
  --accent-ink: #0A7A67;
  --aji:        #FFC93C;
  --aji-2:      #F5A800;
  --lime:       #9BD341;
  --rocoto:     #E5483B;
  --wa:         #25D366;
  --wa-ink:     #05301A;
  --cream:      #FFF6E3;
  --cream-mute: rgba(255, 246, 227, .76);
  --line:       rgba(6, 38, 46, .12);
  --line-light: rgba(255, 246, 227, .16);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:    "Caveat", "Segoe Print", cursive;

  --radius:    22px;
  --gutter:    clamp(16px, 4vw, 40px);
  --maxw:      1200px;
  --nav-h:     72px;
  --shadow:    0 1px 2px rgba(6, 38, 46, .06), 0 12px 32px -12px rgba(6, 38, 46, .22);
  --shadow-lg: 0 30px 60px -20px rgba(6, 38, 46, .35);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
::selection { background: var(--aji); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--deep); color: var(--cream); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   4. Typography
   ============================================================= */
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); letter-spacing: -0.03em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.kicker-hand {
  display: inline-block;
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1;
  color: var(--accent-ink);
  transform: rotate(-3deg);
  margin-bottom: .5rem;
}
.text-link { font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.45rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1;
  transition: transform .4s var(--ease-bounce), box-shadow .4s var(--ease-out), background-color .25s, color .25s;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 24px -10px rgba(18, 140, 75, .7); }
.btn-wa:hover { box-shadow: 0 16px 30px -10px rgba(18, 140, 75, .75); }
.btn-deep { background: var(--deep); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(6, 64, 76, .7); }
.btn-deep:hover { background: var(--deep-2); }
.btn-ghost { border: 2px solid currentColor; color: var(--deep); }
.btn-ghost:hover { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.btn-sm { min-height: 44px; padding: .55rem 1.05rem; font-size: .95rem; }

/* --- Marca --- */
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--aji);
  transition: transform .5s var(--ease-bounce);
}
.brand-mark svg { width: 30px; }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.brand-sub { margin-top: .22rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }

/* --- Navegación --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(255, 253, 248, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: .75rem; }
.nav .brand { margin-right: auto; }
.nav-cta .long { display: none; }
.nav-links a { position: relative; font-weight: 600; }
.nav-toggle {
  width: 46px; height: 46px; flex: none;
  display: grid; place-content: center; gap: 6px;
  border-radius: 50%; background: var(--paper); box-shadow: var(--shadow);
}
.nav-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
html:not(.js) .nav-toggle { display: none; }

@media (max-width: 959px) {
  .nav-links {
    position: absolute; top: calc(var(--nav-h) - 4px); left: var(--gutter); right: var(--gutter);
    display: flex; flex-direction: column; gap: .15rem;
    padding: .5rem; border-radius: 18px;
    background: var(--paper); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease-out); }
  .nav-links a { padding: .85rem 1rem; border-radius: 12px; font-size: 1.05rem; font-weight: 700; }
  .nav-links a:hover { background: var(--bg-2); }
  html:not(.js) .nav-links { display: none; }
}

/* --- Estrellas --- */
.stars { position: relative; display: inline-block; font-size: 1.15rem; line-height: 1; letter-spacing: 1px; color: rgba(6, 38, 46, .18); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--aji-2); }
.stars--lg { font-size: 1.5rem; }

/* --- Chips --- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; background: var(--bg-2); color: var(--deep); font-weight: 600; font-size: .88rem; }

/* --- Olas --- */
.wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
  height: clamp(42px, 7vw, 92px);
  overflow: hidden; pointer-events: none;
  color: var(--wave, var(--deep));
}
.wave svg {
  position: absolute; left: 0; bottom: 0;
  width: 200%; max-width: none; height: 100%;
  fill: currentColor;
  animation: waveX 22s linear infinite;
}
.wave svg + svg { height: 125%; opacity: .4; animation-duration: 34s; animation-direction: reverse; }
.wave--top { top: -1px; bottom: auto; transform: scaleY(-1); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--nav-h) + 2.2rem) 0 clamp(6rem, 12vw, 9rem);
  background:
    radial-gradient(90% 70% at 90% 10%, #D3F0E7 0%, transparent 60%),
    linear-gradient(180deg, #E8F6F2 0%, var(--bg) 100%);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .95rem .45rem .75rem; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow);
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.kicker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s infinite; }
.hero-title {
  margin-top: 1.2rem;
  font-size: clamp(2.5rem, 6.4vw + .2rem, 5.6rem);
  line-height: .96; letter-spacing: -0.04em;
  max-width: 13ch;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(transparent 60%, var(--aji) 60%, var(--aji) 92%, transparent 92%);
  padding-inline: .05em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-sub { margin-top: 1.3rem; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-top: 1.6rem; color: var(--ink-soft); }
.hero-rating strong { color: var(--ink); font-size: 1.05rem; }
.hero-rating:hover .u { text-decoration: underline; text-underline-offset: 3px; }

.hero-art { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.blob {
  position: absolute; inset: 5%; z-index: -1;
  background: var(--aji);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation: blob 16s ease-in-out infinite;
}
.blob--2 { inset: 12% 0 0 14%; background: var(--lime); opacity: .5; animation-duration: 21s; animation-direction: reverse; }
.bowl-wrap {
  position: absolute; inset: 7%;
  filter: drop-shadow(0 26px 30px rgba(6, 64, 76, .28));
  animation: bob 7s ease-in-out infinite;
}
.bowl { width: 100%; height: 100%; animation: spin 140s linear infinite; }
.badge {
  position: absolute; top: -1%; right: -1%;
  width: 27%; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--deep); color: var(--aji);
  box-shadow: var(--shadow-lg);
  transform: rotate(8deg);
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-ring text { fill: currentColor; font-family: var(--display); font-weight: 800; font-size: 12.5px; letter-spacing: .5px; }
.badge-fish { width: 42%; }
.hand-note {
  position: absolute; left: 0; bottom: -3%;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--hand); font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: .95;
  color: var(--deep);
  transform: rotate(-7deg);
}
.hand-note svg { width: 54px; margin-left: 70%; margin-bottom: .1rem; }

/* --- Marquee --- */
.marquee { position: relative; background: var(--deep); color: var(--aji); overflow: hidden; padding: .6rem 0 .2rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem); letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-group i { font-style: normal; color: var(--lime); font-size: .65em; }

/* --- Carta --- */
.carta {
  position: relative;
  background: var(--paper);
  padding: clamp(5.5rem, 10vw, 8rem) 0 clamp(6.5rem, 12vw, 9.5rem);
}
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.dish-grid { display: grid; gap: 1rem; }
.dish {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease-bounce), box-shadow .5s var(--ease-out), border-color .3s;
}
.dish::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c, var(--accent)); }
.dish:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); border-color: transparent; }
.dish-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.dish-num {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--c, var(--accent));
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  transition: transform .5s var(--ease-bounce);
}
.dish:hover .dish-num { transform: rotate(-12deg) scale(1.08); }
.dish-tag {
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--bg-2); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.dish h3 { font-size: 1.45rem; letter-spacing: -0.025em; }
.dish p { flex: 1; color: var(--ink-soft); font-size: .98rem; }
.dish-link { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-weight: 700; font-size: .95rem; color: var(--accent-ink); }
.dish-link .arrow { transition: transform .35s var(--ease-out); }
.dish-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dish:hover .dish-link .arrow { transform: translateX(5px); }
.carta-note {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  background: var(--bg-2); border: 1.5px dashed rgba(6, 64, 76, .25);
}
.carta-note p { max-width: 60ch; color: var(--ink-soft); }
.carta-note strong { color: var(--ink); }

/* --- El local --- */
.local {
  position: relative;
  background: var(--deep); color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(6.5rem, 12vw, 9.5rem);
}
.local .kicker-hand { color: var(--aji); }
.local .lead { color: var(--cream-mute); margin-top: 1rem; }
.local-grid { display: grid; gap: 2.5rem; }
.rating-card {
  margin-top: 2rem; max-width: 470px;
  display: grid; gap: .85rem;
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--cream); color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.rating-big { display: flex; align-items: center; gap: 1rem; }
.rating-num { font-family: var(--display); font-weight: 800; font-size: 4.2rem; line-height: .85; letter-spacing: -0.05em; }
.rating-count { margin-top: .3rem; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.rating-label { font-weight: 700; font-size: .95rem; }
.features { display: grid; gap: 1rem; }
.feature {
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(255, 246, 227, .06); border: 1px solid var(--line-light);
  transition: transform .5s var(--ease-bounce), background-color .3s;
}
.feature:hover { transform: translateY(-5px); background: rgba(255, 246, 227, .1); }
.feature-icon {
  width: 54px; height: 54px; margin-bottom: 1rem;
  display: grid; place-items: center;
  border-radius: 16px; background: var(--aji); color: var(--deep);
  transform: rotate(-6deg);
  transition: transform .5s var(--ease-bounce);
}
.feature:nth-child(2) .feature-icon { background: var(--lime); transform: rotate(5deg); }
.feature:nth-child(3) .feature-icon { background: #FFB4A8; }
.feature:nth-child(4) .feature-icon { background: #8FE0CF; transform: rotate(4deg); }
.feature:hover .feature-icon { transform: rotate(0) scale(1.08); }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.feature p { color: var(--cream-mute); font-size: .98rem; }

/* --- Partido --- */
.partido {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 70px, transparent 70px 140px),
    var(--aji);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(6.5rem, 12vw, 9.5rem);
}
.partido-grid { display: grid; gap: 2.5rem; align-items: center; }
.partido .kicker-hand { color: var(--deep); }
.partido .lead { color: var(--ink-soft); margin-top: 1rem; }
.partido .btn { margin-top: 1.6rem; }
.scoreboard {
  position: relative; width: min(100%, 480px); margin-inline: auto;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: var(--radius); border: 6px solid #0E4C59;
  background: var(--deep-2); color: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.5deg);
  transition: transform .6s var(--ease-bounce);
}
.scoreboard:hover { transform: rotate(0) scale(1.02); }
.sb-top { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mute); }
.live { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .65rem; border-radius: 6px; background: var(--rocoto); color: #fff; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.sb-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: .5rem; margin-top: 1.1rem; text-align: center; }
.sb-side { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.sb-team { font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 2vw, 1.15rem); text-transform: uppercase; letter-spacing: .04em; }
.sb-goals {
  min-width: 1.6em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1.1;
  color: var(--aji); font-variant-numeric: tabular-nums;
  padding: .1rem .2em; border-radius: 14px; background: rgba(255, 255, 255, .07);
}
.sb-sep { padding-bottom: .5em; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--cream-mute); }
.sb-foot { margin-top: .9rem; text-align: center; font-size: .9rem; color: var(--cream-mute); }

/* --- Ubicación --- */
.ubicacion {
  position: relative;
  background: var(--bg-2);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(6.5rem, 12vw, 9.5rem);
}
.ubi-grid { display: grid; gap: 1.25rem; }
.info-card {
  display: flex; flex-direction: column; gap: 1.6rem;
  padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
}
.info-list { display: grid; gap: 1.15rem; }
.info-list li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: start; }
.info-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-2); color: var(--deep); }
.info-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.info-value { font-weight: 600; font-size: 1.06rem; line-height: 1.45; }
.info-value a { text-decoration: underline; text-underline-offset: 3px; }
.info-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.map { position: relative; min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #D7E8E4; box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Footer --- */
.footer { background: var(--deep-2); color: var(--cream); padding: 3rem 0 calc(6.5rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 2rem; }
.footer .brand-sub { color: var(--cream-mute); }
.footer-about { margin-top: 1rem; max-width: 36ch; color: var(--cream-mute); }
.footer-h { font-size: 1.05rem; letter-spacing: 0; color: var(--aji); margin-bottom: .6rem; }
.footer p { color: var(--cream-mute); }
.footer p + p { margin-top: .35rem; }
.footer-link { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(255, 246, 227, .35); text-underline-offset: 3px; }
.footer-link:hover { text-decoration-color: var(--aji); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem;
  font-size: .88rem;
}

/* =============================================================
   7. Botones flotantes + chatbot
   ============================================================= */
.fabs {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  transition: opacity .3s, transform .4s var(--ease-out);
}
body.chat-open .fabs { opacity: 0; transform: scale(.9); pointer-events: none; }
.fab {
  position: relative;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: 0 14px 28px -10px rgba(3, 43, 51, .55);
  transition: transform .45s var(--ease-bounce);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }
.fab-wa { background: var(--wa); color: #fff; }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ripple 2.6s var(--ease-out) infinite;
}
.fab-chat { width: 56px; height: 56px; margin-right: 2px; background: var(--deep); color: var(--aji); }
.fab-chat svg { width: 28px; height: 28px; }
html:not(.js) .fab-chat, html:not(.js) .chat-teaser { display: none; }
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: .4rem .75rem; border-radius: 10px;
  background: var(--ink); color: var(--cream);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: translate(0, -50%); }

.chat-teaser {
  position: absolute; right: 70px; top: -6px;
  width: min(250px, calc(100vw - 110px));
  border-radius: 18px 18px 6px 18px;
  background: var(--paper); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: teaserIn .5s var(--ease-bounce) both;
}
.chat-teaser[hidden] { display: none; }
.teaser-body { display: block; width: 100%; padding: .85rem 2.2rem .85rem 1rem; text-align: left; font-size: .92rem; line-height: 1.4; font-weight: 500; }
.teaser-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-mute); }
.teaser-close:hover { background: var(--bg-2); color: var(--ink); }
.teaser-close svg, .chat-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.chat {
  position: fixed; z-index: 70;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 32px));
  height: min(640px, calc(100svh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 40px 80px -20px rgba(3, 43, 51, .5), 0 0 0 1px rgba(6, 38, 46, .08);
  transform-origin: 100% 100%;
  opacity: 0; transform: translateY(16px) scale(.94);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out);
}
.chat.is-open { opacity: 1; transform: none; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .95rem 1rem .95rem 1.1rem; background: var(--deep); color: var(--cream); }
.chat-avatar { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--aji); }
.chat-avatar svg { width: 30px; }
.chat-avatar::after { content: ""; position: absolute; right: -1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--wa); border: 2px solid var(--deep); }
.chat-title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.15; }
.chat-status { font-size: .8rem; color: var(--cream-mute); }
.chat-close { margin-left: auto; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--cream); transition: background-color .2s; }
.chat-close:hover { background: rgba(255, 246, 227, .12); }
.chat-log {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.1rem 1rem .6rem;
  background: radial-gradient(circle at 1px 1px, rgba(6, 64, 76, .08) 1px, transparent 0) 0 0 / 18px 18px, var(--bg);
}
.msg {
  max-width: 86%;
  padding: .7rem .95rem; border-radius: 18px;
  font-size: .95rem; line-height: 1.45;
  white-space: pre-line; overflow-wrap: anywhere;
  animation: msgIn .35s var(--ease-out) both;
}
.msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--user { align-self: flex-end; background: var(--deep); color: var(--cream); border-bottom-right-radius: 6px; }
.msg-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: .45rem; max-width: 94%; animation: msgIn .35s var(--ease-out) .08s both; }
.msg-action {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--deep); background: #fff; color: var(--deep);
  font-size: .86rem; font-weight: 700;
  transition: background-color .2s, color .2s, transform .35s var(--ease-bounce);
}
.msg-action:hover { background: var(--deep); color: var(--cream); transform: translateY(-2px); }
.msg-action--wa { border-color: var(--wa); background: var(--wa); color: var(--wa-ink); }
.msg-action--wa:hover { background: #1EBE5B; border-color: #1EBE5B; color: var(--wa-ink); }
.msg-action svg { width: 16px; height: 16px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: .85rem 1rem; border-radius: 18px; border-bottom-left-radius: 6px; background: #fff; border: 1px solid var(--line); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); animation: typing 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.chat-chips {
  display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none;
  padding: .6rem 1rem; border-top: 1px solid var(--line); background: var(--paper);
}
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips:empty { display: none; }
.chat-chip {
  flex: none; padding: .45rem .85rem; border-radius: 999px;
  background: var(--bg-2); color: var(--deep);
  font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, transform .35s var(--ease-bounce);
}
.chat-chip:hover { background: var(--aji); transform: translateY(-2px); }
.chat-form { display: flex; gap: .5rem; padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.chat-input {
  flex: 1; min-width: 0; height: 46px; padding: 0 1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 16px;
}
.chat-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18, 169, 143, .2); }
.chat-send { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--deep); color: var(--aji); transition: transform .35s var(--ease-bounce); }
.chat-send:hover { transform: scale(1.06) rotate(-8deg); }
.chat-send svg { width: 20px; height: 20px; }

/* =============================================================
   8. Effects
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* piezas inclinadas: se revelan hacia su ángulo final (main.js quita .reveal al terminar) */
.js .rating-card.reveal.is-in { transform: rotate(-1.2deg); }
.js .scoreboard.reveal.is-in { transform: rotate(-2.5deg); }

@keyframes waveX   { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes bob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes blob {
  0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg); }
  50%      { border-radius: 58% 42% 38% 62% / 52% 61% 39% 48%; transform: rotate(18deg); }
}
@keyframes pulse  { 0% { box-shadow: 0 0 0 0 rgba(18, 169, 143, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(18, 169, 143, 0); } }
@keyframes blink  { 50% { opacity: .2; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes msgIn  { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes teaserIn { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* =============================================================
   9. Responsive (mobile-first)
   ============================================================= */
@media (max-width: 539px) {
  .chat {
    right: 0; bottom: 0; width: 100%;
    height: min(88vh, 100vh); height: min(88svh, 100svh);
    border-radius: 24px 24px 0 0;
  }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (min-width: 540px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .nav-cta .long { display: inline; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer { padding-bottom: 5.5rem; }
  .map { min-height: 380px; }
}

@media (min-width: 960px) {
  :root { --nav-h: 80px; }
  body { font-size: 17px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 1.9rem; margin-right: .6rem; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
    height: 3px; border-radius: 3px; background: var(--aji);
    transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease-out);
  }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 3rem; }
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem; }
  .section-head .lead { justify-self: end; }
  .partido-grid { grid-template-columns: .95fr 1.05fr; gap: 4rem; }
  .ubi-grid { grid-template-columns: .95fr 1.05fr; gap: 1.5rem; }
  .map { min-height: 100%; }
}

@media (min-width: 1280px) {
  .dish-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-art { width: min(100%, 540px); }
  .local-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
}

/* =============================================================
   10. Reduced motion — solo efectos intrusivos (loops cortos)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kicker .dot, .live::before, .fab-wa::after { animation: none; }
}
