/* =========================================================
   Tlalli · tlalli.artistaslegales.org
   Limpio y con intención: azul noche, Tlalli en un nicho de arco,
   la conversación como protagonista. Oro solo para actuar.
   ========================================================= */

:root {
  --noche: #0B1640;
  --noche-2: #101E52;
  --noche-3: #1A2B6B;
  --azul: #2448C0;
  --oro: #EBAA3C;
  --oro-2: #F6C567;
  --grana: #C8381F;
  --jade: #1C8A5A;

  --papel: #F3F5FA;
  --papel-2: #E6EAF4;
  --tinta: #0F1533;
  --tinta-2: #4B5374;
  --linea: #D7DCEA;

  --claro: #F1F3FA;
  --claro-2: #A9B2D6;
  --claro-linea: rgba(241, 243, 250, 0.12);

  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 9vw, 136px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: 32px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--claro);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--oro); color: var(--tinta); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.panel :focus-visible { outline-color: var(--azul); }

.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; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--oro); color: var(--tinta); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.h1, .h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.02; max-width: 18ch; }
.lede { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--claro-2); max-width: 54ch; text-wrap: pretty; }
.panel .lede { color: var(--tinta-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 1.5em;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--oro { background: var(--oro); color: var(--tinta); }
.btn--oro:hover { background: var(--oro-2); }
.btn--linea { border-color: rgba(241, 243, 250, 0.3); color: var(--claro); }
.btn--linea:hover { border-color: var(--claro); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: 0.9375rem; }
.btn svg { flex: none; }

/* Avatar de Tlalli */
.face {
  display: block; flex: none;
  border-radius: 50%;
  background: var(--noche-3) url("../assets/img/tlalli-rostro.webp") 50% 32% / 140% auto no-repeat;
}

/* =========================================================
   Navegación
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--gutter);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled {
  background: rgba(11, 22, 64, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--claro-linea);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand .face { width: 34px; height: 34px; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.brand__by { display: block; font: 400 0.75rem/1.2 var(--sans); color: var(--claro-2); letter-spacing: 0; margin-top: 2px; }
.nav__links { display: flex; gap: 28px; font-size: 0.9375rem; }
.nav__links a { text-decoration: none; color: var(--claro-2); transition: color 0.2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--claro); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 22px; height: 2px; margin-inline: auto; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 40; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; background: var(--noche); display: flex; flex-direction: column; gap: 32px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { padding: 14px 0; border-bottom: 1px solid var(--claro-linea); font: 600 1.6rem/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(24px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(70% 60% at 78% 30%, rgba(36, 72, 192, 0.45), transparent 70%), var(--noche);
  overflow: hidden; overflow: clip;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--claro-2); }
.hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3BD08F; box-shadow: 0 0 0 4px rgba(59, 208, 143, 0.18); }
.h1 { margin-top: 20px; font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.4rem); line-height: 0.98; max-width: 13ch; }
.hero__lede { margin-top: 24px; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--claro-2); max-width: 46ch; text-wrap: pretty; }
.hero__lede strong { color: var(--claro); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* El nicho de Tlalli */
.niche { position: relative; width: 100%; max-width: 500px; justify-self: end; }
.niche__arch {
  position: relative;
  aspect-ratio: 992 / 1200;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: var(--noche-3);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7);
}
.niche__arch img { width: 100%; height: 100%; object-fit: cover; }
.niche__arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(241, 243, 250, 0.16);
}
.niche__tag {
  position: absolute; top: 18%; right: -14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--claro); color: var(--tinta);
  font-size: 0.8125rem; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}
