:root {
  --coral: #E2704F;
  --coral-dark: #CF5549;
  --coral-soft: #F6D9CC;
  --cream: #FFF4EC;
  --bg: #FFFBF8;
  --bg-alt: #FFF1E8;
  --surface: #FFFFFF;
  --text: #2A1C17;
  --muted: #7A665E;
  --border: #EFDDD3;
  --green: #34C759;
  --orange: #FF9500;
  --red: #FF3B30;
  --pink: #FF2D55;
  --phone-bg: #FFFFFF;
  --phone-row: #F4EEEA;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(120, 50, 30, .35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --coral: #F0805F;
    --coral-dark: #E2704F;
    --coral-soft: #4A2A22;
    --cream: #FFF4EC;
    --bg: #17110F;
    --bg-alt: #201815;
    --surface: #251C19;
    --text: #F7EDE7;
    --muted: #B7A49B;
    --border: #3A2D28;
    --phone-bg: #0E0B0A;
    --phone-row: #1E1816;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--coral-dark); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h1 em { font-style: normal; color: var(--coral); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.15rem; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral);
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* Botones */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.5rem;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  box-shadow: 0 8px 20px -8px rgba(207, 85, 73, .6);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link { font-weight: 600; text-decoration: none; }

/* Barra superior */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 22%; }

/* Portada */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 1.75rem; }

/* Maqueta del iPhone */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 100%;
  padding: 12px;
  border-radius: 48px;
  background: #1b1412;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a2d28;
}
.phone-screen {
  position: relative;
  border-radius: 38px;
  background: var(--phone-bg);
  padding: 44px 14px 64px;
  min-height: 580px;
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 20px; background: #000;
}
.app-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 4px 8px; }
.app-section { font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--muted); margin: 12px 6px 6px; }
.app-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--phone-row);
  border-radius: 14px;
  padding: 9px 10px;
  margin-bottom: 6px;
}
.avatar {
  flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: .95rem;
  background: linear-gradient(135deg, hsl(var(--h) 70% 65%), hsl(calc(var(--h) + 30) 60% 50%));
}
.row-main { flex: 1; min-width: 0; }
.row-name { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.row-sub { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.row-sub.pink { color: var(--pink); font-weight: 600; }
.bar { height: 5px; border-radius: 3px; background: var(--border); margin: 4px 0 3px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; }
.bar .green { background: var(--green); }
.bar .orange { background: var(--orange); }
.bar .red { background: var(--red); }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  padding: 12px 8px 18px;
  font-size: .65rem; color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--phone-bg);
}
.tabbar .active { color: var(--coral); font-weight: 700; }

/* Secciones */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }


.checks {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px;
}
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li strong { color: var(--text); }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 800;
  color: #fff; background: var(--coral);
}


/* Beta */
.beta {
  background: linear-gradient(135deg, #E8805C 0%, #CF5549 100%);
  color: #fff;
}
.beta h2 { color: #fff; }
.beta p { color: rgba(255, 255, 255, .92); }
.eyebrow.light { color: var(--cream); opacity: .85; }
.beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { padding-left: 1.2rem; margin: 1.5rem 0 0; }
.steps li { margin-bottom: .5rem; }

.card {
  background: var(--surface);
  color: var(--text);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 60px -25px rgba(60, 20, 10, .55);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; line-height: 1.4; }
.req { color: var(--coral-dark); }
.opt { color: var(--muted); font-weight: 400; }
input[type="email"], input[type="text"], select {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: 16px; /* evita el zoom automático de iOS */
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input:focus, select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 20%, transparent); }
.invalid { border-color: var(--red) !important; }

.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 20px; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--coral); flex: none; }
.consent.invalid span { color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; text-align: center; }
.form-msg.ok { color: #1f8a3b; font-weight: 600; }
.form-msg.err { color: var(--red); }
.card.done .field, .card.done .consent, .card.done .btn { display: none; }
.card.done .form-msg { font-size: 1.1rem; padding: 32px 0; }

/* Preguntas */
details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
details:first-of-type { margin-top: 24px; border-top: 1px solid var(--border); }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--coral); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: .75rem 0 0; }

/* Pie */
.footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0; }

