@font-face { font-family: "Chango"; src: url("../assets/fonts/chango.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --noche: #0b0908;
  --carbon: #15100d;
  --papel: #f3ece0;
  --brasa: #ff5a1f;
  --maiz: #f2c14e;
  --salsa: #d8261c;
  --tenue: rgba(243, 236, 224, .62);
  --linea: rgba(243, 236, 224, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--noche); -webkit-text-size-adjust: 100%; }
body { font-family: "Figtree", system-ui, sans-serif; color: var(--papel); background: var(--noche); line-height: 1.5; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; color: var(--brasa); }
h1, h2 { font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.mascara { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.pal { display: inline-block; }
::selection { background: var(--brasa); color: var(--noche); }

.saltar { position: fixed; left: 16px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--papel); color: var(--noche); border-radius: 8px; text-decoration: none; }
.saltar:focus-visible { top: 16px; }
:focus-visible { outline: 2px solid var(--brasa); outline-offset: 3px; }
.menu :focus-visible { outline-color: var(--noche); }

/* ---------- carga ---------- */
.carga { display: none; }
.mov .carga { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--noche); }
.carga-marca { font-family: "Chango", sans-serif; font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; }
.carga-barra { width: 200px; height: 2px; background: var(--linea); overflow: hidden; }
.carga-barra i { display: block; height: 100%; background: var(--brasa); transform: scaleX(0); transform-origin: left; }
.carga-num { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--tenue); }

/* ---------- barra ---------- */
.barra { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 40px); }
.marca-abierto { text-decoration: none; font-family: "Bricolage", sans-serif; font-size: 20px; letter-spacing: -.02em; }
.marca-abierto i { font-style: normal; color: var(--brasa); }
.marca-taco { font-family: "Chango", sans-serif; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); }
.pildora { text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border: 1px solid rgba(243, 236, 224, .32); border-radius: 999px; background: rgba(11, 9, 8, .35); transition: background-color .2s ease, color .2s ease, transform .16s ease-out; }
.pildora:active, .boton:active, .sonido:active { transform: scale(.97); }
.barra-der { display: flex; align-items: center; gap: 8px; }
.sonido { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: inherit; cursor: pointer; padding: 9px 14px; border: 1px solid rgba(243, 236, 224, .32); border-radius: 999px; background: rgba(11, 9, 8, .35); transition: background-color .2s ease, color .2s ease, border-color .3s ease, transform .16s ease-out; }
.sonido[hidden] { display: none; }
.sonido-ico { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sonido-ico i { width: 2px; height: 4px; background: currentColor; transform-origin: bottom; }
.sonido-ico i:nth-child(2) { height: 8px; }
.sonido-ico i:nth-child(3) { height: 6px; }
.sonido[aria-pressed="true"] { background: var(--brasa); border-color: var(--brasa); color: var(--noche); }
.sonido[aria-pressed="true"] .sonido-ico i { animation: barra-son .9s ease-in-out infinite alternate; }
.sonido[aria-pressed="true"] .sonido-ico i:nth-child(2) { animation-delay: -.3s; }
.sonido[aria-pressed="true"] .sonido-ico i:nth-child(3) { animation-delay: -.6s; }
@keyframes barra-son { from { transform: scaleY(.4); } to { transform: scaleY(1.4); } }
@media (hover: hover) and (pointer: fine) { .sonido:hover { border-color: var(--brasa); } }
.amarillo .sonido { border-color: rgba(11, 9, 8, .4); background: transparent; }
@media (max-width: 760px) { .sonido-txt { display: none; } .sonido { padding: 10px 12px; } }
@media (hover: hover) and (pointer: fine) { .pildora:hover { background: var(--papel); color: var(--noche); } }
.amarillo .barra { color: var(--noche); }
.amarillo .pildora { border-color: rgba(11, 9, 8, .4); background: transparent; }
.amarillo .marca-taco { color: rgba(11, 9, 8, .6); }
.barra, .pildora, .marca-taco { transition: color .3s ease, border-color .3s ease, background-color .2s ease; }

.grano { position: fixed; inset: -50%; z-index: 45; pointer-events: none; background: url("img/grano.webp"); opacity: .07; }
.mov .grano { animation: grano 1s steps(4) infinite; }
@keyframes grano { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }

/* ---------- 1. secuencia ---------- */
.secuencia { position: relative; }
.escena { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--noche); }
.mov .secuencia { height: 640vh; }
.mov .escena { position: sticky; top: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.lienzo, .brasas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sombra { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(11, 9, 8, .82) 0%, rgba(11, 9, 8, .35) 34%, rgba(11, 9, 8, 0) 55%),
  linear-gradient(0deg, rgba(11, 9, 8, .7) 0%, rgba(11, 9, 8, 0) 26%),
  linear-gradient(180deg, rgba(11, 9, 8, .55) 0%, rgba(11, 9, 8, 0) 18%); }

