/* El Señor del Humo — landing "Próximamente". Dark, estilo Apple, acento mostaza de la marca. */

:root {
  --ink: #0A0908;          /* carbón */
  --char-800: #171411;
  --char-700: #221E1A;
  --ember: #FEBD59;        /* mostaza de la marca */
  --ember-600: #E89B2E;
  --flame: #FF6A1A;        /* brasa: solo detalles */
  --text: #F7F4EF;
  --muted: #A39B91;        /* gris humo */
  --line: rgb(255 255 255 / .09);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: max(20px, calc((100vw - 1080px) / 2));
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Special Elite", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 clamp(17px, 1.6vw, 20px)/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--ember); color: var(--ink); }

/* ---------- Humo ---------- */

#humo, .humo-estatico {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;          /* no cambia cuando aparece/desaparece la barra del navegador móvil */
  z-index: 0;
  pointer-events: none;
}
#humo { opacity: 0; transition: opacity 1.6s var(--ease); }
.humo-listo #humo { opacity: 1; }
.no-humo #humo { display: none; }

/* Fondo estático (sin WebGL2 o con movimiento reducido): brasas abajo + bruma. */
.humo-estatico {
  background:
    radial-gradient(60% 38% at 50% 112%, rgb(255 140 50 / .28), transparent 70%),
    radial-gradient(45% 55% at 30% 85%, rgb(200 190 180 / .10), transparent 70%),
    radial-gradient(40% 60% at 72% 70%, rgb(200 190 180 / .08), transparent 70%),
    radial-gradient(70% 50% at 50% 40%, rgb(200 190 180 / .05), transparent 70%),
    var(--ink);
}

main, .pie { position: relative; z-index: 1; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 52px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(10 9 8 / .55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 15px/1 var(--display);
  font-stretch: 80%;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.marca { width: 26px; height: 26px; fill: var(--ember); flex: none; }
.nav-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgb(254 189 89 / .45);
  border-radius: 999px;
  color: var(--ember);
}

/* ---------- Base de secciones ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 14px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
}
.brasa {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 0 rgb(255 106 26 / .6);
  animation: brasa 2.2s ease-out infinite;
}
@keyframes brasa {
  0% { box-shadow: 0 0 0 0 rgb(255 106 26 / .55); }
  70%, 100% { box-shadow: 0 0 0 12px rgb(255 106 26 / 0); }
}
.contenido { padding: 0 var(--gutter); }

/* Aparición al entrar en pantalla */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ---------- 1 · Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  --p: 0;  /* progreso de scroll del hero, lo pone main.js */
}
.hero-titulo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 2px 40px rgb(10 9 8 / .5);
  opacity: calc(1 - var(--p) * 1.25);
  filter: blur(calc(var(--p) * 16px));
  transform: translateY(calc(var(--p) * -70px)) scale(calc(1 + var(--p) * .06));
  will-change: opacity, filter, transform;
}
.hero-linea1 {
  font-size: clamp(22px, 4.2vw, 54px);
  font-weight: 500;
  font-stretch: 72%;
  text-transform: uppercase;
  line-height: 1;
  color: rgb(247 244 239 / .82);
  letter-spacing: calc(.06em + var(--p) * .3em);
  animation: entra 1.4s var(--ease) both .1s;
}
.hero-linea2 {
  font-size: clamp(96px, 23vw, 310px);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: calc(-0.045em + var(--p) * .12em);
  background: linear-gradient(180deg, #fff 30%, #C9C1B6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: entra 1.6s var(--ease) both .25s;
}
@keyframes entra { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } }
.hero-lead {
  max-width: 44ch;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.35;
  color: rgb(247 244 239 / .78);
  opacity: calc(1 - var(--p) * 1.6);
}
.scroll-cue {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid rgb(255 255 255 / .35);
  border-radius: 14px;
  opacity: calc(1 - var(--p) * 4);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ember);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero { position: relative; }

/* ---------- 2 · Manifiesto ---------- */

.manifiesto {
  padding: 22vh var(--gutter) 26vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.manifiesto-texto {
  max-width: 22ch;
  font: 700 clamp(34px, 5.6vw, 72px)/1.08 var(--display);
  letter-spacing: -0.03em;
}
.manifiesto-texto em { font-style: normal; }
.manifiesto-texto .w { color: rgb(247 244 239 / .16); transition: color .5s var(--ease); }
.manifiesto-texto .w.on { color: var(--text); }
.manifiesto-texto .w.hot.on { color: var(--ember); }

/* ---------- 3 · Proceso (sticky) ---------- */

.proceso { height: 320vh; position: relative; }
.proceso-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 96px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.proceso-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}
.proceso-slides { position: relative; min-height: clamp(220px, 34vw, 380px); }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.slide.is-on { opacity: 1; transform: none; filter: none; }
.slide.is-past { transform: translateY(-40px); }
.slide-num { font: 400 15px/1 var(--mono); color: var(--ember); letter-spacing: .1em; }
.slide h2 { font-size: clamp(64px, 11vw, 150px); line-height: .9; letter-spacing: -0.045em; font-stretch: 110%; font-weight: 800; }
.slide p { max-width: 26ch; font-size: clamp(19px, 2vw, 24px); color: rgb(247 244 239 / .75); }