/* Página de privacidad */
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; max-width: none; }
.legal p, .legal li { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .beta-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .lead { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .checks { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .phone-hero { width: 280px; }
}

/* Logotipo: «Trul» en Nunito + dos «i» dibujadas (ámbar y coral, como en el icono) */
:root { --ink: #3E4C5E; --i-1: #F6A83E; --i-2: #EE7A4E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #F7EDE7; }
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wi {
  position: relative;
  display: inline-block;
  width: .17em;
  height: .49em;
  margin-left: .055em;
  border-radius: .085em;
  background: var(--i-1);
}
.wi::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(100% + .06em);
  width: .17em;
  height: .17em;
  border-radius: 50%;
  background: inherit;
}
.wi-1 { margin-left: .06em; }
.wi-2 { background: var(--i-2); }
.footer .wordmark { font-size: 1.15rem; }

/* ───────── Movimiento ───────── */

/* Barra de progreso de lectura bajo la cabecera */
.nav { position: sticky; }
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--i-1), var(--coral));
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* Aparición al hacer scroll (solo con JS activo) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-list li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal-list.is-in li { opacity: 1; transform: none; }

/* Portada: el móvil gira y sube según bajas; las burbujas flotan */
.hero-stage { position: relative; justify-self: center; padding: 20px 40px; }
.phone-hero {
  transform: translateY(calc(var(--hp, 0) * -50px)) rotate(calc(2deg - var(--hp, 0) * 9deg)) scale(calc(1 - var(--hp, 0) * .06));
  will-change: transform;
}
.bubble {
  position: absolute; z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px -14px rgba(120, 50, 30, .45);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.bubble-1 { top: 2%; left: -24px; translate: 0 calc(var(--hp, 0) * -140px); }
.bubble-2 { top: 47%; right: -36px; translate: 0 calc(var(--hp, 0) * -60px); animation-delay: -2s; }
.bubble-3 { bottom: 4%; left: -40px; translate: 0 calc(var(--hp, 0) * -220px); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Cómo funciona: móvil al lado y pasos compactos que avanzan solos */
.story {
  display: grid;
  grid-template-columns: minmax(0, 520px) 324px;
  grid-template-areas: "intro stage" "steps stage";
  grid-template-rows: auto 1fr;
  justify-content: space-between;
  column-gap: 64px;
}
.story-intro { grid-area: intro; }
.story-intro h2 { margin-bottom: 1.2rem; }
.story-steps { grid-area: steps; }
.story-stage { grid-area: stage; align-self: center; }
.phone-story { width: 324px; }
.phone-story .phone-screen { min-height: 600px; }

.step { position: relative; border-bottom: 1px solid var(--border); }
.step:first-child { border-top: 1px solid var(--border); }
.step-head {
  display: flex; align-items: baseline; gap: 14px; width: 100%;
  padding: 18px 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--muted);
  transition: color .25s;
}
.step-head:hover, .step.is-active .step-head { color: var(--text); }
.step-head:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 6px; }
.step-title { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.01em; }
.step-num {
  flex: none;
  font-family: "Nunito", ui-rounded, sans-serif; font-weight: 800;
  color: var(--coral); font-size: .9rem; letter-spacing: .08em;
}
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.step.is-active .step-body { grid-template-rows: 1fr; }
.step-body p { overflow: hidden; margin: 0; padding-left: 36px; color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.step.is-active .step-body p { padding-bottom: 20px; }
.step-timer {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--coral);
  transform: scaleX(0); transform-origin: left;
}
.step.is-active .step-timer { transform: scaleX(1); }
.story.is-playing .step.is-active .step-timer { animation: timer var(--step-ms, 6000ms) linear; }
.story.is-paused .step.is-active .step-timer { animation-play-state: paused; }
@keyframes timer { from { transform: scaleX(0); } }

