/* CASH Ecuador — página web pública.
   Idea: "tú pones el precio". Portada nocturna de ciudad con una ruta que se dibuja sola y ofertas de conductores que llegan
   al celular. Corporativo: azul andino, verde CASH y dorado solo para precios y acciones principales. Una sola familia de letra. */

:root {
  --night: #0a1830;        /* fondo de la portada y del pie */
  --andes: #12294d;        /* tinta y bandas oscuras */
  --andes-2: #1c3866;
  --cash: #0e6a44;         /* acción */
  --cash-deep: #0a4f33;
  --mint: #6fdcae;         /* verde sobre fondo oscuro */
  --gold: #b8943c;         /* precios y botón principal */
  --gold-hi: #e3c271;
  --gold-soft: #f4ecd8;
  --mist: #f1f4f8;         /* fondo alterno, frío (no crema) */
  --paper: #ffffff;
  --text: #1f2f45;
  --muted: #586a82;
  --line: #dde3ec;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* la plantilla de Expo bloquea el desplazamiento y pone #root en flex (pensado para apps): aquí es una web normal */
html, body, #root { height: auto !important; min-height: 100%; }
body { overflow: auto !important; overflow-x: clip !important; }
#root { display: block !important; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--cash); text-underline-offset: 3px; }
a:hover { color: var(--cash-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--andes); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -0.025em; }
h1 { font-size: clamp(42px, 6.2vw, 84px); letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.035em; }
h3 { font-size: 22px; letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 58ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- aparecer al entrar en pantalla (solo con JavaScript; sin él todo se ve) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .bento [data-reveal]:nth-child(3n + 2) { transition-delay: .08s; }
.js .bento [data-reveal]:nth-child(3n) { transition-delay: .16s; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 700 17px/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cash); color: #fff; }
.btn-primary:hover { background: var(--cash-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 12px 30px -12px rgba(184, 148, 60, .7); }
.btn-gold:hover { background: var(--gold-hi); color: var(--night); }
.btn-ghost { background: transparent; color: var(--andes); border-color: var(--andes); }
.btn-ghost:hover { background: var(--andes); color: #fff; }
.btn-light { background: #fff; color: var(--andes); }
.btn-light:hover { background: var(--gold-soft); color: var(--andes); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: #fff; color: var(--andes); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(10, 24, 48, .35); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--andes); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 44px; height: auto; transition: filter .3s; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: 10px 13px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--mist); color: var(--andes); }
.nav .btn { margin-left: 8px; min-height: 44px; padding: 0 18px; font-size: 16px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-primary:hover { background: var(--cash-deep); }
.nav a.btn-quiet { background: transparent; color: var(--andes); border: 2px solid var(--line); }
.nav a.btn-quiet:hover { border-color: var(--andes); background: transparent; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--andes); border-radius: 12px; min-height: 44px; padding: 0 14px; font: 700 16px var(--font); color: var(--andes); }
/* sobre la portada oscura: transparente y en blanco hasta que se baja */
.site-header.on-dark { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header.on-dark .brand { color: #fff; }
.site-header.on-dark .brand img { filter: brightness(0) invert(1); }
.site-header.on-dark .nav a { color: #d6e0ef; }
.site-header.on-dark .nav a:hover, .site-header.on-dark .nav a[aria-current='page'] { background: rgba(255, 255, 255, .08); color: #fff; }
.site-header.on-dark .nav a.btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .35); }
.site-header.on-dark .nav a.btn-primary { background: var(--gold); color: var(--night); }
.site-header.on-dark .menu-toggle { color: #fff; border-color: rgba(255, 255, 255, .5); }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; background: #fff; padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(10, 24, 48, .3); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 18px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- marco de celular ---------- */
.phone { position: relative; aspect-ratio: 390 / 844; border-radius: 44px; background: #0d1d38; padding: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 40px 80px -36px rgba(10, 24, 48, .6); }
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: #e9eef3; }
.phone::before { content: ''; position: absolute; top: 19px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 12px; background: #0d1d38; z-index: 2; }

/* ---------- portada de cine: ciudad 3D que se recorre al bajar ---------- */
.cine { position: relative; height: 520vh; margin-top: -77px; background: var(--night); color: #c7d3e6; }
.cine-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(900px 520px at 75% 45%, rgba(184, 148, 60, .16), transparent 65%),
              radial-gradient(800px 600px at 10% 100%, rgba(14, 106, 68, .28), transparent 60%),
              linear-gradient(180deg, var(--night) 0%, #0f2347 100%); }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.cine-3d .cine-canvas { opacity: 1; }
.cine-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 24, 48, .9) 0%, rgba(10, 24, 48, .55) 36%, rgba(10, 24, 48, 0) 60%),
              linear-gradient(0deg, rgba(10, 24, 48, .75), transparent 28%); }
.cine-copy { position: relative; z-index: 2; height: 100%; display: grid; align-items: center; padding-top: 77px; pointer-events: none; }
.cine-copy > * { grid-area: 1 / 1; max-width: 640px; opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; pointer-events: none; }
.cine-copy > .on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cine-intro h1 { color: #fff; max-width: 12ch; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.cine-intro .lead { color: #d2dcec; margin-top: 24px; }
.cine-step h2 { color: #fff; font-size: clamp(40px, 5.4vw, 78px); max-width: 11ch; letter-spacing: -0.04em; line-height: 1; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.cine-step p { font-size: clamp(18px, 1.6vw, 22px); color: #d2dcec; margin-top: 20px; max-width: 38ch; }
.cine-n { display: inline-block; font-weight: 700; color: var(--gold-hi); font-size: 16px; margin-bottom: 14px; }
.cine-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; opacity: 0; background: #fff; color: var(--text); border-radius: 14px; padding: 8px 14px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); font-size: 13px; line-height: 1.3; white-space: nowrap; will-change: transform, opacity; }
.lbl::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.lbl b { display: block; color: var(--andes); font-size: 15px; }
.lbl span, .lbl small { color: var(--muted); }
.lbl-price { padding: 10px 18px; text-align: center; }
.lbl-price b { font-size: 34px; color: var(--gold); letter-spacing: -0.03em; line-height: 1.05; }
.lbl-offer.ok { outline: 2px solid var(--mint); }
.lbl-offer.ok span { color: var(--cash); font-weight: 700; }
.lbl-dest { background: var(--gold); }
.lbl-dest b, .lbl-dest span { color: var(--night); }
.lbl-code { background: var(--cash); }
.lbl-code b, .lbl-code span { color: #fff; }
.cine-rail { position: absolute; z-index: 3; right: clamp(12px, 2.5vw, 32px); top: 50%; transform: translateY(-50%); display: grid; gap: 16px; }
.cine-rail button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: transparent; padding: 0; cursor: pointer;
  position: relative; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.cine-rail button[aria-current] { background: var(--gold); border-color: var(--gold); transform: scale(1.35); }
.cine-rail span { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 13px var(--font); color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.cine-rail button:hover span, .cine-rail button:focus-visible span { opacity: 1; }
.cine-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 14px; color: #c7d3e6; opacity: 0; transition: opacity .5s; pointer-events: none; }
.cine-cue.on { opacity: 1; }
.cine-cue span { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; position: relative; }
.cine-cue span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.cine-flat { position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 60px)); top: 50%; width: min(300px, 28vw); transform: translateY(-44%) rotate(-4deg); }
.cine-flat > img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transition: opacity .5s; }
.cine-flat > img.on { opacity: 1; }
@media (max-width: 760px) {
  .cine { height: 470vh; }
  .cine-shade { background: linear-gradient(180deg, rgba(10, 24, 48, .94) 0%, rgba(10, 24, 48, .62) 46%, rgba(10, 24, 48, 0) 72%); }
  .cine-copy { align-items: start; padding-top: 104px; }
  .cine-intro .lead { font-size: 16px; margin-top: 16px; }
  .cine-intro .btn-row { margin-top: 20px; }
  .cine-step h2 { font-size: 36px; }
  .cine-step p { font-size: 17px; }
  .cine-rail { top: auto; bottom: 18px; right: 50%; transform: translateX(50%); grid-auto-flow: column; }
  .cine-rail span { display: none; }
  .cine-cue { display: none; }
  .cine-flat { width: 44vw; top: auto; bottom: 60px; right: 50%; transform: translateX(50%); }
}

/* ---------- cifras ---------- */
.facts { background: #0f2347; color: #c7d3e6; padding: 0 0 72px; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); }
.facts .wrap > div { padding: 32px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.facts strong { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts .wrap > div:nth-child(3) strong { color: var(--gold-hi); }
.facts .wrap > div > span { font-size: 15px; line-height: 1.45; max-width: 26ch; }
@media (max-width: 900px) { .facts .wrap { grid-template-columns: 1fr 1fr; row-gap: 8px; } }

/* ---------- secciones ---------- */
.band { padding: clamp(64px, 9vw, 128px) 0; }
.band-mist { background: var(--mist); }
.band-dark { background: var(--andes); color: #d1dbea; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead, .band-dark p { color: #bccae0; }
.band-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.band-head .lead { margin: 0; }
.center-h { text-align: center; margin-bottom: 48px; }
@media (max-width: 900px) { .band-head { grid-template-columns: 1fr; } }

/* pruébalo */
.split-try { display: grid; grid-template-columns: 1fr 400px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-try .lead { margin-top: 20px; }
@media (max-width: 900px) { .split-try { grid-template-columns: 1fr; } }

/* ---------- boleto del precio ---------- */
.ticket { background: var(--paper); border-radius: 22px; padding: 24px 24px 20px; box-shadow: 0 30px 60px -30px rgba(10, 24, 48, .45);
  -webkit-mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket-route { display: grid; grid-template-columns: 14px 1fr; gap: 4px 10px; font-size: 15px; color: var(--muted); }
.ticket-route b { color: var(--andes); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--cash); }
.dot.to { background: var(--andes); border-radius: 2px; }
.ticket-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 14px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.ticket-price output { font-size: 50px; font-weight: 800; color: var(--gold); letter-spacing: -0.035em; line-height: 1; }
.ticket-price small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.stepper { display: flex; gap: 8px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font: 800 22px var(--font); color: var(--andes); cursor: pointer; transition: border-color .2s, transform .15s; }
.stepper button:hover { border-color: var(--andes); }
.stepper button:active { transform: scale(.92); }
.ticket .btn { width: 100%; }
.offers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.offer { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--mist); opacity: 0; transform: translateY(8px); animation: offerIn .45s ease-out forwards; }
.offer:nth-child(2) { animation-delay: .7s; }
.offer:nth-child(3) { animation-delay: 1.4s; }
.offer .who { flex: 1; font-size: 15px; line-height: 1.3; }
.offer .who b { display: block; color: var(--andes); }
.offer .amt { font-weight: 800; color: var(--andes); }
.offer button { border: 0; border-radius: 999px; background: var(--cash); color: #fff; font: 700 14px var(--font); padding: 8px 14px; cursor: pointer; }
.offer.chosen { background: var(--gold-soft); }
@keyframes offerIn { to { opacity: 1; transform: none; } }

/* ---------- mosaico de servicios ---------- */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 16px; }
.tile { position: relative; border-radius: 24px; overflow: hidden; background: var(--mist); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.tile.has-img { grid-row: span 2; }
.tile.wide { grid-column: span 2; grid-row: span 2; }
.tile > a { display: flex; flex-direction: column; height: 100%; padding: 24px; color: inherit; text-decoration: none; position: relative; }
.tile h3 { font-size: 22px; position: relative; z-index: 1; }
.tile p { position: relative; z-index: 1; font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-go { position: relative; z-index: 1; margin-top: auto; font-size: 15px; font-weight: 700; color: var(--cash); }
.tile.has-img .tile-go { margin-top: 0; }
.tile img { position: absolute; right: -8%; bottom: -34%; width: 62%; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(10, 24, 48, .45);
  transform: rotate(-6deg); transition: transform .5s var(--ease); }
.tile.has-img:not(.wide) img { right: 50%; margin-right: -36%; width: 72%; bottom: -42%; }
.tile:not(.wide) p { -webkit-line-clamp: 2; }
.tile.wide > a { padding-right: 46%; }
.tile.wide p { -webkit-line-clamp: 6; font-size: 17px; }
.tile.wide h3 { font-size: clamp(26px, 2.6vw, 36px); }
.tile.wide img { width: 38%; right: 3%; bottom: -26%; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(10, 24, 48, .55); }
.tile:hover img { transform: rotate(-3deg) translateY(-14px); }
.tile:nth-child(1) { background: var(--andes); border-color: var(--andes); }
.tile:nth-child(1) h3 { color: #fff; }
.tile:nth-child(1) p { color: #bccae0; }
.tile:nth-child(1) .tile-go { color: var(--gold-hi); }
.tile.wide:not(:nth-child(1)) { background: var(--cash); border-color: var(--cash); }
.tile.wide:not(:nth-child(1)) h3 { color: #fff; }
.tile.wide:not(:nth-child(1)) p { color: #d3eee2; }
.tile.wide:not(:nth-child(1)) .tile-go { color: #fff; }
/* pantallas medianas y celular: la captura va debajo del texto, asomando, sin taparlo */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile, .tile.has-img { grid-row: auto; }
  .tile.wide { grid-column: 1 / -1; grid-row: auto; }
  .tile > a { min-height: 190px; }
  .tile.wide > a { padding-right: 24px; }
  .tile.wide p { -webkit-line-clamp: 3; }
  .tile img, .tile.wide img, .tile.has-img:not(.wide) img { position: relative; right: auto; bottom: auto; width: min(66%, 300px); margin: 22px auto -45%; }
  .tile.has-img > a { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile img, .tile.wide img, .tile.has-img:not(.wide) img { width: 56%; margin-bottom: -78%; }
}

/* ---------- camino del dinero (servicios en casa) ---------- */
.flow { position: relative; margin-bottom: 56px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: f; }
.flow li { position: relative; padding-top: 52px; counter-increment: f; display: grid; gap: 6px; }
.flow li::before { content: counter(f); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--andes-2); color: #fff; font-weight: 800; border: 2px solid rgba(255, 255, 255, .18); }
.flow.in li::before { animation: node 6s infinite; }
.flow.in li:nth-child(2)::before { animation-delay: 1.5s; }
.flow.in li:nth-child(3)::before { animation-delay: 3s; }
.flow.in li:nth-child(4)::before { animation-delay: 4.5s; }
@keyframes node { 0%, 20% { background: var(--gold); border-color: var(--gold-hi); color: var(--night); } 30%, 100% { background: var(--andes-2); border-color: rgba(255, 255, 255, .18); color: #fff; } }
.flow b { color: #fff; font-size: 21px; }
.flow span { color: #bccae0; font-size: 16px; line-height: 1.5; }
.flow-line { position: absolute; left: 20px; right: 20px; top: 19px; height: 2px; background: rgba(255, 255, 255, .16); }
.flow-coin { position: absolute; top: -13px; left: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--night); font-weight: 800; font-size: 15px; box-shadow: 0 0 0 6px rgba(227, 194, 113, .2); opacity: 0; }
.flow.in .flow-coin { animation: coin 6s var(--ease) infinite; }
@keyframes coin { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 75% { left: calc(75% + 6px); opacity: 1; } 90%, 100% { left: calc(75% + 6px); opacity: 0; } }
.casa-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.casa-foot .ticks { margin: 0; flex: 1 1 520px; }
@media (max-width: 900px) {
  .flow ol { grid-template-columns: 1fr; gap: 28px; }
  .flow li { padding: 0 0 0 60px; min-height: 40px; }
  .flow-line { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .flow-coin { display: none; }
}

/* ---------- videos ---------- */
.watch { display: grid; grid-template-columns: 1fr 330px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.watch .lead { margin-top: 18px; }
.watch-tabs { display: grid; gap: 10px; margin-top: 32px; }
.watch-tabs button { text-align: left; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; padding: 16px 20px;
  font: 400 16px/1.45 var(--font); color: var(--muted); cursor: pointer; display: grid; gap: 2px; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.watch-tabs button b { color: var(--andes); font-size: 19px; }
.watch-tabs button:hover { transform: translateX(4px); }
.watch-tabs button[aria-selected='true'] { border-left-color: var(--gold); background: var(--mist); }
.watch-phone { width: 100%; }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } .watch-phone { width: min(300px, 76vw); margin: 0 auto; } }

/* ---------- bloques con imagen al lado ---------- */
.split { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .phone { width: 300px; justify-self: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .phone { width: min(280px, 72vw); } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.ticks li::before { content: ''; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--cash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.band-dark .ticks li::before { background-color: var(--gold); }
.ticks b { color: var(--andes); }
.band-dark .ticks b { color: #fff; }

/* ---------- dos caminos: conducir / ofrecer servicios ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { position: relative; display: grid; grid-template-columns: 1fr 170px; gap: 20px; min-height: 360px; padding: 36px; border-radius: 28px; overflow: hidden;
  text-decoration: none; color: #d8e3f1; transition: transform .35s var(--ease), box-shadow .35s; }
.path-drive { background: linear-gradient(150deg, var(--andes), var(--night)); }
.path-pro { background: linear-gradient(150deg, #11845a, var(--cash-deep)); color: #d9f0e6; }
.path h3 { color: #fff; font-size: clamp(26px, 2.4vw, 34px); }
.path p { margin-top: 12px; font-size: 17px; }
.path-go { display: inline-flex; margin-top: 18px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--andes); font-weight: 700; font-size: 16px; }
.path img { align-self: end; width: 170px; border-radius: 24px; margin-bottom: -90px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .5); transform: rotate(4deg); transition: transform .5s var(--ease); }
.path:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(10, 24, 48, .7); color: #fff; }
.path:hover img { transform: rotate(1deg) translateY(-16px); }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; min-height: 0; } .path img { display: none; } }

/* ---------- preguntas ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; color: var(--andes); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line);
  font-size: 20px; line-height: 1; color: var(--cash); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- cierre ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--cash); color: #e3f1ea; padding: clamp(56px, 8vw, 104px) 0; }
.cta-band::after { content: ''; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

/* ---------- páginas internas ---------- */
.page-hero { background: linear-gradient(180deg, var(--andes), #0f2347); color: #c7d3e6; padding: clamp(48px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; left: -10%; bottom: -70%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(14, 106, 68, .35), transparent 65%); }
.page-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 250px; gap: 48px; align-items: center; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c7d3e6; }
.page-hero .phone { width: 240px; justify-self: end; transform: rotate(3deg); margin-bottom: -140px; }
.page-hero.no-media .wrap { grid-template-columns: 1fr; }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .phone { justify-self: center; width: min(220px, 60vw); margin-bottom: -120px; } }
.page-body { padding: clamp(56px, 7vw, 96px) 0; }
.page-hero:not(.no-media) + .page-body { padding-top: clamp(80px, 9vw, 130px); }
.page-body .wrap { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 104px; font-size: 15px; }
.toc p { font-weight: 700; color: var(--andes); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--cash); }
.prose section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 104px; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; letter-spacing: -0.02em; }
@media (max-width: 900px) { .page-body .wrap { grid-template-columns: 1fr; } .toc { position: static; } }
.notice { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; margin-bottom: 32px; font-size: 16px; color: var(--andes); }
.company { display: grid; gap: 6px; padding: 24px; border-radius: 18px; background: var(--mist); margin-top: 8px; }

/* ---------- pie ---------- */
.site-footer { background: var(--night); color: #a9b9d1; padding: 72px 0 0; font-size: 16px; overflow: hidden; }
.site-footer a { color: #e6edf7; text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h3 { color: #fff; font-size: 16px; margin-bottom: 12px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand img { width: 64px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.foot-brand p { color: #a9b9d1; }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.foot-mark { margin: 24px 0 0; text-align: center; font-weight: 800; font-size: clamp(120px, 30vw, 440px); line-height: .78; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .13); max-width: none; margin-bottom: -0.1em; user-select: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- franja que corre sola ---------- */
.marquee { position: relative; z-index: 2; background: var(--gold); color: var(--night); overflow: hidden; padding: 22px 0; margin: 0 -2vw; transform: rotate(-1.4deg);
  box-shadow: 0 24px 50px -24px rgba(10, 24, 48, .55); }
.mq-track { display: flex; width: max-content; animation: mq 40s linear infinite; }
.mq-row { display: flex; gap: 36px; padding-right: 36px; }
.mq-row span { font-weight: 800; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.mq-row span::after { content: '✦'; margin-left: 36px; font-size: .45em; vertical-align: middle; -webkit-text-stroke: 0; color: var(--night); }
.mq-out { color: transparent; -webkit-text-stroke: 1.5px var(--night); }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* ---------- tarjetas que se inclinan en 3D con el puntero ---------- */
[data-tilt] { --rx: 0deg; --ry: 0deg; --ty: 0px; }
html:not(.js) [data-tilt], .js [data-tilt].in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
  transition: opacity .9s var(--ease), transform .35s var(--ease), box-shadow .35s; }
[data-tilt]::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .2), transparent 42%); opacity: 0; transition: opacity .3s; }
[data-tilt]:hover::after { opacity: 1; }

/* ---------- menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-coin { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}.site-header.on-dark.scrolled { background: linear-gradient(180deg, rgba(10, 24, 48, .75), rgba(10, 24, 48, 0)); box-shadow: none; }
.hero-access { margin-top: 26px; font-size: 16px; color: #9fb1cc; }
.hero-access a { color: #fff; font-weight: 700; }
.hero-access a:hover { color: var(--gold-hi); }

/* ---------- titular de la portada: cada palabra sube desde abajo ---------- */
.js .cine-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.js .cine-title .w > span { display: inline-block; transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; animation: cine-rise 1.1s var(--ease) forwards; }
.js .cine-intro .lead, .js .cine-intro .btn-row, .js .cine-intro .hero-access { animation: cine-fade .9s var(--ease) both; }
.js .cine-intro .lead { animation-delay: 1.8s; }
.js .cine-intro .btn-row { animation-delay: 2s; }
.js .cine-intro .hero-access { animation-delay: 2.2s; }
@keyframes cine-rise { to { transform: none; } }
@keyframes cine-fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .cine-title .w > span { transform: none; } }

.cine-3d .cine-canvas { cursor: crosshair; }
