/* ========================================================
   Ceibo Marketing — home y landing general
   Sigue el manual de marca (Design System "Ceibo Marketing"):
   azul noche + azules del logo + acento coral,
   Bricolage Grotesque (titulares) y Figtree (texto).
   La landing de turismo tiene su propio estilo: /turismo/
   ======================================================== */

:root {
  /* Paleta de marca */
  --navy-900: #0a1a2b;
  --navy-800: #10263d;
  --blue-600: #0c78a8;
  --sky-400: #5cc8e6;
  --coral-500: #ff6b3d;
  --coral-700: #c9431c;
  --paper-50: #f4f7f9;
  --white: #ffffff;

  /* Tema azul noche (por defecto) */
  --surface: var(--navy-900);
  --surface-raised: var(--navy-800);
  --line: #24405a;
  --ink: var(--white);
  --ink-muted: #b9c9d6;
  --highlight: var(--sky-400);
  --accent: var(--coral-500);
  --on-accent: var(--navy-900);
  --accent-text: var(--coral-500);
  --focus: var(--sky-400);

  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-24: 96px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --shadow-float: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-button: 0 10px 24px -12px rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

/* Tema claro: secciones de papel */
.theme-light {
  --surface: var(--paper-50);
  --surface-raised: var(--white);
  --line: #d6e1e8;
  --ink: var(--navy-900);
  --ink-muted: #4a6070;
  --highlight: var(--blue-600);
  --accent-text: var(--coral-700);
  --focus: var(--blue-600);
  --shadow-float: 0 18px 40px -18px rgba(10, 26, 43, 0.28);
  --shadow-button: 0 10px 24px -12px rgba(10, 26, 43, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); scrollbar-color: var(--line) var(--navy-900); }
body {
  margin: 0; background: var(--navy-900); color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; caret-color: var(--sky-400); accent-color: var(--coral-500);
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
::selection { background: var(--sky-400); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--coral-500); color: var(--navy-900); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(1160px, 100% - 2 * var(--space-4)); margin-inline: auto; }
.section { background: var(--surface); color: var(--ink); padding: var(--space-24) 0; }

/* ---------- Tipografía (escala del manual) ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); text-wrap: balance; }
.display { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.02; font-weight: 750; letter-spacing: -0.025em; font-variation-settings: 'opsz' 96; }
.h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); line-height: 1.06; font-weight: 750; letter-spacing: -0.02em; font-variation-settings: 'opsz' 72; }
.h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
.h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-muted); }
.label { font-size: 14px; line-height: 1.35; font-weight: 600; }
.metric { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.caption { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.hl { color: var(--highlight); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
  font: 700 16px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform .2s var(--ease), filter .2s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--secondary:hover { background: var(--surface-raised); filter: none; }
.btn--small { min-height: 42px; padding: 0 var(--space-4); font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy-900); transition: box-shadow .25s var(--ease); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: var(--space-8); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font-display); letter-spacing: -0.01em; }
.nav__brand img { width: 40px; height: auto; }
.nav__links { display: flex; gap: var(--space-6); margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-muted); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--ink); }
.nav__inner > .btn { margin-left: auto; }
.nav__links + .btn { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 80% at 50% 0%, var(--navy-800), var(--navy-900) 70%);
  padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; position: relative; z-index: 2; overflow-x: clip; overflow-y: visible;
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.tag { padding: 6px var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-muted); }
.hero .display { margin-top: 0; }
.hero .lead { margin: var(--space-6) auto 0; max-width: 46ch; }
.hero__cta { margin-top: var(--space-8); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.hero__phone a { color: var(--ink); }

/* Elegí tu camino (home) */
.paths { margin: var(--space-8) auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); text-align: left; }
.path {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6); min-height: 84px;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; transition: border-color .2s, transform .25s var(--ease), background .2s;
}
.path:hover { border-color: var(--sky-400); transform: translateY(-2px); }
.path__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: var(--sky-400); }
.path__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.path__text { display: grid; gap: 2px; }
.path__title { font: 700 18px/1.25 var(--font-display); letter-spacing: -0.01em; }
.path__arrow { margin-left: auto; color: var(--ink-muted); transition: transform .25s var(--ease), color .2s; }
.path:hover .path__arrow { transform: translateX(4px); color: var(--sky-400); }

