/* Portada de kovenant.novawebs.eu. Tokens de DESIGN.md: «la lámpara de aceite a las tres de la mañana».
   Las páginas legales siguen con styles.css. */
:root {
  --noche: #0d0907;
  --basalto: #16120e;
  --bronce: #221d18;
  --veta: #3b342e;
  --travertino: #f0e9db;
  --marmol: #b0aaa1;
  --ceniza: #8e8881;
  --lampara: #e3b662;
  --honda: #ba8743;
  --resplandor: #f2d89a;
  --pompeya: #cf604b;
  --olivo: #94a773;
  --serif: 'Castoro', Georgia, 'Times New Roman', serif;
  --titling: 'Castoro Titling', 'Castoro', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wide: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--noche); scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--noche);
  color: var(--travertino);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Grano de piedra: fijo y sin eventos, para no repintar al hacer scroll. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: var(--lampara); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--lampara); outline-offset: 3px; }
p { margin: 0; color: var(--marmol); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.wide { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.inscription { font: 400 13px/1.2 var(--titling); letter-spacing: 0.22em; text-transform: uppercase; color: var(--honda); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--lampara); color: var(--noche); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Botones: tablillas de radio 12, nunca píldoras (DESIGN.md, Buttons). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--lampara); color: var(--noche); }
.btn-primary:hover { background: var(--resplandor); color: var(--noche); }
.btn-secondary { background: var(--bronce); color: var(--travertino); }
.btn-secondary:hover { background: var(--veta); color: var(--travertino); }
.btn .arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -10px;
  border-radius: 8px;
  background: rgba(13, 9, 7, 0.12);
  transition: transform 0.5s var(--ease);
}
.btn:hover .arrow { transform: translate(3px, -1px); }

/* Navegación flotante: una isla de cristal oscuro separada del borde. */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 24px), 1080px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(240, 233, 219, 0.1);
  border-radius: 16px;
  background: rgba(22, 18, 14, 0.72);
  box-shadow: inset 0 1px 0 rgba(242, 216, 154, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--travertino); text-decoration: none; font: 400 14px/1 var(--titling); letter-spacing: 0.22em; }
/* El mismo logotipo que la pantalla de acceso de Google: su verificación de marca lo busca en la portada. */
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--marmol); text-decoration: none; font-size: 15px; transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--travertino); }
.nav .lang { color: var(--ceniza); font-size: 14px; text-decoration: none; }
.nav .btn { min-height: 44px; padding: 0 18px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .lang { margin-left: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--basalto); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.halo {
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 182, 98, 0.28), rgba(186, 135, 67, 0.08) 55%, transparent);
}

/* Maqueta 3D: el render con la pantalla hueca encima y el contenido detrás, deformado por landing.js. */
.device3d { position: relative; isolation: isolate; }
.device3d .frame { position: relative; z-index: 1; width: 100%; height: auto; pointer-events: none; }
.device3d .plane { position: absolute; top: 0; left: 0; z-index: 0; width: 600px; aspect-ratio: 1206 / 2622; transform-origin: 0 0; overflow: hidden; border-radius: 13.7% / 6.3%; background: var(--noche); }
.device3d .plane > img, .device3d .plane > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Entradas y salidas al hacer scroll: suben y se enfocan al entrar; al salir por arriba se van hacia arriba. */
.reveal { opacity: 0; translate: 0 32px; filter: blur(8px); transition: opacity 0.9s var(--ease), translate 1.1s var(--ease), filter 0.9s var(--ease); }
.reveal.gone { translate: 0 -32px; }
.reveal.in { opacity: 1; translate: 0 0; filter: none; }
.reveal.in[data-delay='1'] { transition-delay: 0.1s; }
.reveal.in[data-delay='2'] { transition-delay: 0.2s; }
.reveal.in[data-delay='3'] { transition-delay: 0.3s; }

/* Levitación: el dispositivo sube y baja despacio, y su sombra en el suelo se encoge y aclara cuando sube. */
.levitate { animation: levitate 6.5s ease-in-out infinite; will-change: transform; }
.ground { display: block; width: 62%; height: 34px; margin: 18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6) 35%, rgba(227, 182, 98, 0.2) 62%, transparent); filter: blur(5px); animation: ground 6.5s ease-in-out infinite; pointer-events: none; }
@keyframes levitate {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -22px, 0) rotate(-1.2deg); }
}
@keyframes ground {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(0.74); opacity: 0.45; }
}

section { position: relative; }
.section { padding-block: clamp(56px, 7vw, 100px); }
.h2 { font: 400 clamp(32px, 4.4vw, 52px)/1.1 var(--serif); letter-spacing: -0.01em; color: var(--travertino); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--marmol); max-width: 34rem; }