.hud { display: none; }
.mov .hud { display: block; position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--tenue); }
.esq { position: absolute; width: 18px; height: 18px; border-color: rgba(243, 236, 224, .45); border-style: solid; border-width: 0; }
.e1 { left: 20px; top: 72px; border-left-width: 1px; border-top-width: 1px; }
.e2 { right: 20px; top: 72px; border-right-width: 1px; border-top-width: 1px; }
.e3 { left: 20px; bottom: 20px; border-left-width: 1px; border-bottom-width: 1px; }
.e4 { right: 20px; bottom: 20px; border-right-width: 1px; border-bottom-width: 1px; }
.hud-rec { position: absolute; right: 48px; top: 80px; display: flex; align-items: center; gap: 8px; }
.hud-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--salsa); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.hud-cuadro { position: absolute; left: 48px; bottom: 32px; }
.hud-n, .hud-tc { color: var(--papel); font-variant-numeric: tabular-nums; }
.regla { position: absolute; left: 50%; bottom: 38px; width: min(560px, 46vw); height: 10px; translate: -50% 0;
  background: repeating-linear-gradient(90deg, rgba(243, 236, 224, .35) 0 1px, transparent 1px 14px); }
.regla-marca { position: absolute; left: 0; top: -6px; width: 2px; height: 22px; background: var(--brasa); }
.hud-caps { position: absolute; left: 50%; bottom: 58px; width: min(560px, 46vw); translate: -50% 0; display: flex; justify-content: space-between; list-style: none; }
.hud-caps li { transition: color .3s ease; }
.hud-caps li.activo { color: var(--brasa); }

