/* Sora auto-alojada (woff2 variable, pesos 100-800). Sin CDN de Google: autocontenida y sin enviar IPs a terceros (RGPD). */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/sora/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/sora/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { font-family: "Sora", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100%; }

:root { --blue: #2140a8; --blue-d: #2140a8; --green: #33a751; --yellow: #fcbc04; --red: #ed4338; --radius: 26px; }
:root {
  --page-bg:
    radial-gradient(40% 50% at 4% 4%, rgba(47,85,212,.10), transparent 60%),
    radial-gradient(42% 52% at 98% 98%, rgba(51,167,81,.10), transparent 60%),
    #eef0f2;
  --ink: #1c2330; --muted: #5b6472; --cap: #6b7280;
  --surface: #ffffff; --border: rgba(28,40,62,.10); --chip-bg: rgba(255,255,255,.7);
  --shadow: 0 14px 34px rgba(28,40,62,.10); --shadow-hi: 0 22px 52px rgba(28,40,62,.16);
  --map-bg:
    radial-gradient(42% 54% at 10% 82%, rgba(51,167,81,.40), rgba(51,167,81,.14) 45%, transparent 70%),
    radial-gradient(38% 48% at 90% 16%, rgba(47,85,212,.38), rgba(47,85,212,.13) 45%, transparent 70%),
    radial-gradient(26% 32% at 82% 86%, rgba(252,188,4,.28), transparent 64%),
    radial-gradient(24% 30% at 16% 14%, rgba(237,67,56,.22), transparent 64%),
    #e9ebec;
  --grid-line: rgba(40,60,90,.06);
  --grid-mask: radial-gradient(120% 95% at 50% 45%, #000 35%, transparent 92%);
  --route-line: rgba(28,40,62,.16); --route-prog-width: 5px;
  --route-prog-filter: drop-shadow(0 2px 4px rgba(28,40,62,.22));
  --lead-filter: drop-shadow(0 5px 6px rgba(28,40,62,.35));
  --scrim: rgba(233,235,236,.62);
  --panel-bg: rgba(255,255,255,.82); --panel-border: 1px solid rgba(28,40,62,.10);
  --tag: #495160;
  --tg-bg: rgba(255,255,255,.7); --tg-border: rgba(28,40,62,.14); --tg-knob: #fff; --tg-icon: #6b7280; --tg-icon-active: #2140a8;
}
:root[data-theme="dark"] {
  /* Navy "subido de luz" #131c2e: el #0a0f1c anterior se veía demasiado oscuro.
     Tono definitivo, compartido con el modo oscuro del panel del organizador. */
  --blue: #4a6ef5; --blue-d: #4a6ef5;
  --page-bg:
    radial-gradient(40% 50% at 4% 4%, rgba(47,85,212,.22), transparent 60%),
    radial-gradient(42% 52% at 98% 98%, rgba(51,167,81,.16), transparent 60%),
    #131c2e;
  --ink: #eef2f9; --muted: #aab8d0; --cap: #93a6c4;
  --surface: #1a2740; --border: rgba(255,255,255,.12); --chip-bg: rgba(28,42,70,.62);
  --shadow: 0 14px 34px rgba(0,0,0,.4); --shadow-hi: 0 22px 52px rgba(0,0,0,.5);
  --map-bg: radial-gradient(120% 120% at 50% 0%, #24345a 0%, #131c2e 55%, #0c1322 100%);
  --grid-line: rgba(150,180,220,.08);
  --grid-mask: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 82%);
  --route-line: rgba(255,255,255,.12); --route-prog-width: 4px;
  --route-prog-filter: drop-shadow(0 0 7px rgba(51,167,81,.5));
  --lead-filter: drop-shadow(0 4px 6px rgba(0,0,0,.55));
  --scrim: rgba(15,23,40,.5);
  --panel-bg: rgba(20,30,52,.55); --panel-border: 1px solid rgba(255,255,255,.14);
  --tag: #c8d3e4;
  --tg-bg: rgba(28,40,64,.7); --tg-border: rgba(255,255,255,.18); --tg-knob: #1a2740; --tg-icon: #93a6c4; --tg-icon-active: #6ea2f7;
}

body { background: var(--page-bg); color: var(--ink); transition: background .3s, color .3s; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 22px; }

/* El dibujo de la línea y el avance del pin los conduce JS (site.js) con la Web
   Animations API: calcula el punto de parada sobre el tramo VISIBLE de la ruta
   (80% en web, 95% en móvil), fiable en todo navegador. Estado inicial (línea
   oculta, pin al principio) lo fijan .prog/.lead más abajo. */
/* Safari no re-muestrea el backdrop-filter mientras corre la animación acelerada
   de detrás; animarlo imperceptiblemente lo fuerza. JS pone bd-live mientras el
   pin viaja y lo quita al parar. */
@keyframes bd-live {
  0%,100% { -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
  50%     { -webkit-backdrop-filter: blur(10px) saturate(120.6%); backdrop-filter: blur(10px) saturate(120.6%); }
}
.panel.bd-live { animation: bd-live .25s linear infinite; }
@keyframes pulseG { 0%{box-shadow:0 0 0 0 rgba(51,167,81,.55)} 70%{box-shadow:0 0 0 9px rgba(51,167,81,0)} 100%{box-shadow:0 0 0 0 rgba(51,167,81,0)} }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* iconos del sprite via <use>: fill/stroke heredables */
.sec-ic svg, .ic svg, .btn svg, .step-ic svg { fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* botones */
.btn { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 20px; border-radius: var(--radius); cursor: pointer; border: 0; text-decoration: none; transition: .15s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(47,85,212,.32); }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { background: var(--chip-bg); backdrop-filter: blur(8px); color: var(--ink); border: 1.5px solid var(--border); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-d); }
.btn.sm { padding: 9px 15px; font-size: 13.5px; }

/* ===================== NAV ===================== */
.nav { position: sticky; top: 0; z-index: 900; background: transparent; transition: padding .35s ease; }
.nav.scrolled { padding-top: 10px; }
.nav-in { max-width: 1320px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid transparent; border-radius: 999px;
  transition: max-width .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease, padding .35s ease; }
.nav.scrolled .nav-in { max-width: 1080px; padding: 9px 12px 9px 20px;
  background: var(--chip-bg); backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border); box-shadow: var(--shadow); }
.brand { font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: 17px; }
.brand .d { color: var(--ink); }
.links { display: flex; gap: 22px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .theme-toggle { position: relative; }
@media (max-width: 760px) { .links { display: none; } }

/* ===================== HERO (4 variantes · panel de cristal) ===================== */
.hero { position: relative; display: flex; min-height: 56vh; overflow: hidden; background: var(--map-bg); color: var(--ink); transition: background .3s, color .3s; }
.hero .grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: var(--grid-mask); }
.hero .route { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .route .line { fill: none; stroke: var(--route-line); stroke-width: 2.5; stroke-dasharray: 7 10; }
.hero .route .prog { fill: none; stroke: url(#g4); stroke-width: var(--route-prog-width); filter: var(--route-prog-filter);
  stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.hero .route .lead { offset-path: path('M -50 620 C 250 420, 420 660, 720 460 S 1180 360, 1500 480');
  offset-rotate: 0deg; offset-distance: 0%; filter: var(--lead-filter); }

.hstage { display: none; position: relative; z-index: 1; }
.hero .s1 { display: flex; flex: 1; }
.hwrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 22px; }
.panel { position: relative; background: var(--panel-bg); backdrop-filter: blur(10px) saturate(120%);
  border: var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow-hi); }
.dots { display: flex; gap: 8px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; }
.dots span:nth-child(1){ background: var(--blue); } .dots span:nth-child(2){ background: var(--green); }
.dots span:nth-child(3){ background: var(--yellow); } .dots span:nth-child(4){ background: var(--red); }
.h-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.h-sub { color: var(--tag); line-height: 1.5; }
.hactions { display: flex; gap: 12px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--green); }
.live .ldot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(51,167,81,.6); animation: pulseG 1.8s infinite; }

.s1 { align-items: center; justify-content: center; padding: 48px 22px; }
.s1 .panel { max-width: 1040px; width: 100%; padding: clamp(30px,4vw,46px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.s1 .h-title { font-size: clamp(30px, 4.4vw, 52px); max-width: 22ch; }
.s1 .h-sub { font-size: clamp(16px, 2vw, 21px); max-width: 660px; }
.s1 .hactions { justify-content: center; }

/* Hero · variante diálogo (pregunta -> respuesta), alineada a la izquierda */
.s1 .panel.panel-dialog { align-items: flex-start; text-align: left; gap: 16px; }
.panel-dialog .h-ask { position: relative; align-self: flex-start; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 14px 20px; color: var(--muted);
  font-size: clamp(18px, 2.6vw, 24px); box-shadow: var(--shadow); }
.panel-dialog .h-ask::after { content: ""; position: absolute; left: 28px; bottom: -8px;
  width: 16px; height: 16px; background: var(--surface);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  border-bottom-right-radius: 3px; transform: rotate(45deg); }
.panel-dialog .h-ask strong { color: var(--ink); font-weight: 800; }
.panel-dialog .h-bridge { color: var(--muted); font-size: clamp(15px, 2vw, 18px); margin-bottom: clamp(20px, 3vw, 30px); }
.panel-dialog .h-kicker { color: var(--green); font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; font-size: 13px; }
.panel-dialog .h-answer { align-self: stretch; }
.panel-dialog .dots { justify-content: center; margin-bottom: clamp(20px, 3vw, 30px); }
.panel-dialog .h-title { max-width: none; text-align: center; }
.panel-dialog .h-sub { margin-top: 14px; max-width: 52ch; text-align: center; margin-inline: auto; }
.panel-dialog .hactions { margin-top: 24px; align-items: center; }

/* Móvil: el hero no debe desbordar. El culpable era el input de código (260px
   fijo) + label nowrap, que impedían encoger el panel. Apilamos la barra de
   código y dejamos que el input fluya. */
@media (max-width: 760px) {
  .s1 { padding: 32px 16px; }
  /* romper la cadena flex min-width:auto: si no, ningún item encoge por debajo
     de su contenido y el panel se sale del viewport (lo recorta overflow:hidden
     del hero). */
  .hero .s1 { min-width: 0; }
  .s1 .panel { min-width: 0; max-width: 100%; }
  .s1 .h-title { max-width: none; }
}


/* ===================== CÓMO FUNCIONA ===================== */
.section { padding: 72px 0 8px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head .eyebrow-t { color: var(--blue-d); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 8px; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.step .step-top { display: flex; align-items: center; justify-content: space-between; }
.step-ic { color: var(--blue); } .step:nth-child(2) .step-ic { color: var(--green); } .step:nth-child(3) .step-ic { color: var(--yellow); }
.step:nth-child(4) .step-ic { color: var(--red); } .step:nth-child(5) .step-ic { color: var(--blue); } .step:nth-child(6) .step-ic { color: var(--green); }
.step-ic svg { width: 30px; height: 30px; }
.step .n { font-weight: 800; font-size: 14px; color: var(--muted); }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ===================== PLANES ===================== */
.planes { padding: 72px 0 30px; }

.frame { position: relative; border-radius: var(--radius); padding: 6px 0 20px; margin: 12px 0 0; transition: background .3s, padding .3s; }
.sec { padding: 30px 0 6px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sec-ic { flex: none; display: grid; place-items: center; color: var(--blue-d); }
.sec-ic svg { width: 28px; height: 28px; }
.sec.balizas .sec-ic { color: var(--green); }
.sec-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .row { grid-template-columns: 1fr; } }

.pc { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  min-height: 100%; transition: transform .2s, box-shadow .2s, background .3s, border-color .3s; }
.pc > * { position: relative; z-index: 1; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.pc.reco { border: 1.5px solid var(--blue); box-shadow: 0 16px 40px rgba(47,85,212,.32), 0 22px 60px rgba(51,167,81,.16), var(--shadow); }
.pc::before { content: ""; position: absolute; top: -45%; left: 50%; transform: translateX(-50%);
  width: 150%; height: 85%; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(47,85,212,.20), transparent 70%); }
.pc.reco::before { background: radial-gradient(closest-side, rgba(47,85,212,.26), transparent 70%); }
.badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--yellow); color: #1c2330;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.eyebrow { align-self: flex-start; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px;
  color: var(--blue-d); background: rgba(47,85,212,.12); padding: 5px 11px; border-radius: 999px; }
:root[data-theme="dark"] .eyebrow { color: #9cc0fb; background: rgba(47,85,212,.18); }
.priceblock { display: flex; flex-direction: column; gap: 2px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amount { font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1;
  background: linear-gradient(95deg, var(--blue-d), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .per { color: var(--muted); font-size: 14px; font-weight: 600; }
.subnote { font-size: 12px; color: var(--muted); font-weight: 600; }
.reco .price .amount { background: linear-gradient(95deg, var(--blue), var(--green), var(--red), var(--blue));
  background-size: 200% 100%; background-repeat: repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .reco .price .amount { animation: none; } }
.feats { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.feats li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.ic { flex: none; display: grid; place-items: center; transition: transform .15s; }
.ic svg { width: 19px; height: 19px; }
.pc:hover .ic { transform: scale(1.08); }
.feats li:nth-child(3n+1) .ic { color: var(--blue); }
.feats li:nth-child(3n+2) .ic { color: var(--green); }
.feats li:nth-child(3n+3) .ic { color: var(--red); }
.cta { margin-top: auto; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px;
  padding: 12px 16px; border-radius: var(--radius); background: var(--blue); color: #fff; transition: .15s;
  display: block; text-align: center; text-decoration: none; }
.cta:hover { background: var(--blue-d); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); background: var(--chip-bg); border-radius: var(--radius); padding: 7px 8px 7px 14px; }
.stepper-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stepper-ctrl { display: flex; align-items: center; gap: 4px; }
.step-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .12s; }
.step-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-d); }
.step-btn:disabled { opacity: .4; cursor: not-allowed; }
.step-val { min-width: 34px; text-align: center; font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.planes-fine { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); }

.frame.v-band { background: linear-gradient(165deg, #15264c 0%, #0c1733 55%, #070d1f 100%); padding: 10px 26px 34px; box-shadow: 0 30px 80px rgba(8,16,34,.45); }
.frame.v-band .sec-head h3 { color: #fff; }
.frame.v-band .sec-head p { color: rgba(255,255,255,.72); }
.frame.v-band .sec-ic { color: #aecdff; }
.frame.v-band .sec.balizas .sec-ic { color: #8ef0b4; }
:root[data-theme="dark"] .frame.v-band .pc { background: #16223e; border-color: rgba(255,255,255,.14); }

/* ===================== LEGAL (privacidad) ===================== */
.legal { max-width: 880px; margin: 0 auto; }
.legal .updated { font-size: 13px; color: var(--cap); margin-bottom: 8px; }
.legal h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 30px 0 10px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.legal p { margin-bottom: 12px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal ul { margin: 0 0 12px 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--blue-d); }
.legal .todo { background: rgba(252,188,4,.22); color: var(--ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ===================== CONTACTO ===================== */
.contacto { padding: 56px 0 20px; }
.contact-form { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-form .ct-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .contact-form .ct-row2 { grid-template-columns: 1fr; } }
.ct-field { display: flex; flex-direction: column; }
.ct-field label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.ct-opt { font-weight: 500; color: var(--cap); }
.ct-field input, .ct-field textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.4; color: var(--ink);
  background-color: rgba(127,127,127,.05); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; outline: none; transition: .15s; }
.ct-field textarea { resize: vertical; min-height: 90px; }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,85,212,.16); }
.ct-err { color: var(--red); font-size: 12.5px; margin-top: 6px; }
.contact-submit { align-self: flex-start; margin-top: 4px; }
.contact-ok { background: rgba(51,167,81,.12); border: 1px solid rgba(51,167,81,.4); color: var(--ink);
  border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
/* honeypot: fuera de la vista para humanos, presente en el DOM para los bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===================== TRUST ===================== */
.trust-strip { text-align: center; padding: 48px 0 8px; color: var(--muted); }
.trust-strip .nums { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.trust-strip .num b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.trust-strip .num span { font-size: 13px; }

/* ===================== FOOTER ===================== */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 36px 22px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* switch claro/oscuro */
/* switch día/noche */
.theme-toggle { position: relative; width: 72px; height: 34px; border-radius: 999px; cursor: pointer; padding: 0; flex: none;
  overflow: hidden; border: 1px solid rgba(0,0,0,.12); transition: background .4s, border-color .4s; }
:root[data-theme="light"] .theme-toggle { background: linear-gradient(180deg, #5fb4ee 0%, #a7daf8 100%); }
:root[data-theme="dark"] .theme-toggle { background: linear-gradient(180deg, #12204c 0%, #2c3a72 100%); border-color: rgba(255,255,255,.12); }
.theme-toggle .astro { position: absolute; top: 2px; left: 3px; width: 28px; height: 28px; border-radius: 50%; z-index: 3;
  transition: transform .45s cubic-bezier(.34,1.4,.5,1), background .4s, box-shadow .4s; }
:root[data-theme="light"] .theme-toggle .astro { background: radial-gradient(circle at 35% 32%, #ffe27a, #f9c828);
  box-shadow: 0 0 10px rgba(250,205,60,.9), 0 2px 4px rgba(0,0,0,.18); }
:root[data-theme="dark"] .theme-toggle .astro { transform: translateX(38px); background: radial-gradient(circle at 36% 32%, #ffffff, #d4d8e4);
  box-shadow: 0 2px 5px rgba(0,0,0,.45); }
.theme-toggle .astro::before, .theme-toggle .astro::after { content: ""; position: absolute; border-radius: 50%; background: rgba(120,130,160,.35); opacity: 0; transition: opacity .4s; }
:root[data-theme="dark"] .theme-toggle .astro::before { opacity: 1; width: 8px; height: 8px; top: 7px; left: 7px; }
:root[data-theme="dark"] .theme-toggle .astro::after { opacity: 1; width: 5px; height: 5px; bottom: 7px; right: 8px; }
.theme-toggle .clouds { position: absolute; right: 7px; bottom: 6px; z-index: 2; transition: opacity .4s, transform .4s; }
.theme-toggle .clouds::before, .theme-toggle .clouds::after { content: ""; position: absolute; background: rgba(255,255,255,.92); }
.theme-toggle .clouds::before { width: 22px; height: 8px; right: 0; bottom: 0; border-radius: 999px; box-shadow: -7px -4px 0 -2px rgba(255,255,255,.85); }
.theme-toggle .clouds::after { width: 12px; height: 12px; right: 3px; bottom: 3px; border-radius: 50%; }
:root[data-theme="dark"] .theme-toggle .clouds { opacity: 0; transform: translateX(6px); }
.theme-toggle .stars { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .4s; }
:root[data-theme="dark"] .theme-toggle .stars { opacity: 1; }
.theme-toggle .stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #fff; }

/* ---- reglas que sustituyen los style= inline del HTML original (sin tocar el aspecto) ---- */
.svg-sprite { position: absolute; }
.trust-strip .eyebrow-t { color: var(--blue-d); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.theme-toggle .stars i:nth-child(1) { left: 11px; top: 9px; }
.theme-toggle .stars i:nth-child(2) { left: 23px; top: 19px; }
.theme-toggle .stars i:nth-child(3) { left: 17px; top: 25px; }
.theme-toggle .stars i:nth-child(4) { left: 33px; top: 12px; }
.theme-toggle .stars i:nth-child(5) { left: 8px; top: 20px; }

/* ---- componentes propios (no del mockup) ---- */
.como-more { text-align: center; margin-top: 30px; }

/* showcase de dispositivos (Mac + iPhone solapado, estilo anuncio) */
.result-showcase { margin-top: 48px; }
.result-lead { text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.devices { position: relative; max-width: 920px; margin: 0 auto; padding-bottom: 3%; }
.dev-mac { display: block; width: 100%; height: auto; }
.dev-phone { position: absolute; right: 1%; bottom: 0; width: 17%; height: auto; z-index: 2;
  filter: drop-shadow(0 24px 44px rgba(8,16,34,.45)); }
@media (max-width: 560px) { .dev-phone { width: 23%; right: -1%; } }

/* catálogo de temas: 4 móviles en fila */
.themes-showcase { margin-top: 44px; }
.theme-phones { display: flex; gap: 18px; justify-content: center; align-items: flex-end; flex-wrap: wrap; max-width: 860px; margin: 22px auto 0; }
.theme-phones strong { color: var(--ink); font-weight: 800; }
.theme-phones img { width: 20%; min-width: 132px; height: auto; filter: drop-shadow(0 16px 30px rgba(8,16,34,.3)); }
@media (max-width: 560px) { .theme-phones img { width: 42%; } }
.result-lead strong { color: var(--ink); font-weight: 800; }
.como-more-lead { max-width: 54ch; margin: 0 auto 20px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.como-more .btn { margin: 6px; }
.section-head h1 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 8px; }

/* página Cómo funciona: timeline (pasos 1-3) + bloque final "El día del evento" en tres fases */
.cf-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-d); font-weight: 700; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.cf-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hi); background: var(--surface); }
.cf-shot img { display: block; width: 100%; height: auto; }
/* Captura según el tema del visitante: en claro se ve la clara, en oscuro la oscura. */
.cf-shot img.shot-dark { display: none; }
:root[data-theme="dark"] .cf-shot img.shot-light { display: none; }
:root[data-theme="dark"] .cf-shot img.shot-dark { display: block; }

/* --- columna vertebral única (pasos + bloque final comparten la misma línea) --- */
.cf-guide { position: relative; max-width: none; margin: 8px auto 0; padding-left: 84px; }
.cf-guide::before { content: ""; position: absolute; left: 28px; top: 10px; bottom: 10px; width: 3px;
  background: linear-gradient(var(--blue), var(--green), var(--red)); border-radius: 2px; }
.cfv-timeline { position: relative; }
.cf-tl-item { position: relative; margin-bottom: 40px; }
.cf-tl-node { position: absolute; left: -84px; top: 0; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff; background: var(--blue); box-shadow: var(--shadow); }
.cf-tl-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-tl-item:nth-child(2) .cf-tl-node { background: var(--green); }
.cf-tl-item:nth-child(3) .cf-tl-node { background: var(--red); }
.cf-tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cf-tl-body { max-width: none; }
.cf-tl-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 8px; }
.cf-tl-card p { color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.cf-sub { margin: 26px 0 0 56px; max-width: 860px; padding-top: 22px; border-top: 1px dashed var(--border); }
.cf-sub-label { display: inline-block; font-weight: 800; font-size: 13px; color: var(--blue-d); letter-spacing: .03em; margin-bottom: 4px; }
.cf-sub h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.cf-sub p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.cf-sub .cf-shot { box-shadow: var(--shadow); }

/* --- bloque final: El día del evento (cabecera en gradiente + timeline vertical con imagen) --- */
.cf-final { max-width: none; margin-top: 56px; }
.cf-grad-head { position: relative; background: linear-gradient(110deg, var(--blue), var(--green)); color: #fff; border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow-hi); margin-bottom: 32px; }
.cf-grad-head .cf-eyebrow { color: rgba(255,255,255,.9); margin-bottom: 8px; }
.cf-day-node { position: absolute; left: -84px; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--blue); box-shadow: var(--shadow); }
.cf-day-node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-grad-lead { font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; max-width: 70ch; }
/* sub-timeline indentado de las fases: a partir de "El día del evento" conviven la línea
   principal (cf-guide) y esta sub-línea propia de las fases. */
.cf-vtl { position: relative; padding-left: 56px; }
.cf-vtl::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(var(--blue), var(--green), var(--red)); border-radius: 2px; }
.cf-vitem { position: relative; }
.cf-vitem + .cf-vitem { margin-top: 36px; }
.cf-vnode { position: absolute; left: -56px; top: -2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow); border: 3px solid var(--surface); }
.cf-vnode svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-vnode.b { background: var(--blue); } .cf-vnode.g { background: var(--green); } .cf-vnode.r { background: var(--red); }
.cf-step { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.cf-step.b { color: var(--blue); } .cf-step.g { color: var(--green); } .cf-step.r { color: var(--red); }
.cf-vitem h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.cf-vitem > p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cf-vitem .cf-shot { width: 100%; aspect-ratio: 16 / 8; margin-top: 16px; box-shadow: var(--shadow-hi); border-radius: 18px; }

/* imagen real de fase: captura completa (contain) + fondo difuminado de la misma imagen que rellena el hueco.
   Marco y recorte separados porque el filtro blur se escapa del overflow:hidden redondeado; clip-path sí lo recorta. */
.cf-shot.filled { display: block; position: relative; padding: 0; border: 0; background: none; overflow: visible; }
.cf-shot.filled .cf-shotclip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; clip-path: inset(0 round 18px); background: #0e1626; }
.cf-shot.filled .cf-shotclip::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg); background-size: cover; background-position: center; filter: blur(30px) saturate(1.2) brightness(.82); }
.cf-shot.filled .cf-shotclip img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 860px) {
  .cf-guide { padding-left: 64px; }
  .cf-tl-node { left: -64px; }
  .cf-day-node { left: -64px; }
  .cf-vtl { padding-left: 44px; }
  .cf-vnode { left: -44px; }
  .cf-sub { margin-left: 0; }
}
@media (max-width: 760px) {
  .cf-vitem .cf-shot { aspect-ratio: 16 / 10; }
}
