/* =============================================================
   Restaurante Qusqha — styles.css
   Arquetipo: Editorial Dark Warm (acentos rocoto + ají amarillo)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #110C09;
  --bg-2: #18110D;
  --bg-3: #211812;
  --bg-4: #2C2119;
  --cream: #F4EBDC;
  --cream-2: #DCCFBA;
  --cream-3: #A79680;
  --accent: #B8341F;
  --accent-2: #9E2A18;
  --accent-hi: #EE6A4E;
  --gold: #E3A83B;
  --gold-soft: rgba(227, 168, 59, .14);
  --wa: #25D366;
  --wa-ink: #07140C;
  --line: rgba(244, 235, 220, .12);
  --line-2: rgba(244, 235, 220, .22);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);

  color-scheme: dark;
}

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.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;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--cream-3); }
.section { position: relative; padding-block: var(--section-pad); }

/* =============================================================
   4. Typography
   ============================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.kicker span {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: 0; font-size: 1rem; color: var(--cream-3);
}
.kicker span::after {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--line-2); vertical-align: middle; margin-left: .75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  max-width: 16ch;
}
.section-title em, .hero-title em {
  font-style: italic; font-weight: 300; color: var(--gold);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--cream-2); max-width: 60ch; line-height: 1.7; }
.lead strong { color: var(--cream); font-weight: 600; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --btn-bg: transparent; --btn-ink: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.35rem;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: .98rem; line-height: 1.1;
  transition: transform .35s var(--ease-out), background-color .25s, box-shadow .35s var(--ease-out), border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --btn-bg: var(--accent); box-shadow: 0 10px 30px -12px rgba(184, 52, 31, .8); }
.btn-primary:hover { --btn-bg: #C93D26; box-shadow: 0 16px 38px -12px rgba(201, 61, 38, .9); }
.btn-wa { --btn-bg: var(--wa); --btn-ink: var(--wa-ink); box-shadow: 0 10px 30px -14px rgba(37, 211, 102, .7); }
.btn-wa:hover { --btn-bg: #3ADF78; }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn-sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  transition: background-color .25s, border-color .25s, transform .35s var(--ease-out), opacity .25s;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--gold-soft); border-color: var(--gold); }
.round-btn:disabled { opacity: .35; cursor: default; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-hi);
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(238, 106, 78, .12);
}
.tag svg { width: 13px; height: 13px; }
.tag-veg { color: #9FD68A; background: rgba(159, 214, 138, .12); }
.tag-gold { color: var(--gold); background: var(--gold-soft); }

.price { font-family: var(--serif); font-weight: 500; color: var(--gold); white-space: nowrap; }

.stars { color: var(--gold); letter-spacing: .08em; }
.star-half {
  background: linear-gradient(90deg, var(--gold) 50%, rgba(227, 168, 59, .28) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cream-3);
}
.is-open .dot, .chat-sub .dot { background: #5BD47C; box-shadow: 0 0 0 0 rgba(91, 212, 124, .6); animation: pulse 2.2s infinite; }
.is-closed .dot { background: var(--accent-hi); }

/* Banda textil andina */
.tejido {
  height: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 3l6 6-6 6-6-6z' fill='%23B8341F'/%3E%3Cpath d='M18 7l2 2-2 2-2-2z' fill='%23E3A83B'/%3E%3Cpath d='M0 9l3-3 3 3-3 3zM30 9l3-3 3 3-3 3z' fill='%23E3A83B'/%3E%3C/svg%3E") repeat-x center / 36px 18px,
    linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat;
  opacity: .9;
}

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

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--bg);
  transition: opacity .6s var(--ease-out), visibility .6s;
  animation: splashSafety .01s 3.5s forwards;
}
.splash-mark { width: 54px; height: 54px; color: var(--accent-hi); animation: spin 2.4s var(--ease-soft) infinite; }
.splash-word { font-family: var(--serif); font-style: italic; font-size: 1.6rem; letter-spacing: .02em; color: var(--cream-2); }
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .splash { display: none; }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(17, 12, 9, .9);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { background: rgba(17, 12, 9, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav-inner {
  height: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { width: 26px; height: 26px; color: var(--accent-hi); transition: transform .8s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-word { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; }

.nav-links {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.25rem var(--gutter) 2rem;
  background: rgba(17, 12, 9, .98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility .3s;
}
.nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
.nav-links a {
  padding: .8rem 0; font-family: var(--serif); font-size: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.nav-links a.is-active { color: var(--gold); }
.nav-links-phone { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold); }
.nav-links-phone svg { width: 22px; height: 22px; }
.nav-cta { margin-left: auto; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav.is-open .nav-toggle-bars { background: transparent; }
.nav.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease-soft) forwards;
}
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 12, 9, .7) 0%, rgba(17, 12, 9, .25) 30%, rgba(17, 12, 9, .55) 62%, rgba(17, 12, 9, .97) 100%),
    linear-gradient(90deg, rgba(17, 12, 9, .85) 0%, rgba(17, 12, 9, .35) 55%, rgba(17, 12, 9, .1) 100%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background:
    conic-gradient(from var(--mesh-angle) at 30% 70%, rgba(184, 52, 31, .45), rgba(227, 168, 59, .18), transparent 40%, rgba(184, 52, 31, .3) 70%, rgba(184, 52, 31, .45));
  filter: blur(80px);
  mix-blend-mode: soft-light;
  opacity: .9;
  animation: meshSpin 22s linear infinite;
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; }
.hero-meta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(17, 12, 9, .55); border: 1px solid var(--line-2);
  font-size: .85rem; color: var(--cream-2);
  margin-bottom: 1.6rem;
}
.hero-glyph { width: 40px; height: 40px; color: var(--accent-hi); margin-bottom: 1.2rem; opacity: .95; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 9vw, 7rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 13ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.hero-sub {
  margin-top: 1.4rem; max-width: 46ch;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--cream-2);
}
.hero-foot { margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.hero-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-size: 1rem; }
.hero-rating strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line-2);
  display: none;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold); animation: scrollCue 2s var(--ease-out) infinite;
}

