/* =========================================================
   AM:PM — Café de especialidad, Rosario
   Sistema: rojo de marca + hormigón + tinta. Archivo (ancha
   itálica para la marca, condensada para titulares) + mono.
   ========================================================= */

:root {
  --red: #E3161B;
  --red-deep: #8F0B0E;
  --ink: #0F0E0D;
  --ink-2: #1A1715;
  --bone: #F2EEE7;
  --concrete: #D6D2CB;
  --concrete-2: #C4BFB7;
  --steel: #8E8B86;
  --coffee: #5B3A2B;
  --caramel: #C27C3E;
  --matcha: #8DB04A;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --nav-h: 64px;
  --top-h: 30px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading, html.is-loading body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 420;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--bone); }

/* ---------- tipografía ---------- */
.wm {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: .9;
}
.cond {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -0.005em;
}
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label { margin: 0 0 24px; display: flex; gap: 10px; align-items: center; opacity: .8; }
.label span { color: var(--red); }

.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--bone); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .4s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn:hover { --bg: var(--red); --bd: var(--red); --fg: var(--bone); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.btn--bone { --bg: var(--bone); --fg: var(--ink); --bd: var(--bone); }
.btn--bone:hover { --bg: var(--ink); --bd: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; }
.btn--red { --bg: var(--red); --bd: var(--red); --fg: var(--bone); }
.btn--red:hover { --bg: var(--bone); --bd: var(--bone); --fg: var(--ink); }
.btn--nav { min-height: 38px; padding: 0 16px; font-size: 11px; }

/* ---------- capas globales ---------- */
.stage {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 6; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, #2a2420 0%, transparent 70%),
    var(--ink);
  color: var(--bone);
}
.loader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__top {
  position: absolute; top: 22px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; opacity: .6;
}
.loader__bottom {
  position: absolute; left: 50%; bottom: clamp(28px, 7vh, 64px); transform: translateX(-50%);
  width: min(360px, 80vw); text-align: center;
}
.loader__time {
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%;
  font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.loader__time small { font-family: var(--f-mono); font-size: 13px; margin-left: 8px; color: var(--red); vertical-align: top; }
.loader__bar { height: 2px; background: rgba(242, 238, 231, .15); margin: 14px 0 12px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.loader__msg { margin: 0; opacity: .7; min-height: 1.4em; }
.loader__skip {
  position: absolute; right: var(--gutter); bottom: 22px;
  background: none; border: 0; padding: 8px 0; color: var(--bone); opacity: .5; cursor: pointer;
}
.loader__skip:hover { opacity: 1; color: var(--red); }
.loader__wipe {
  position: absolute; inset: 0; background: var(--red);
  clip-path: circle(0% at 50% 46%); pointer-events: none;
}
.loader.is-ringing .loader__time { color: var(--red); animation: buzz .08s linear infinite; }
@keyframes buzz { 0% { transform: translateX(-2px); } 50% { transform: translateX(2px); } 100% { transform: translateX(-2px); } }

/* =========================================================
   HEADER
   ========================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); z-index: 60;
  background: var(--ink); color: var(--bone); font-size: 10.5px; overflow: hidden;
  display: flex; align-items: center;
}
.topbar__track { display: flex; white-space: nowrap; will-change: transform; }
.topbar__track span { display: inline-flex; align-items: center; gap: 8px; margin-right: 48px; }
.topbar b { font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); display: inline-block; }
.dot.is-open { background: #3BD16F; box-shadow: 0 0 0 0 rgba(59, 209, 111, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(59, 209, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 209, 111, 0); } }

.nav {
  position: fixed; top: var(--top-h); left: 0; right: 0; height: var(--nav-h); z-index: 60;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--bone);
  transition: color .35s, background .35s, transform .5s var(--ease);
}
.nav.is-light { color: var(--ink); }
.nav.is-scrolled { background: rgba(242, 238, 231, .97); color: var(--ink); box-shadow: 0 1px 0 rgba(15, 14, 13, .08); }
.nav.is-scrolled.is-dark { background: rgba(15, 14, 13, .96); color: var(--bone); }
.nav.is-hidden { transform: translateY(calc(-100% - var(--top-h))); }
.nav__logo { font-size: 26px; text-decoration: none; color: var(--red); }
.nav.is-dark:not(.is-scrolled) .nav__logo, .hero-on .nav__logo { color: var(--bone); }
.nav__links { display: flex; gap: 6px; justify-content: center; }
.nav__links a {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .25s, color .25s;
}
.nav__links a:hover { background: var(--red); color: var(--bone); }
.nav__clock { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mini-clock {
  position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block;
}
.mini-clock b {
  position: absolute; left: 50%; bottom: 50%; width: 1.5px; margin-left: -.75px; background: currentColor; transform-origin: 50% 100%;
}
.mini-clock__h { height: 5px; }
.mini-clock__m { height: 8px; background: var(--red) !important; }
.nav .btn--nav { --bg: var(--red); --bd: var(--red); --fg: var(--bone); }
.nav .btn--nav:hover { --bg: var(--ink); --bd: var(--ink); }
.nav.is-dark:not(.is-scrolled) .btn--nav { --bg: var(--bone); --bd: var(--bone); --fg: var(--ink); }
.nav.is-dark:not(.is-scrolled) .btn--nav:hover { --bg: var(--ink); --bd: var(--ink); --fg: var(--bone); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden; color: var(--bone);
  background:
    radial-gradient(120% 80% at 50% 0%, #F0262B 0%, var(--red) 38%, #B10F13 72%, #5E0709 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--top-h) + var(--nav-h) + 3vh) var(--gutter) 24px;
}
.hero__glow {
  position: absolute; left: 50%; top: 52%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 210, 160, .28), transparent 62%); pointer-events: none;
}
.hero__kicker { margin: 0; display: flex; gap: 14px; opacity: .85; }
.hero__kicker span { opacity: .6; }
.hero__title {
  margin: .6vh 0 0; text-align: center; font-weight: 900; font-style: italic; font-stretch: 100%;
  font-size: clamp(30px, min(4.6vw, 7.4vh), 92px); line-height: .95; letter-spacing: -0.03em;
  display: flex; gap: .12em; white-space: nowrap;
  position: relative; z-index: 2;
}
.hero__title .line { padding: 0 .08em .06em; }
.hero__wordmark {
  position: absolute; left: 0; right: 0; bottom: clamp(96px, 15vh, 150px);
  display: flex; justify-content: center; align-items: baseline;
  font-size: clamp(92px, 25.5vw, 420px); color: var(--bone); white-space: nowrap; pointer-events: none;
  padding-right: .06em;
}
.hero__wordmark span { display: inline-block; will-change: transform; }
.hero__wordmark .colon { color: var(--ink); margin: 0 -.02em; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 8;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px;
}
.hero__lead { margin: 0; max-width: 300px; font-size: 15px; line-height: 1.4; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero__scroll { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 34px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: drip 1.6s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* =========================================================
   MANIFIESTO
   ========================================================= */
.manifesto { position: relative; background: var(--bone); }
.manifesto__inner {
  min-height: 100vh; padding: calc(var(--nav-h) + var(--top-h) + 6vh) var(--gutter) 8vh;
  display: flex; flex-direction: column; justify-content: center;
}
.manifesto__text {
  margin: 0; max-width: 18ch; width: 54%;
  font-weight: 800; font-stretch: 100%; letter-spacing: -0.035em;
  font-size: clamp(32px, min(4.6vw, 8vh), 84px); line-height: 1;
}
.manifesto__text .w { display: inline-block; opacity: .14; transition: color .3s; }
.manifesto__text .w.is-brand { color: var(--red); font-style: italic; font-stretch: 118%; }
.manifesto__stats { display: flex; gap: clamp(20px, 4vw, 64px); margin-top: 7vh; flex-wrap: wrap; }
.manifesto__stats div { display: flex; flex-direction: column; gap: 6px; border-top: 1.5px solid var(--ink); padding-top: 12px; min-width: 150px; }
.manifesto__stats b { font-size: clamp(44px, 5vw, 76px); color: var(--red); }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2; background: var(--red); color: var(--bone);
  transform: rotate(-2deg) scale(1.04); margin: -2vw 0; overflow: hidden; padding: 14px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}
.marquee__track { display: flex; width: max-content; gap: 28px; align-items: center; will-change: transform; }
.marquee__track span { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(36px, 5vw, 72px); line-height: 1; }
.marquee__track i { font-style: normal; font-size: clamp(22px, 3vw, 40px); color: var(--ink); }

/* =========================================================
   QUÉ HACEMOS
   ========================================================= */
.hacemos { position: relative; background: var(--concrete); overflow: hidden; }
.hacemos__pin { height: 100vh; display: flex; flex-direction: column; padding-top: calc(var(--top-h) + var(--nav-h) + 3vh); }
.hacemos__head { padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 40px; }
.hacemos__head .label { grid-column: 1 / -1; margin: 0; }
.hacemos__title { margin: 0; font-size: clamp(40px, min(6.4vw, 9vh), 104px); }
.hacemos__progress { width: min(240px, 30vw); height: 3px; background: rgba(15, 14, 13, .14); margin-bottom: 12px; }
.hacemos__progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.hacemos__track { flex: 1; display: flex; align-items: center; gap: 4vw; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.sector {
  width: min(78vw, 1120px, 150vh); display: grid; grid-template-columns: 1fr 1.05fr; gap: 4vw; align-items: center;
  padding: 3vh 0;
}
.sector__copy { position: relative; }
.sector__num { font-size: clamp(90px, 12vw, 190px); color: transparent; -webkit-text-stroke: 1.5px var(--ink); display: block; line-height: .8; }
.sector h3 { margin: -0.3em 0 0; font-size: clamp(58px, 7.5vw, 126px); position: relative; }
.sector__sub { color: var(--red); font-size: clamp(22px, 2.3vw, 36px); margin: 10px 0 16px; }
.sector p { max-width: 42ch; margin: 0 0 18px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 11px; }

.polaroid {
  margin: 0; background: #FBF9F5; padding: 14px 14px 0; border-radius: 3px;
  box-shadow: 0 30px 60px -20px rgba(15, 14, 13, .45), 0 2px 6px rgba(15, 14, 13, .12);
  transform: perspective(900px) translateY(var(--py, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot, -2deg));
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.sector:nth-child(2n) .polaroid { --rot: 2.5deg; }
.sector .polaroid { width: 100%; max-width: min(100%, 60vh); justify-self: center; }
.polaroid svg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
/* foto real: si existe, reemplaza a la ilustración (si falta el archivo, se ve la ilustración) */
.polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #e9e4dc; }
.sector .polaroid:has(img) { max-width: min(100%, 52vh); }
.polaroid img + svg { display: none; }
.polaroid figcaption { padding: 14px 4px 18px; color: #5d5853; text-transform: lowercase; letter-spacing: .02em; font-size: 13px; }

/* =========================================================
   EN LATA
   ========================================================= */
.lata { position: relative; background: var(--ink); color: var(--bone); }
.lata__stage {
  position: relative; height: 100vh; overflow: hidden;
  background:
    radial-gradient(42vmax 42vmax at 50% 56%, rgba(227, 22, 27, .55), rgba(227, 22, 27, .08) 55%, transparent 70%),
    var(--ink);
}
.lata__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease);
  background: radial-gradient(42vmax 42vmax at 50% 56%, rgba(141, 176, 74, .6), rgba(141, 176, 74, .08) 55%, transparent 70%), var(--ink);
}
.lata__stage.is-matcha::before { opacity: 1; }
.lata__stage { touch-action: pan-y; }
.lata__bgword {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-size: clamp(140px, 30vw, 520px); line-height: .78; color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 238, 231, .14); pointer-events: none; user-select: none;
}
.lata__head {
  position: absolute; left: var(--gutter); top: calc(var(--top-h) + var(--nav-h) + 4vh); width: min(420px, 40vw); z-index: 2;
}
.lata__title { margin: 6px 0 14px; font-size: clamp(64px, 9vw, 150px); }
.lata__title .line { padding-top: .16em; margin-top: -.16em; }
.lata__lead { margin: 0; font-size: 16px; opacity: .85; max-width: 32ch; }
.sticker {
  display: inline-flex; align-items: center; margin-left: 6px; transform: rotate(-4deg);
  background: var(--red); color: var(--bone) !important; border-radius: 999px; padding: 5px 11px;
  font-weight: 600; font-size: 11px; letter-spacing: .1em; opacity: 1;
}
.lata__stage { --cx: 59%; }
.callouts {
  list-style: none; margin: 0; padding: 0; position: absolute; z-index: 2;
  left: calc(var(--cx) + 11vh); top: 50%; transform: translateY(-58%);
  display: grid; gap: clamp(14px, 3.4vh, 34px); max-width: min(300px, calc(100% - var(--cx) - 11vh - var(--gutter)));
}
.callout { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; font-size: 15px; line-height: 1.25; }
.callout b { color: var(--red); font-size: 12px; }
.callout i { display: block; height: 1px; width: clamp(24px, 4vw, 64px); background: rgba(242, 238, 231, .55); position: relative; transform-origin: left; }
.callout i::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }

.flavors {
  position: absolute; left: var(--cx); bottom: 7vh; transform: translateX(-50%); z-index: 8;
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(242, 238, 231, .08);
  border: 1px solid rgba(242, 238, 231, .16); background: rgba(26, 23, 21, .82);
}
.flavor {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  background: transparent; border: 0; color: var(--bone); cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  transition: background .3s, color .3s;
}
.flavor i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(242, 238, 231, .4); }
.flavor.is-active { background: var(--bone); color: var(--ink); }
.flavor:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lata__hint { position: absolute; left: var(--cx); white-space: nowrap; bottom: calc(7vh + 64px); transform: translateX(-50%); opacity: .5; margin: 0; z-index: 2; }
.lata__cta {
  position: absolute; right: var(--gutter); bottom: 7vh; z-index: 8; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.lata__cta p { margin: 0; font-size: clamp(36px, 4.4vw, 70px); }

/* =========================================================
   EVENTOS
   ========================================================= */
.eventos { position: relative; background: var(--concrete-2); }
.eventos__stage {
  position: relative; height: 100vh; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 30%, transparent 70%, rgba(0, 0, 0, .22)),
    repeating-linear-gradient(180deg, #B4B0AA 0 13px, #9C9893 13px 16px);
  display: flex; flex-direction: column; justify-content: center;
}
.eventos__label { position: absolute; top: calc(var(--top-h) + var(--nav-h) + 3vh); left: var(--gutter); margin: 0; }
.eventos__words { display: flex; flex-direction: column; align-items: flex-start; color: var(--red); font-size: clamp(96px, 19vw, 330px); line-height: .8; }
.eventos__words .row { white-space: nowrap; will-change: transform; padding-left: var(--gutter); }
.eventos__foot { position: absolute; bottom: 4vh; right: var(--gutter); margin: 0; color: var(--ink); }

.eventos__info {
  padding: 14vh var(--gutter) 16vh; display: grid; grid-template-columns: 1fr 1.25fr; gap: 6vw; align-items: start;
  background: var(--concrete);
}
.eventos__intro h2 { margin: 0 0 22px; font-size: clamp(54px, 6.6vw, 110px); }
.eventos__intro p { max-width: 44ch; margin: 0 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  background: var(--bone); border-radius: 18px; padding: 26px 28px; display: grid; grid-template-columns: 120px 1fr; gap: 6px 24px; align-items: baseline;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.step:hover { background: var(--ink); color: var(--bone); }
.step span { color: var(--red); grid-row: span 2; }
.step h3 { margin: 0; font-size: clamp(36px, 3.6vw, 56px); }
.step p { margin: 0; opacity: .8; }

/* =========================================================
   HORARIOS
   ========================================================= */
.horarios { background: var(--bone); padding: 14vh 0 0; }
.horarios__head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.horarios__head .label { margin: 0; }
.horarios__now { margin: 0; font-variant-numeric: tabular-nums; }
.horarios__now b { color: var(--red); }
.split { display: flex; min-height: 78vh; }
.split__half {
  flex: 1; position: relative; overflow: hidden; padding: 5vh var(--gutter) 6vh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 20px;
  transition: flex .8s var(--ease);
}
.split__half:hover { flex: 1.45; }
.split__half--am { background: var(--concrete); color: var(--ink); }
.split__half--pm { background: var(--ink); color: var(--bone); }
.split__big { position: absolute; top: 2vh; left: var(--gutter); font-size: clamp(140px, 22vw, 380px); color: var(--red); line-height: .8; }
.split dl { margin: 0; display: grid; gap: 4px; }
.split dl div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid currentColor; padding-top: 10px; gap: 16px; }
.split dd { margin: 0; font-size: clamp(44px, 5.4vw, 92px); }
.split dd.is-off { opacity: .35; }
.split__note { margin: 0; font-style: italic; font-weight: 800; font-stretch: 118%; font-size: clamp(18px, 1.8vw, 26px); }
.split__half--pm .split__note { color: var(--red); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; min-height: 100vh; overflow: hidden; color: var(--bone);
  background: radial-gradient(110% 80% at 85% 0%, #B10F13 0%, var(--red-deep) 38%, #160505 88%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--top-h) + var(--nav-h) + 6vh) var(--gutter) 0;
}
.footer__title { margin: 0 0 32px; font-size: clamp(64px, 10vw, 180px); max-width: 58%; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; max-width: 58%; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px 0 10px; border-bottom: 1px solid rgba(242, 238, 231, .25); opacity: .75; font-size: 11px; }
.footer__wordmark { font-size: clamp(80px, 23.5vw, 420px); display: flex; justify-content: center; color: var(--red); line-height: .74; margin: 2vh calc(var(--gutter) * -1) 0; padding-bottom: .1em; white-space: nowrap; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__clock { justify-self: end; }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav__logo { font-size: 22px; }
  .nav__clock span { display: none; }

  .hero__title { font-size: clamp(34px, 11.5vw, 60px); flex-direction: column; align-items: center; gap: 0; }
  .btn.btn--nav { min-height: 36px; padding: 0 14px; font-size: 10.5px; }
  .hero__wordmark { bottom: 200px; }
  .hero__foot { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 14px; }
  .hero__lead { max-width: 30ch; font-size: 14px; }
  .hero__scroll { display: none; }
  .btn { min-height: 44px; padding: 0 18px; font-size: 12px; }

  .manifesto__text { width: 100%; font-size: clamp(30px, 9.4vw, 46px); }

  .hacemos__pin { height: auto; padding-bottom: 10vh; }
  .hacemos__head { grid-template-columns: 1fr; }
  .hacemos__progress { display: none; }
  .hacemos__track { width: auto; flex-direction: column; gap: 10vh; padding-top: 6vh; }
  .sector { width: 100%; grid-template-columns: 1fr; gap: 28px; }

  .lata__head { width: auto; right: var(--gutter); }
  .lata__title { font-size: clamp(52px, 15vw, 88px); margin-bottom: 10px; }
  .lata__lead { font-size: 14px; max-width: 30ch; }
  .lata__head { top: calc(var(--top-h) + var(--nav-h) + 2vh); }
  .lata__title .line { padding-top: .12em; margin-top: -.12em; }
  .lata__stage { --cx: 50%; }
  .callouts {
    left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(5vh + 64px); transform: none; max-width: none;
    grid-template-columns: 1fr 1fr; gap: 10px 16px;
  }
  .callout { font-size: 12px; gap: 8px; grid-template-columns: auto 1fr; }
  .callout i { display: none; }
  .lata__cta { display: none; }
  .lata__hint { display: none; }
  .flavors { bottom: 5vh; }

  .eventos__info { grid-template-columns: 1fr; gap: 48px; padding: 10vh var(--gutter); }
  .eventos__intro h2 { font-size: clamp(40px, 11.6vw, 64px); }
  .eventos__intro h2 br { display: none; }
  .step { grid-template-columns: 1fr; padding: 22px; }
  .step h3 { font-size: clamp(30px, 9vw, 44px); }
  .step span { grid-row: auto; }

  .split { flex-direction: column; min-height: 0; }
  .split__half { min-height: 0; padding: 4vh var(--gutter) 6vh; justify-content: flex-start; }
  .split__big { position: static; font-size: clamp(110px, 34vw, 170px); margin-bottom: 8px; }
  .split__half:hover { flex: 1; }

  .footer__title, .footer__links { max-width: 100%; }
  .footer__title { font-size: clamp(56px, 17vw, 96px); }
  .footer { padding-bottom: 0; }
}

/* en pantallas táctiles el grano queda quieto: ahorra batería y no se nota la diferencia */
@media (hover: none) {
  .grain { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll i::after { animation: none; }
}

/* =========================================================
   LEGALES (footer + página legales.html)
   ========================================================= */
.footer__legal {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(28px, 5vw, 72px); align-items: end;
  margin: 0 calc(var(--gutter) * -1); padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(32px, 4vw, 48px);
  position: relative; z-index: 1; background: transparent;
}

.footer__legal-links { display: grid; gap: 0; font-size: 12px; }
.footer__legal-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(242, 238, 231, .14); text-decoration: none; transition: color .25s, padding .35s var(--ease);
}
.footer__legal-links a::after { content: "↗"; opacity: .5; }
.footer__legal-links a:hover { color: #ff6b6f; padding-left: 8px; }
.footer__legal-links a.is-key { color: #ff6b6f; font-weight: 600; justify-content: flex-start; }
.footer__legal-links a.is-key::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 10px; flex: none; }
.footer__legal-links a.is-key::after { content: "↩"; opacity: .8; margin-left: auto; }
.footer__legal-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.footer__seller { display: grid; gap: 4px; font-size: 10.5px; opacity: .7; text-transform: none; letter-spacing: .03em; }
.qr-fiscal {
  width: 84px; height: 84px; display: grid; place-items: center; text-align: center; font-size: 9.5px; line-height: 1.3;
  border: 1.5px dashed rgba(242, 238, 231, .5); border-radius: 6px; opacity: .8;
}

.legal-page { background: var(--bone); color: var(--ink); }
.legal-head {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(15, 14, 13, .1);
}
.legal-head .nav__logo { color: var(--red); }
.legal-hero { padding: 9vh var(--gutter) 5vh; background: var(--red); color: var(--bone); }
.legal-hero h1 { margin: 10px 0 0; font-size: clamp(56px, 10vw, 150px); }
.legal-hero p { max-width: 60ch; margin: 18px 0 0; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-toc a { border: 1.5px solid var(--bone); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc a:hover { background: var(--bone); color: var(--red); }
.legal-body { max-width: 820px; margin: 0 auto; padding: 8vh var(--gutter) 12vh; }
.legal-body section { padding-top: 40px; margin-bottom: 64px; scroll-margin-top: 70px; }
.legal-body h2 { font-size: clamp(40px, 5.6vw, 76px); margin: 0 0 18px; }
.legal-body h3 { font-size: 19px; margin: 32px 0 8px; font-weight: 800; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.65; }
.legal-body ul { padding-left: 20px; }
.legal-body .ph { background: #ffe7a6; padding: 0 4px; border-radius: 3px; font-family: var(--f-mono); font-size: .86em; }
.legal-note { border-left: 3px solid var(--red); padding: 12px 18px; background: #fff; border-radius: 0 10px 10px 0; }
.legal-meta { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }

.arr-steps { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.arr-steps li { display: flex; gap: 16px; align-items: baseline; background: #fff; padding: 16px 20px; border-radius: 14px; }
.arr-steps b { color: var(--red); }
.legal-foot { background: var(--ink); color: var(--bone); padding: 34px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.legal-foot a { color: inherit; }

@media (max-width: 760px) {
  .footer__legal { grid-template-columns: 1fr; }
  .qr-fiscal { width: 72px; height: 72px; }
  }

/* tablets en vertical: la sección de la lata y la info de eventos se acomodan como en celular */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .lata__stage { --cx: 50%; }
  .lata__head { width: auto; right: var(--gutter); }
  .lata__title { font-size: clamp(72px, 13vw, 120px); }
  .callouts {
    left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(6vh + 70px); transform: none; max-width: none;
    grid-template-columns: 1fr 1fr; gap: 14px 28px;
  }
  .callout { grid-template-columns: auto 1fr; }
  .callout i { display: none; }
  .lata__cta, .lata__hint { display: none; }
  .flavors { bottom: 5vh; }
  .eventos__info { grid-template-columns: 1fr; gap: 56px; }
  .eventos__intro h2 br { display: none; }
  .manifesto__text { width: 100%; }
  .footer__title, .footer__links { max-width: 100%; }
}