.capas { position: absolute; inset: 0; pointer-events: none; }
.cap { position: absolute; left: clamp(16px, 6vw, 96px); top: 50%; width: min(540px, 40vw); translate: 0 -50%; }
.cap a { pointer-events: auto; }
.cap .mono { margin-bottom: 18px; }
.titulo { font-family: "Chango", sans-serif; text-transform: uppercase; font-size: clamp(74px, 12.5vw, 200px); line-height: .86; letter-spacing: -.01em; }
.titulo span { display: block; }
.titulo span + span { color: var(--brasa); }
.bajada { margin-top: 24px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--tenue); }
.cta-carta { margin-top: 30px; }
.cap h2 { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(40px, 4.6vw, 78px); line-height: .95; letter-spacing: -.035em; }
.cap h2 + p { margin-top: 20px; max-width: 36ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--tenue); }
.cap-num { position: absolute; left: -.06em; top: -.62em; z-index: -1; font-family: "Chango", sans-serif; font-size: clamp(160px, 22vw, 360px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(243, 236, 224, .14); }
html:not(.mov) .cap-1, html:not(.mov) .cap-2, html:not(.mov) .cap-3 { display: none; }
.mov .cap-1, .mov .cap-2, .mov .cap-3 { opacity: 0; }
.pasos-texto { padding: 48px clamp(16px, 6vw, 96px); display: grid; gap: 10px; list-style: none; color: var(--tenue); }
.pasos-texto b { color: var(--papel); }
.mov .pasos-texto { display: none; }

/* ---------- 2. manifiesto ---------- */
/* esquinas: 24px para hojas y fotos, píldora para todo lo que se toca */
.manifiesto { position: relative; z-index: 2; background: var(--carbon); padding: clamp(110px, 18vh, 200px) clamp(16px, 6vw, 96px); border-radius: 24px 24px 0 0; }
.mov .manifiesto { margin-top: -24px; }
.manifiesto-texto { max-width: 18ch; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(40px, 6.4vw, 108px); line-height: .98; letter-spacing: -.04em; }
.mov .manifiesto-texto .pal { opacity: .14; }

/* ---------- 3. menú ---------- */
.menu { position: relative; z-index: 2; background: var(--maiz); color: var(--noche); padding: 0 0 clamp(90px, 14vh, 160px); overflow: clip; }
.menu .mono { color: rgba(11, 9, 8, .62); }
.cinta { padding: clamp(28px, 5vh, 56px) 0 clamp(20px, 4vh, 40px); border-bottom: 1px solid rgba(11, 9, 8, .2); }
.cinta-txt { font-family: "Chango", sans-serif; font-size: clamp(64px, 11vw, 190px); line-height: 1; text-transform: uppercase; white-space: nowrap; will-change: transform; word-spacing: .25em; }
.cinta-txt .hueco { color: transparent; -webkit-text-stroke: 2px var(--noche); }
.menu-cuerpo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 110px); padding: clamp(60px, 10vh, 110px) clamp(16px, 6vw, 96px) 0; align-items: start; }
.menu-lista h2 { margin: 0 0 44px; font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(44px, 5.6vw, 92px); line-height: .94; letter-spacing: -.04em; }
/* dos grupos con una sola línea arriba de cada uno, sin línea por fila */
.grupo + .grupo { margin-top: 40px; }
.grupo-t { padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--noche); font-family: "Figtree", sans-serif; font-weight: 700; font-size: 15px; }
.platos { list-style: none; }
.platos li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; padding: 12px 12px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.plato-n { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(24px, 2.3vw, 36px); letter-spacing: -.03em; text-transform: uppercase; }
.plato-d { font-size: 14px; color: rgba(11, 9, 8, .62); transition: color .2s ease; }
.plato-p { font-family: "Chango", sans-serif; font-size: clamp(22px, 2vw, 30px); }
@media (hover: hover) and (pointer: fine) {
  .platos li:hover { background: var(--noche); color: var(--maiz); }
  .platos li:hover .plato-d { color: rgba(242, 193, 78, .7); }
}
.menu-nota { margin-top: 18px; font-size: 13px; color: rgba(11, 9, 8, .6); }
.menu-foto { position: sticky; top: 14vh; }
.menu-marco { overflow: hidden; border-radius: 24px; aspect-ratio: 4 / 5; background: var(--noche); }
.menu-marco img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 50%; will-change: transform; }
.menu-foto figcaption { margin-top: 14px; }

/* ---------- 4. trompo ---------- */
.trompo { position: relative; z-index: 2; min-height: 135vh; display: grid; place-content: center; text-align: center; overflow: hidden; background: var(--noche); }
.trompo-foto { position: absolute; inset: -14% 0; }
.trompo-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .5; will-change: transform; }
.trompo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11, 9, 8, .25), rgba(11, 9, 8, .9) 75%); }
.trompo-texto { position: relative; z-index: 1; padding: 0 16px; }
.trompo h2 { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .3em; font-family: "Chango", sans-serif; font-size: clamp(64px, 13vw, 220px); line-height: .9; text-transform: uppercase; }
.h-flecha { color: var(--brasa); }
.trompo-bajada { margin-top: 26px; font-size: clamp(16px, 1.4vw, 20px); color: var(--tenue); }