/* --- Marquee --- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 1.05rem;
}
.marquee-track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  color: var(--cream-2); white-space: nowrap;
}
.marquee-track svg { width: 16px; height: 16px; color: var(--accent-hi); flex: none; }

/* --- La casa --- */
.concept-head { display: grid; gap: .4rem; }
.concept-head .lead { margin-top: 1.4rem; }
.pillars { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1rem; }
.pillar {
  padding: 1.8rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color .35s, transform .5s var(--ease-out);
}
.pillar:hover { border-color: rgba(227, 168, 59, .4); transform: translateY(-4px); }
.pillar-icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 1.2rem; }
.pillar h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: .6rem; }
.pillar p { color: var(--cream-2); }

.stats {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 1.6rem .5rem 0; display: flex; flex-direction: column-reverse; gap: .3rem; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1rem; }
.stat dt { font-size: .8rem; color: var(--cream-3); line-height: 1.35; }
.stat dd { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1; font-weight: 400; }
.stat dd small { font-size: .5em; color: var(--gold); margin-left: .15em; }

/* --- Showcase --- */
.showcase { background: var(--bg-2); padding-bottom: calc(var(--section-pad) - 1rem); }
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; }
.showcase-controls { display: none; gap: .6rem; }
.showcase-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(78vw, 330px);
  gap: 1.1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: .5rem var(--gutter) 2rem;
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
  overscroll-behavior-x: contain;
}
@media (min-width: 1240px) {
  .showcase-track {
    padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter));
    scroll-padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter));
  }
}
.showcase-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.showcase-track.is-dragging * { pointer-events: none; }
.dish {
  --rx: 0deg; --ry: 0deg; --hx: 50%; --hy: 50%;
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
  display: flex; flex-direction: column;
}
.dish::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--hx) var(--hy), rgba(227, 168, 59, .16), transparent 45%);
  transition: opacity .35s;
}
.dish.is-hover { box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(227, 168, 59, .35); }
.dish.is-hover::after { opacity: 1; }
.dish-media { aspect-ratio: 4 / 4.2; overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .6s; }
.dish:hover .dish-media img { transform: scale(1.06); filter: saturate(1.15); }
.dish-body { padding: 1.2rem 1.25rem 1.4rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
.dish-body .tag { justify-self: start; }
.dish-body h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.dish-body p { color: var(--cream-2); font-size: .95rem; line-height: 1.5; }
.dish-body .price { font-size: 1.3rem; margin-top: .2rem; }

/* --- Carta --- */
.menu-head { margin-bottom: 2.4rem; }
.menu-head .muted { margin-top: 1rem; }
.menu-tabs {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  padding-bottom: .4rem; margin-bottom: 2rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs [role="tab"] {
  flex: none; padding: .7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--cream-2);
  font-weight: 500; font-size: .95rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.menu-tabs [role="tab"]:hover { border-color: var(--gold); color: var(--cream); }
.menu-tabs [role="tab"][aria-selected="true"] { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.menu-panels { display: grid; gap: 3rem; }
[data-tabs-ready] .menu-panels { gap: 0; }
[data-tabs-ready] .menu-panel:not(.is-active) { display: none; }
[data-tabs-ready] .menu-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-panel.is-active { animation: fadeUp .5s var(--ease-out); }
.menu-panel-title { font-family: var(--serif); font-size: 1.8rem; font-style: italic; color: var(--gold); margin-bottom: 1rem; }
.menu-list { display: grid; column-gap: 3.5rem; }
.menu-item { padding: 1.25rem 0; border-bottom: 1px dashed var(--line-2); display: grid; gap: .35rem; }
.menu-item-head { display: flex; align-items: baseline; gap: 1rem; }
.menu-item-head h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.menu-item-head::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-.3em); }
.menu-item-head .price { order: 2; font-size: 1.2rem; }
.menu-item p { color: var(--cream-3); font-size: .95rem; }
.menu-item .tag { justify-self: start; margin-top: .25rem; }

/* --- Happy hour --- */
.happy { background: var(--bg-2); overflow: clip; }
.happy-halo {
  position: absolute; inset: -10% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(227, 168, 59, .22), transparent 60%);
  filter: blur(40px); pointer-events: none;
}
.happy-grid { position: relative; display: grid; gap: 2.8rem; align-items: center; }
.happy-figure { position: relative; border-radius: calc(var(--radius) + 8px); overflow: visible; max-width: 520px; }
.happy-figure img { border-radius: calc(var(--radius) + 8px); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.happy-badge {
  position: absolute; right: -10px; bottom: 24px;
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--accent); color: var(--cream);
  box-shadow: 0 18px 40px -14px rgba(184, 52, 31, .9);
  transform: rotate(-10deg);
  animation: bob 5s var(--ease-soft) infinite;
}
.happy-badge strong { font-family: var(--serif); font-size: 2.6rem; line-height: .9; font-weight: 600; }
.happy-badge span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.happy-copy .lead { margin-top: 1.3rem; }
.flavors { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 520px; }
.flavors li {
  display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--line);
  font-weight: 500;
}
.happy-drinks { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 520px; }
.happy-drinks figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.happy-drinks img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .8s var(--ease-out); }
.happy-drinks figure:hover img { transform: scale(1.06); }
.happy-drinks figcaption {
  position: absolute; left: .7rem; bottom: .7rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(17, 12, 9, .78);
}

