/* ==========================================================================
   Biblia Pro · Capa visual v3 (identidad Cielo, app 2.25)
   Se carga después de site.css y lo sobrescribe. Sin dependencias.
   ========================================================================== */

/* ---------- 1. Tokens Cielo (claro por defecto) ---------- */
:root {
  --cielo-sky: #a4dff0;
  --cielo-sky-2: #d6f0f8;
  --cielo-petrol: #152d3b;
  --cielo-petrol-2: #153c50;
  --cielo-teal: #13617b;
  --cielo-lav: #c8afe9;
  --cielo-lav-soft: #ede4fb;
  --cielo-lamp: #ffc857;
  --cielo-peach: #ffe8d8;
  --cielo-mint: #e3eedd;
  --cielo-paper: #f7fafb;

  --bg: var(--cielo-paper);
  --surface: #ffffff;
  --surface-strong: #eef5f8;
  --text: var(--cielo-petrol);
  --text-dim: #4a6370;
  --text-faint: #7b919c;
  --line: #dce8ee;
  --line-strong: #c3d6df;
  --accent: var(--cielo-teal);
  --accent-soft: rgba(164, 223, 240, 0.3);

  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(21, 45, 59, 0.06), 0 4px 14px rgba(21, 45, 59, 0.06);
  --shadow: 0 18px 44px -20px rgba(21, 45, 59, 0.28);
  --shadow-lg: 0 40px 80px -32px rgba(21, 45, 59, 0.38);
  --glow-sky: 0 0 80px -10px rgba(164, 223, 240, 0.9);
  --glow-lamp: 0 0 60px -12px rgba(255, 200, 87, 0.7);
}

html { background: var(--cielo-paper); }
body { background: var(--cielo-paper); color: var(--cielo-petrol); }

::selection { background: var(--cielo-sky); color: var(--cielo-petrol); }

/* ---------- 2. Tipografía con más carácter ---------- */
h1, h2, h3 { letter-spacing: -0.028em; }
h1 em, h2 em, .title-gold {
  font-style: normal;
  background: linear-gradient(100deg, #13617b 0%, #2a8fb0 60%, #4fb3d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lead, .hero__lead { color: var(--text-dim); }

.eyebrow {
  color: var(--cielo-teal);
  letter-spacing: 0.16em;
}

/* ---------- 3. Cabecera ---------- */
.site-header {
  background: rgba(247, 250, 251, 0.72) !important;
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid rgba(21, 45, 59, 0.07);
}
.site-header.is-scrolled,
.site-header[data-scrolled="true"] { box-shadow: 0 10px 30px -18px rgba(21, 45, 59, 0.35); }
.nav__link { color: var(--cielo-petrol); }
.nav__link[aria-current="page"],
.nav__link:hover { color: var(--cielo-teal); }
.nav__link[aria-current="page"]::after { background: var(--cielo-teal); }

/* La cabecera no necesita el degradado oscuro de la versión anterior */
.site-header::before,
.site-header.is-scrolled::before { display: none; }

/* Barra de progreso de lectura (la crea site-fx.js) */
.fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cielo-sky), #13617b, var(--cielo-lamp));
  pointer-events: none;
}