/* 1. Hero. */
.hero { padding-top: clamp(112px, 14vh, 136px); padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: clamp(32px, 6vw, 88px); min-height: calc(100dvh - 200px); }
.hero h1 { font: 400 clamp(38px, 4.6vw, 62px)/1.08 var(--serif); letter-spacing: -0.015em; margin: 0 0 22px; }
.hero h1 em { font-style: italic; color: var(--resplandor); }
.hero h1 .inscription { display: block; margin-bottom: 18px; letter-spacing: 0.22em; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: min(560px, 72vh); }
.hero-visual .halo { width: 130%; aspect-ratio: 1; left: -15%; top: 50%; transform: translateY(-50%); }
.hero-visual .hero-device { width: min(360px, 38vh, 82vw); }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 22px; font-size: 14px; color: var(--ceniza); }
.hero-note i { font-size: 17px; color: var(--marmol); }
.hero-note span { color: var(--veta); }
.hero-visual .flame { position: absolute; left: 2%; bottom: 6%; width: clamp(110px, 12vw, 150px); filter: drop-shadow(0 0 30px rgba(227, 182, 98, 0.45)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .hero-visual .hero-device { width: min(300px, 70vw); }
  .hero-visual { min-height: 520px; }
  .hero-visual .flame { left: 0; bottom: 0; }
}

/* La llama de Aurby: dos osciladores de periodos que no se repiten, desde la base (DESIGN.md, La Lámpara). */
.flame { overflow: visible; }
.flame .body { transform-origin: 50% 92%; transform-box: fill-box; animation: lick 2.6s var(--ease) infinite alternate; }
.flame .core { transform-origin: 50% 95%; transform-box: fill-box; animation: core 1.7s ease-in-out infinite alternate; }
.flame .eyes { transform-origin: center; transform-box: fill-box; animation: blink 5.3s infinite; }
@keyframes lick {
  0% { transform: scale(1, 1) skewX(0deg); }
  35% { transform: scale(0.97, 1.05) skewX(-2deg); }
  70% { transform: scale(1.02, 0.97) skewX(1.5deg); }
  100% { transform: scale(0.99, 1.03) skewX(-1deg); }
}
@keyframes core { from { transform: scale(0.94, 0.92); opacity: 0.5; } to { transform: scale(1.04, 1.06); opacity: 0.72; } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }

/* La app por dentro: el vídeo de la App Store y las diez capturas de la ficha, en cristal de doble borde.
   Móvil y tableta: vídeo y carrusel. Ordenador: los diez titulares como índice y un solo iPhone que cambia (landing.js). */
.shots { padding-block: clamp(56px, 7vw, 100px) clamp(32px, 4vw, 56px); }
.shots-grid { display: grid; gap: 48px; }
.shots-copy > * { max-width: 40rem; }
.shots-copy .h2 { margin-top: 14px; }
.shots-copy .lead { margin-top: 18px; }
.shots-index { display: none; }
.shots-stage { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.shell { position: relative; padding: 6px; border-radius: 30px; border: 1px solid rgba(240, 233, 219, 0.09); background: linear-gradient(180deg, rgba(34, 29, 24, 0.85), rgba(22, 18, 14, 0.5)); box-shadow: inset 0 1px 0 rgba(242, 216, 154, 0.1), 0 40px 70px -40px rgba(0, 0, 0, 0.8); }
.shell img, .shell video { width: 100%; height: auto; border-radius: 24px; background: var(--basalto); }
.shots-video { margin: 0; }
.shots-video video { aspect-ratio: 540 / 1170; object-fit: cover; }
.shots-video figcaption { margin-top: 14px; text-align: center; font-size: 13px; letter-spacing: 0.04em; color: var(--ceniza); }
.sound { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(240, 233, 219, 0.18); border-radius: 50%; background: rgba(13, 9, 7, 0.7); color: var(--travertino); font-size: 20px; cursor: pointer; transition: transform 0.5s var(--ease), background-color 0.3s var(--ease); }
.sound:hover { background: rgba(59, 52, 46, 0.9); }
.sound:active { transform: scale(0.94); }
.sound[aria-pressed='true'] { color: var(--resplandor); border-color: var(--honda); }
.shots-side { min-width: 0; }
.shots-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 21vw, 248px); gap: 18px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.shots-rail::-webkit-scrollbar { display: none; }
.shots-rail.end { -webkit-mask-image: none; mask-image: none; }
.shots-rail li { scroll-snap-align: start; }
.shots-rail .shell { padding: 5px; border-radius: 26px; }
.shots-rail img { border-radius: 21px; }
.shots-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.shots-nav button { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--veta); border-radius: 50%; background: var(--bronce); color: var(--travertino); font-size: 20px; cursor: pointer; transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), opacity 0.3s var(--ease); }
.shots-nav button:hover { background: var(--veta); }
.shots-nav button:active { transform: scale(0.94); }
.shots-nav button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 760px) {
  .shots-stage { grid-template-columns: 1fr; gap: 40px; }
  .shots-video { justify-self: center; width: min(290px, 74vw); }
  .shots-rail { grid-auto-columns: min(62vw, 250px); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .shots-nav { display: none; }
}
@media (min-width: 1024px) {
  .shots-grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(56px, 8vw, 136px); align-items: center; }
  .shots-index { display: block; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--veta); }
  .shots-index li { border-bottom: 1px solid var(--veta); }
  .shots-index button { position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: baseline; width: 100%; padding: 11px 4px; border: 0; background: none; color: var(--ceniza); font: 400 clamp(18px, 1.6vw, 22px)/1.3 var(--serif); text-align: left; cursor: pointer; transition: color 0.4s var(--ease); }
  .shots-index button:hover { color: var(--marmol); }
  .shots-index .n { font: 400 12px/1 var(--titling); letter-spacing: 0.2em; color: var(--veta); transition: color 0.4s var(--ease); }
  .shots-index small { margin-left: 12px; font: 400 13px/1 var(--sans); letter-spacing: 0.04em; color: var(--ceniza); }
  .shots-index .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; transform: scaleX(0); transform-origin: left; background: var(--lampara); }
  .shots-index button[aria-pressed='true'] { color: var(--travertino); }
  .shots-index button[aria-pressed='true'] .n { color: var(--lampara); }
  .shots-index button[aria-pressed='true'] .bar { transform: scaleX(1); }
  .shots.auto .shots-index button[aria-pressed='true'] .bar { animation: shot-run var(--dur, 4.2s) linear forwards; }
  .shots-stage { position: relative; display: grid; grid-template-columns: none; gap: 0; width: min(330px, 26vw, calc((100vh - 160px) * 0.46)); }
  .shots-stage::before { content: ''; position: absolute; inset: 10% -40%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 182, 98, 0.16), transparent); pointer-events: none; }
  .shots-stage > *, .shots-side, .shots-rail li { grid-area: 1 / 1; }
  .shots-side { display: grid; }
  .shots-rail { display: grid; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .shots-rail li, .shots-video { opacity: 0; visibility: hidden; transform: scale(0.97); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), visibility 0.6s; }
  .shots-rail li.on, .shots-stage.video .shots-video { opacity: 1; visibility: visible; transform: none; }
  .shots-rail .shell { padding: 6px; border-radius: 30px; }
  .shots-rail img { border-radius: 24px; }
  .shots-video figcaption, .shots-nav { display: none; }
}
@keyframes shot-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 8. Lista de espera: el ritual, con la lámpara encendida detrás. */
.join { overflow: hidden; }
.join .halo { width: 900px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -45%); }
.join-panel { position: relative; max-width: 640px; margin: 0 auto; padding: 6px; border-radius: 28px; background: rgba(240, 233, 219, 0.04); border: 1px solid rgba(240, 233, 219, 0.1); }
.join-core { padding: clamp(28px, 5vw, 48px); border-radius: 22px; background: rgba(22, 18, 14, 0.9); box-shadow: inset 0 1px 0 rgba(242, 216, 154, 0.28); text-align: center; }
.join-core .flame { width: 76px; margin: 0 auto 18px; filter: drop-shadow(0 0 22px rgba(227, 182, 98, 0.55)); }
.join-core .h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 14px; }
.join-core > p { max-width: 30rem; margin: 0 auto; }
form { display: grid; gap: 18px; margin-top: 32px; text-align: left; }
.field { display: grid; gap: 8px; }
.field label, fieldset legend { font-size: 14px; color: var(--marmol); }
input[type='email'] {
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--veta);
  border-radius: 10px;
  background: var(--noche);
  color: var(--travertino);
  font: 400 17px var(--sans);
  transition: border-color 0.15s;
}
input[type='email']::placeholder { color: var(--ceniza); }
input[type='email']:focus { outline: none; border-color: var(--honda); }
input[aria-invalid='true'] { border-color: var(--pompeya); }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 10px; background: var(--basalto); border: 1px solid var(--veta); color: var(--marmol); font-weight: 500; transition: all 0.25s var(--ease); }
.choice span i { font-size: 20px; }
.choice input:checked + span { background: var(--bronce); border-color: var(--honda); color: var(--resplandor); }
.choice input:focus-visible + span { outline: 2px solid var(--lampara); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--marmol); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lampara); }
.check strong { color: var(--travertino); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 22px; font-size: 14px; }
.form-msg.error { color: var(--pompeya); }
form .btn { width: 100%; }
.joined { display: none; padding-top: 12px; }
.joined h3 { font: 400 30px/1.2 var(--serif); color: var(--travertino); margin-bottom: 10px; }
.join-core.done form { display: none; }
.join-core.done .joined { display: block; }
.joined .mail { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--veta); border-radius: 14px; background: var(--bronce); font-size: 15px; line-height: 1.55; color: var(--marmol); }
.joined .mail i { flex: none; font-size: 22px; color: var(--lampara); margin-top: 1px; }
.joined .mail strong { color: var(--resplandor); font-weight: 600; }
.joined .tf { margin-top: 18px; }