/* --- Opiniones --- */
.reviews-grid { display: grid; gap: 2.8rem; }
.score { display: flex; align-items: center; gap: 1.2rem; margin: 1.8rem 0 1.8rem; }
.score-num { font-family: var(--serif); font-size: clamp(4.5rem, 12vw, 7rem); line-height: .85; font-weight: 300; color: var(--gold); }
.score .stars { font-size: 1.3rem; }
.highlights { display: grid; gap: 1rem; }
.highlight {
  padding: 1.6rem 1.6rem 1.7rem; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-3), var(--bg));
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; row-gap: .4rem;
}
.highlight-num { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--accent-hi); font-size: 1.4rem; line-height: 1.2; }
.highlight h3 { font-family: var(--serif); font-size: 1.45rem; }
.highlight p { color: var(--cream-2); }

/* --- Reservas --- */
.reserve-grid { display: grid; gap: 2.8rem; align-items: start; }
.reserve-copy .lead { margin-top: 1.3rem; }
.contact-list { margin-top: 2rem; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; font-size: 1.05rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-list a { border-bottom: 1px solid var(--line-2); transition: border-color .25s, color .25s; word-break: break-word; }
.contact-list a:hover { color: var(--gold); border-color: var(--gold); }
.reserve-form {
  padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: calc(var(--radius) + 4px);
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; gap: 1.1rem;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.field { display: grid; gap: .45rem; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--cream-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream-3) 50%), linear-gradient(-45deg, transparent 50%, var(--cream-3) 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input::-webkit-calendar-picker-indicator { filter: invert(.85); cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: rgba(167, 150, 128, .75); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--accent-hi); }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--cream-2); text-align: center; }
.form-status.is-ok { color: #8BE0A4; }
.form-status.is-error { color: var(--accent-hi); }

/* --- Ubicación --- */
.location { background: var(--bg-2); }
.location-head { margin-bottom: 2.4rem; }
.location-grid { display: grid; gap: 1.2rem; }
.map {
  position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  border: 1px solid var(--line); min-height: 340px; background: var(--bg-3);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(90%) hue-rotate(180deg) saturate(.75) brightness(.95) contrast(.95);
}
.location-card {
  padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: calc(var(--radius) + 4px);
  background: var(--bg-3); border: 1px solid var(--line);
  display: grid; gap: 1.5rem; align-content: start;
}
.info-block { display: grid; grid-template-columns: 26px 1fr; gap: 1rem; }
.info-block > svg { width: 24px; height: 24px; color: var(--gold); margin-top: .15rem; }
.info-block h3 { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); margin-bottom: .4rem; }
.info-block p { font-size: 1.08rem; }
.info-block a { border-bottom: 1px solid var(--line-2); }
.info-block a:hover { color: var(--gold); border-color: var(--gold); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; font-size: 1rem; }
.hours li span:first-child { color: var(--cream-2); }
.hours li.is-today { color: var(--gold); }
.hours li.is-today span:first-child { color: var(--gold); font-weight: 600; }
.hours li.is-today span:first-child::after { content: " · hoy"; font-weight: 400; }
.location-actions { display: grid; gap: .7rem; padding-top: .4rem; }