.niche__tag svg { color: #229ED9; }

/* Conversación encima del retrato */
.convo {
  position: absolute; left: -72px; bottom: 28px;
  width: min(340px, 82%);
  display: grid; gap: 8px;
}
.bubble {
  padding: 12px 16px; border-radius: 20px;
  font-size: 0.9375rem; line-height: 1.45;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
}
.bubble--me { justify-self: end; max-width: 88%; background: var(--claro); color: var(--tinta); border-bottom-right-radius: 6px; }
.bubble--tlalli { max-width: 96%; background: var(--azul); color: #fff; border-bottom-left-radius: 6px; }
.bubble--tlalli b { display: block; font-size: 0.75rem; font-weight: 600; color: var(--oro-2); margin-bottom: 2px; }
.js .convo .bubble { opacity: 0; transform: translateY(10px); }
.js .convo .bubble.is-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots[hidden] { display: none; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; animation: dot 1.1s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: 0.15s; }
.dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Entrada del hero, una sola vez */
.js .hero__copy > * { opacity: 0; transform: translateY(14px); }
.js .hero.is-in .hero__copy > * { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s var(--ease); }
.js .hero.is-in .hero__copy > :nth-child(2) { transition-delay: 0.08s; }
.js .hero.is-in .hero__copy > :nth-child(3) { transition-delay: 0.16s; }
.js .hero.is-in .hero__copy > :nth-child(4) { transition-delay: 0.24s; }
.js .niche__arch { opacity: 0; transform: scale(0.97); }
.js .hero.is-in .niche__arch { opacity: 1; transform: none; transition: opacity 1s ease 0.15s, transform 1.2s var(--ease) 0.15s; }

/* Prensa: dónde ha salido */
.seen { margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--claro-linea); display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; }
.seen p { font-size: 0.875rem; color: var(--claro-2); }
.seen ul { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.seen li { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; color: rgba(241, 243, 250, 0.78); }

/* =========================================================
   Paneles claros (las partes interactivas)
   ========================================================= */
.panel {
  background: var(--papel); color: var(--tinta);
  border-radius: var(--r-lg);
  margin-inline: clamp(8px, 1.5vw, 20px);
}

/* Datos */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.fact { padding: 8px 28px; }
.fact + .fact { border-left: 1px solid var(--claro-linea); }
.fact:first-child { padding-left: 0; }
.fact b { display: block; font: 600 clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; }
.fact span { display: block; margin-top: 10px; font-size: 0.9375rem; color: var(--claro-2); }

/* =========================================================
   Pregúntale
   ========================================================= */
.try { padding: clamp(40px, 6vw, 88px) 0; }
.try__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.topic {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--linea); border-radius: 16px;
  background: #fff; color: var(--tinta);
  text-align: left; font-weight: 500; font-size: 0.96875rem; line-height: 1.3;
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.topic:hover { border-color: #AEB7D3; }
.topic[aria-pressed="true"] { border-color: var(--azul); box-shadow: 0 0 0 1px var(--azul); }
.topic svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--azul); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.chat {
  background: var(--noche); color: var(--claro);
  border-radius: 26px; padding: 20px;
  box-shadow: 0 40px 80px -40px rgba(11, 22, 64, 0.6);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--claro-linea); }
.chat__head .face { width: 42px; height: 42px; }
.chat__name { font-weight: 600; line-height: 1.2; }
.chat__status { font-size: 0.8125rem; color: var(--claro-2); }
.chat__log { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 430px; padding-top: 18px; overflow: hidden; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.5; animation: msg 0.4s var(--ease) both; }
.msg--me { align-self: flex-end; background: var(--claro); color: var(--tinta); border-bottom-right-radius: 6px; }
.msg--bot { align-self: flex-start; background: var(--noche-3); border-bottom-left-radius: 6px; }
.msg--bot strong { color: var(--oro-2); font-weight: 600; }
.chip { align-self: flex-start; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--oro); color: var(--oro-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; animation: msg 0.4s var(--ease) both; }
.chip:hover { background: rgba(235, 170, 60, 0.12); }
@keyframes msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat__note { margin-top: 14px; font-size: 0.8125rem; color: var(--tinta-2); }

/* =========================================================
   Video
   ========================================================= */
.video__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; }
.video__head .lede { margin-top: 0; max-width: 44ch; }
.player { position: relative; margin-top: 40px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.player__btn { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; color: #fff; display: grid; place-items: center; }
.player__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 64, 0) 40%, rgba(11, 22, 64, 0.75)); }
.player__play { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(68px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--oro); color: var(--tinta); transition: transform 0.3s var(--ease); }
.player__btn:hover .player__play { transform: scale(1.06); }
.player__label { position: absolute; z-index: 1; left: 28px; right: 28px; bottom: 24px; text-align: left; }
.player__label b { display: block; font: 600 clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem)/1.2 var(--display); letter-spacing: -0.02em; }
.player__label span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__alt { margin-top: 14px; font-size: 0.875rem; color: var(--claro-2); }
.player__alt a { color: var(--oro-2); }

