/* lidrilo.com — diseño "de lujo" (2026-11-27): mucho aire, tipografía grande
   y apretada, secciones blancas, gris claro y negras que se alternan, y el
   ladrillo como único color (en un solo tono: sin degradados ni brillos).
   Fuente del sistema: SF Pro en Apple, la misma de la app.
   Reglas que no cambian (ver build.mjs): sin JavaScript, sin recursos de
   terceros, sin estilos en línea. Todo el movimiento es CSS ligado al scroll;
   sin soporte o con "reducir movimiento", la página se ve completa y quieta. */
:root {
  --brick: #b84a28;
  --brick-deep: #9c3c1f;
  --brick-soft: #f6e9e3;
  --ember: #f08a5d;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #6e6e73; /* antes #86868b: no pasaba el contraste mínimo (4,5) en texto pequeño */
  --paper: #ffffff;
  --mist: #f5f5f7;
  --line: #d2d2d7;
  --night: #000000;
  --night-2: #161617;
  --night-ink: #f5f5f7;
  --night-ink-2: #a1a1a6;
  --max: 1080px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
a { color: var(--brick); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brick-deep); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Secciones negras */
.dark { background: var(--night); color: var(--night-ink); }

/* Encabezado de sección: rótulo de color + titular grande */
.eyebrow { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; color: var(--brick); margin: 0 0 12px; letter-spacing: -0.015em; }
.dark .eyebrow, .night .eyebrow { color: var(--ember); }
.big { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.04; letter-spacing: -0.042em; }
.sec-head { max-width: 780px; margin: 0 0 clamp(44px, 5.5vw, 72px); }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head > p:last-child { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--ink-2); font-weight: 500; margin: 20px 0 0; letter-spacing: -0.02em; }
.sec-head.center > p:last-child { margin-left: auto; margin-right: auto; max-width: 34em; }