/* Preguntas frecuentes: el titular fijo a la izquierda y las respuestas que se despliegan. */
.faq { padding-block: clamp(56px, 7vw, 100px) clamp(16px, 3vw, 32px); }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .h2 { margin-top: 14px; }
.faq-list { border-top: 1px solid var(--veta); }
.qa { border-bottom: 1px solid var(--veta); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; list-style: none; cursor: pointer; font: 400 clamp(19px, 2vw, 22px)/1.35 var(--serif); color: var(--travertino); transition: color 0.3s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--resplandor); }
.qa summary i { flex: none; font-size: 20px; color: var(--lampara); transition: transform 0.5s var(--ease); }
.qa[open] summary i { transform: rotate(45deg); }
.qa p { padding: 0 44px 24px 4px; font-size: 16px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* 9. Seguridad y datos. */
.care { padding-block: 16px 72px; }
.care-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.care-grid > div { padding: 24px 26px; border-radius: 16px; border: 1px solid var(--veta); }
.care-grid h3 { font: 600 17px/1.35 var(--sans); color: var(--travertino); margin-bottom: 8px; }
.care-grid p { font-size: 15px; }
@media (max-width: 760px) { .care-grid { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--veta); padding-block: 40px 48px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot nav a { color: var(--marmol); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--travertino); }
.foot small { width: 100%; color: var(--ceniza); font-size: 13px; }
.foot .credit { width: 100%; margin-top: -12px; font-size: 13px; color: var(--ceniza); }
.foot .credit a { color: var(--marmol); }
.foot .credit a:hover { color: var(--lampara); }

/* Splash: la palabra del pie, en contorno, y una luz de lámpara que la recorre y la deja encendida en oro. */
.splash { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: var(--noche); transition: opacity 0.7s var(--ease), visibility 0.7s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash .glow { position: absolute; width: 70vmax; aspect-ratio: 2.4; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 182, 98, 0.22), transparent); transform: scale(0.4); opacity: 0; animation: glow 1.4s var(--ease) 0.9s forwards; }
.splash .word { position: relative; font: 400 clamp(40px, 11.5vw, 150px)/1 var(--titling); letter-spacing: 0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--veta); filter: drop-shadow(0 0 22px rgba(227, 182, 98, 0.4)); opacity: 0; animation: word 0.8s var(--ease) 0.05s forwards; }
.splash .word::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, var(--honda) 0%, var(--lampara) 30%, var(--resplandor) 50%, var(--lampara) 70%, var(--honda) 100%) 100% 0 / 220% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 260% 100% no-repeat;
  mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 260% 100% no-repeat;
  animation: lit 1.3s var(--ease) 0.45s forwards, sheen 1.9s var(--ease) 0.45s forwards;
}
@keyframes word { from { opacity: 0; letter-spacing: 0.1em; } to { opacity: 1; letter-spacing: 0.04em; } }
@keyframes lit { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes sheen { to { background-position: 0 0; } }
@keyframes glow { to { transform: scale(1); opacity: 1; } }

/* El problema: bocetos en papiro unidos por un hilo de luz que avanza con el scroll (--p lo pone landing.js). */
.story { position: relative; display: grid; gap: clamp(48px, 7vw, 96px); padding-block: clamp(48px, 6vw, 88px); }
.thread { --p: 0; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--veta); }
.thread span { position: absolute; top: 0; left: -1px; width: 3px; height: 100%; transform: scaleY(var(--p)); transform-origin: top; background: linear-gradient(180deg, var(--honda), var(--lampara)); border-radius: 3px; box-shadow: 0 0 14px rgba(227, 182, 98, 0.5); }
.thread i { position: absolute; left: -5px; top: calc(var(--p) * 100%); width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: var(--resplandor); box-shadow: 0 0 0 4px rgba(227, 182, 98, 0.18), 0 0 22px 6px rgba(227, 182, 98, 0.55); }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 10vw, 140px); align-items: center; }
.story-row.flip .sketch { order: 2; }
.story-copy { display: grid; gap: 14px; max-width: 30rem; }
.story-copy .h2 { color: var(--lampara); margin-bottom: 8px; }
.story-copy p { font-size: clamp(17px, 1.5vw, 19px); color: var(--travertino); }
.story-copy p + p { color: var(--marmol); }
.sketch { margin: 0; padding: 6px; border-radius: 22px; background: rgba(240, 233, 219, 0.05); border: 1px solid rgba(240, 233, 219, 0.1); }
.sketch img { width: 100%; height: auto; border-radius: 17px; background: #d9cdb6; }
/* Anotaciones a mano sobre los bocetos: texto real (traducible y legible) con flechas que se trazan solas. */
.paper { position: relative; container-type: inline-size; }
.note { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 4px; max-width: 11em; transform: rotate(var(--r, -3deg)); font: 600 4.3cqi/1 'Caveat', cursive; color: #3a2814; pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease) 0.3s; }
.ink-arrow { flex: none; width: 8.5cqi; height: auto; overflow: visible; transform: rotate(var(--a, 0deg)); }
.ink-arrow path { fill: none; stroke: #3a2814; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.1s var(--ease) 0.6s; }
.wax { position: absolute; top: 0; left: 0; width: 320px; height: 200px; margin: 0; padding: 10px 18px; list-style: none; display: grid; align-content: center; gap: 2px; transform-origin: 0 0; font: 600 37px/1.1 'Caveat', cursive; color: #f4ead6; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.9s var(--ease) 0.7s; pointer-events: none; }
.wax li::before { content: '\2610'; display: inline-block; width: 1.3em; font-family: var(--sans); font-size: 0.8em; }
.wax li.done::before { content: '\2611'; }
.in .wax { opacity: 1; }
.note.flip { left: auto; right: var(--x); flex-direction: row-reverse; text-align: left; }
.note.stack { line-height: 1.05; text-align: center; }
.in .note { opacity: 1; }
.in .ink-arrow path { stroke-dashoffset: 0; }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(2.5deg); }
@media (max-width: 860px) {
  .thread { left: 12px; }
  .story-row { grid-template-columns: 1fr; padding-left: 28px; }
  .story-row.flip .sketch { order: 0; }
  .tilt-l, .tilt-r { transform: none; }
}

/* El recorrido: el iPhone en 3D (tour3d.js) fijo mientras bajan los pasos. Sin WebGL queda la maqueta plana. */
.tour-head { max-width: 40rem; }
.tour-head .h2 { margin-top: 14px; }
.tour-head .lead { margin-top: 18px; }
.tour-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); margin-top: 48px; }
.tour-phone { position: sticky; top: max(88px, calc(50vh - 320px)); align-self: start; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; height: min(640px, calc(100vh - 140px)); padding-top: 12px; }
.tour-phone .halo { width: 120%; aspect-ratio: 1; top: 8%; }
.tour-phone .levitate { height: 100%; min-height: 0; display: grid; place-items: center; }
.tour-phone .tour-device { height: 100%; aspect-ratio: 1400 / 2438; max-width: 100%; }
.tour-phone .tour-device .frame { height: 100%; width: auto; }
.tour-phone .screen { opacity: 0; transition: opacity 0.6s var(--ease); }
.tour-phone .screen.on { opacity: 1; }
.gl-holder { position: absolute; inset: 0 0 88px; opacity: 0; transition: opacity 0.8s var(--ease); }
.gl-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.grabbing .gl-canvas { cursor: grabbing; }
.tour-phone.gl .levitate { visibility: hidden; }
.tour-phone.gl .gl-holder { opacity: 1; }
/* Con el 3D, la sombra la mueve tour3d.js (--lift de -1 a 1) en lugar de la animación CSS. */
.tour-phone.gl .ground { animation: none; transform: scale(calc(0.87 - var(--lift, 0) * 0.13)); opacity: calc(0.68 - var(--lift, 0) * 0.22); }
.tour-phone { isolation: isolate; }
/* La sombra va detrás: durante la vuelta, la tarjeta 3D se pinta en su propia capa y la taparía. */
.tour-phone .ground { position: relative; z-index: -1; width: 46%; margin-top: 10px; }
.drag-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ceniza); opacity: 0; transition: opacity 0.6s var(--ease); }
.tour-phone.gl .drag-hint { opacity: 1; }
.drag-hint i { font-size: 18px; color: var(--honda); }
.tour-steps { list-style: none; margin: 0; padding: 0; }
.tour-steps li { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; max-width: 30rem; opacity: 0.3; filter: blur(1.5px); transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.tour-steps li.on { opacity: 1; filter: none; }
.tour-steps h3 { font: 400 clamp(28px, 3vw, 38px)/1.12 var(--serif); color: var(--travertino); }
.tour-steps p { font-size: clamp(16px, 1.4vw, 18px); }
.tag { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 6px 12px; border-radius: 999px; background: var(--bronce); border: 1px solid var(--veta); font-size: 14px; color: var(--resplandor); }
.watch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px; padding: 0 16px 0 6px; border: 1px solid var(--veta); border-radius: 12px; background: var(--basalto); color: var(--travertino); font: 500 15px/1 var(--sans); cursor: pointer; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.watch i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--lampara); color: var(--noche); font-size: 16px; }
.watch span { color: var(--ceniza); }
.watch:hover { border-color: var(--honda); background: var(--bronce); }
.watch:active { transform: scale(0.98); }
/* Sin WebGL, la maqueta plana también da la vuelta: se pone de canto, cambia la pantalla y vuelve de frente. */
.tour-phone .levitate { perspective: 1100px; }
.tour-device.spin { animation: spin-flat 0.84s both; }
@keyframes spin-flat {
  0% { transform: rotateY(0deg); animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  50% { transform: rotateY(90deg); }
  50.01% { transform: rotateY(-90deg); animation-timing-function: cubic-bezier(0.1, 0.5, 0.3, 1); }
  100% { transform: rotateY(0deg); }
}
.drag-hint .touch { display: none; }
@media (hover: none) {
  .drag-hint .mouse { display: none; }
  .drag-hint .touch { display: inline; }
}
/* Móvil y tablet vertical: el iPhone se queda fijo arriba y los pasos pasan por debajo. */
@media (max-width: 860px) {
  .tour-grid { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .tour-phone { z-index: 3; top: 62px; height: min(50vh, 520px); margin-inline: calc(var(--gutter) * -1); padding-top: 6px; background: linear-gradient(180deg, var(--noche) 0, var(--noche) calc(100% - 16px), rgba(13, 9, 7, 0)); }
  .gl-holder { inset: 0 0 52px; }
  .tour-phone .ground { height: 18px; margin-top: 4px; }
  .drag-hint { margin-top: 2px; font-size: 12px; }
  .tour-steps li { min-height: 64vh; justify-content: flex-start; padding-top: 6vh; }
  .tour-steps li:last-child { min-height: 52vh; }
}

/* Intros de épocas y ligas: portadas que abren el visor con sonido. */
.intros-head { max-width: 40rem; }
.intros-head .h2 { margin: 14px 0 18px; }
.intro-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.intro { position: relative; display: block; overflow: hidden; padding: 0; aspect-ratio: 9 / 16; border: 1px solid rgba(240, 233, 219, 0.1); border-radius: 22px; background: var(--basalto); color: var(--travertino); text-align: left; cursor: pointer; isolation: isolate; }
.intro img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 9, 7, 0.92)); }
.intro .play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(13, 9, 7, 0.5); border: 1px solid rgba(242, 216, 154, 0.5); color: var(--resplandor); font-size: 26px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 0.5s var(--ease), background-color 0.3s var(--ease); }
.intro .dur { position: absolute; z-index: 1; top: 14px; right: 14px; padding: 4px 9px; border-radius: 8px; background: rgba(13, 9, 7, 0.6); font: 500 12px/1 var(--sans); color: var(--marmol); }
.intro .meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--marmol); }
.intro .meta strong { font: 400 22px/1.15 var(--serif); color: var(--travertino); }
.intro:hover img { transform: scale(1.05); }
.intro:hover .play { transform: scale(1.1); background: var(--lampara); color: var(--noche); }
.intro:active { transform: scale(0.99); }
.intro:focus-visible { outline: 2px solid var(--lampara); outline-offset: 3px; }
@media (max-width: 900px) {
  .intro-row { grid-template-columns: repeat(4, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .intro { scroll-snap-align: start; }
}

/* El visor: un cuadro de vídeo vertical sobre la noche. */
.cine { width: min(420px, 92vw); max-height: 92dvh; padding: 0; border: 1px solid rgba(240, 233, 219, 0.14); border-radius: 22px; background: var(--noche); color: var(--travertino); overflow: hidden; }
.cine::backdrop { background: rgba(13, 9, 7, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cine[open] { animation: cine-in 0.5s var(--ease); }
.cine video { width: 100%; max-height: calc(92dvh - 52px); aspect-ratio: 9 / 16; background: #000; }
.cine-title { padding: 14px 18px; font: 400 18px/1.2 var(--serif); color: var(--travertino); }
.cine-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(13, 9, 7, 0.6); color: var(--travertino); font-size: 20px; cursor: pointer; }
@keyframes cine-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* Dispositivos: carrusel automático. Cada pestaña lleva su barra de tiempo; el escenario cambia con profundidad. */
.dev { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.dev-copy .h2 { margin: 14px 0 24px; max-width: 14ch; }
.dev-texts { display: grid; min-height: 7.2em; }
.dev-text { grid-area: 1 / 1; max-width: 30rem; font-size: clamp(17px, 1.5vw, 19px); opacity: 0; translate: 0 -8px; transition: opacity 0.22s ease-out, translate 0.3s ease-out; }
.dev-text strong { display: block; margin-bottom: 4px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); color: var(--travertino); }
.dev-text.on { opacity: 1; translate: 0 0; transition: opacity 0.6s var(--ease) 0.25s, translate 0.8s var(--ease) 0.25s; }
.dev-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.dev-tabs button { display: grid; gap: 12px; padding: 0 0 6px; border: 0; background: none; color: var(--ceniza); font: 500 14px/1.2 var(--sans); text-align: left; cursor: pointer; transition: color 0.3s var(--ease); }
.dev-tabs button[aria-selected='true'], .dev-tabs button:hover { color: var(--travertino); }
.dev-tabs .lbl em { display: block; margin-bottom: 3px; font: 400 11px/1 var(--titling); font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lampara); }
.dev-tabs .bar { position: relative; display: block; height: 2px; overflow: hidden; border-radius: 2px; background: var(--veta); }
.dev-tabs .bar i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--lampara); }
.dev-tabs button[aria-selected='true'] .bar i { animation: dev-clock 5.2s linear forwards; }
.dev.hold .bar i, .dev.away .bar i { animation-play-state: paused; }
@keyframes dev-clock { to { transform: scaleX(1); } }
.dev .stores { justify-content: flex-start; }
.dev .stores-note { text-align: left; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.stores img { height: 48px; width: auto; }
.stores .gp { height: 71px; margin: -11px; }
.stores-note { margin-top: 12px; font-size: 14px; color: var(--ceniza); }
.dev-stage { position: relative; display: grid; grid-template: 100% / 100%; height: min(520px, 62vh, 48vw); min-height: 340px; perspective: 1400px; }
.dev-stage .halo { width: 110%; aspect-ratio: 1; left: -5%; top: 50%; transform: translateY(-50%); }
.dev-slide { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; margin: 0; min-height: 0; opacity: 0; transform: translateX(22%) rotateY(-32deg) scale(0.82); filter: blur(10px); transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), filter 0.9s var(--ease); pointer-events: none; }
.dev-slide.past { transform: translateX(-22%) rotateY(32deg) scale(0.82); }
.dev-slide.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.dev-slide .levitate { position: relative; flex: 1; width: 100%; min-height: 0; }
.dev-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); }
.dev-slide .ground { margin-top: 6px; }
/* La palabra de fondo (Duo, iOS 27…) entra con el espaciado abierto y se cierra: el gesto de motion graphics. */
.dev-slide .word { position: absolute; z-index: -1; top: 50%; left: 50%; translate: -50% -50%; white-space: nowrap; font: 400 calc(clamp(64px, 9vw, 136px) * var(--fs, 1))/1 var(--titling); letter-spacing: 0.4em; color: transparent; -webkit-text-stroke: 1px rgba(227, 182, 98, 0.32); opacity: 0; transition: letter-spacing 1.6s var(--ease), opacity 1s var(--ease); }
.dev-slide.on .word { letter-spacing: 0.04em; opacity: 1; }
@media (max-width: 900px) {
  .dev { grid-template-columns: 1fr; }
  .dev-stage { order: -1; height: min(100vw, 440px); min-height: 0; }
  .dev-tabs { grid-template-columns: 1fr 1fr; row-gap: 18px; }
}