/* =========================================================
   Cómo funciona
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.step { display: flex; flex-direction: column; border-radius: 24px; background: var(--noche-2); box-shadow: inset 0 0 0 1px var(--claro-linea); overflow: hidden; }
.step__screen { position: relative; height: 230px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: linear-gradient(180deg, #16244F, #101C47); border-bottom: 1px solid var(--claro-linea); }
.step__screen .msg { animation: none; font-size: 0.875rem; padding: 9px 13px; }
.step__screen .msg--me { background: #2B5278; color: #fff; }
.step__screen .msg--bot { background: #1D2B57; }
.tg-start { align-items: center; justify-content: center; text-align: center; gap: 10px; }
.tg-start .face { width: 72px; height: 72px; }
.tg-start b { font-size: 1rem; }
.tg-start small { color: var(--claro-2); font-size: 0.8125rem; }
.tg-btn { margin-top: 6px; padding: 9px 28px; border-radius: 10px; background: #3390EC; color: #fff; font-weight: 600; font-size: 0.875rem; }
.tg-kb { align-self: stretch; padding: 9px; border-radius: 10px; background: #2B5278; text-align: center; font-size: 0.8125rem; font-weight: 600; }
.step__body { padding: 24px 24px 28px; display: grid; gap: 8px; }
.step__n { font: 600 0.875rem/1 var(--sans); color: var(--oro-2); }
.step h3 { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.02em; }
.step p { color: var(--claro-2); font-size: 0.96875rem; }

/* =========================================================
   Historia y prensa
   ========================================================= */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: 48px; }
.quote { align-self: start; padding: 32px; border-radius: 24px; background: var(--azul); }
.quote p { font: 600 clamp(1.4rem, 1.1rem + 1.1vw, 2rem)/1.2 var(--display); letter-spacing: -0.025em; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }
.timeline { display: grid; }
.hito { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--claro-linea); }
.hito:last-child { border-bottom: 1px solid var(--claro-linea); }
.hito time { font-size: 0.875rem; color: var(--oro-2); padding-top: 3px; }
.hito h3 { font: 600 1.15rem/1.3 var(--display); letter-spacing: -0.015em; }
.hito p { grid-column: 2; color: var(--claro-2); font-size: 0.96875rem; }

.press { margin-top: clamp(56px, 7vw, 88px); }
.press h3 { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.02em; }
.press__list { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.article { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--noche-2); box-shadow: inset 0 0 0 1px var(--claro-linea); text-decoration: none; transition: box-shadow 0.2s, background-color 0.2s; }
.article:hover { background: #142463; box-shadow: inset 0 0 0 1px rgba(241, 243, 250, 0.3); }
.article__medio { font-size: 0.875rem; font-weight: 600; color: var(--oro-2); }
.article__title { flex: 1; font: 500 1.0625rem/1.4 var(--sans); }
.article time { font-size: 0.8125rem; color: var(--claro-2); }

/* =========================================================
   Por qué existe
   ========================================================= */
.why { overflow: hidden; overflow: clip; }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.why__img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: url("../assets/img/tlalli-rostro.webp") 50% 40% / cover no-repeat; }
.why__big { font: 600 clamp(1.8rem, 1.2rem + 2vw, 2.9rem)/1.1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.why__body { margin-top: 24px; display: grid; gap: 14px; color: var(--claro-2); max-width: 52ch; }
.why__body strong { color: var(--claro); font-weight: 500; }

/* =========================================================
   Dudas
   ========================================================= */
.faq-panel { padding: clamp(40px, 6vw, 88px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 1.15rem/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--sans); color: var(--azul); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--tinta-2); max-width: 62ch; }
.faq a { color: var(--azul); }