/* ---------- 4. Botones con brillo ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--gold,
.btn--gold:hover {
  background: linear-gradient(180deg, #ffd47a 0%, #ffc857 55%, #f5b43a 100%);
  color: var(--cielo-petrol);
  box-shadow: 0 12px 28px -12px rgba(201, 146, 31, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(201, 146, 31, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(21, 45, 59, 0.16);
  color: var(--cielo-petrol);
}
.btn--ghost:hover { background: #fff; border-color: var(--cielo-teal); color: var(--cielo-teal); }

.btn--violet {
  background: linear-gradient(180deg, #1d7a97, #13617b);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(19, 97, 123, 0.7);
}

/* ---------- 5. Fondo atmosférico del hero (cielo, luz y lavanda) ---------- */
.hero {
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(164, 223, 240, 0.95), transparent 60%),
    radial-gradient(800px 520px at -8% 30%, rgba(200, 175, 233, 0.45), transparent 62%),
    linear-gradient(180deg, #d6f0f8 0%, #f7fafb 88%);
}
.hero__bg .aurora { filter: blur(70px); opacity: 0.75; }
.aurora--one  { background: radial-gradient(circle, rgba(164, 223, 240, 0.95), transparent 65%) !important; animation: fx-drift-a 18s ease-in-out infinite alternate; }
.aurora--two  { background: radial-gradient(circle, rgba(200, 175, 233, 0.7), transparent 65%) !important; animation: fx-drift-b 22s ease-in-out infinite alternate; }
.aurora--gold { background: radial-gradient(circle, rgba(255, 200, 87, 0.55), transparent 65%) !important; animation: fx-drift-a 26s ease-in-out infinite alternate-reverse; }
.hero__grid {
  background-image: radial-gradient(rgba(21, 45, 59, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  opacity: 0.8;
}
.hero__badge {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(19, 97, 123, 0.15);
  color: var(--cielo-petrol);
  box-shadow: var(--shadow-sm);
}
.hero__badge-tag { background: var(--cielo-lamp); color: var(--cielo-petrol); }
.hero__trust li { color: var(--text-dim); }
.hero__trust svg { color: var(--cielo-teal); }

/* Halo y anillo detrás del teléfono */
.hero__halo {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(164, 223, 240, 0.7) 45%, transparent 70%) !important;
  animation: fx-breathe 7s ease-in-out infinite;
}
.hero__ring { border-color: rgba(19, 97, 123, 0.18) !important; animation: fx-spin 60s linear infinite; }
.hero__phone-shadow { background: radial-gradient(ellipse, rgba(21, 45, 59, 0.3), transparent 70%) !important; }

/* ---------- 6. Teléfono con captura real ---------- */
.phone--shot {
  --phone-bezel: #0f2330;
  position: relative;
  background: linear-gradient(160deg, #2c4a5b, #0f2330 40%, #1b3442);
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 50px 90px -30px rgba(21, 45, 59, 0.55),
    0 24px 40px -20px rgba(19, 97, 123, 0.45);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone--shot .phone__screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #f7fafb;
  aspect-ratio: 780 / 1688;
}
.phone--shot .phone__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone--shot::after {            /* brillo de cristal sobre la pantalla */
  content: ""; position: absolute; inset: 11px; border-radius: 36px; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, transparent 38%);
}
.phone--shot .phone__island,
.phone--shot .phone__home { display: none; }

/* Flotación suave del teléfono principal */
.hero__phone-wrap { animation: fx-float 7s ease-in-out infinite; }
.hero__phone-wrap .phone--shot { transition: transform 0.6s var(--ease-out); }

/* Tarjetas flotantes */
.float-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px -18px rgba(21, 45, 59, 0.35) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cielo-petrol);
}
.float-card b { color: var(--cielo-petrol); }
.float-card small { color: var(--text-dim); }
.float-card--a { animation: fx-float 6s ease-in-out infinite; }
.float-card--b { animation: fx-float 8s ease-in-out -2s infinite; }
.float-card--c { animation: fx-float 7s ease-in-out -4s infinite; }

