/* ==========================================================================
   KañaViva · «La noche sabe a Cali» (versión 3, método MotionSites)
   Cine nocturno: vídeo real a sangre, cristal, una sola grotesca (Geist)
   con tracking cerrado y un único acento (mango). Fondo = borde del vídeo.
   ========================================================================== */

html, body { background: #09090A; }

:root {
  --bg: #09090A;
  --fg: #F2F2EE;
  --fg-80: rgba(242, 242, 238, .8);
  --fg-60: rgba(242, 242, 238, .6);
  --fg-15: rgba(242, 242, 238, .15);
  --mango: #F2A41D;
  --f: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(18px, 4vw, 64px);
  --wide: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { font-family: var(--f); font-size: clamp(1rem, .97rem + .15vw, 1.08rem); line-height: 1.55; color: var(--fg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mango); color: var(--bg); }
:focus-visible { outline: 2px solid var(--mango); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); transition: transform 200ms var(--ease-out); }
.skip:focus { transform: translateY(72px); }
/* Grano: une vídeo, foto e interfaz */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Material único: cristal ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), rgba(20, 20, 22, .35);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 50px rgba(0, 0, 0, .35);
}
@media (prefers-reduced-transparency: reduce) { .glass { background: rgba(28, 28, 30, .96); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Píldoras ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 24px; border-radius: 999px; font-weight: 500; font-size: .98rem; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.pill--glass { padding: 0 24px; color: var(--fg); }
.pill--light { background: var(--fg); color: var(--bg); }
.pill--sm { height: 44px; padding-left: 18px; font-size: .92rem; }
.pill--sm:not(:has(.pill__dot)) { padding-right: 18px; }
.pill__dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--fg); transition: transform 260ms var(--ease-out); }
.pill--sm .pill__dot { width: 32px; height: 32px; }
.pill__dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .pill--light:hover { background: var(--mango); }
  .pill:hover .pill__dot { transform: rotate(-45deg); }
  .pill--glass:hover { background-color: rgba(255, 255, 255, .14); }
}

/* ---------- Nav ---------- */
.nav { position: fixed; z-index: 60; top: 16px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 22px; height: 60px; padding: 0 6px 0 6px; border-radius: 999px; }
.nav__brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #000; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: .92rem; text-decoration: none; color: var(--fg-80); transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--fg); background: rgba(255, 255, 255, .08); } }

/* ---------- Portada ---------- */
.hero { position: relative; height: 100dvh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))) clamp(40px, 7vh, 80px); }
/* A sangre: ocupa todo el hero; la escala oculta el borde que deja el desenfoque */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(1.25) brightness(.6) blur(3px); }
/* El vídeo de origen es pequeño (360 px): en pantallas grandes, más desenfoque = atmósfera, no píxeles */
@media (min-width: 1600px) { .hero__video { filter: saturate(1.3) brightness(.55) blur(7px); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 10, .55) 0%, rgba(9, 9, 10, 0) 30%, rgba(9, 9, 10, .25) 60%, var(--bg) 100%), radial-gradient(80% 60% at 20% 90%, rgba(9, 9, 10, .7), transparent 70%); }
.hero__content { position: relative; z-index: 2; max-width: 980px; }
.hero__title { font-weight: 500; font-size: clamp(3.2rem, 1rem + 7.4vw, 9.4rem); line-height: .95; letter-spacing: -.055em; }
.hero__title .accent { color: var(--mango); white-space: nowrap; }
.hero__lead { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--fg-80); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.now { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); bottom: clamp(40px, 7vh, 80px); display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 22px; }
.now__video { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.now__text { display: grid; gap: 2px; }
.now__text span { font-size: .78rem; color: var(--fg-60); letter-spacing: .02em; }
.now__text b { font-weight: 500; font-size: 1.05rem; }
.now__text em { font-style: normal; color: var(--mango); font-weight: 600; }

/* ---------- Escena fijada ---------- */
.stage__frame { position: relative; height: 100dvh; min-height: 600px; overflow: hidden; }
.scene { position: absolute; inset: 0; margin: 0; }
.scene img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(.8); }
.stage__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 9, 10, .85) 0%, rgba(9, 9, 10, .4) 45%, rgba(9, 9, 10, .1) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 25%, transparent 80%, rgba(9, 9, 10, .6) 100%); }
.stage__copy { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); top: 50%; translate: 0 -50%; width: min(560px, 80vw); }
.caption { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 100%; }
.caption span { font-size: .9rem; color: var(--mango); font-weight: 500; }
.caption h2 { margin-top: .6rem; font-weight: 500; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5.2rem); line-height: .98; letter-spacing: -.045em; }
.caption p { margin-top: 1rem; color: var(--fg-80); font-weight: 300; font-size: 1.12rem; max-width: 30rem; }
.stage__index { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.stage__index li { width: 3px; height: 34px; border-radius: 3px; background: var(--fg-15); transition: background-color 300ms ease; }
.stage__index li.is-on { background: var(--mango); }
/* Sin motion: escenas apiladas, cada una con su texto */
html:not(.motion-on) .stage__frame { height: auto; display: grid; gap: 2px; }
html:not(.motion-on) .scene, html:not(.motion-on) .caption, html:not(.motion-on) .stage__copy { position: relative; inset: auto; translate: none; top: auto; left: auto; }
html:not(.motion-on) .scene { height: 60vh; }
html:not(.motion-on) .stage__copy { width: auto; padding: 40px var(--gutter); display: grid; gap: 48px; }
html:not(.motion-on) .stage__shade, html:not(.motion-on) .stage__index { display: none; }

/* ---------- Filas de producto (ligadas al scroll, en sentidos opuestos) ---------- */
.rows { padding: clamp(80px, 10vw, 140px) 0; overflow: clip; display: grid; gap: 18px; }
.row { display: flex; gap: 18px; width: max-content; will-change: transform; }
.row img { width: clamp(220px, 22vw, 360px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.rows__word { white-space: nowrap; width: max-content; font-weight: 500; font-size: clamp(3rem, 1.4rem + 6vw, 8.4rem); letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--fg-60); will-change: transform; }

/* ---------- Casas ---------- */
.houses, .menu { padding: clamp(80px, 10vw, 150px) max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); }
.section-title { font-weight: 500; font-size: clamp(2.6rem, 1.4rem + 4.8vw, 6.6rem); line-height: .96; letter-spacing: -.05em; max-width: 14ch; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 64px); }
.card { position: relative; overflow: hidden; border-radius: 26px; isolation: isolate; min-height: 520px; display: flex; align-items: flex-end; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease-out); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(9, 9, 10, .88) 100%); }
.card__body { padding: 24px; display: grid; gap: 6px; justify-items: start; }
.card__body span { font-size: .85rem; color: var(--mango); font-weight: 500; }
.card h3 { font-weight: 500; font-size: 2rem; letter-spacing: -.04em; line-height: 1; }
.card p { color: var(--fg-80); font-weight: 300; margin-bottom: 10px; }
@media (hover: hover) and (pointer: fine) { .card:hover img { transform: scale(1.05); } }
.hours { margin-top: 28px; color: var(--fg-60); font-size: .95rem; max-width: 70ch; }
.hours em { font-style: normal; color: var(--fg-60); }