/* Pacto. */
.pact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.pact-copy .h2 { margin: 14px 0 20px; }
.pact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.pact-list li { display: flex; align-items: center; gap: 12px; color: var(--travertino); }
.pact-list i { font-size: 22px; color: var(--lampara); }
@media (max-width: 860px) { .pact-grid { grid-template-columns: 1fr; } }

.join-grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.join-grid .join-panel { margin: 0; }
@media (max-width: 960px) { .join-grid { grid-template-columns: 1fr; } .join-grid .sketch { max-width: 520px; } }

/* El nombre enorme al pie, como cierre. */
.wordmark { margin: 0 0 40px; font: 400 clamp(44px, 12.4vw, 178px)/0.9 var(--titling); letter-spacing: 0.04em; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--veta); user-select: none; }
.foot .brand img { width: 36px; height: 36px; }

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  .levitate, .ground, .dev-tabs .bar i, .cine[open], .pcard, .fstep .bar i, .rs .tap, .rs .breath span, .rs .run, .merge-core::after { animation: none !important; }
  .merge .app, .merge-core, .msg, .day li::after { transition: none; }
  .dev-slide, .dev-slide .word, .dev-text, .tour-steps li, .gl-holder { transition: none; }
  .dev-tabs button[aria-selected='true'] .bar i { transform: scaleX(1); }
  .note, .wax { opacity: 1; transition: none; }
  .ink-arrow path { stroke-dashoffset: 0; transition: none; }
  .tour-phone .screen { transition: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; filter: none; transition: none; }
  .flame .body, .flame .core, .flame .eyes { animation: none; }
  .btn, .btn .arrow { transition: none; }
}