/* Escenario: anuncios reales de clientes con sus resultados flotando */
.stage { position: relative; height: clamp(320px, 38vw, 440px); margin-top: var(--space-12); }
.shot {
  position: absolute; bottom: -40px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--navy-800);
  box-shadow: var(--shadow-float);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--a { left: 50%; width: clamp(170px, 19vw, 230px); aspect-ratio: 9 / 16; transform: translateX(-50%); z-index: 2; }
.shot--b { left: calc(50% - clamp(330px, 34vw, 420px)); width: clamp(190px, 22vw, 270px); aspect-ratio: 9 / 8; bottom: 40px; transform: rotate(-5deg); }
.shot--c { left: calc(50% + clamp(140px, 13vw, 170px)); width: clamp(150px, 17vw, 205px); aspect-ratio: 9 / 16; transform: rotate(4deg); }

.chip {
  position: absolute; z-index: 3; display: grid; gap: 1px; text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}
.chip .metric { color: var(--accent-text); }
.chip--1 { left: calc(50% - clamp(200px, 21vw, 260px)); top: 18%; transform: rotate(-2deg); }
.chip--2 { left: calc(50% + clamp(60px, 7vw, 90px)); top: 4%; }
.chip--3 { left: calc(50% + clamp(240px, 24vw, 300px)); top: 46%; transform: rotate(2deg); }

/* ---------- Pasos ---------- */
.section__head { text-align: center; max-width: 640px; margin: 0 auto var(--space-12); }
.section__head .lead { margin-top: var(--space-3); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.step { padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: var(--sky-400); margin-bottom: var(--space-4); }
.step__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step p { margin-top: var(--space-2); color: var(--ink-muted); font-size: 16px; }

/* ---------- Beneficios ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); max-width: 920px; margin: 0 auto; }
.benefit { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.benefit .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--coral-500); color: var(--navy-900); }
.benefit p { color: var(--ink-muted); }
.benefit strong { color: var(--ink); font-weight: 700; }

/* ---------- Casos ---------- */
.cases { display: grid; gap: var(--space-12); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-12); align-items: center; }
.case + .case { padding-top: var(--space-12); border-top: 1px solid var(--line); }
.case__segment { margin-top: var(--space-2); color: var(--highlight); font-weight: 600; }
.case__context { margin-top: var(--space-3); color: var(--ink-muted); }
.pricelist { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.pricelist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
}
.pricelist__label { font-weight: 600; font-size: 15px; }
.pricelist__value { font: 700 22px/1.1 var(--font-sans); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.case__media { display: flex; gap: var(--space-4); justify-content: center; }
.case__media > * { flex: 0 1 230px; min-width: 0; }
.frame { border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.frame video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.media-cap { margin-top: var(--space-2); font-size: 13px; color: var(--ink-muted); }
.media-cap b { color: var(--ink); font-weight: 600; }

.carousel { position: relative; }
.carousel__viewport { position: relative; overflow: hidden; }
.carousel__track { display: flex; transition: transform .55s var(--ease); }
.carousel__slide { flex: 0 0 100%; }
.carousel__slide img { width: 100%; height: auto; aspect-ratio: 9 / 8; object-fit: cover; }
.frame--still img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.carousel__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: rgba(10, 26, 43, .8); color: var(--white); }
.carousel__arrow--prev { left: 8px; }
.carousel__arrow--next { right: 8px; }
.carousel__arrow--next .icon { transform: scaleX(-1); }
.carousel__dots { display: flex; justify-content: center; gap: 2px; padding: 4px 0; background: var(--navy-800); }
.carousel__dot { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6d8496; }
.carousel__dot[aria-current="true"]::before { background: var(--coral-500); }

/* ---------- Preguntas ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: var(--space-3); }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--space-6); cursor: pointer; list-style: none; font: 700 18px/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--highlight); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); }
.faq details p a { color: var(--highlight); font-weight: 600; }

/* ---------- Cierre ---------- */
.closing { text-align: center; }
.closing .lead { margin: var(--space-4) auto 0; max-width: 44ch; }
.closing .hero__cta { margin-top: var(--space-8); }
.closing--form { text-align: left; }
.closing--form .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: var(--space-12); align-items: center; }
.closing--form .lead { margin-left: 0; }
.form { display: grid; gap: var(--space-4); padding: var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.field { display: grid; gap: var(--space-1); }
.field span { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.field input { width: 100%; min-height: 48px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 500 17px/1.3 var(--font-sans); }
.field input::placeholder { color: var(--ink-muted); }
.field input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.form__note { font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ---------- Pie ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); padding: var(--space-8) 0 var(--space-12); font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); }
.foot a { color: var(--ink); }