/* --- Footer --- */
.footer { background: var(--bg); padding-bottom: 2rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.5rem 2.5rem; }
.footer-brand p { margin-top: 1rem; color: var(--cream-3); max-width: 34ch; }
.footer-title { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.footer-grid p { color: var(--cream-2); }
.footer-grid p + p { margin-top: .35rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--cream-3);
}
.footer-credits a { color: var(--cream-2); border-bottom: 1px solid var(--line-2); }
.footer-credits a:hover { color: var(--gold); }

/* --- Barra de acciones móvil --- */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
  background: rgba(17, 12, 9, .94); border-top: 1px solid var(--line);
  gap: .4rem;
}
@supports (backdrop-filter: blur(12px)) {
  .action-bar { background: rgba(17, 12, 9, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  padding: .45rem .2rem; border-radius: 12px; font-size: .74rem; font-weight: 600; color: var(--cream-2);
}
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a.is-wa { color: var(--wa); }
.action-bar a:active { background: var(--bg-3); }
body { padding-bottom: 72px; }

/* --- Chatbot --- */
.chat { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 120; }
.chat-launcher {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--cream);
  box-shadow: 0 16px 36px -10px rgba(184, 52, 31, .85), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .4s var(--ease-out), background-color .25s;
}
.chat-launcher::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(238, 106, 78, .55);
  animation: ring 2.8s var(--ease-out) infinite;
}
.chat-launcher:hover { transform: scale(1.06) rotate(-4deg); background: #C93D26; }
.chat-launcher svg { grid-area: 1 / 1; width: 28px; height: 28px; transition: transform .45s var(--ease-out), opacity .25s; }
.chat-launcher-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat.is-open .chat-launcher-icon { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat.is-open .chat-launcher-close { opacity: 1; transform: none; }
.chat.is-open .chat-launcher::before { animation: none; opacity: 0; }
.chat.is-open .chat-launcher { visibility: hidden; }

.chat-hint {
  position: absolute; right: 70px; bottom: 8px; width: max-content; max-width: 220px;
  padding: .7rem .95rem; border-radius: 14px 14px 4px 14px;
  background: var(--cream); color: var(--bg); font-size: .88rem; line-height: 1.35;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .7);
  animation: hintIn .6s var(--ease-out);
}
.chat-hint strong { font-weight: 600; }

.chat-panel {
  position: fixed; z-index: 121;
  inset: auto 0 0 0; height: min(86svh, 640px);
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .8);
  animation: panelIn .45s var(--ease-out);
  overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1rem 1rem 1.1rem;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: rgba(17, 12, 9, .3);
}
.chat-avatar svg { width: 22px; height: 22px; color: var(--gold); }
.chat-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.1; }
.chat-sub { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: rgba(244, 235, 220, .85); }
.chat-close { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.chat-close:hover { background: rgba(17, 12, 9, .25); }
.chat-close svg { width: 20px; height: 20px; }

.chat-log {
  flex: 1; overflow-y: auto; padding: 1.1rem 1rem .6rem;
  display: flex; flex-direction: column; gap: .6rem;
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
  overscroll-behavior: contain;
}
.msg {
  max-width: 86%; padding: .7rem .95rem; border-radius: 16px;
  font-size: .94rem; line-height: 1.5;
  animation: msgIn .35s var(--ease-out);
  overflow-wrap: anywhere;
}
.msg-bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg-user { align-self: flex-end; background: var(--cream); color: var(--bg); border-bottom-right-radius: 5px; font-weight: 500; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: .45rem; }
.msg ul { display: grid; gap: .2rem; }
.msg ul li { padding-left: 1rem; position: relative; }
.msg ul li::before { content: "·"; position: absolute; left: .3rem; color: var(--gold); font-weight: 700; }
.msg strong { color: var(--gold); font-weight: 600; }
.msg a:not(.msg-btn) { color: var(--gold); border-bottom: 1px solid rgba(227, 168, 59, .4); }
.msg-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.msg-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--accent); color: var(--cream);
}
.msg-btn svg { width: 16px; height: 16px; }
.msg-btn.is-wa { background: var(--wa); color: var(--wa-ink); }
.msg-btn.is-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--cream); }
.msg-btn:hover { filter: brightness(1.08); }
.typing { display: inline-flex; gap: 4px; padding: .9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cream-3); animation: typing 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.chat-chips {
  display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none;
  padding: .3rem 1rem .7rem;
}
.chat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: .48rem .85rem; border-radius: 999px;
  border: 1px solid rgba(227, 168, 59, .45); color: var(--gold);
  font-size: .84rem; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.chip:hover { background: var(--gold); color: var(--bg); }