/* Por qué Kovenant: cuatro apps que se funden en una al entrar en pantalla. */
.merge-stage { position: relative; width: min(440px, 100%); aspect-ratio: 1.3; margin: 0 auto; }
.merge .app { position: absolute; left: var(--x); top: var(--y); display: grid; justify-items: center; gap: 8px; width: 104px; padding: 18px 8px 14px; translate: -50% -50%; rotate: var(--r); border: 1px solid var(--veta); border-radius: 24px; background: var(--basalto); color: var(--marmol); font: 500 13px/1 var(--sans); transition: left 0.9s var(--ease), top 0.9s var(--ease), scale 0.9s var(--ease), rotate 0.9s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.merge .app i { font-size: 32px; color: var(--ceniza); }
.merge .app b { font-weight: 500; }
.merge .a1 { --x: 16%; --y: 20%; --r: -7deg; }
.merge .a2 { --x: 84%; --y: 18%; --r: 6deg; }
.merge .a3 { --x: 18%; --y: 80%; --r: 5deg; }
.merge .a4 { --x: 83%; --y: 82%; --r: -6deg; }
.merge.in .app { left: 50%; top: 50%; scale: 0.3; rotate: 0deg; opacity: 0; filter: blur(3px); }
.merge.in .a1 { transition-delay: 0.5s; }
.merge.in .a2 { transition-delay: 0.62s; }
.merge.in .a3 { transition-delay: 0.74s; }
.merge.in .a4 { transition-delay: 0.86s; }
.merge-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 124px; height: 124px; translate: -50% -50%; scale: 0.4; opacity: 0; border: 1px solid var(--honda); border-radius: 30px; background: radial-gradient(circle at 50% 70%, rgba(227, 182, 98, 0.3), transparent 70%), var(--bronce); transition: scale 1.1s var(--ease), opacity 0.6s var(--ease), box-shadow 1.4s var(--ease); }
.merge-core img { width: 76px; height: 76px; border-radius: 18px; }
.merge-core::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--lampara); border-radius: 30px; opacity: 0; }
.merge.in .merge-core { scale: 1; opacity: 1; box-shadow: 0 0 90px 12px rgba(227, 182, 98, 0.32); transition-delay: 1.15s; }
.merge.in .merge-core::after { animation: ring 2.6s var(--ease) 1.9s infinite; }
@keyframes ring { 0% { opacity: 0.8; scale: 1; } 100% { opacity: 0; scale: 1.7; } }

/* Foco: los cuatro pasos a la izquierda y el móvil que los representa a la derecha, pasando solo. */
.focus { background: linear-gradient(180deg, var(--noche), var(--basalto) 30%, var(--basalto) 70%, var(--noche)); }
.focus-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.focus .h2 { max-width: 16ch; margin: 18px 0 22px; }
.fsteps { display: grid; gap: 6px; margin: 36px 0 0; padding: 0; list-style: none; }
.fstep { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease); }
.fstep:hover { background: rgba(240, 233, 219, 0.03); }
.fstep .mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--veta); border-radius: 12px; background: var(--bronce); color: var(--lampara); font-size: 22px; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.fstep .txt { display: grid; gap: 2px; align-content: center; }
.fstep strong { font: 600 17px/1.3 var(--sans); color: var(--marmol); transition: color 0.4s var(--ease); }
.fstep .txt span { font-size: 15px; color: var(--ceniza); }
.fstep .bar { grid-column: 2; height: 2px; margin-top: 10px; overflow: hidden; border-radius: 2px; background: var(--veta); opacity: 0; }
.fstep .bar i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--lampara); }
.fstep[aria-pressed='true'] { border-color: var(--veta); background: rgba(240, 233, 219, 0.04); }
.fstep[aria-pressed='true'] .mark { background: var(--lampara); border-color: var(--lampara); color: var(--noche); }
.fstep[aria-pressed='true'] strong { color: var(--travertino); }
.fstep[aria-pressed='true'] .bar { opacity: 1; }
.fstep[aria-pressed='true'] .bar i { animation: dev-clock 3.8s linear forwards; }
.focus-grid.hold .fstep .bar i, .focus-grid.away .fstep .bar i { animation-play-state: paused; }
/* Lo demás del bloqueo, en cuatro piezas bajo los pasos del respiro. */
.fextra { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.fextra li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--veta); border-radius: 16px; background: rgba(34, 29, 24, 0.5); }
.fextra i { grid-row: span 2; margin-top: 1px; font-size: 24px; color: var(--lampara); }
.fextra strong { font: 600 15px/1.35 var(--sans); color: var(--travertino); }
.fextra span { font-size: 14px; line-height: 1.5; color: var(--ceniza); }
@media (max-width: 560px) { .fextra { grid-template-columns: 1fr; } }
.focus-phone { position: relative; display: grid; justify-items: center; }
.focus-phone .halo { width: 120%; aspect-ratio: 1; top: 0; }
.foco-device { width: min(350px, 38vh, 72vw); }
/* Las pantallas del respiro viven dentro del plano de 600 × 1304 px que landing.js deforma en perspectiva. */
.resp { font-family: var(--sans); color: var(--travertino); }
.rs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 150px 50px 80px; opacity: 0; transition: opacity 0.6s var(--ease); }
.rs.on { opacity: 1; }
.rs .clock { position: absolute; top: 46px; left: 74px; font: 600 34px/1 var(--sans); }
.rs .big { margin: 0; font: 400 76px/1.1 var(--serif); color: var(--resplandor); text-align: center; }
.rs .why { display: grid; gap: 10px; width: 100%; margin-top: 40px; padding: 30px 34px; border: 2px solid var(--veta); border-radius: 30px; background: rgba(34, 29, 24, 0.8); font: italic 400 36px/1.3 var(--serif); color: var(--travertino); }
.rs .why small { font: 400 22px/1 var(--titling); font-style: normal; letter-spacing: 0.2em; text-transform: uppercase; color: var(--honda); }
.rs .b2 { display: grid; place-items: center; height: 96px; padding: 0 40px; border-radius: 26px; background: var(--lampara); color: var(--noche); font: 600 32px/1 var(--sans); }
.rs-home { justify-content: center; background: linear-gradient(170deg, #2e231a, #120d0a 70%); }
.rs-home .grid { display: grid; grid-template-columns: repeat(4, 104px); gap: 44px 26px; }
.rs-home .ic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26px; background: hsl(var(--h) 18% 26%); }
.rs-home .target { order: 5; background: linear-gradient(135deg, var(--resplandor), var(--pompeya)); color: #fff; font-size: 58px; }
.rs-home .tap { position: absolute; inset: 0; border-radius: 26px; border: 4px solid #fff; opacity: 0; }
.rs-home.on .tap { animation: tap 1.6s var(--ease) 0.8s infinite; }
@keyframes tap { 0% { opacity: 0.9; scale: 0.6; } 100% { opacity: 0; scale: 1.6; } }
.rs-breathe { background: var(--noche); }
.breath { position: relative; width: 300px; aspect-ratio: 1; margin: 30px 0 40px; }
.breath span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(227, 182, 98, 0.5); background: radial-gradient(closest-side, rgba(227, 182, 98, 0.22), transparent); }
.rs-breathe.on .breath span { animation: breathe 3.8s ease-in-out infinite; }
.rs-breathe.on .breath span:nth-child(2) { animation-delay: 0.25s; inset: 40px; }
.rs-breathe.on .breath span:nth-child(3) { animation-delay: 0.5s; inset: 80px; background: rgba(227, 182, 98, 0.5); }
@keyframes breathe { 0%, 100% { scale: 0.72; } 50% { scale: 1.06; } }
.rs-breathe .q { margin: 14px 0 0; font-size: 34px; color: var(--marmol); }
.rs-breathe .why { margin-top: 30px; }
.rs .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; margin-top: auto; }
.rs .b1 { display: grid; place-items: center; height: 96px; border: 2px solid var(--veta); border-radius: 26px; font: 600 30px/1 var(--sans); color: var(--marmol); }
.rs-timer { justify-content: center; background: radial-gradient(120% 70% at 50% 40%, #241a12, var(--noche)); }
.ring { position: relative; display: grid; place-items: center; width: 400px; aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; rotate: -90deg; }
.ring circle { fill: none; stroke: var(--veta); stroke-width: 5; }
.ring .run { stroke: var(--lampara); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; }
.rs-timer.on .run { animation: drain 3.8s linear forwards; }
@keyframes drain { to { stroke-dashoffset: 70; } }
.ring .time { font: 400 120px/1 var(--serif); }
.ring small { position: absolute; bottom: 120px; font-size: 28px; color: var(--ceniza); }
.rs-timer .app { display: flex; align-items: center; gap: 14px; margin-top: 50px; font-size: 34px; color: var(--marmol); }
.rs-wall { background: radial-gradient(120% 60% at 50% 20%, rgba(227, 182, 98, 0.16), var(--noche) 70%); }
.rs-wall .lock { display: grid; place-items: center; width: 170px; aspect-ratio: 1; margin: 20px 0 40px; border-radius: 50%; border: 2px solid var(--honda); background: var(--bronce); color: var(--lampara); font-size: 84px; }
.rs-wall .big { font-size: 66px; }
.rs-wall .aura { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 14px 24px; border-radius: 999px; background: rgba(227, 182, 98, 0.14); color: var(--resplandor); font: 500 28px/1 var(--sans); }
.rs-wall .b2 { width: 100%; margin-top: auto; }
@media (max-width: 900px) {
  .focus-grid { grid-template-columns: 1fr; }
  .focus-phone { order: -1; }
  .foco-device { width: min(260px, 64vw); }
}

/* Aurby: qué hace, una conversación de ejemplo y su día a día. */
.aurby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.aurby-copy .h2 { margin: 14px 0 18px; }
.aurby-can { display: grid; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; }
.aurby-can li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; }
.aurby-can i { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--veta); border-radius: 12px; background: var(--bronce); color: var(--lampara); font-size: 22px; }
.aurby-can h3 { margin-bottom: 4px; font: 600 17px/1.3 var(--sans); color: var(--travertino); }
.aurby-can p { font-size: 15px; }
.chat { padding: 6px; border: 1px solid rgba(240, 233, 219, 0.1); border-radius: 28px; background: rgba(240, 233, 219, 0.04); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 22px 22px 0 0; background: var(--bronce); }
.chat-head .flame { width: 34px; filter: drop-shadow(0 0 12px rgba(227, 182, 98, 0.5)); }
.chat-head strong { display: block; font: 400 20px/1.1 var(--serif); }
.chat-head span { font-size: 13px; color: var(--olivo); }
.chat-head span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--olivo); }
.chat-body { display: flex; flex-direction: column; gap: 12px; min-height: 430px; padding: 24px 20px; border-radius: 0 0 22px 22px; background: var(--basalto); }
.msg { max-width: 84%; margin: 0; padding: 12px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; opacity: 0; translate: 0 12px; transition: opacity 0.5s var(--ease), translate 0.6s var(--ease); }
.msg.me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--lampara); color: var(--noche); }
.msg.ai { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--bronce); color: var(--travertino); }
.msg.card { align-self: flex-start; display: grid; gap: 6px; border: 1px solid var(--honda); background: var(--noche); }
.msg.card small { font: 400 11px/1 var(--titling); letter-spacing: 0.18em; text-transform: uppercase; color: var(--honda); }
.msg.card strong { font-weight: 500; color: var(--travertino); }
.msg.card .add { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 4px; padding: 8px 14px; border-radius: 10px; background: var(--lampara); color: var(--noche); font-size: 14px; font-weight: 600; }
.msg.typing { display: none; }
.chat.in .msg { opacity: 1; translate: 0 0; }
.chat.in .msg:nth-child(1) { transition-delay: 0.4s; }
.chat.in .msg:nth-child(2) { transition-delay: 1.3s; }
.chat.in .msg:nth-child(3) { transition-delay: 2.2s; }
.chat.in .msg:nth-child(4) { transition-delay: 3.1s; }
.chat.in .msg:nth-child(5) { transition-delay: 3.9s; }
.day-title { margin-top: clamp(64px, 8vw, 104px); font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--serif); color: var(--travertino); }
.day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.day li { position: relative; display: grid; align-content: start; gap: 8px; padding-top: 22px; }
.day li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--veta); }
.day li::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--lampara); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.3s; }
.day li.in::after { transform: scaleX(1); }
.day .hour { display: inline-flex; align-items: center; gap: 8px; font: 400 14px/1 var(--titling); letter-spacing: 0.12em; color: var(--lampara); }
.day .hour i { font-size: 18px; }
.day h4 { margin: 4px 0 0; font: 600 17px/1.3 var(--sans); color: var(--travertino); }
.day p { font-size: 15px; }
.private { display: flex; align-items: center; gap: 18px; margin-top: 56px; padding: 22px 26px; border: 1px solid var(--veta); border-radius: 18px; }
.private > i { font-size: 30px; color: var(--lampara); }
.private h3 { margin-bottom: 4px; font: 600 17px/1.3 var(--sans); color: var(--travertino); }
.private p { font-size: 15px; }
@media (max-width: 900px) {
  .aurby-grid { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .private { align-items: flex-start; }
}
@media (max-width: 560px) { .day { grid-template-columns: 1fr; } }

/* Pactos: dos amigos en dos puntas del mundo, unidos por un arco de luz sobre el globo (lo dibuja landing.js). */
.globe-wrap { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
.globe { display: block; width: 100%; height: 100%; }
.pcard { position: absolute; display: flex; align-items: flex-start; gap: 12px; width: 232px; padding: 14px 16px; border: 1px solid var(--veta); border-radius: 18px; background: rgba(22, 18, 14, 0.86); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: levitate 7s ease-in-out infinite; }
.pc-a { left: -4%; top: 10%; }
.pc-b { right: -4%; bottom: 12%; animation-delay: -3.5s; }
.pcard .av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lampara); color: var(--noche); font: 400 20px/1 var(--serif); }
.pcard strong { display: block; font: 600 16px/1.2 var(--sans); color: var(--travertino); }
.pcard small { display: block; margin-top: 2px; font-size: 13px; color: var(--ceniza); }
.pcard .hab { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: var(--travertino); }
.pcard .hab i { color: var(--olivo); font-size: 17px; }
.pcard .dots { display: flex; gap: 5px; margin-top: 10px; }
.pcard .dots i { width: 16px; height: 6px; border-radius: 3px; background: var(--veta); }
.pcard .dots i.on { background: var(--lampara); }
.pact-badge { position: absolute; left: 50%; bottom: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; translate: -50% 0; border: 1px solid var(--honda); border-radius: 999px; background: var(--basalto); font-size: 14px; color: var(--resplandor); white-space: nowrap; }
@media (max-width: 560px) {
  .pcard { width: 190px; padding: 10px 12px; gap: 10px; }
  .pcard .av { width: 32px; height: 32px; font-size: 16px; }
  .pcard .dots { gap: 4px; }
  .pcard .dots i { width: 12px; }
  .pc-a { left: 0; top: 2%; }
  .pc-b { right: 0; bottom: 10%; }
}