.termometro { margin: 0; position: relative; justify-self: center; width: min(100%, 400px); }
.termometro svg { width: 100%; height: auto; display: block; overflow: visible; }
.t-bisel { fill: rgb(23 20 17 / .72); stroke: var(--line); stroke-width: 1; }
.t-marcas line { stroke: rgb(255 255 255 / .28); stroke-width: 1; stroke-linecap: round; }
.t-marcas line.mayor { stroke: rgb(255 255 255 / .6); stroke-width: 2; }
.t-pista, .t-relleno { fill: none; stroke-width: 6; stroke-linecap: round; }
.t-pista { stroke: rgb(255 255 255 / .07); }
.t-relleno {
  stroke: var(--ember);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgb(255 140 50 / .7));
}
.t-aguja { fill: var(--text); }
.t-aguja circle { fill: var(--ember); stroke: var(--ink); stroke-width: 3; }
.termometro figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 14%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 2px;
  font-family: var(--display);
}
.t-valor { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.t-unidad { font-size: clamp(16px, 1.8vw, 22px); color: var(--muted); }
.t-label { flex-basis: 100%; text-align: center; font: 400 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 4 · Lo que se viene ---------- */

.carta { padding: 18vh 0 16vh; }
.carta h2, .abrimos h2 { font-size: clamp(40px, 6.5vw, 84px); line-height: 1; margin: 22px 0 56px; letter-spacing: -0.04em; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 32px;
  border-radius: 28px;
  background: rgb(23 20 17 / .78);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  isolation: isolate;
}
.tile-xl { grid-column: span 4; min-height: 380px; }
.tile::before {
  content: "";
  position: absolute; inset: auto -20% -60% -20%; height: 90%;
  background: radial-gradient(closest-side, rgb(255 120 40 / .22), transparent);
  z-index: -1;
  transition: transform .8s var(--ease), opacity .8s;
  opacity: .55;
}
.tile:hover::before { transform: translateY(-12%); opacity: 1; }
.tile-tag { position: absolute; top: 28px; left: 32px; font: 400 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.tile h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.02; font-weight: 800; font-stretch: 105%; letter-spacing: -0.035em; }
.tile-xl h3 { font-size: clamp(36px, 4.6vw, 60px); }
.tile p { color: rgb(247 244 239 / .72); max-width: 44ch; }
.tile-ember { background: var(--ember); border-color: transparent; color: var(--ink); }
.tile-ember::before { background: radial-gradient(closest-side, rgb(255 255 255 / .35), transparent); }
.tile-ember .tile-tag { color: rgb(10 9 8 / .7); }
.tile-ember p { color: rgb(10 9 8 / .75); }

/* ---------- 5 · Inauguración ---------- */

.abrimos { padding: 16vh 0 18vh; text-align: center; }
.abrimos .contenido { display: flex; flex-direction: column; align-items: center; }
.abrimos h2 { margin-bottom: 36px; }
.abrimos-lead { max-width: 38ch; color: rgb(247 244 239 / .78); font-size: clamp(18px, 1.9vw, 22px); }
.cuenta { display: flex; gap: clamp(10px, 2.5vw, 28px); margin: 0 0 40px; }
.cuenta[hidden] { display: none; }
.cuenta div {
  min-width: clamp(72px, 13vw, 132px);
  padding: 18px 10px 14px;
  border-radius: 22px;
  background: rgb(23 20 17 / .72);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cuenta span { font: 800 clamp(36px, 6vw, 72px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cuenta small { font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1 var(--body);
  text-decoration: none;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn svg .lleno { fill: currentColor; stroke: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav-marca:focus-visible, .scroll-cue:focus-visible, .pie a:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.btn-ember { background: var(--ember); color: var(--ink); box-shadow: 0 10px 40px -10px rgb(254 189 89 / .55); }
.btn-ember:hover { background: #FFCB78; box-shadow: 0 14px 50px -10px rgb(254 189 89 / .75); }
.btn-ghost { border: 1px solid rgb(255 255 255 / .25); background: rgb(10 9 8 / .35); }
.btn-ghost:hover { border-color: rgb(255 255 255 / .5); }

/* ---------- 6 · Cierre ---------- */

.cierre {
  min-height: 90vh;
  padding: 18vh var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 20px;
}
.cierre-titulo {
  font-size: clamp(64px, 13vw, 180px);
  line-height: .92;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 38%, var(--ember) 50%, var(--text) 62%, var(--text) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brillo 8s linear infinite;
}
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.cierre p { font: 400 16px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }

/* ---------- Footer ---------- */

.pie {
  padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(10 9 8 / .85);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--muted);
}
.pie-marca { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 14px/1 var(--display); font-stretch: 80%; letter-spacing: .04em; text-transform: uppercase; }
.pie-links a { text-decoration: none; }
.pie-links a:hover { color: var(--ember); }

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .proceso-grid { grid-template-columns: 1fr; gap: 8px; }
  .proceso-slides { min-height: 230px; order: 2; }
  .termometro { width: min(62vw, 280px); order: 1; }
  .proceso-stage { gap: 16px; }
  .slide { justify-content: flex-start; text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-xl { grid-column: auto; min-height: 260px; border-radius: 22px; padding: 26px; }
  .tile-tag { top: 24px; left: 26px; }
  .pie { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-titulo, .hero-lead { opacity: 1; filter: none; transform: none; }
  .manifiesto-texto .w { color: var(--text); }
  .manifiesto-texto .w.hot { color: var(--ember); }
}