/* =========================================================
   Gracias
   ========================================================= */
.thanks__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--claro-linea); }
.thanks__kicker { font-size: 1rem; color: var(--claro-2); }
.thanks__name { display: inline-block; margin-top: 8px; font: 600 clamp(2.6rem, 1.2rem + 5vw, 5.6rem)/1 var(--display); letter-spacing: -0.045em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.thanks__name:hover { background-size: 100% 2px; }
.thanks__text { margin-top: 18px; max-width: 56ch; color: var(--claro-2); }
.thanks__also { margin-top: 24px; font-size: 0.9375rem; color: var(--claro-2); max-width: 70ch; }

/* =========================================================
   Llamado final y pie
   ========================================================= */
.cta { text-align: center; }
.cta .face { width: 96px; height: 96px; margin: 0 auto 28px; box-shadow: 0 0 0 6px rgba(235, 170, 60, 0.18); }
.cta .h2 { margin-inline: auto; max-width: 16ch; }
.cta .lede { margin-inline: auto; }
.cta .hero__actions { justify-content: center; }

.footer { padding-block: 40px 32px; border-top: 1px solid var(--claro-linea); font-size: 0.875rem; color: var(--claro-2); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__ac { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--claro); }
.footer__ac img { box-sizing: content-box; width: 28px; height: auto; padding: 6px; border-radius: 50%; background: var(--claro); }
.footer__ac small { display: block; color: var(--claro-2); font-size: 0.8125rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--claro); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; }
.footer__bottom a { color: var(--claro); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1060px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .press__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid, .try__grid, .story__grid, .why__grid, .faq__grid { grid-template-columns: 1fr; }
  .niche { justify-self: center; max-width: 400px; margin-top: 8px; }
  .convo { left: -12px; }
  .niche__tag { right: -8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .why__img { aspect-ratio: 1; max-height: 460px; width: 100%; }
  .thanks__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav__cta { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .topics { grid-template-columns: 1fr; }
  .chat__log { height: 470px; }
  .press__list { grid-template-columns: 1fr; }
  .fact { padding-inline: 16px; }
  .hito { grid-template-columns: 1fr; }
  .hito p { grid-column: 1; }
  .faq details p { padding-right: 0; }
  .player__label { left: 18px; right: 18px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__copy > *, .js .niche__arch, .js .convo .bubble { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Ambiente: aurora lenta y retícula tenue detrás de todo
   ========================================================= */
.ambient {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background: var(--noche);
}
/* Tres luces suaves con los azules del traje; se mueven muy despacio */
.ambient span {
  position: absolute; border-radius: 50%;
  width: 70vmax; height: 70vmax;
  opacity: 0.85;
  will-change: transform;
}
.ambient span:nth-child(1) {
  left: 40%; top: -30%;
  background: radial-gradient(closest-side, rgba(36, 72, 192, 0.75), transparent);
  animation: deriva1 38s ease-in-out infinite alternate;
}
.ambient span:nth-child(2) {
  left: -30%; top: 30%;
  background: radial-gradient(closest-side, rgba(28, 138, 90, 0.35), transparent);
  animation: deriva2 46s ease-in-out infinite alternate;
}
.ambient span:nth-child(3) {
  left: 55%; top: 55%;
  width: 55vmax; height: 55vmax;
  background: radial-gradient(closest-side, rgba(235, 170, 60, 0.16), transparent);
  animation: deriva3 52s ease-in-out infinite alternate;
}
@keyframes deriva1 { to { transform: translate(-18vw, 22vh) scale(1.15); } }
@keyframes deriva2 { to { transform: translate(24vw, -16vh) scale(0.9); } }
@keyframes deriva3 { to { transform: translate(-30vw, -24vh) scale(1.2); } }

/* Retícula de puntos que se desvanece hacia los bordes */
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(241, 243, 250, 0.13) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
}

body { background: transparent; }
html { background: var(--noche); }
.hero { background: transparent; overflow: visible; }

/* Resplandor detrás del nicho y zoom lentísimo del retrato */
.niche::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 42%; width: 130%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(235, 170, 60, 0.32), rgba(36, 72, 192, 0.28) 55%, transparent);
  animation: respira 8s ease-in-out infinite;
}
@keyframes respira { 50% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.94); } }
.niche { isolation: isolate; }
.niche__arch img { animation: acerca 26s ease-in-out infinite alternate; transform-origin: 50% 35%; }
@keyframes acerca { to { transform: scale(1.07); } }