/* Pantallas muy anchas: el contenido crece un poco para no quedarse en una franja estrecha. */
@media (min-width: 1800px) { :root { --wide: 1360px; } }

/* Menú de secciones en móvil y tablet: botón en la barra y un panel a pantalla completa debajo de ella. */
.menu-btn { position: relative; display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--veta); border-radius: 12px; background: var(--bronce); cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: var(--travertino); transition: transform 0.4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; padding: 92px var(--gutter) max(28px, env(safe-area-inset-bottom)); overflow-y: auto; background: rgba(13, 9, 7, 0.97); opacity: 0; transition: opacity 0.35s var(--ease); }
/* Sin esto, display: flex anula el atributo hidden y el panel invisible se queda encima de la página tapando los toques. */
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
.menu ol { margin: 0; padding: 0; list-style: none; }
.menu a { text-decoration: none; }
.menu li a { display: flex; align-items: baseline; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--veta); font: 400 clamp(25px, 6.8vw, 34px)/1.15 var(--serif); color: var(--travertino); opacity: 0; translate: 0 14px; transition: opacity 0.5s var(--ease), translate 0.6s var(--ease), color 0.2s; }
.menu li a:active { color: var(--lampara); }
.menu .n { min-width: 26px; font: 400 12px/1 var(--titling); letter-spacing: 0.2em; color: var(--honda); }
.menu.open li a { opacity: 1; translate: 0 0; }
.menu.open li:nth-child(2) a { transition-delay: 0.04s; }
.menu.open li:nth-child(3) a { transition-delay: 0.08s; }
.menu.open li:nth-child(4) a { transition-delay: 0.12s; }
.menu.open li:nth-child(5) a { transition-delay: 0.16s; }
.menu.open li:nth-child(6) a { transition-delay: 0.2s; }
.menu.open li:nth-child(7) a { transition-delay: 0.24s; }
.menu.open li:nth-child(8) a { transition-delay: 0.28s; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 28px; }
.menu-lang { color: var(--marmol); font-size: 15px; }
html.menu-open { overflow: hidden; }
@media (max-width: 860px) { .menu-btn { display: block; } .nav { gap: 10px; } }
@media (max-width: 560px) { .nav .lang { display: none; } .nav .btn { margin-left: auto; } }
@media (min-width: 861px) { .menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .menu, .menu li a, .menu-btn span { transition: none; }
  .tour-device.spin { animation: none; }
}

