/* Landing de citalia.online. Movimiento de los videos promocionales
   (HyperFrames): texto que sube palabra por palabra, teléfono con pantallas
   reales y tarjetas que salen de él. Estética minimal: fondo hueso de un solo
   color, sin bordes y sombras suaves. */
@font-face { font-family: Inter; src: url(/landing/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* El color de marca se anima al elegir otro (sección "Tu marca"). */
@property --brand { syntax: "<color>"; inherits: true; initial-value: #C2461F; }

:root {
  --brand: #C2461F;
  --brand-2: #FF8A63;
  --cream: #F7F6F3;
  --ink: #17110E;
  --muted: #6F6660;
  --faint: #9A8B84;
  --glass: #FFFFFF;
  --shadow: 0 10px 30px rgba(23, 17, 14, 0.07);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --soft-spring: cubic-bezier(0.2, 1.25, 0.35, 1);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
  transition: --brand 0.6s var(--ease);
}

* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, -apple-system, system-ui, sans-serif;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
em { font-style: normal; }

/* --- Navegación --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100vw - 1160px) / 2));
  background: var(--cream);
}
.brandmark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brandmark img { width: 36px; height: 36px; border-radius: 10px; }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 15px; color: #fff; background: var(--ink);
  padding: 10px 18px; border-radius: 999px; transition: transform 0.3s var(--spring);
}
.nav-cta:hover { transform: scale(1.05); }

/* --- Texto cinético: cada palabra sube desde una máscara --- */
.kt .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.12em; margin: 0 -0.04em -0.12em; }
.kt .w > i {
  display: inline-block; font-style: normal;
  transform: translateY(115%) rotate(6deg); transform-origin: 0 100%;
  transition: transform 0.95s var(--soft-spring) var(--d, 0s);
}
.kt.in .w > i { transform: none; }
.acc, .kt em, .card h3 em, .final-tag em, .link-chip em, .caption h3 em { color: var(--brand); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.9s var(--soft-spring) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* --- Hero --- */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 32px 16px 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px;
  min-height: calc(100svh - 60px);
}
.chip {
  display: inline-block; margin: 0 0 20px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff);
}
h1 { margin: 0; font-size: clamp(44px, 6.4vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.lead { margin: 24px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: #4A3F3A; max-width: 30em; font-weight: 500; letter-spacing: -0.01em; }
.fine { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--faint); letter-spacing: 0; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badges.center { justify-content: center; }
.badge {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; min-width: 190px;
  border-radius: 16px; background: #0B0B0C; color: #fff; cursor: default;
  box-shadow: none;
  transition: transform 0.35s var(--spring);
}
.badge:hover { transform: translateY(-3px) rotate(-1deg); }
.badge img { width: 28px; height: 28px; filter: invert(1); }
.badge span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: 0; opacity: 0.85; }

/* Caja que escala un "rig" de 600×760 para que teléfono y tarjetas mantengan su
   proporción en cualquier ancho. */
.stage-box { position: relative; }
.rig { position: absolute; left: 50%; top: 50%; width: 600px; height: 760px; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.hero-stage { height: min(82svh, 760px); }

/* --- Teléfono --- */
.phone {
  position: absolute; left: 130px; top: 24px; width: 340px; height: 713px;
  border-radius: 56px; background: #0D0C0E; padding: 10px;
  box-shadow: 0 30px 60px rgba(23, 17, 14, 0.12);
}
.screen { position: relative; width: 320px; height: 693px; border-radius: 46px; overflow: hidden; background: #fff; isolation: isolate; }
.island { position: absolute; left: 50%; top: 22px; width: 92px; height: 27px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 30; }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(0.6deg); } }

/* Burbujas del caos (hero) */
.bubbles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.bub {
  position: absolute; white-space: nowrap; padding: 12px 18px; border-radius: 22px;
  background: #fff; font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  box-shadow: var(--shadow);
  opacity: 0; scale: 0.4;
  transition: opacity 0.4s var(--ease) var(--d), scale 0.8s var(--spring) var(--d);
}
.bub.in { opacity: 1; scale: 1; }
.bub > span { display: block; animation: bob 4.5s ease-in-out infinite; animation-delay: var(--bd); }
.bub.note { border-radius: 6px; background: #FFE88A; font-style: italic; }
.bub.green { background: #D9FDD3; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* --- Recorrido --- */
.story-intro { max-width: 1160px; margin: 0 auto; padding: 80px 16px 0; text-align: center; }
h2.big { margin: 0; font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; }
.story { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage { grid-column: 2; grid-row: 1; position: sticky; top: 60px; height: calc(100svh - 60px); display: flex; flex-direction: column; }
.stage .stage-box { flex: 1; min-height: 0; }
.caption { display: none; }
.steps { grid-column: 1; grid-row: 1; }
.step { min-height: 72svh; display: flex; align-items: center; }
.step:first-child { min-height: 60svh; }
.step:last-child { min-height: 90svh; }
/* La opacidad del texto y el cambio de pantalla siguen al scroll (landing.js). */
.card { max-width: 30em; will-change: opacity; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 13%, #fff);
}
.card h3 { margin: 0; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.card h3 em { display: block; }
.card p:not(.kicker) { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: #4A3F3A; font-weight: 500; letter-spacing: -0.01em; }
.sample { position: absolute; left: 0; bottom: 12px; margin: 0; font-size: 12px; color: var(--faint); letter-spacing: 0; }

/* Pantallas: la nueva sube desde abajo; la anterior se hunde. */
.scr { position: absolute; inset: 0; background: #fff; transform: translateY(101%); will-change: transform; }
.scr:first-child { transform: none; }

/* Pantallas dibujadas en puntos de iPhone (390×844) y escaladas al teléfono. */
.pt { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(0.8205); transform-origin: 0 0; overflow: hidden; letter-spacing: -0.01em; font-size: 16px; }
.sb { position: absolute; left: 0; top: 0; width: 390px; height: 50px; font-weight: 600; font-size: 16px; color: #000; }
.sb span { position: absolute; left: 44px; top: 17px; }
.sb.light { color: #fff; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; }

.lock { background: radial-gradient(120% 70% at 20% 10%, #FF9A73 0%, rgba(255, 154, 115, 0) 60%), radial-gradient(90% 60% at 90% 80%, #6E2A57 0%, rgba(110, 42, 87, 0) 70%), linear-gradient(160deg, #D2552B, #9C3320 60%, #5A1E2E); color: #fff; }
.lock-date { position: absolute; top: 84px; width: 100%; text-align: center; font-weight: 600; font-size: 19px; opacity: 0.88; }
.lock-time { position: absolute; top: 100px; width: 100%; text-align: center; font-weight: 700; font-size: 104px; letter-spacing: -0.04em; }
.lock-btn { position: absolute; top: 760px; width: 50px; height: 50px; border-radius: 25px; background: rgba(0, 0, 0, 0.28); }
.lock-btn.l { left: 46px; } .lock-btn.r { left: 294px; }
.home-bar { position: absolute; left: 128px; top: 828px; width: 134px; height: 5px; border-radius: 3px; background: #fff; }

.mail { background: #fff; }
.mail-back { position: absolute; left: 10px; top: 58px; font-weight: 500; font-size: 17px; color: #0A7AFF; }
.mail-from { position: absolute; left: 16px; right: 16px; top: 100px; display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #E5E5EA; }
.mail-from .av { width: 44px; height: 44px; background: var(--brand); font-size: 16px; }
.mail-from strong { display: block; font-size: 17px; }
.mail-from small { color: #8A8A8E; font-size: 14px; }
.mail-time { margin-left: auto; }
.mail h3 { position: absolute; left: 16px; top: 178px; width: 350px; margin: 0; font-size: 22px; line-height: 1.25; }
.mail p { position: absolute; left: 16px; top: 250px; width: 352px; margin: 0; font-size: 17px; line-height: 1.45; color: #1C1C1E; }
.ics { position: absolute; left: 16px; top: 398px; width: 358px; height: 66px; border-radius: 14px; background: #F2F2F7; display: flex; align-items: center; gap: 12px; padding-left: 12px; transition: box-shadow 0.3s; }
.ics strong { display: block; font-size: 15px; } .ics small { font-size: 13px; color: #8A8A8E; }
.stage[data-step="2"] .ics { box-shadow: 0 0 0 3px #0A7AFF; }
.cal-ico { width: 40px; height: 44px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E5E5EA; overflow: hidden; text-align: center; font-weight: 600; font-size: 20px; line-height: 28px; }
.cal-ico b { display: block; background: #FF3B30; color: #fff; font-size: 9px; line-height: 14px; }

.wa { background: #EFE7DE radial-gradient(rgba(120, 100, 80, 0.1) 1.2px, transparent 1.4px) 0 0 / 14px 14px; }
.wa-top { position: absolute; left: 0; top: 0; width: 390px; height: 104px; background: #F7F7F7; box-shadow: 0 1px 0 #E2E2E2; }
.wa-back { position: absolute; left: 12px; top: 58px; font-size: 26px; font-weight: 500; color: #0A7AFF; }
.wa-top .av { position: absolute; left: 40px; top: 56px; width: 36px; height: 36px; background: #C9B8AE; font-size: 13px; }
.wa-top strong { position: absolute; left: 86px; top: 64px; font-size: 17px; }
.msg { position: absolute; max-width: 300px; padding: 9px 12px; border-radius: 12px; font-size: 16px; line-height: 1.38; }
.msg small { font-size: 11px; color: #8A8A8E; white-space: nowrap; }
.msg small b { color: #34B7F1; }
.msg.in { left: 12px; top: 130px; background: #fff; }
.msg.out { right: 12px; top: 186px; background: #D9FDD3; }
.msg.sent { top: 242px; font-size: 17px; opacity: 0; transform: translateY(380px) scale(0.9); transition: transform 0.7s var(--soft-spring), opacity 0.2s; }
.wa-compose { position: absolute; left: 0; top: 640px; width: 390px; height: 204px; background: #F7F7F7; box-shadow: 0 -1px 0 #E2E2E2; }
.wa-text { position: absolute; left: 12px; top: 10px; width: 312px; padding: 8px 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #E2E2E2; font-size: 17px; line-height: 1.38; transition: opacity 0.2s; }
.wa-send { position: absolute; left: 334px; top: 100px; width: 44px; height: 44px; border-radius: 22px; background: #25D366; display: grid; place-items: center; transition: transform 0.15s; }
.wa-send svg { width: 20px; height: 20px; fill: #fff; }
.tap { position: absolute; left: 311px; top: 77px; width: 90px; height: 90px; border-radius: 50%; background: rgba(23, 17, 14, 0.22); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85) inset; opacity: 0; scale: 1.4; }
.wa.sending .tap { animation: tap 0.7s var(--ease) forwards; }
.wa.sending .wa-send { transform: scale(0.85); }
.wa.sent .wa-text { opacity: 0; }
.wa.sent .msg.sent { opacity: 1; transform: none; }
.wa.sent .wa-send { transform: none; }
@keyframes tap { 0% { opacity: 0; scale: 1.4; } 40% { opacity: 1; scale: 0.8; } 100% { opacity: 0; scale: 1.6; } }

.home { background: radial-gradient(120% 70% at 20% 10%, #FF9A73 0%, rgba(255, 154, 115, 0) 60%), radial-gradient(90% 60% at 90% 80%, #6E2A57 0%, rgba(110, 42, 87, 0) 70%), linear-gradient(160deg, #D2552B, #9C3320 60%, #5A1E2E); }
.home .widget.small { position: absolute; left: 26px; top: 66px; }
.home-label { position: absolute; left: 26px; top: 228px; width: 338px; text-align: center; font-weight: 600; font-size: 11px; color: rgba(255, 255, 255, 0.85); }
.icons { position: absolute; left: 26px; top: 262px; display: grid; grid-template-columns: repeat(4, 62px); column-gap: 26px; row-gap: 34px; }
.icons i { width: 62px; height: 62px; border-radius: 14px; background: linear-gradient(160deg, #fff, var(--c)); opacity: 0.92; }
.icons img { width: 62px; height: 62px; border-radius: 14px; }
.dock { position: absolute; left: 14px; top: 740px; width: 362px; height: 88px; border-radius: 32px; background: rgba(255, 255, 255, 0.28); }

/* Widget (igual al de la app: Hoy y las próximas citas) */
.widget { width: 338px; height: 158px; border-radius: 22px; background: #FDE6DF; position: relative; letter-spacing: -0.01em; font-size: 16px; }
.widget .wt { position: absolute; left: 16px; top: 14px; font-weight: 600; font-size: 13px; color: var(--brand); }
.widget .wr { position: absolute; left: 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.widget .wr::before { content: ""; width: 4px; height: 26px; border-radius: 2px; background: color-mix(in srgb, var(--brand) 75%, #fff); }
.widget .wr span { font-weight: 400; color: #8A7F7B; }

.brand-scr { background: #fff; }
.brand-scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: circle(0% at 88% 13%); transition: clip-path 0.55s var(--ease); }
.brand-scr img.show { clip-path: circle(150% at 88% 13%); }

/* --- Tarjetas que salen del teléfono --- */
.glass { background: var(--glass); box-shadow: var(--shadow); }
.pop {
  position: absolute; z-index: 10; opacity: 0; pointer-events: none;
  transform: translateY(40px) scale(0.6);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}
.stage[data-step="0"] .p0, .stage[data-step="1"] .p1, .stage[data-step="2"] .p2, .stage[data-step="3"] .p3,
.stage[data-step="4"] .p4, .stage[data-step="5"] .p5, .stage[data-step="6"] .p6 {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity 0.35s var(--ease) calc(var(--d, 0s) + 0.35s), transform 0.8s var(--spring) calc(var(--d, 0s) + 0.35s);
}

.link-chip { left: -20px; top: 556px; height: 70px; border-radius: 35px; display: flex; align-items: center; padding: 0 26px 0 14px; font-weight: 700; font-size: 25px; white-space: nowrap; transform-origin: 0 50%; }
.link-ico { width: 44px; height: 44px; border-radius: 22px; background: var(--brand); display: grid; place-items: center; margin-right: 12px; }
.link-ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.qr { left: 430px; top: 330px; width: 190px; height: 226px; border-radius: 30px; rotate: 5deg; }
.qr img { position: absolute; left: 20px; top: 18px; width: 150px; height: 150px; border-radius: 16px; }
.qr b { position: absolute; top: 182px; width: 100%; text-align: center; font-size: 20px; }

.notis { left: 20px; top: 110px; width: 560px; height: 400px; transform: none; }
.nc { position: absolute; left: 0; top: 0; width: 560px; height: 112px; border-radius: 30px; opacity: 0; transform: translateY(calc(var(--slot, 0) * 124px - 70px)) scale(0.86); transition: opacity 0.3s, transform 0.7s var(--soft-spring); }
.nc.in { opacity: 1; transform: translateY(calc(var(--slot) * 124px)); }
.nc img { position: absolute; left: 18px; top: 20px; width: 54px; height: 54px; border-radius: 13px; }
.nc b { position: absolute; left: 88px; top: 18px; font-size: 21px; }
.nc i { position: absolute; right: 22px; top: 20px; font-style: normal; font-size: 17px; color: #7A6F6A; }
.nc p { position: absolute; left: 88px; top: 50px; right: 22px; margin: 0; font-size: 19px; line-height: 1.25; font-weight: 500; color: #2A211D; }

.cal { left: 10px; top: 470px; width: 580px; height: 166px; border-radius: 34px; }
.cal-big { position: absolute; left: 22px; top: 22px; width: 92px; height: 112px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 2px #EEE; overflow: hidden; text-align: center; font-weight: 700; font-size: 54px; line-height: 78px; letter-spacing: -0.04em; }
.cal-big b { display: block; background: #FF3B30; color: #fff; font-size: 20px; line-height: 34px; letter-spacing: 0; }
.cal strong { position: absolute; left: 136px; top: 24px; font-size: 26px; white-space: nowrap; }
.cal > span { position: absolute; left: 136px; top: 62px; font-size: 20px; font-weight: 500; color: #6F6660; white-space: nowrap; }
.cal-btn { position: absolute; left: 136px; top: 100px; height: 44px; border-radius: 22px; padding: 0 20px; display: grid; align-items: center; font-weight: 700; font-size: 18px; color: #fff; background: #0A7AFF; transition: background 0.3s, transform 0.2s var(--spring); }
.cal-btn span { grid-area: 1 / 1; transition: opacity 0.2s; }
.cal-btn .b, .cal.added .cal-btn .a { opacity: 0; }
.cal.added .cal-btn .b { opacity: 1; }
.cal.added .cal-btn { background: #1F8A4C; animation: press 0.35s var(--spring); }
@keyframes press { 40% { transform: scale(0.92); } }

.wa-badge { left: -20px; top: 560px; height: 64px; border-radius: 32px; padding: 0 22px 0 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; white-space: nowrap; rotate: -4deg; }
.wa-badge img { width: 36px; height: 36px; filter: invert(58%) sepia(79%) saturate(470%) hue-rotate(89deg) brightness(95%); }

.widget.big { left: 23px; top: 400px; transform-origin: 0 0; scale: 1.64; filter: drop-shadow(0 10px 24px rgba(23, 17, 14, 0.1)); }
.stage[data-step="4"] .widget.big { transform: none; }
.widget.big { transform: translate(60px, -260px) scale(0.6); }

.pay { left: 10px; top: 470px; width: 580px; height: 196px; border-radius: 34px; }
.pay > div { position: absolute; top: 28px; }
.pay > div:nth-child(1) { left: 30px; } .pay > div:nth-child(2) { left: 210px; }
.pay > div span { display: block; font-size: 19px; font-weight: 600; color: #6F6660; }
.pay > div b { display: block; margin-top: 4px; font-size: 42px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pay .ok { color: #1F8A4C; } .pay .due { color: var(--brand); }
.ring { position: absolute; left: 418px; top: 22px; width: 134px; height: 134px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #F1E4DE; stroke-width: 20; }
.ring .fill { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 502.7; stroke-dashoffset: 502.7; transition: stroke-dashoffset 1.2s var(--ease) 0.5s; }
.stage[data-step="5"] .ring .fill { stroke-dashoffset: 71.8; }
.ring-t { position: absolute; left: 418px; top: 70px; width: 134px; text-align: center; font-size: 34px; font-weight: 800; }
.pay small { position: absolute; left: 30px; top: 140px; font-size: 17px; font-weight: 500; color: var(--faint); letter-spacing: 0; }

.swatches { left: 40px; top: 650px; width: 520px; height: 84px; border-radius: 42px; display: flex; align-items: center; justify-content: space-around; padding: 0 14px; }
.sw { appearance: none; border: 0; padding: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--c); cursor: pointer; transition: transform 0.4s var(--spring), box-shadow 0.3s; }
.sw:hover { transform: scale(1.12); }
.sw[aria-checked="true"] { box-shadow: 0 0 0 4px var(--glass), 0 0 0 6px var(--ink); transform: scale(1.06); }
.sw:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }

/* --- Más pantallas --- */
.more { padding: 120px 0 40px; text-align: center; }
.more h2 { padding: 0 16px; }
.marquee { margin-top: 48px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 28px; width: max-content; padding: 20px 0 40px; animation: marquee 48s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tile { width: 230px; flex-shrink: 0; }
.tile .mini { width: 230px; height: 482px; border-radius: 40px; background: #0D0C0E; padding: 7px; box-shadow: var(--shadow); transition: transform 0.5s var(--spring); }
.tile:nth-child(even) .mini { transform: translateY(26px); }
.tile .mini img { width: 100%; height: 100%; border-radius: 33px; object-fit: cover; object-position: top; }
.tile:hover .mini { transform: translateY(-8px) rotate(-1.5deg); }
.tile p { margin: 18px 0 0; font-weight: 700; font-size: 17px; }
.tile:nth-child(even) p { margin-top: 44px; }

/* --- Promesas --- */
.promises { max-width: 1160px; margin: 0 auto; padding: 100px 16px 40px; text-align: center; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; text-align: left; }
.promise { padding: 30px 28px; border-radius: 28px; background: #FFFFFF; }
.promise .num { display: block; font-size: 84px; line-height: 1; font-weight: 800; letter-spacing: -0.06em; color: var(--brand); }
.promise h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.03em; }
.promise p { margin: 10px 0 0; font-size: 17px; line-height: 1.45; color: #4A3F3A; font-weight: 500; letter-spacing: -0.01em; }

/* --- Cierre --- */
.final { padding: 120px 16px 80px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.burst { position: relative; width: 168px; height: 168px; }
.final-icon { width: 168px; height: 168px; border-radius: 40px; box-shadow: var(--shadow); scale: 0.2; opacity: 0; transition: scale 0.9s var(--spring), opacity 0.3s; }
.burst.in .final-icon { scale: 1; opacity: 1; }
.spark { position: absolute; left: 50%; top: 50%; width: var(--z); height: var(--z); margin: calc(var(--z) / -2); border-radius: 50%; background: var(--c); opacity: 0; }
.burst.in .spark { animation: spark 1s var(--ease) 0.2s forwards; }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(30px) scale(1.3); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(0); } }
h2.huge { margin: 28px 0 0; font-size: clamp(72px, 13vw, 150px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.final-tag { margin: 14px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.03em; color: #4A3F3A; }
.notify {
  margin-top: 26px; text-decoration: none; font-weight: 700; font-size: 17px; color: #fff; background: var(--brand);
  padding: 16px 28px; border-radius: 999px;
  transition: transform 0.35s var(--spring);
}
.notify:hover { transform: translateY(-2px) scale(1.04); }

.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 24px 16px max(28px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--faint); letter-spacing: 0; }
.foot a { color: var(--muted); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* --- Teléfono: una columna, el teléfono queda fijo arriba y el texto pasa por encima --- */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .badges { justify-content: center; }
  .hero-stage { height: 560px; margin-top: 8px; }
  .story-intro { padding-top: 60px; }
  .story { grid-template-columns: 1fr; }
  /* Una columna: el texto del paso va fijo encima del teléfono; nada lo tapa.
     Los pasos quedan como espaciadores que marcan el ritmo del scroll. */
  .stage { grid-column: 1; grid-row: 1; align-self: start; top: 60px; height: calc(100svh - 60px); }
  .steps { grid-column: 1; grid-row: 1; }
  .step, .step:first-child { min-height: 64svh; }
  .step:last-child { min-height: 100svh; }
  .card { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .caption { display: block; padding: 8px 4px 4px; text-align: center; min-height: 168px; transition: opacity 0.25s var(--ease), transform 0.35s var(--soft-spring); }
  .caption.swap { opacity: 0; transform: translateY(8px); }
  .caption .kicker { margin-bottom: 10px; font-size: 13px; padding: 6px 12px; }
  .caption h3 { margin: 0; font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; }
  .caption h3 em { display: block; }
  .caption p:not(.kicker) { margin: 8px auto 0; max-width: 26em; font-size: 15px; line-height: 1.4; color: #4A3F3A; font-weight: 500; }
  .sample { left: auto; right: 0; bottom: 4px; }
  .pgrid { grid-template-columns: 1fr; }
  .tile, .tile .mini { width: 180px; } .tile .mini { height: 378px; border-radius: 32px; } .tile .mini img { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .kt .w > i, .reveal { transform: none; opacity: 1; }
  .bub { opacity: 1; scale: 1; }
  .final-icon { scale: 1; opacity: 1; }
  .track { flex-wrap: wrap; justify-content: center; width: auto; }
  .track .dup { display: none; }
}