/* La conversación del hero cambia de tema */
.convo.is-out .bubble { opacity: 0 !important; transform: translateY(-6px) !important; transition: opacity 0.4s ease, transform 0.5s var(--ease) !important; }

/* =========================================================
   Apariciones al hacer scroll (una vez, suaves)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.8s ease var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}

/* Pasos: las pantallas se "escriben" cuando aparecen */
.js .step .step__screen > * { opacity: 0; transform: translateY(8px); }
.js .step.is-visible .step__screen > * { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.js .step.is-visible .step__screen > :nth-child(1) { transition-delay: calc(var(--d, 0s) + 0.3s); }
.js .step.is-visible .step__screen > :nth-child(2) { transition-delay: calc(var(--d, 0s) + 0.8s); }
.js .step.is-visible .step__screen > :nth-child(3) { transition-delay: calc(var(--d, 0s) + 1.1s); }
.js .step.is-visible .step__screen > :nth-child(4) { transition-delay: calc(var(--d, 0s) + 1.4s); }
.step { transition: box-shadow 0.3s, translate 0.4s var(--ease); }
.step:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(241, 243, 250, 0.28); }
.step__screen { background: radial-gradient(80% 70% at 50% 0%, rgba(36, 72, 192, 0.35), transparent 70%), linear-gradient(180deg, #16244F, #101C47); }

/* Historia: la línea se llena con el scroll */
.timeline { position: relative; padding-left: 32px; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 6px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--claro-linea); }
.timeline::after {
  background: linear-gradient(var(--oro), var(--oro-2));
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.hito { position: relative; }
.hito::before {
  content: ""; position: absolute; left: -32px; top: 24px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--noche); box-shadow: inset 0 0 0 2px rgba(241, 243, 250, 0.3);
  transition: box-shadow 0.4s ease, background-color 0.4s ease;
}
.hito.is-on::before { background: var(--oro); box-shadow: 0 0 0 5px rgba(235, 170, 60, 0.18); }

/* Tarjetas de prensa: se levantan un poco */
.article { transition: box-shadow 0.25s, background-color 0.25s, translate 0.35s var(--ease); }
.article:hover { translate: 0 -3px; }

/* Botón dorado: un destello al pasar el cursor */
.btn--oro { position: relative; overflow: hidden; isolation: isolate; }
.btn--oro::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--oro:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }

/* Rostro de "Por qué existe": se desliza apenas con el scroll */
.why__img { background-position: 50% calc(40% + var(--py, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .step .step__screen > * { opacity: 1 !important; transform: none !important; }
  .timeline::after { transform: scaleY(1); }
}

/* El número que cuenta no hereda el estilo de la etiqueta */
.fact b span { display: inline; margin: 0; font: inherit; color: inherit; }

/* El resplandor no debe ensanchar la página en celular */
.hero { overflow-x: clip; overflow-y: visible; }
html, body { overflow-x: clip; }