/* ===== Barra ===== */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.025em; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 18px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; letter-spacing: -0.01em; }
.nav a { color: rgba(0, 0, 0, 0.72); text-decoration: none; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .cta { color: #fff; background: var(--brick); padding: 6px 15px; border-radius: 980px; font-weight: 500; transition: background .2s ease; }
.nav .cta:hover { color: #fff; background: var(--brick-deep); }

/* ===== Teléfono (capturas del iPhone 17 Pro, 1206 × 2622) =====
   Marco de titanio (borde con degradado), bisel negro, isla dinámica y
   botones laterales (una sola pieza con sombras copiadas). */
.phone {
  --b: calc(var(--w, 300px) * 0.014);
  position: relative;
  width: var(--w, 300px);
  aspect-ratio: 1206 / 2622;
  padding: calc(var(--w, 300px) * 0.026);
  border: var(--b) solid transparent;
  border-radius: calc(var(--w, 300px) * 0.168);
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(145deg, #e4e1dc 0%, #7d7974 22%, #3a3835 48%, #9f9a94 74%, #4c4945 100%) border-box;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 40px 80px -30px rgba(29, 29, 31, 0.38);
}
.phone::before {
  content: ""; position: absolute;
  left: calc(-1 * var(--b) - 2px); top: 18%;
  width: 3px; height: 5.5%; border-radius: 2px 0 0 2px;
  background: #8d8883;
  box-shadow:
    0 calc(var(--w, 300px) * 0.19) 0 0 #8d8883,
    0 calc(var(--w, 300px) * 0.33) 0 0 #8d8883,
    calc(var(--w, 300px) + 1px) calc(var(--w, 300px) * 0.24) 0 0 #8d8883;
}
.phone::after {
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--w, 300px) * 0.052);
  width: 29%; height: calc(var(--w, 300px) * 0.082);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
.phone img, .screens { width: 100%; height: 100%; border-radius: calc(var(--w, 300px) * 0.128); object-fit: cover; background: var(--paper); }
.screens { position: relative; overflow: hidden; }
.screens img { position: absolute; inset: 0; }

/* ===== Portada =====
   El título y el iPhone con el inicio. La entrada (.intro) y el iPhone que
   se endereza están al final, en "Movimiento". */
.intro { display: none; }
.hero { padding: 0 0 clamp(80px, 10vw, 130px); overflow: clip; }
.hero-copy { padding-top: clamp(28px, 4vw, 56px); text-align: center; }
.hero-copy h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 1.01; letter-spacing: -0.048em; margin: 0 auto 20px; max-width: 11.5ch; }
.lede { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.38; color: var(--ink-2); font-weight: 500; max-width: 640px; margin: 0 auto 28px; letter-spacing: -0.02em; }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.appstore { display: inline-flex; border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.appstore img { display: block; height: 56px; width: auto; }
.appstore:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .28); }
.playstore { border-radius: 8px; }
.more { font-size: 19px; font-weight: 500; text-decoration: none; letter-spacing: -0.02em; }
.more:hover { text-decoration: underline; }
.hero-phone { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.hero-phone .phone { --w: min(390px, 82vw); }

/* ===== Así se ve Lidrilo: recorrido (base) =====
   Sin animaciones: el título y los siete pasos uno debajo del otro, cada uno
   con su captura (LidriTour en una franja negra). El recorrido con un solo
   iPhone fijo está al final, en "Movimiento". */
.tour { position: relative; background: var(--mist); }
.tour-head { padding-top: clamp(100px, 12vw, 160px); }
.tour-head .sec-head { margin-bottom: 0; }
.tour-phone { display: none; }
.tour-caps { list-style: none; margin: 0; padding: clamp(40px, 6vw, 80px) 0 0; }
.tc { max-width: 720px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.tc h3 { font-size: clamp(28px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.04em; margin: 0 0 12px; }
.tc-in > p:last-child { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.42; color: var(--ink-2); max-width: 28em; margin: 0 auto; letter-spacing: -0.015em; }
.tc .phone { --w: min(290px, 70vw); margin: 40px auto 0; }
.tc.t6, .tc.t7 { max-width: none; background: var(--night); }
.tc.t6 { padding-top: clamp(88px, 12vw, 140px); }
.tc.t7 { padding-bottom: clamp(88px, 12vw, 140px); }
.t6 h3, .t7 h3 { color: var(--night-ink); }
.t6 .tc-in > p:last-child, .t7 .tc-in > p:last-child { color: var(--night-ink-2); }
.t6 .eyebrow { color: var(--ember); }

/* ===== Promesa (negro) ===== */
.promise { padding: clamp(110px, 14vw, 180px) 0; text-align: center; }
.promise .seal { width: 112px; height: 112px; margin: 0 auto 40px; border-radius: 32px; background: var(--brick); display: grid; place-items: center; }
.promise .seal svg { width: 60px; height: 60px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise h2 { max-width: 15ch; margin: 0 auto; }
/* Tres hechos concretos, en columnas con una línea fina encima */
.facts { list-style: none; margin: clamp(56px, 7vw, 88px) auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.facts li { border-top: 1px solid #424245; padding-top: 24px; }
.facts h3 { font-size: 21px; line-height: 1.22; letter-spacing: -0.025em; margin: 0 0 10px; color: var(--night-ink); }
.facts p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--night-ink-2); }
.facts a { color: inherit; }

/* ===== Preguntas frecuentes (se abren sin JavaScript) ===== */
.faq { padding: clamp(100px, 12vw, 170px) 0; background: var(--paper); }
.faq .wrap { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; letter-spacing: -0.025em; transition: color .2s ease; }
.faq summary:hover h3 { color: var(--brick); }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.75px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.75px 12px no-repeat,
    var(--mist);
  transition: transform .4s var(--ease), background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 30px; color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 44em; }

/* ===== Descarga (cierre) ===== */
.owners { padding: clamp(100px, 12vw, 170px) 0 clamp(56px, 7vw, 96px); text-align: center; overflow: clip; background: var(--mist); }
.owners .sec-head { margin-bottom: 36px; }
.owners .fine { font-size: 15px; color: var(--ink-3); margin: 22px 0 0; }
.fan { position: relative; display: grid; place-items: center; margin: 80px auto 0; height: calc(var(--fw) * 2.174 + 40px); --fw: min(260px, 52vw); perspective: 1600px; }
.fan .phone { --w: var(--fw); position: absolute; top: 0; }
.fan .f1 { transform: translateX(-64%) rotate(-9deg) scale(.88); z-index: 1; }
.fan .f2 { z-index: 2; }
.fan .f3 { transform: translateX(64%) rotate(9deg) scale(.88); z-index: 1; }

/* ===== Documentos (términos, privacidad, soporte, eliminar cuenta) ===== */
.doc { padding: clamp(56px, 8vw, 104px) 0 clamp(88px, 10vw, 136px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.042em; margin: 0 0 18px; }
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc .meta span { display: block; }
.doc h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -0.03em; margin: 52px 0 12px; scroll-margin-top: 72px; }
.doc h3 { font-size: 19px; letter-spacing: -0.02em; margin: 30px 0 8px; }
.doc p, .doc li { color: #333336; line-height: 1.6; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--brick); }
.doc .entity { background: var(--mist); border-radius: 18px; padding: 20px 22px; }
.plain { padding: clamp(110px, 14vw, 180px) 0; text-align: center; }
.plain h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -0.042em; margin: 0 0 16px; }
.plain p { color: var(--ink-2); font-size: 19px; }

/* ===== Pie ===== */
.foot { background: var(--mist); color: var(--ink-2); font-size: 12px; line-height: 1.5; padding: 0 0 32px; border-top: 1px solid var(--line); }
.foot .note { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); max-width: none; }
.foot .links { display: flex; flex-wrap: wrap; row-gap: 8px; padding: 16px 0 14px; }
.foot .links a { color: var(--ink-2); text-decoration: none; padding: 0 12px; border-left: 1px solid var(--line); line-height: 1.1; }
.foot .links a:first-child { padding-left: 0; border-left: 0; }
.foot .links a:hover { color: var(--ink); text-decoration: underline; }
/* En el celular los enlaces van en dos columnas, sin rayitas sueltas */
@media (max-width: 640px) {
  .foot .links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .foot .links a, .foot .links a:first-child { padding: 0; border-left: 0; line-height: 1.4; }
}
.foot .who { margin: 0 0 6px; }
.foot .who strong { color: var(--ink); font-weight: 600; }
.foot .who a { color: var(--ink-2); }
.foot .copy { margin: 0; color: var(--ink-3); }

/* ===== Tamaños ===== */
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr; gap: 28px; max-width: 560px; }
}
@media (max-width: 640px) {
  .nav { gap: 18px; }
  .nav .opt { display: none; }
  .appstore img { height: 48px; }
  .stores { gap: 10px; }
  .actions { flex-direction: column; gap: 18px; }
  .fan { --fw: min(200px, 46vw); }
  .fan .f1 { transform: translateX(-50%) rotate(-8deg) scale(.86); }
  .fan .f3 { transform: translateX(50%) rotate(8deg) scale(.86); }
}

/* ===== Movimiento =====
   Sin desvanecidos (pedido del usuario, 2026-11-27): nada aparece de
   transparente a visible ni pasa de borroso a nítido. Solo hay movimiento
   (subir, girar, abrirse) y todo se ve completo y con su color desde el
   primer momento. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Preguntas: se abren con suavidad donde el navegador lo permite */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* ---------- Entrada (al abrir, sola, ~2 s) ----------
     El ladrillo crece en la pantalla blanca, "Lidrilo" sube desde una
     máscara y la pantalla se levanta como un telón. Debajo, el título sube
     a su lugar y la app se abre desde su ícono dentro del iPhone. */
  .intro { display: grid; position: fixed; inset: 0; z-index: 100; place-items: center; background: var(--paper); pointer-events: none; animation: curtain 1s cubic-bezier(.76, 0, .24, 1) 1.15s both; }
  .intro-in { display: grid; justify-items: center; gap: 20px; animation: intro-lift 1s cubic-bezier(.76, 0, .24, 1) 1.15s both; }
  .intro-mark { width: clamp(112px, 17vw, 184px); height: auto; animation: mark-in 1.1s var(--ease) both; }
  .intro-word { display: block; overflow: hidden; font-size: clamp(40px, 7vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; color: var(--ink); }
  .intro-word span { display: block; animation: word-up .9s var(--ease) .3s both; }
  @keyframes mark-in { from { transform: scale(.5) rotate(-10deg); } }
  @keyframes word-up { from { transform: translateY(105%); } }
  @keyframes curtain { to { transform: translateY(-100%); visibility: hidden; } }
  @keyframes intro-lift { to { transform: translateY(-12vh) scale(.9); } }

  /* El título sube a su lugar cuando se levanta el telón */
  .hero-copy h1, .hero-copy .lede, .hero-copy .actions { animation: copy-up 1.2s var(--ease) 1.35s both; }
  .hero-copy .lede { animation-delay: 1.43s; }
  .hero-copy .actions { animation-delay: 1.51s; }
  @keyframes copy-up { from { translate: 0 70px; } }

  /* El iPhone de la portada sube a su lugar justo después del título */
  .hero-phone { animation: phone-rise 1.4s var(--ease) 1.55s both; }
  @keyframes phone-rise { from { transform: translateY(200px) scale(.94); } }

  /* ---------- Portada: el iPhone llega acostado y se endereza al bajar ----------
     (como en lidrilo.com). La perspectiva va en el propio iPhone para que
     no se deforme. */
  @supports (animation-timeline: view()) {
    .hero-phone .phone { transform-origin: 50% 30%; animation: straighten linear both; animation-timeline: view(); animation-range: entry 0% cover 46%; }
    @keyframes straighten {
      from { transform: perspective(1500px) translateY(30px) rotateX(36deg) scale(1.12); }
      to { transform: perspective(1500px) translateY(0) rotateX(0deg) scale(1); }
    }

    /* ---------- Así se ve Lidrilo: el recorrido ----------
       La sección mide 8 pantallas de alto y su escenario se queda fijo.
       Línea de tiempo (% del recorrido):
         0-8    el título se va y el iPhone sube desde abajo
         8-20   inicio (iPhone a la derecha)
         20-34  resultados en el mapa (izquierda)
         34-50  ficha (derecha); 40-47 se acerca al total
         50-62  publicar (izquierda)
         62-74  planes (derecha)
         74-88  LidriTour, al centro y en negro
         88-100 el video sube desde abajo */
    .tour { height: 820vh; view-timeline: --tour block; }
    .tour-stage {
      --w: min(340px, calc((100svh - 150px) / 2.2));
      --dx: min(23vw, 330px);
      --io: cubic-bezier(.45, 0, .2, 1);
      position: sticky; top: 52px; height: calc(100svh - 52px); overflow: hidden; perspective: 1600px;
      animation: tour-bg linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%;
    }
    @keyframes tour-bg { 0%, 74% { background-color: var(--mist); } 78%, 100% { background-color: var(--night); } }

    .tour-head { position: absolute; inset: 0 0 auto 0; z-index: 3; padding-top: clamp(48px, 7vw, 96px); animation: head-out linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%; }
    @keyframes head-out { 0%, 1% { transform: none; animation-timing-function: var(--io); } 8%, 100% { transform: translateY(-70vh); } }

    .tour-phone {
      display: block; position: absolute; z-index: 2; margin: 0;
      left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * 1.087);
      animation: tour-path linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%;
    }
    @keyframes tour-path {
      0% { transform: translateX(0) translateY(62vh) rotateX(22deg) rotateY(0deg) scale(.9); animation-timing-function: var(--io); }
      8% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(-14deg) scale(1); }
      18% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(-5deg) scale(1); animation-timing-function: var(--io); }
      24% { transform: translateX(calc(-1 * var(--dx))) translateY(0) rotateX(0deg) rotateY(14deg) scale(1); }
      32% { transform: translateX(calc(-1 * var(--dx))) translateY(0) rotateX(0deg) rotateY(5deg) scale(1); animation-timing-function: var(--io); }
      38% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(-12deg) scale(1); }
      40% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(0deg) scale(1); animation-timing-function: var(--io); }
      44%, 47% { transform: translateX(var(--dx)) translateY(-56%) rotateX(0deg) rotateY(0deg) scale(1.7); animation-timing-function: var(--io); }
      50% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(0deg) scale(1); animation-timing-function: var(--io); }
      54% { transform: translateX(calc(-1 * var(--dx))) translateY(0) rotateX(0deg) rotateY(12deg) scale(1); }
      61% { transform: translateX(calc(-1 * var(--dx))) translateY(0) rotateX(0deg) rotateY(4deg) scale(1); animation-timing-function: var(--io); }
      66% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(-12deg) scale(1); }
      73% { transform: translateX(var(--dx)) translateY(0) rotateX(0deg) rotateY(-4deg) scale(1); animation-timing-function: var(--io); }
      78%, 88% { transform: translateX(0) translateY(0) rotateX(0deg) rotateY(0deg) scale(1); animation-timing-function: var(--io); }
      93%, 100% { transform: translateX(0) translateY(0) rotateX(0deg) rotateY(0deg) scale(1.06); }
    }

    /* Las pantallas cambian como en iOS: la nueva entra desde la derecha y
       la anterior se corre un poco; el video sube desde abajo */
    .tour-phone .scr { animation: linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%; }
    .tour-phone .scr:not(.s1) { box-shadow: -14px 0 34px rgba(0, 0, 0, .2); }
    .tour-phone .s1 { animation-name: ts1; }
    .tour-phone .s2 { animation-name: ts2; }
    .tour-phone .s3 { animation-name: ts3; }
    .tour-phone .s4 { animation-name: ts4; }
    .tour-phone .s5 { animation-name: ts5; }
    .tour-phone .s6 { animation-name: ts6; }
    .tour-phone .s7 { animation-name: ts7; box-shadow: 0 -14px 34px rgba(0, 0, 0, .25); }
    @keyframes ts1 { 0%, 20% { transform: none; animation-timing-function: var(--io); } 24%, 100% { transform: translateX(-30%); } }
    @keyframes ts2 { 0%, 20% { transform: translateX(100%); animation-timing-function: var(--io); } 24%, 34% { transform: none; animation-timing-function: var(--io); } 38%, 100% { transform: translateX(-30%); } }
    @keyframes ts3 { 0%, 34% { transform: translateX(100%); animation-timing-function: var(--io); } 38%, 50% { transform: none; animation-timing-function: var(--io); } 54%, 100% { transform: translateX(-30%); } }
    @keyframes ts4 { 0%, 50% { transform: translateX(100%); animation-timing-function: var(--io); } 54%, 62% { transform: none; animation-timing-function: var(--io); } 66%, 100% { transform: translateX(-30%); } }
    @keyframes ts5 { 0%, 62% { transform: translateX(100%); animation-timing-function: var(--io); } 66%, 74% { transform: none; animation-timing-function: var(--io); } 78%, 100% { transform: translateX(-30%); } }
    @keyframes ts6 { 0%, 74% { transform: translateX(100%); animation-timing-function: var(--io); } 78%, 100% { transform: none; } }
    @keyframes ts7 { 0%, 88% { transform: translateY(100%); animation-timing-function: var(--io); } 92%, 100% { transform: none; } }

    /* Los textos: cada uno sube desde su máscara y se va hacia arriba */
    .tour-caps { position: absolute; inset: 0; z-index: 4; margin: 0; padding: 0; pointer-events: none; }
    .tc, .tc.t6, .tc.t7 { position: absolute; top: 50%; translate: 0 -50%; width: min(440px, calc(50% - var(--w) / 2 - 72px)); max-width: none; margin: 0; padding: 0; text-align: left; overflow: hidden; background: none; }
    .tc .phone { display: none; }
    .t1, .t3, .t5 { left: max(24px, calc(50% - 560px)); }
    .t2, .t4 { right: max(24px, calc(50% - 560px)); }
    .tc.t6, .tc.t7 { width: min(420px, calc(50% - var(--w) * .55 - 88px)); }
    .tc.t6 { right: calc(50% + var(--w) * .55 + 56px); }
    .tc.t7 { left: calc(50% + var(--w) * .55 + 56px); }
    .tc-in { padding: 4px 0; animation: tcap linear both; animation-timeline: --tour; }
    .tc-in > p:last-child { margin: 0; }
    .t1 .tc-in { animation-range: contain 6% contain 22%; }
    .t2 .tc-in { animation-range: contain 20% contain 36%; }
    .t3 .tc-in { animation-range: contain 34% contain 52%; }
    .t4 .tc-in { animation-range: contain 50% contain 64%; }
    .t5 .tc-in { animation-range: contain 62% contain 76%; }
    .t6 .tc-in { animation-range: contain 74% contain 90%; }
    .t7 .tc-in { animation-range: contain 88% contain 100%; animation-name: tcap-last; }
    @keyframes tcap { 0% { transform: translateY(105%); animation-timing-function: var(--io); } 22%, 80% { transform: none; animation-timing-function: var(--io); } 100% { transform: translateY(-105%); } }
    @keyframes tcap-last { 0% { transform: translateY(105%); animation-timing-function: var(--io); } 35%, 100% { transform: none; } }

    /* Celular: el texto arriba y el iPhone debajo, centrado; gira suave de un
       lado al otro en cada cambio (sin acercamiento: taparía el texto) */
    @media (max-width: 760px) {
      .tour-stage { --w: min(66vw, calc((100svh - 52px - 200px) / 2.17)); --dx: 0px; }
      .tour-head { padding-top: 40px; }
      .tour-phone { top: 186px; animation-name: tour-path-m; }
      @keyframes tour-path-m {
        0% { transform: translateY(62vh) rotateX(22deg) rotateY(0deg) scale(.9); animation-timing-function: var(--io); }
        8%, 18% { transform: translateY(0) rotateX(0deg) rotateY(-8deg) scale(1); animation-timing-function: var(--io); }
        24%, 32% { transform: translateY(0) rotateX(0deg) rotateY(8deg) scale(1); animation-timing-function: var(--io); }
        38%, 49% { transform: translateY(0) rotateX(0deg) rotateY(-8deg) scale(1); animation-timing-function: var(--io); }
        54%, 61% { transform: translateY(0) rotateX(0deg) rotateY(8deg) scale(1); animation-timing-function: var(--io); }
        66%, 73% { transform: translateY(0) rotateX(0deg) rotateY(-8deg) scale(1); animation-timing-function: var(--io); }
        78%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1); }
      }
      .tc, .tc.t6, .tc.t7 { top: 20px; translate: none; left: 20px; right: 20px; width: auto; text-align: center; }
      .tc h3 { font-size: 27px; margin-bottom: 8px; }
      .tc-in > p:last-child { font-size: 15.5px; margin: 0 auto; }
      .tc .eyebrow { font-size: 17px; margin-bottom: 4px; }
    }
  }

  @supports (animation-timeline: view()) {
    /* Encabezados que suben */
    .sec-head > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }
    @keyframes rise { from { transform: translateY(40px); } }

    /* Promesa: el sello gira y se dibuja */
    .promise .seal { animation: spin-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes spin-in { from { transform: rotate(-28deg) scale(.55); } }
    .promise .seal [pathLength] { stroke-dasharray: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
    .promise .seal .strike { animation-range: cover 45% cover 58%; }
    @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    .promise h2, .facts li { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 32%; }

    /* Cierre: los teléfonos salen apilados y se abren en abanico */
    .fan .f1, .fan .f3 { animation: linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
    .fan .f1 { animation-name: fan-left; }
    .fan .f3 { animation-name: fan-right; }
    @keyframes fan-left { from { transform: translateX(0) rotate(0) scale(.9); } }
    @keyframes fan-right { from { transform: translateX(0) rotate(0) scale(.9); } }
    .fan .f2 { animation: front linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes front { from { transform: translateY(80px) rotateX(24deg); } }
  }
}