.chat-form {
  display: flex; gap: .5rem; padding: .7rem .8rem calc(.8rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg-2);
}
.chat-form input {
  flex: 1; min-width: 0; min-height: 46px; padding: .7rem 1rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3);
}
.chat-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.chat-form button {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--accent); color: var(--cream);
}
.chat-form button svg { width: 20px; height: 20px; }

/* --- Página de créditos --- */
.page-credits { padding-bottom: 0; }
.credits { padding-block: 3rem 5rem; max-width: 860px; }
.credits-back { display: inline-block; margin-bottom: 2.5rem; color: var(--gold); border-bottom: 1px solid rgba(227, 168, 59, .4); }
.credits .lead { margin-top: 1.2rem; }
.credits-list { margin-top: 2.5rem; display: grid; gap: .2rem; }
.credits-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--cream-2); }
.credits-list strong { color: var(--cream); font-weight: 600; }
.credits-list a { color: var(--gold); }

/* =============================================================
   7. Effects
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
/* Red de seguridad: si el JS no llega a arrancar, todo aparece a los 4 s */
.js:not(.is-ready) .reveal { animation: revealSafety .01s 4s forwards; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes revealSafety { to { opacity: 1; transform: none; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 212, 124, .55); } 70% { box-shadow: 0 0 0 9px rgba(91, 212, 124, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 212, 124, 0); } }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes bob { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 80%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes hintIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .chat-panel {
    inset: auto 16px calc(96px + env(safe-area-inset-bottom)) auto;
    width: 380px; height: min(600px, calc(100svh - 190px));
    border-bottom: 1px solid var(--line-2); border-radius: 22px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85);
  }
  .chat-form { padding-bottom: .8rem; }
  .chat.is-open .chat-launcher { visibility: visible; }
  .location-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .chat { right: 24px; bottom: 24px; }
  .chat-panel { right: 24px; bottom: 98px; height: min(600px, calc(100svh - 140px)); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .showcase-controls { display: flex; }
  .hero-scroll { display: block; }
  .hero-foot { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .hero-actions { justify-content: flex-end; }
  .highlights { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1.35fr 1fr; }
  .map { min-height: 100%; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .stat { padding-inline: 1.5rem; }
  .stat + .stat { padding-left: 1.5rem; }
}

@media (min-width: 960px) {
  .nav-links {
    position: static; flex-direction: row; align-items: center; gap: 1.8rem;
    padding: 0; background: none; border: 0; margin-left: auto;
    transform: none; opacity: 1; visibility: visible;
  }
  .nav-links a {
    position: relative; padding: .4rem 0; border: 0;
    font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--cream-2);
    transition: color .25s;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
    background: var(--gold); transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease-out);
  }
  .nav-links a:hover, .nav-links a.is-active { color: var(--cream); }
  .nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav-links-phone { display: none !important; }
  .nav-cta { margin-left: .5rem; }
  .nav-toggle { display: none; }

  .concept-head { grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: end; }
  .concept-head .kicker { grid-column: 1 / -1; justify-self: start; }
  .concept-head .lead { margin-top: 0; }
  .menu-list { grid-template-columns: 1fr 1fr; }
  [data-tabs-ready] .menu-tabs { justify-content: flex-start; }
  .happy-grid { grid-template-columns: 1fr 1.05fr; gap: 5rem; }
  .reviews-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
  .reserve-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .showcase-track { grid-auto-columns: 340px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 7.4rem; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; transform: none; }
  .splash-mark { animation: none; }
  .happy-badge { animation: none; }
  .chat-launcher::before { animation: none; opacity: 0; }
}