/* ---------- 5. visita ---------- */
.visita { position: relative; z-index: 2; background: var(--carbon); padding: clamp(100px, 16vh, 180px) clamp(16px, 6vw, 96px); }
.visita h2 { font-family: "Bricolage", sans-serif; font-weight: 800; font-size: clamp(44px, 7vw, 120px); line-height: .94; letter-spacing: -.04em; max-width: 12ch; }
/* asimétrico: "Dónde" manda, cuándo y cómo se apilan a su lado */
.fichas { margin-top: clamp(50px, 8vh, 90px); display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 36px clamp(32px, 6vw, 96px); }
.ficha { color: var(--tenue); }
.ficha-donde { grid-row: span 2; border-left: 2px solid var(--brasa); padding-left: clamp(18px, 2vw, 28px); align-self: start; }
.ficha-donde .ficha-g { font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -.035em; }
.ficha-l { font-size: 14px; font-weight: 600; color: var(--brasa); }
.ficha-g { margin: 10px 0 6px; font-family: "Bricolage", sans-serif; font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; color: var(--papel); }

/* ---------- pie ---------- */
.pie { position: relative; z-index: 2; background: var(--noche); min-height: 100vh; min-height: 100svh; display: grid; align-content: space-between; gap: 48px; padding: clamp(90px, 14vh, 150px) clamp(16px, 6vw, 96px) 28px; }
.letrero { font-family: "Chango", sans-serif; font-size: clamp(44px, 8.4vw, 160px); line-height: .9; text-transform: uppercase; white-space: nowrap; }
.letrero span { color: #2b211c; transition: color .5s ease, text-shadow .5s ease; }
.letrero span.luz { color: var(--brasa); text-shadow: 0 0 22px rgba(255, 90, 31, .55), 0 0 70px rgba(255, 90, 31, .3); }
.letrero span.luz:nth-child(-n+4) { color: var(--papel); text-shadow: 0 0 22px rgba(243, 236, 224, .35); }
html:not(.mov) .letrero span { color: var(--brasa); }
.abierto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--linea); padding-top: 28px; }
.abierto p { font-size: clamp(17px, 1.5vw, 22px); max-width: 40ch; }
.boton { display: inline-block; text-decoration: none; font-weight: 700; padding: 15px 24px; border-radius: 999px; background: var(--brasa); color: var(--noche); transition: transform .16s ease-out, background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .boton:hover { background: var(--papel); } }
.letra-chica { font-size: 12px; color: rgba(243, 236, 224, .45); }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .marca-taco { display: none; }
  .sombra { background:
    linear-gradient(0deg, rgba(11, 9, 8, .95) 0%, rgba(11, 9, 8, .6) 30%, rgba(11, 9, 8, 0) 52%),
    linear-gradient(180deg, rgba(11, 9, 8, .7) 0%, rgba(11, 9, 8, 0) 22%); }
  .cap { left: 16px; right: 16px; width: auto; top: auto; bottom: 108px; translate: none; }
  .cap-0 { bottom: 96px; }
  .cap-num { top: -.75em; font-size: 150px; }
  .bajada { margin-top: 16px; }
  .cta-carta { margin-top: 20px; }
  .fichas { grid-template-columns: 1fr; }
  .ficha-donde { grid-row: auto; }
  .regla, .hud-caps { width: calc(100% - 96px); }
  .hud-caps { bottom: 54px; font-size: 10px; }
  .hud-cuadro { display: none; }
  .regla { bottom: 34px; }
  .menu-cuerpo { grid-template-columns: 1fr; }
  .menu-foto { position: relative; top: 0; }
  .menu-marco { aspect-ratio: 4 / 3; }
  .platos li { grid-template-columns: 1fr auto; padding: 16px 4px; }
  .plato-d { grid-column: 1 / -1; grid-row: 2; margin-top: -8px; }
  .fichas { grid-template-columns: 1fr; }
  .letrero { font-size: 19vw; white-space: normal; }
}