.mobile-cta { display: none; }

/* Entrada: el hero aparece una sola vez, los chips después */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s var(--ease) both; }
  .reveal--2 { animation-delay: .08s; } .reveal--3 { animation-delay: .16s; } .reveal--4 { animation-delay: .24s; }
  .chip { animation: pop .7s var(--ease) both; }
  .chip--1 { animation-delay: .55s; } .chip--2 { animation-delay: .7s; } .chip--3 { animation-delay: .85s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; translate: 0 10px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case { grid-template-columns: 1fr; gap: var(--space-8); }
  .closing--form .wrap { grid-template-columns: 1fr; }
  .chip--3 { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: var(--space-12) 0; }
  .nav__brand span { display: none; }
  .paths, .benefits { grid-template-columns: 1fr; }
  .stage { height: 300px; }
  .shot--a { width: 150px; }
  .shot--b { width: 150px; left: calc(50% - 175px); bottom: 70px; }
  .shot--c { width: 120px; left: calc(50% + 60px); }
  .chip { padding: var(--space-2) var(--space-3); }
  .chip .metric { font-size: 22px; }
  .chip--1 { left: max(8px, calc(50% - 180px)); top: 8%; }
  .chip--2 { left: auto; right: max(8px, calc(50% - 180px)); top: auto; bottom: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .step { padding: var(--space-4); }
  .step__icon { width: 38px; height: 38px; margin-bottom: var(--space-3); }
  .step .h3 { font-size: 18px; }
  .step p { font-size: 15px; }
  .faq summary { padding: var(--space-4); font-size: 17px; }
  .faq details p { padding: 0 var(--space-4) var(--space-4); }
  .form { padding: var(--space-6); }
  .foot { padding-bottom: 112px; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: var(--navy-900); box-shadow: 0 -1px 0 var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .nav .btn { transition: opacity .2s, visibility .2s; }
  body.has-bar .nav .btn { opacity: 0; visibility: hidden; }
}

@media (max-width: 420px) {

  .case__media { flex-direction: column; align-items: center; }
  .case__media > * { width: 100%; max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Quiénes somos (home): tres principios y el cierre en la misma sección */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: 960px; margin: 0 auto; text-align: left; }
.closing__title { margin-top: var(--space-24); }
@media (max-width: 700px) {
  .values { grid-template-columns: 1fr; }
  .closing__title { margin-top: var(--space-12); }
}

/* ¿Quién va a manejar tus anuncios? — presentación de Octavio */
.person { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.person__visual { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }
.person__photo, .person__monogram {
  display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); object-fit: cover;
  box-shadow: var(--shadow-float);
}
.person__monogram {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 30% 10%, var(--navy-800), var(--navy-900) 70%);
  color: var(--sky-400); font: 800 clamp(140px, 18vw, 220px)/1 var(--font-display); letter-spacing: -0.04em;
}
.person__chip { position: absolute; }
.person__chip--1 { left: -24px; bottom: 18%; transform: rotate(-2deg); }
.person__chip--2 { right: -24px; top: 12%; transform: rotate(2deg); }
.person__text { display: grid; gap: var(--space-4); justify-items: start; }
.person__text .h1 { margin-bottom: var(--space-2); }
.person__hello { color: var(--ink); }
.person__text .lead { max-width: 52ch; }
.person__text .lead strong { color: var(--ink); font-weight: 700; }
.person__text .btn { margin-top: var(--space-4); }
@media (max-width: 960px) {
  .person { grid-template-columns: 1fr; gap: var(--space-8); }
  .person__visual { max-width: 340px; }
}
@media (max-width: 700px) {
  .person__visual { max-width: 270px; }
  .person__chip--1 { left: -8px; }
  .person__chip--2 { right: -8px; top: 22%; }
  .person__chip--1 { bottom: 6%; }
}

/* Presentación de Octavio dentro de "Quiénes somos" (fondo azul noche) */
.person--in { margin: 0 auto; max-width: 1040px; text-align: left; }
#nosotros .person--in { margin-bottom: var(--space-12); }
.person--in .person__monogram { border: 1px solid var(--line); }
.person--in .h1 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.person__photo { height: auto; object-position: 50% 35%; background: var(--white); }

/* Las piezas del hero cruzan el borde: una parte sobre el azul y el resto sobre la sección clara */
.shot { bottom: -150px; }
.shot--b { bottom: -40px; }
.chip--1 { top: 22%; }
.hero + .section { padding-top: calc(var(--space-24) + 150px); }
@media (max-width: 700px) {
  .shot { bottom: -90px; }
  .chip--2 { bottom: -70px; }
  .shot--b { bottom: -10px; }
  .hero + .section { padding-top: calc(var(--space-12) + 100px); }
}

/* Foto de Octavio sin fondo: sobre una tarjeta de marca, con la cabeza saliendo por arriba */
.person__visual { isolation: isolate; }
.person__backdrop {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78%; z-index: -1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(92, 200, 230, 0.55), transparent 70%),
    linear-gradient(160deg, var(--blue-600), var(--navy-800) 75%);
  box-shadow: var(--shadow-float);
}
.person__cutout {
  display: block; width: 100%; height: auto;
  clip-path: inset(-50% 0 0 0 round var(--radius-lg));
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}
.person__chip { z-index: 2; }

/* ---------- Landing de servicios ---------- */
/* Hero sin escenario de imágenes: promesa, acción y recorrido */
.hero--plain { padding-bottom: var(--space-24); }
.hero--plain + .section { padding-top: var(--space-24); }
.route {
  margin: var(--space-12) auto 0; max-width: 920px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; text-align: left;
}
.route li { position: relative; padding: var(--space-6) var(--space-3) 0 0; border-top: 2px solid var(--line); }
.route li::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy-900); border: 2px solid var(--sky-400);
}
.route b { display: block; margin-top: 2px; font: 700 17px/1.25 var(--font-display); }
.route__end { border-top-color: var(--coral-500) !important; }
.route__end::before { background: var(--coral-500) !important; border-color: var(--coral-500) !important; }
.route__end b { color: var(--accent-text); }