/* Por qué Kovenant: seis tarjetas con su propio dibujo. Cada una dice lo que solo hace Kovenant y, debajo, lo de las demás. */
.diff-head { max-width: 40rem; }
.diff-head .h2 { margin: 14px 0 18px; }
.tiles { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--veta); border-radius: 24px; background: linear-gradient(180deg, rgba(34, 29, 24, 0.85), rgba(22, 18, 14, 0.6)); overflow: hidden; }
.tile h3 { font: 400 clamp(21px, 1.9vw, 25px)/1.2 var(--serif); color: var(--travertino); }
.tile p { font-size: 15px; }
.tile .vs { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--veta); font-size: 13.5px; color: var(--ceniza); }
.tile .vs i { margin-top: 2px; color: var(--pompeya); }
.tv { display: grid; place-items: center; height: 150px; margin-bottom: 10px; border-radius: 16px; background: radial-gradient(80% 90% at 50% 100%, rgba(227, 182, 98, 0.12), transparent 70%), var(--noche); }
.t-merge { grid-row: span 2; justify-content: center; text-align: center; background: radial-gradient(90% 60% at 50% 40%, rgba(227, 182, 98, 0.14), transparent 70%), linear-gradient(180deg, rgba(34, 29, 24, 0.9), rgba(22, 18, 14, 0.7)); border-color: rgba(227, 182, 98, 0.32); }
.t-merge h3 { font-size: clamp(28px, 2.8vw, 36px); }
.t-merge p { max-width: 24rem; margin: 0 auto; font-size: 16px; }
.merge-stage { position: relative; width: min(400px, 100%); aspect-ratio: 1.15; margin: 0 auto 12px; }
.t-privacy { grid-column: 1 / -1; display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto 1fr; column-gap: 28px; }
.t-privacy .tv { grid-row: 1 / 4; height: auto; min-height: 130px; margin: 0; }
.t-privacy .vs { margin-top: 10px; }
/* Dibujos de cada tarjeta. */
.v-lock { display: flex; align-items: center; gap: 22px; }
.v-lock .app { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--marmol); }
.v-lock .app i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--resplandor), var(--pompeya)); color: #fff; font-size: 26px; }
.v-lock .ring { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--honda); }
.v-lock .ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 182, 98, 0.5), rgba(227, 182, 98, 0.08)); animation: breathe 3.8s ease-in-out infinite; }
.v-lock .ring b { position: relative; font: 400 15px/1 var(--serif); color: var(--resplandor); }
.v-streak { display: grid; justify-items: center; gap: 10px; }
.v-streak .num { display: flex; align-items: baseline; gap: 6px; font: 400 44px/1 var(--serif); color: var(--resplandor); }
.v-streak .num i { font-size: 30px; color: var(--lampara); align-self: center; }
.v-streak .num small { font: 400 14px/1 var(--sans); color: var(--marmol); }
.v-streak .row { display: flex; gap: 6px; }
.v-streak .row i { width: 22px; height: 8px; border-radius: 4px; background: var(--lampara); }
.v-streak .row i.fix { background: none; border: 1.5px dashed var(--lampara); }
.v-streak em { font: 400 11px/1 var(--titling); font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olivo); }
.v-chat { display: grid; justify-items: start; gap: 10px; width: 82%; }
.v-chat .b { padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: var(--bronce); font-size: 14px; color: var(--travertino); }
.v-chat .add { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--lampara); color: var(--noche); font-size: 13px; font-weight: 600; }
.v-league { display: grid; gap: 6px; width: 82%; margin: 0; padding: 0; list-style: none; }
.v-league li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: var(--basalto); font-size: 14px; color: var(--marmol); }
.v-league li span { width: 16px; color: var(--ceniza); font-size: 12px; }
.v-league li b { margin-left: auto; font-weight: 500; }
.v-league li.me { background: rgba(227, 182, 98, 0.14); border: 1px solid var(--honda); color: var(--travertino); }
.v-league li.me i { color: var(--olivo); }
.v-zero { display: flex; gap: 22px; }
.v-zero span { display: grid; justify-items: center; font-size: 12px; color: var(--marmol); }
.v-zero b { font: 400 50px/1 var(--serif); color: var(--resplandor); }
@media (max-width: 1024px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .t-merge { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .t-privacy { display: flex; }
  .t-privacy .tv { min-height: 120px; margin-bottom: 10px; }
}

/* Recorrido: la maqueta plana es una tarjeta de dos caras (pantalla y espalda) que da la vuelta entera. */
.flipper { position: relative; height: 100%; aspect-ratio: 1400 / 2438; max-width: 100%; transform-style: preserve-3d; cursor: pointer; }
.flipper .tour-device { height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flipper .back { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flipper.spin { animation: flip-card 1.3s cubic-bezier(0.65, 0, 0.35, 1) both; }
@keyframes flip-card { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
.tour-caption { display: none; }

/* Móvil y tablet vertical: un panel fijo con el iPhone arriba y el texto del paso debajo. Los pasos de la lista
   quedan como espaciadores invisibles que marcan cuándo cambiar. */
@media (max-width: 860px) {
  .tour-phone { height: calc(100svh - 72px); top: 66px; grid-template-rows: minmax(0, 1fr) auto auto auto; background: var(--noche); padding-top: 4px; }
  .tour-phone .halo { top: 0; width: 100%; }
  .gl-holder { inset: 0 0 auto; height: calc(100% - var(--cap, 230px) - 40px); }
  .tour-caption { display: grid; align-content: start; justify-items: start; gap: 10px; width: 100%; min-height: var(--cap, 230px); padding: 14px var(--gutter) 18px; opacity: 0; translate: 0 14px; transition: opacity 0.45s var(--ease), translate 0.55s var(--ease); }
  .tour-caption.in { opacity: 1; translate: 0 0; }
  .tour-caption h3 { font: 400 26px/1.15 var(--serif); color: var(--travertino); }
  .tour-caption p { font-size: 15.5px; }
  .tour-steps li { min-height: 78svh; padding: 0; visibility: hidden; }
  .tour-steps li:last-child { min-height: 40svh; }
  .tour-phone .ground { height: 14px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flipper.spin { animation: none; }
  .tour-caption { transition: none; }
}

/* Foco en móvil y tablet: el móvil y los pasos juntos. Los pasos pasan a una fila de iconos y el texto del activo va debajo. */
.fcaption { display: none; }
@media (max-width: 900px) {
  .focus-copy { display: contents; }
  .focus-grid { gap: 0; }
  .focus-grid > * { order: 0; }
  .focus-copy .inscription, .focus-copy .h2, .focus-copy .lead { order: 1; }
  .focus-phone { order: 2; margin-top: 28px; }
  .fsteps { order: 3; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
  .fcaption { order: 4; display: block; min-height: 3.2em; margin-top: 14px; font-size: 16px; color: var(--travertino); text-align: center; }
  .fcaption strong { display: block; margin-bottom: 2px; font: 400 22px/1.2 var(--serif); color: var(--resplandor); }
  .fextra { order: 5; margin-top: 32px; }
  .fstep { grid-template-columns: 1fr; justify-items: center; row-gap: 8px; padding: 10px 4px; text-align: center; }
  .fstep .txt span { display: none; }
  .fstep strong { font-size: 12.5px; line-height: 1.25; }
  .fstep .bar { grid-column: 1; width: 100%; margin-top: 0; }
  .foco-device { width: min(240px, 58vw); }
}

/* Dispositivos en móvil y tablet: título, el dispositivo (se puede deslizar), las pestañas en una fila y el texto. */
@media (max-width: 900px) {
  .dev-copy { display: contents; }
  .dev { gap: 0; }
  .dev-copy .inscription, .dev-copy .h2 { order: 1; }
  .dev-copy .h2 { max-width: none; margin-bottom: 8px; }
  .dev-stage { order: 2; height: min(96vw, 460px); margin-top: 8px; overflow-x: clip; touch-action: pan-y; }
  .dev-tabs { order: 3; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
  .dev-tabs button { font-size: 12.5px; }
  .dev-tabs .lbl em { font-size: 9px; }
  .dev-texts { order: 4; margin-top: 20px; min-height: 6.4em; }
  .dev .stores { order: 5; margin-top: 24px; }
  .dev .stores-note { order: 6; }
}

/* La misma noche, dos finales: dos columnas que avanzan a la vez por cuatro momentos (landing.js cambia data-beat). */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.side { display: grid; align-content: start; gap: 14px; padding: 18px; border: 1px solid var(--veta); border-radius: 24px; background: linear-gradient(180deg, rgba(34, 29, 24, 0.7), rgba(22, 18, 14, 0.5)); }
.side.new { border-color: rgba(227, 182, 98, 0.42); background: radial-gradient(90% 50% at 50% 0%, rgba(227, 182, 98, 0.14), transparent 70%), linear-gradient(180deg, rgba(34, 29, 24, 0.9), rgba(22, 18, 14, 0.6)); }
.who { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--titling); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ceniza); }
.old .who i { font-size: 16px; color: var(--pompeya); }
.new .who { color: var(--lampara); }
.new .who img { width: 22px; height: 22px; border-radius: 6px; }
.scr { position: relative; height: 230px; overflow: hidden; border-radius: 18px; background: var(--noche); }
.beat { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; scale: 0.94; transition: opacity 0.5s var(--ease), scale 0.6s var(--ease); }
.duel[data-beat='1'] .b1, .duel[data-beat='2'] .b2, .duel[data-beat='3'] .b3, .duel[data-beat='4'] .b4 { opacity: 1; scale: 1; }
.beat .ig { width: 66px; height: 66px; }
.beat .tap { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; translate: -50% -50%; border: 3px solid var(--travertino); border-radius: 24px; opacity: 0; }
.duel[data-beat='1'] .tap { animation: tap 1.4s var(--ease) 0.4s infinite; }
.old .b2 { justify-content: flex-start; }
.feed { display: grid; gap: 8px; width: 74%; padding-top: 10px; }
.duel[data-beat='2'] .feed { animation: feed 2.6s linear infinite; }
@keyframes feed { to { transform: translateY(-50%); } }
.post { display: grid; grid-template-columns: 24px 1fr; gap: 5px 8px; padding: 10px; border-radius: 10px; background: #1d1813; }
.post i { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #ff7a00, #d300c5); }
.post b { height: 6px; border-radius: 3px; background: #3b342e; }
.post b + b { width: 55%; }
.new .b2 .breath { position: relative; display: grid; place-items: center; width: 116px; aspect-ratio: 1; border: 1px solid var(--honda); border-radius: 50%; }
.new .b2 .breath::before { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 182, 98, 0.55), rgba(227, 182, 98, 0.08)); animation: breathe 3.8s ease-in-out infinite; }
.new .b2 .breath b { position: relative; font: 400 17px/1 var(--serif); color: var(--resplandor); }
.new .b2 .why { padding: 0 14px; font: italic 400 15px/1.3 var(--serif); color: var(--travertino); text-align: center; }
.beat > i { font-size: 38px; }
.beat strong { font: 400 40px/1 var(--serif); }
.beat small { margin-top: -4px; font-size: 13px; color: var(--ceniza); }
.old .b3 i, .old .b3 strong { color: var(--pompeya); }
.old .b4 i, .old .b4 strong { color: var(--ceniza); }
.old .b4 strong { font-size: 58px; }
.new .b3 i { color: var(--lampara); }
.new .b3 strong { font-size: 30px; color: var(--travertino); }
.new .b3 .ok { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--olivo); color: var(--noche); font-size: 18px; }
.new .b3 .ok i { color: var(--noche); }
.new .b4 i { color: var(--lampara); filter: drop-shadow(0 0 16px rgba(227, 182, 98, 0.6)); }
.new .b4 strong { font-size: 58px; color: var(--resplandor); }
.new .b4 .chip { padding: 6px 12px; border-radius: 999px; background: rgba(227, 182, 98, 0.16); color: var(--resplandor); font-size: 13px; }
.caps { display: grid; min-height: 4.4em; margin: 0; padding: 0; list-style: none; }
.caps li { grid-area: 1 / 1; opacity: 0; translate: 0 8px; font-size: 15.5px; line-height: 1.4; color: var(--travertino); transition: opacity 0.45s var(--ease), translate 0.55s var(--ease); }
.caps li b { display: block; margin-bottom: 5px; font: 400 11px/1 var(--titling); letter-spacing: 0.18em; text-transform: uppercase; color: var(--honda); }
.old .caps li { color: var(--marmol); }
.old .caps li b { color: var(--ceniza); }
.duel[data-beat='1'] .caps li:nth-child(1), .duel[data-beat='2'] .caps li:nth-child(2), .duel[data-beat='3'] .caps li:nth-child(3), .duel[data-beat='4'] .caps li:nth-child(4) { opacity: 1; translate: 0 0; }
.duel-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 4px; }
.duel-dots button { display: grid; place-items: center; width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.duel-dots i { width: 28px; height: 3px; border-radius: 2px; background: var(--veta); transition: background-color 0.3s var(--ease); }
.duel-dots button[aria-current='true'] i { background: var(--lampara); }
.duel-verdict { margin-top: 26px; font: 400 clamp(24px, 2.8vw, 36px)/1.2 var(--serif); color: var(--travertino); text-align: center; }
.duel-verdict em { color: var(--resplandor); }
.tiles-title { margin-top: clamp(56px, 7vw, 88px); font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); color: var(--travertino); }
.tiles { margin-top: 22px; }
@media (max-width: 640px) {
  .duel { gap: 10px; margin-top: 32px; }
  .side { gap: 10px; padding: 12px; border-radius: 18px; }
  .who { gap: 6px; font-size: 10px; letter-spacing: 0.14em; }
  .scr { height: 200px; border-radius: 14px; }
  .beat .ig { width: 50px; height: 50px; }
  .beat .tap { width: 64px; height: 64px; border-radius: 18px; }
  .feed { width: 84%; }
  .beat > i { font-size: 30px; }
  .beat strong { font-size: 28px; }
  .old .b4 strong, .new .b4 strong { font-size: 44px; }
  .new .b3 strong { font-size: 22px; }
  .new .b2 .breath { width: 76px; }
  .new .b2 .breath b { font-size: 14px; }
  .new .b2 .why { font-size: 13px; }
  .caps { min-height: 6.2em; }
  .caps li { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .beat, .caps li { transition: none; }
  .duel .tap, .duel .feed, .new .b2 .breath::before { animation: none !important; }
}

/* Logo oficial de Instagram en la tarjeta del freno y en el móvil del foco. */
.v-lock .app .ig { width: 52px; height: 52px; }
.rs-home .target { background: #1d1611; }
.rs-home .target .ig { width: 64px; height: 64px; }
.rs-timer .app .ig { width: 40px; height: 40px; }

/* TikTok: el otro gran sumidero de scroll. Logos juntos al abrir, y el scroll vertical de vídeos en la otra app. */
.pair { display: flex; align-items: center; gap: 20px; }
.app-i { position: relative; display: grid; place-items: center; }
.beat .pair img { width: 58px; height: 58px; padding: 9px; border: 1px solid var(--veta); border-radius: 16px; background: #120d0a; }
.tt-feed { position: absolute; inset: 0; overflow: hidden; }
.tt-feed > .tt { position: absolute; top: 10px; left: 10px; z-index: 1; width: 22px; height: 22px; }
.reel { display: grid; grid-template-rows: repeat(5, 1fr); height: 500%; }
.duel[data-beat='2'] .reel { animation: swipe 2.8s infinite; }
@keyframes swipe {
  0%, 16% { transform: translateY(0); }
  25%, 41% { transform: translateY(-20%); }
  50%, 66% { transform: translateY(-40%); }
  75%, 91% { transform: translateY(-60%); }
  100% { transform: translateY(-80%); }
}
.clip { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 54px 18px 14px; }
.clip.c1 { background: linear-gradient(165deg, #5b3a6e, #1b1020 75%); }
.clip.c2 { background: linear-gradient(165deg, #2d5a6b, #0d1a20 75%); }
.clip.c3 { background: linear-gradient(165deg, #7a5530, #201509 75%); }
.clip.c4 { background: linear-gradient(165deg, #7a2d44, #200a10 75%); }
.clip b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.7); }
.clip b + b { width: 55%; background: rgba(255, 255, 255, 0.45); }
.clip .side-ic { position: absolute; right: 12px; bottom: 16px; display: grid; gap: 12px; color: #fff; font-size: 20px; }
.v-lock .apps { display: flex; gap: 12px; }
.v-lock .app img { width: 52px; height: 52px; padding: 8px; border: 1px solid var(--veta); border-radius: 14px; background: #120d0a; }
.rs-home .tiktok { order: 2; background: #000; }
.rs-home .tiktok .tt { width: 60px; height: 60px; }
@media (max-width: 640px) {
  .pair { gap: 12px; }
  .beat .pair img { width: 46px; height: 46px; padding: 7px; border-radius: 13px; }
  .clip { padding: 10px 40px 12px 10px; }
  .clip .side-ic { right: 8px; gap: 8px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .duel .reel { animation: none !important; } }