/* ---------- 7. Estadísticas y marquesina ---------- */
.stats { border-color: rgba(21, 45, 59, 0.1) !important; }
.stat__num { background: linear-gradient(120deg, var(--cielo-petrol), var(--cielo-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat__label { color: var(--text-dim); }

.marquee {
  background: var(--cielo-petrol) !important;
  border-color: transparent !important;
  color: #e4f7fc;
}
.marquee__item { color: #e4f7fc; }
.marquee__item svg { color: var(--cielo-lamp); }

/* ---------- 8. Tarjetas con reflejo que sigue al cursor ---------- */
.bento__card,
.price,
.audience__item,
.voice,
.step,
.faq__item,
.free-strip {
  position: relative;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s ease;
  overflow: hidden;
}
.bento__card::before,
.price::before,
.audience__item::before,
.voice::before,
.step::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(164, 223, 240, 0.32), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bento__card:hover::before,
.price:hover::before,
.audience__item:hover::before,
.voice:hover::before,
.step:hover::before { opacity: 1; }
.bento__card > *, .price > *, .audience__item > *, .voice > *, .step > * { position: relative; z-index: 1; }
.bento__card:hover,
.price:hover,
.audience__item:hover,
.voice:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(19, 97, 123, 0.28) !important;
}
.bento__card--gold, .price--featured {
  background: linear-gradient(160deg, #ffffff 0%, #fff7e2 100%) !important;
  border-color: rgba(255, 200, 87, 0.7) !important;
}
.bento__card--half.bento__card--gold { background: linear-gradient(160deg, #ffffff 0%, #eef9fd 100%) !important; border-color: rgba(164, 223, 240, 0.9) !important; }

.bento__icon { background: var(--cielo-sky-2) !important; color: var(--cielo-teal) !important; border: 1px solid rgba(164, 223, 240, 0.9); }
.bento__icon--gold { background: #fff1cc !important; color: #a7741a !important; border-color: rgba(255, 200, 87, 0.8); }
.bento__meta span { background: var(--cielo-sky-2); color: var(--cielo-petrol); border: 0; }

/* Capturas dentro del bento */
.bento-shot {
  margin-top: 22px;
  width: min(230px, 100%);
  aspect-ratio: 780 / 1688;
  border-radius: 26px;
  overflow: hidden;
  border: 8px solid #152d3b;
  box-shadow: 0 30px 50px -24px rgba(21, 45, 59, 0.55);
  background: #f7fafb;
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease-out);
}
.bento__card:hover .bento-shot { transform: rotate(0deg) translateY(-4px); }
.bento-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bento-shot--ia { transform: rotate(2deg); margin-left: auto; }
.bento__card:hover .bento-shot--ia { transform: rotate(0deg) translateY(-4px); }

/* ---------- 9. Showcase con pestañas ---------- */
.showcase__tab { background: #fff; border: 1px solid var(--line); color: var(--cielo-petrol); }
.showcase__tab[aria-selected="true"] {
  background: linear-gradient(135deg, #d6f0f8, #ffffff);
  border-color: rgba(19, 97, 123, 0.35);
  box-shadow: 0 16px 34px -20px rgba(19, 97, 123, 0.6);
}
.showcase__tab-index { color: var(--cielo-teal); }
.showcase__tab-title small { color: var(--text-dim); }
.showcase__stage::before {
  content: ""; position: absolute; inset: 6% 8% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(164, 223, 240, 0.9), rgba(200, 175, 233, 0.3) 55%, transparent 70%);
  filter: blur(30px);
  animation: fx-breathe 9s ease-in-out infinite;
}
.showcase__stage { position: relative; }
.showcase__phone .phone--shot { transition: transform 0.7s var(--ease-out); }

/* ---------- 10. Pasos, demo, precios ---------- */
.step__num {
  background: linear-gradient(135deg, var(--cielo-sky), #ffffff);
  color: var(--cielo-petrol);
  border: 1px solid rgba(19, 97, 123, 0.2);
  box-shadow: 0 10px 24px -14px rgba(19, 97, 123, 0.6);
}
.step__tag { background: var(--cielo-sky-2); color: var(--cielo-petrol); }

.demo-window { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.demo-window__bar { background: #f0f7fa; border-bottom: 1px solid var(--line); }
.demo-window__badge { background: var(--cielo-lamp); color: var(--cielo-petrol); }

.price__amount .value { background: linear-gradient(120deg, var(--cielo-petrol), var(--cielo-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.price--featured {
  box-shadow: 0 40px 70px -34px rgba(201, 146, 31, 0.5), 0 0 0 1px rgba(255, 200, 87, 0.4) inset;
}
.price__badge { background: var(--cielo-lamp); color: var(--cielo-petrol); }
.price__list svg { color: var(--cielo-teal); }

.free-strip { background: linear-gradient(120deg, #ffffff, #eef9fd) !important; }
.pay-strip .chip { background: #fff; border: 1px solid var(--line); color: var(--cielo-petrol); }
.pay-strip .chip--gold { background: var(--cielo-lamp); border-color: transparent; }

/* ---------- 11. Voces, FAQ, banda final ---------- */
.voice__mark { color: var(--cielo-sky); }
.voice__avatar { background: linear-gradient(135deg, var(--cielo-sky), var(--cielo-lav)); color: var(--cielo-petrol); }
.voice__stars svg { color: var(--cielo-lamp); }

.faq__item { padding: 0; }
.faq__btn { color: var(--cielo-petrol); }
.faq__icon { border-color: rgba(19, 97, 123, 0.3); color: var(--cielo-teal); }

.cta-band {
  position: relative;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(164, 223, 240, 0.45), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(255, 200, 87, 0.28), transparent 70%),
    linear-gradient(160deg, #153c50 0%, #152d3b 100%) !important;
  color: #f1faff;
  overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(21, 45, 59, 0.7);
}
.cta-band h2 { color: #fff; }
.cta-band h2 em { background: linear-gradient(100deg, #a4dff0, #ffe39a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-band p { color: rgba(241, 250, 255, 0.82); }
.cta-band__note span { color: #e4f7fc; }
.cta-band__note svg { color: var(--cielo-lamp); }
.cta-band__verse { color: rgba(228, 247, 252, 0.7) !important; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }
.cta-band .btn--ghost:hover { border-color: var(--cielo-sky); color: var(--cielo-sky); }

/* Pie de página */
.site-footer {
  background: linear-gradient(180deg, #152d3b 0%, #0f2330 100%) !important;
  color: #cfe6ee;
  border-top: 0 !important;
}
.site-footer a { color: #cfe6ee; }
.site-footer a:hover { color: var(--cielo-sky); }

/* ---------- 12. Secciones con ritmo ---------- */
.section--tint { background: linear-gradient(180deg, #f7fafb, #e9f6fb 50%, #f7fafb); }
#funciones, #para-quien, #voces { position: relative; }

/* Transiciones de aparición más expresivas */
.reveal { transition-duration: 1s; }

/* ---------- 13. Animaciones ---------- */
@keyframes fx-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(0.4deg); }
}
@keyframes fx-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-drift-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes fx-drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-50px, 30px, 0) scale(1.08); }
}
@keyframes fx-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

/* Título del hero: la palabra final brilla */
.hero h1 .line:last-child em {
  background: linear-gradient(100deg, #13617b 0%, #3aa6c9 35%, #b9a0e0 65%, #13617b 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fx-shimmer 7s linear infinite;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 980px) {
  .phone--shot { border-radius: 40px; }
  .hero__phone-wrap .phone--shot { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .bento-shot { width: 170px; }
  .float-card--c { display: none; }
}

/* ---------- 15. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .phone--shot { transform: none !important; }
}

/* ---------- 16. Marca sobre fondo claro ---------- */
.brand__name { color: var(--cielo-petrol) !important; }
.brand__name span { color: var(--cielo-teal) !important; }
.brand__sub { color: var(--text-dim) !important; }
.site-footer .brand__name { color: #fff !important; }
.site-footer .brand__name span { color: var(--cielo-lamp) !important; }
.site-footer .brand__sub { color: rgba(207, 230, 238, 0.7) !important; }
.cta-band .brand__name { color: #fff !important; }

/* ---------- 17. Contraste en precios y tarjetas claras ---------- */
.price .btn--ghost,
.price .btn--ghost:hover,
.price .btn--outline,
.price .btn--outline:hover { color: var(--cielo-petrol) !important; border-color: rgba(21, 45, 59, 0.22) !important; background: #fff !important; }
.price .btn--ghost:hover { color: var(--cielo-teal) !important; border-color: var(--cielo-teal) !important; }
.price__note { color: var(--text-faint) !important; }
.free-strip__price { color: var(--cielo-teal) !important; }
.price__desc, .price__list li { color: var(--text-dim); }

/* ---------- 18. Pie: solo correo de contacto (sin redes) ---------- */
.footer__mail {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: #fff !important;
  border-bottom: 1px solid rgba(164, 223, 240, 0.45);
  padding-bottom: 2px;
}
.footer__mail:hover { color: var(--cielo-sky) !important; border-color: var(--cielo-sky); }

/* ==========================================================================
   19. Rediseño v3.1 · hero en abanico, galería, modo oscuro, ritmo
   ========================================================================== */

/* Ritmo vertical de secciones: un solo valor, sin choques entre clases */
main > section.section,
main > section.section--tight,
main > section.section--flush-t {
  padding-block: clamp(72px, 9vw, 120px);
}
main > section.section--flush-t { padding-top: clamp(40px, 5vw, 64px); }
main > section.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { text-wrap: balance; }
.lead { max-width: 60ch; text-wrap: pretty; }

/* Eyebrows: frase corta en minúscula, sin mayúsculas forzadas */
.eyebrow { text-transform: none; font-size: 0.9rem; letter-spacing: 0; font-weight: 600; }

/* ---- Hero en abanico ---- */
.hero__visual { min-height: 0; }
.hero__fan {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1.02;
  margin-inline: auto;
  perspective: 1400px;
}
.fan-phone {
  position: absolute;
  margin: 0;
  width: 46%;
  bottom: 4%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.fan-phone .phone--shot { width: 100%; }
.fan-phone--l { left: 2%;  transform: rotate(-9deg) translateY(4%); z-index: 1; }
.fan-phone--r { right: 2%; transform: rotate(9deg) translateY(4%);  z-index: 1; }
.fan-phone--c { left: 27%; width: 50%; bottom: 0; z-index: 2; }

/* Entrada orquestada, una sola vez al cargar */
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
}
html.js .fan-phone--c { animation: fx-rise 0.9s var(--ease-out) 0.15s both; }
html.js .fan-phone--l { animation: fx-rise 0.9s var(--ease-out) 0.35s both; }
html.js .fan-phone--r { animation: fx-rise 0.9s var(--ease-out) 0.5s both; }
html.js .fan-phone--l { animation-name: fx-rise-l; }
html.js .fan-phone--r { animation-name: fx-rise-r; }
@keyframes fx-rise-l { from { opacity: 0; transform: rotate(-9deg) translateY(30%); } }
@keyframes fx-rise-r { from { opacity: 0; transform: rotate(9deg) translateY(30%); } }

/* Flotación independiente, desfasada */
.fan-phone--c .phone--shot { animation: fx-float 7s ease-in-out infinite; }
.fan-phone--l .phone--shot { animation: fx-float 8s ease-in-out -2s infinite; }
.fan-phone--r .phone--shot { animation: fx-float 9s ease-in-out -4s infinite; }

/* Texto del hero entra en cascada */
html.js .hero__copy > * { animation: fx-rise-text 0.8s var(--ease-out) both; }
html.js .hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
html.js .hero__copy > *:nth-child(2) { animation-delay: 0.14s; }
html.js .hero__copy > *:nth-child(3) { animation-delay: 0.24s; }
html.js .hero__copy > *:nth-child(4) { animation-delay: 0.34s; }
html.js .hero__copy > *:nth-child(5) { animation-delay: 0.44s; }
@keyframes fx-rise-text { from { opacity: 0; transform: translateY(16px); } }

/* Halo y tarjetas ajustados al abanico */
.hero__halo { width: 90%; aspect-ratio: 1; left: 5%; top: 5%; }
.hero__ring { width: 96%; aspect-ratio: 1; left: 2%; top: 2%; }
.hero__phone-shadow { width: 60%; left: 20%; bottom: -2%; }
.float-card--a { top: 2%; right: -2%; }
.float-card--b { bottom: 8%; right: -4%; }
.float-card--c { top: 40%; left: -4%; bottom: auto; }

/* ---- Galería horizontal ---- */
.gallery-section { padding-block: clamp(72px, 9vw, 120px); overflow: hidden; }
.gallery-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.gallery-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.gallery-head__side { display: grid; gap: 20px; justify-items: start; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-strong);
  color: var(--cielo-petrol); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out), border-color 0.2s ease;
}
.gallery-nav__btn svg { width: 20px; height: 20px; }
.gallery-nav__btn:hover { background: var(--cielo-petrol); color: #fff; border-color: var(--cielo-petrol); }
.gallery-nav__btn:active { transform: scale(0.94); }
.gallery-nav__btn:focus-visible { outline: 3px solid var(--cielo-sky); outline-offset: 3px; }

.gallery {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 24px max(var(--gutter), calc((100vw - var(--container-wide)) / 2)) 48px;
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:active { cursor: grabbing; }
.gallery:focus-visible { outline: 3px solid var(--cielo-sky); outline-offset: 6px; border-radius: 24px; }
.gallery__track { display: flex; gap: clamp(20px, 2.4vw, 32px); width: max-content; }
.gallery__item {
  margin: 0;
  width: clamp(230px, 22vw, 290px);
  scroll-snap-align: start;
  transition: transform 0.5s var(--ease-out);
}
.gallery__frame {
  position: relative;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #2c4a5b, #0f2330 42%, #1b3442);
  box-shadow: 0 40px 70px -34px rgba(21, 45, 59, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.gallery__frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 780 / 1688;
  object-fit: cover; object-position: top; border-radius: 31px;
  background: #f7fafb;
}
.gallery__item figcaption {
  margin-top: 18px; padding-inline: 6px;
  font-weight: 600; font-size: 0.95rem; color: var(--cielo-petrol);
}
.gallery__item:hover .gallery__frame { transform: translateY(-8px); box-shadow: 0 56px 80px -36px rgba(19, 97, 123, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.gallery__item:nth-child(even) .gallery__frame { margin-top: 28px; }
.gallery__bar { margin: 8px auto 0; width: min(420px, 80%); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.gallery__bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0.15); background: linear-gradient(90deg, var(--cielo-sky), var(--cielo-teal)); transition: transform 0.2s linear; }

/* ---- Franja de modo oscuro ---- */
.dark-band {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(700px 420px at 90% 10%, rgba(164, 223, 240, 0.22), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(200, 175, 233, 0.18), transparent 70%),
    linear-gradient(180deg, #152d3b, #0f2330);
  color: #eaf6fb;
  overflow: hidden;
}
.dark-band h2 { color: #fff; }
.dark-band h2 em { background: linear-gradient(100deg, #a4dff0, #ffe39a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.dark-band .lead { color: rgba(234, 246, 251, 0.78); }
.dark-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.dark-band__list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.dark-band__list li { position: relative; padding-left: 28px; color: rgba(234, 246, 251, 0.86); }
.dark-band__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--cielo-lamp); box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.18); }
.dark-band__stage { position: relative; height: clamp(440px, 52vw, 600px); }
.dark-phone { position: absolute; margin: 0; width: 56%; }
.dark-phone .phone--shot { width: 100%; }
.dark-phone--back { right: 0; top: 0; transform: rotate(6deg); opacity: 0.9; }
.dark-phone--front { left: 4%; bottom: 0; z-index: 2; animation: fx-float 8s ease-in-out infinite; }
.dark-band .phone--shot { background: linear-gradient(160deg, #3b5f72, #0a1a24 40%, #1b3442); }

/* ---- Magnetismo suave en el CTA principal (lo mueve site-fx.js) ---- */
[data-magnetic] { transition: transform 0.4s var(--ease-out); }

/* ---- Responsive del rediseño ---- */
@media (max-width: 980px) {
  .gallery-head { grid-template-columns: 1fr; }
  .dark-band__inner { grid-template-columns: 1fr; }
  .dark-band__stage { height: 520px; max-width: 420px; margin-inline: auto; width: 100%; }
  .hero__fan { width: min(440px, 100%); }
}
@media (max-width: 760px) {
  .fan-phone--l, .fan-phone--r { width: 42%; }
  .fan-phone--c { width: 48%; left: 26%; }
  .float-card--a, .float-card--b { display: none; }
  .gallery__item { width: 230px; }
  .gallery-nav { display: none; }
  .gallery__item:nth-child(even) .gallery__frame { margin-top: 0; }
}

/* ---- Movimiento reducido para lo nuevo ---- */
@media (prefers-reduced-motion: reduce) {
  html.js .fan-phone, html.js .hero__copy > *, .fan-phone .phone--shot, .dark-phone--front { animation: none !important; }
  .gallery { scroll-behavior: auto; }
}

/* Ajuste de la galería: el primer elemento respeta el margen del contenedor */
.gallery { scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container-wide)) / 2)); }
.gallery-section { padding-top: clamp(56px, 7vw, 96px); }

/* Móvil: el abanico cabe en la pantalla y no invade el texto */
@media (max-width: 980px) {
  .hero__inner > * { min-width: 0; }
  .hero__visual { min-height: 0 !important; margin-top: 28px !important; width: 100%; }
  .hero__fan { width: 100%; max-width: 380px; aspect-ratio: 1 / 1.15; }
  .hero__halo, .hero__ring, .hero__phone-shadow { display: none; }
}
@media (max-width: 480px) {
  .hero__fan { max-width: 340px; }
  .fan-phone--l, .fan-phone--r { width: 40%; bottom: 2%; }
  .fan-phone--c { width: 46%; left: 27%; }
}

/* Los teléfonos llenan su contenedor (anula el ancho fijo de .phone) */
.fan-phone .phone--shot,
.dark-phone .phone--shot,
.hero__phone-wrap .phone--shot { width: 100% !important; max-width: none !important; }
.phone--shot { height: auto !important; aspect-ratio: auto; }
.phone--shot .phone__screen { height: auto !important; }

/* ---------- 20. Chips y subtítulos con contraste suficiente ---------- */
.chip { background: #fff; color: var(--cielo-petrol); border: 1px solid var(--line); }
.chip--gold { background: #fff4d6; color: #6e4f0d; border-color: rgba(255, 200, 87, 0.7); }
.chip svg { color: var(--cielo-teal); }
.price__amount .period { color: var(--text-faint) !important; }


/* Logo oficial de la app (marca azul) sin tile */
.brand__mark,
.brand img {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* Fallback de seguridad para el logo de Google en login/registro */
.auth__google svg {
  width: 18px !important;
  height: 18px !important;
  flex: none;
}


/* Auth: contraste del panel oscuro y campos legibles */
.auth__aside h2,
.auth__aside p,
.auth__verse blockquote {
  color: #e8f4f9 !important;
}

.auth__badge,
.auth__verse span,
.auth__verse strong {
  color: #ffd98a !important;
}

.auth .field input {
  background: #ffffff !important;
  color: var(--cielo-petrol) !important;
  border-color: #dbe7ec !important;
}

.auth .field input::placeholder {
  color: #7a8f99;
}