.screen {
  position: absolute; inset: 0;
  padding: 44px 14px 64px;
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}
.screen.is-active { opacity: 1; transform: none; }
.screen .bar span { width: 0; transition: width .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.screen.is-active .bar span { width: var(--w); }


.chips { display: flex; gap: 5px; margin: 0 4px 2px; }
.chip { font-size: .62rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--phone-row); color: var(--muted); }
.chip.on { background: var(--coral); color: #fff; }

/* Ficha */
.nav-back { color: var(--coral); font-size: .8rem; font-weight: 600; margin: 2px 4px 6px; }
.profile { text-align: center; margin-bottom: 12px; }
.avatar-xl { width: 68px; height: 68px; font-size: 1.7rem; margin: 0 auto 6px; }
.profile-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.profile-status { font-size: .75rem; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.red { background: var(--red); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; border-radius: 12px;
  background: var(--phone-row);
  font-size: .66rem; font-weight: 600;
}
.tile svg { width: 19px; height: 19px; fill: var(--coral); }
.tile.prominent { background: var(--coral); color: #fff; }
.tile.prominent svg { fill: #fff; }
.screen.is-active .tile.call { animation: pulse 1.8s ease-out .6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}
.ring { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); margin: 0 8px 0 4px; display: grid; place-items: center; font-size: .6rem; color: #fff; }
.hist-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--phone-bg); font-size: .95rem; }

/* Registrar contacto */
.sheet-bar { display: flex; justify-content: space-between; align-items: baseline; font-size: .72rem; margin: 4px 2px 6px; color: var(--coral); }
.sheet-bar b { color: var(--text); font-size: .82rem; }
.sheet-bar .save { font-weight: 700; }
.segmented { display: flex; padding: 2px; border-radius: 10px; background: var(--phone-row); }
.segmented span { flex: 1; text-align: center; font-size: .62rem; font-weight: 600; padding: 6px 0; border-radius: 8px; }
.segmented .on { background: var(--phone-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.form-row { justify-content: space-between; font-size: .8rem; min-height: 40px; }
.form-row b { color: var(--coral); font-weight: 600; }
.typing { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 2px solid var(--coral); padding-right: 1px; }
.screen.is-active .typing { animation: type 1.8s steps(30) .6s forwards, caret .8s step-end 6; }
@keyframes type { to { max-width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }
.screen.is-active .ring.check { animation: check .35s ease 2.6s forwards; }
@keyframes check { to { background: var(--coral); border-color: var(--coral); } }
.ring.check::after { content: "✓"; opacity: 0; transition: opacity .2s 2.8s; }
.screen.is-active .ring.check::after { opacity: 1; }
.toast {
  position: absolute; left: 50%; bottom: 28px;
  translate: -50% 0;
  padding: 9px 14px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: .74rem; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translateY(14px);
}
.screen.is-active .toast { animation: toast .5s cubic-bezier(.2, .8, .2, 1.2) 3.1s forwards; }
@keyframes toast { to { opacity: 1; transform: none; } }

/* Calendario */
.cal-head { display: flex; justify-content: space-between; font-size: .85rem; margin: 0 6px 6px; }
.cal-head span { color: var(--coral); letter-spacing: .3em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 2px; text-align: center; font-size: .72rem; margin: 0 2px 4px; }
.cal span { position: relative; padding: 5px 0 7px; border-radius: 50%; }
.cal .dow { color: var(--muted); font-size: .6rem; font-weight: 700; padding-bottom: 3px; }
.cal .today { background: var(--coral); color: #fff; font-weight: 700; aspect-ratio: 1; padding: 0; display: grid; place-items: center; width: 26px; margin: 0 auto; }
.cal .ev::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .3s ease; }
.cal .ev.pink::after { background: var(--pink); }
.cal .ev.done::after { background: var(--green); }
.screen.is-active .cal .ev::after { transform: scale(1); }
.cal .ev:nth-child(3n)::after { transition-delay: .2s; }
.cal .ev:nth-child(3n + 1)::after { transition-delay: .35s; }
.cal .ev:nth-child(3n + 2)::after { transition-delay: .5s; }

/* Pantalla de bloqueo */
.screen-lock {
  text-align: center; color: #fff;
  background: radial-gradient(120% 80% at 20% 0%, #F6A83E, transparent 60%), linear-gradient(160deg, #E2704F, #8E3B5E);
  padding-top: 54px;
}
.lock-date { font-size: .82rem; font-weight: 600; opacity: .9; }
.lock-time { font-size: 4rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: 14px; }
.lock-widgets { display: flex; justify-content: center; gap: 8px; }
.lw { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); font-size: .62rem; min-width: 64px; }
.lw b { font-size: 1.4rem; line-height: 1.1; }
.lw-wide { align-items: flex-start; text-align: left; }
.lw-label { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.notif {
  display: flex; gap: 10px; text-align: left;
  margin-top: 26px; padding: 10px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); color: #2A1C17;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(-24px) scale(.96);
}
.notif img { border-radius: 8px; flex: none; }
.notif-top { display: flex; justify-content: space-between; font-size: .66rem; text-transform: uppercase; letter-spacing: .03em; color: #7A665E; }
.notif-title { font-weight: 700; font-size: .8rem; }
.notif-body { font-size: .74rem; line-height: 1.3; }
.screen.is-active .notif { animation: notif .6s cubic-bezier(.2, .8, .2, 1.15) .5s forwards; }
@keyframes notif { to { opacity: 1; transform: none; } }

/* Contacto real */
.real { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 50% 50%, var(--bg-alt), var(--bg)); }
.big-quote {
  font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  margin: 0 auto 1rem; max-width: 22ch;
}
/* Las frases van apiladas en la misma celda: el hueco mide siempre lo que la más
   larga, así que al cambiar de frase no se mueve nada de lo que hay debajo. */
.rotator { display: grid; color: var(--coral); }
.rotator span { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.rotator span.on { opacity: 1; visibility: visible; animation: word .5s cubic-bezier(.2, .7, .2, 1); }
.rotator:not(.ready) span:first-child { opacity: 1; visibility: visible; }
@keyframes word { from { opacity: 0; filter: blur(6px); } }

/* Red social vs Trulii */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.vs-card { border-radius: 24px; padding: 28px; }
.vs-card h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.vs-card ul { list-style: none; margin: 0; padding: 0; }
.vs-card li { padding: 11px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.vs-card li:last-child { border-bottom: 0; }
.vs-foot { margin: 16px 0 0; font-weight: 800; }
.vs-social { border: 1.5px dashed var(--border); color: var(--muted); }
.vs-social s {
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 0% 2px;
  transition: background-size .5s ease;
}
.vs-social.is-in s { background-size: 100% 2px; }
.vs-social li:nth-child(2) s { transition-delay: .15s; }
.vs-social li:nth-child(3) s { transition-delay: .3s; }
.vs-social li:nth-child(4) s { transition-delay: .45s; }
.vs-social li:nth-child(5) s { transition-delay: .6s; }
.vs-trulii { background: linear-gradient(135deg, #E8805C, #CF5549); color: #fff; box-shadow: var(--shadow); transition-delay: .15s; }
.vs-trulii li { border-color: rgba(255, 255, 255, .2); padding-left: 30px; position: relative; }
.vs-trulii li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 800;
  background: #fff; color: var(--coral-dark);
}
.versus-note { max-width: 60ch; margin: 32px auto 0; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notif { background: rgba(30, 22, 20, .82); color: #F7EDE7; }
  :root:not([data-theme="light"]) .notif-top { color: #B7A49B; }
}

/* Móvil: el teléfono se queda arriba, en pequeño, y los pasos pasan por debajo */
@media (max-width: 900px) {
  .hero-stage { padding: 20px 16px; }
  .bubble { font-size: .78rem; }
  .bubble-1 { left: -4px; }
  .bubble-2 { right: -8px; }
  .bubble-3 { left: -10px; }

  .story { grid-template-columns: 1fr; grid-template-areas: "intro" "stage" "steps"; grid-template-rows: none; row-gap: 20px; }
  .phone-story { zoom: .72; margin: 0 auto; }
  .step-head { padding: 14px 0; }
  .step-body p { font-size: 1rem; padding-left: 32px; }
  .versus { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-list li { opacity: 1; transform: none; transition: none; }
  .phone-hero, .bubble { transform: none; translate: none; animation: none; }
  .screen { transition: opacity .2s; transform: none; }
  .screen .bar span { transition: none; }
  .screen.is-active *, .screen.is-active *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-delay: 0s !important; }
  .rotator span.on { animation: none; }
}