/* Incluye / No incluye */
.terms { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-6); max-width: 1000px; margin: 0 auto; }
.terms__col { padding: var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.terms__col--no { background: transparent; }
.terms__head { margin-bottom: var(--space-4); }
.terms__list { display: grid; gap: var(--space-4); }
.terms__list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--ink-muted); }
.terms__list strong { color: var(--ink); }
.terms__list .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; margin-top: 1px; }
.terms__yes { background: var(--coral-500); color: var(--navy-900); }
.terms__no { border: 1.5px solid var(--line); color: var(--ink-muted); }

@media (max-width: 700px) {
  .hero--plain { padding-bottom: var(--space-12); }
  .hero--plain + .section { padding-top: var(--space-12); }
  .route { grid-template-columns: 1fr; max-width: 320px; }
  .route li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 var(--space-4) var(--space-6); }
  .route li::before { top: 2px; left: -8px; }
  .route li:last-child { padding-bottom: 0; }
  .route__end { border-left-color: var(--coral-500) !important; }
  .terms { grid-template-columns: 1fr; }
  .terms__col { padding: var(--space-6); }
}

/* ========================================================
   Movimiento (solo si el dispositivo no pide reducirlo).
   La clase .motion la pone ceibo.js; sin ella todo queda visible.
   ======================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Titular del hero: palabra por palabra, saliendo de una máscara */
  .motion .display.is-split { animation: none; }
  .motion .display.is-split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .motion .display.is-split .w > span { display: inline-block; animation: word-up .9s var(--ease) backwards; animation-delay: calc(var(--i) * 55ms + 60ms); }

  /* Escenario del hero: los anuncios entran, después saltan los resultados */
  .motion .shot { animation: shot-in 1.1s var(--ease) backwards; translate: 0 calc(var(--p, 0) * var(--depth, 40px)); }
  .motion .shot--a { animation-delay: .45s; --depth: 36px; }
  .motion .shot--b { animation-delay: .6s;  --depth: 70px; }
  .motion .shot--c { animation-delay: .75s; --depth: 54px; }

  .motion .stage .chip { animation: chip-in .7s var(--ease) backwards, bob 5.5s ease-in-out infinite alternate; }
  .motion .stage .chip--1 { animation-delay: .95s, 1.6s; }
  .motion .stage .chip--2 { animation-delay: 1.1s, 0s; }
  .motion .stage .chip--3 { animation-delay: 1.25s, .8s; }
  .motion .stage.is-paused .chip { animation-play-state: paused; }

  /* Apariciones al scrollear */
  .motion [data-reveal] {
    opacity: 0; translate: 0 28px;
    transition: opacity .7s var(--ease) var(--d, 0ms), translate .9s var(--ease) var(--d, 0ms);
  }
  .motion [data-reveal].is-in { opacity: 1; translate: 0 0; }

  /* Foto de Octavio: sube desde la tarjeta azul; los datos aparecen después */
  .motion [data-reveal="person"] .person__cutout { translate: 0 70px; transition: translate 1.2s var(--ease) .15s; }
  .motion [data-reveal="person"].is-in .person__cutout { translate: 0 0; }
  .motion [data-reveal="person"] .person__chip { opacity: 0; scale: .9; transition: opacity .5s var(--ease), scale .6s var(--ease); }
  .motion [data-reveal="person"].is-in .person__chip--2 { opacity: 1; scale: 1; transition-delay: .6s; }
  .motion [data-reveal="person"].is-in .person__chip--1 { opacity: 1; scale: 1; transition-delay: .8s; }

  /* Recorrido (servicios): cada paso se enciende en orden */
  .motion .route li[data-reveal]::before { scale: 0; transition: scale .5s var(--ease) calc(var(--d, 0ms) + 150ms); }
  .motion .route li[data-reveal].is-in::before { scale: 1; }

  /* Botón principal: un brillo que lo cruza al pasar el mouse */
  .btn:not(.btn--secondary) { position: relative; overflow: hidden; isolation: isolate; }
  .btn:not(.btn--secondary)::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    translate: -120% 0; transition: translate .8s var(--ease);
  }
  .btn:not(.btn--secondary):hover::after { translate: 120% 0; }

  /* Links del menú: subrayado que crece */
  .nav__links a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease), color .2s; }
  .nav__links a:hover { background-size: 100% 1.5px; text-decoration: none; }

  /* Preguntas: se abren y cierran con suavidad (navegadores que lo soportan) */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}

@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes shot-in { from { opacity: 0; scale: .86; filter: blur(10px); } to { opacity: 1; scale: 1; filter: none; } }
@keyframes chip-in { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -9px; } }