/* ---------- Carta ---------- */
.menu__panel { margin-top: clamp(36px, 5vw, 64px); padding: clamp(18px, 3vw, 40px); border-radius: 30px; }
.menu__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--fg-60); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: color 220ms ease; }
.tab[aria-selected="true"] { color: var(--bg); }
.tab:active { transform: scale(.97); }
.tabs__pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: 0; border-radius: 999px; background: var(--fg); transition: transform 320ms var(--ease-out), width 320ms var(--ease-out); }
.search input { width: min(300px, 100%); height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .08); color: var(--fg); font: inherit; box-shadow: inset 0 0 0 1px var(--fg-15); }
.search input::placeholder { color: var(--fg-60); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--mango); }
.menu__body { columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); }
.menu__body.is-single { columns: auto; }
.menu__body.is-single .mblock > ul { columns: 2 300px; column-gap: clamp(32px, 5vw, 72px); }
.mblock { break-inside: avoid; margin-bottom: 2.2rem; }
.mblock__title { font-weight: 500; font-size: 1.7rem; letter-spacing: -.035em; }
.mblock__lead { color: var(--fg-60); font-weight: 300; }
.mitem { padding: .6rem 0; border-top: 1px solid var(--fg-15); break-inside: avoid; }
.mitem__row { display: flex; align-items: baseline; gap: 12px; }
.mitem__name { flex: 1; font-weight: 500; }
.mitem__price { color: var(--mango); font-weight: 600; font-variant-numeric: tabular-nums; }
.mitem__desc { color: var(--fg-60); font-weight: 300; font-size: .92rem; }
.mitem mark { background: var(--mango); color: var(--bg); }
.mextras { margin-top: .6rem; color: var(--fg-80); font-size: .92rem; }
.mextras li { display: flex; justify-content: space-between; }
.menu__note { margin-top: 1rem; color: var(--fg-60); font-size: .88rem; }

/* ---------- Footer ---------- */
.footer { padding: clamp(80px, 10vw, 150px) max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))) 60px; }
.footer__line { font-weight: 500; font-size: clamp(2.2rem, 1.2rem + 4vw, 5.6rem); line-height: 1; letter-spacing: -.05em; max-width: 18ch; }
.footer__row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--fg-15); color: var(--fg-60); font-size: .92rem; }
.footer__row a { color: var(--fg); text-decoration: none; }

/* ---------- Entradas (desenfoque) ---------- */
html.motion-on [data-blur-in] { opacity: 0; }
html.motion-on [data-blur-words] { visibility: hidden; }
.w { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { gap: 10px; }
  .nav__links { display: none; }
  .now { display: none; }
  .cards { grid-template-columns: repeat(3, 82vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; min-height: 440px; }
  .stage__index { display: none; }
  .stage__shade { background: linear-gradient(0deg, rgba(9, 9, 10, .92) 0%, rgba(9, 9, 10, .5) 50%, rgba(9, 9, 10, .2) 100%); }
  .stage__copy { top: auto; bottom: 48px; translate: none; width: auto; right: var(--gutter); }
  .caption { top: auto; bottom: 0; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .hero__video, .now__video { display: none; }
  .hero { background: url("img/disco-pista.webp") center / cover; }
}
