/* ==========================================================================
   Soluciones dclic · Sistema de diseño
   Identidad dclic.co: oscuro profundo, degradado violeta → índigo, Poppins + Inter.
   Acento dorado tomado del escudo de Soluciones dclic.
   ========================================================================== */

:root {
    --dark: #0A0B14;
    --dark-2: #12132A;
    --dark-3: #1C1D3B;
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --primary-soft: #F5F3FF;
    --primary-soft-2: #EDE9FE;
    --indigo: #4F46E5;
    --gold: #F0B428;
    --gold-dark: #C87800;
    --navy: #002864;
    --slate-light: #F8F9FD;
    --slate-border: #EEF0F7;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --text: #0A0B14;
    --muted: #64748B;
    --success: #22C55E;
    --success-soft: #DCFCE7;
    --success-text: #15803D;
    --danger-soft: #FEE2E2;
    --danger-text: #B91C1C;
    --warn-soft: #FEF3C7;
    --warn-text: #92400E;
    --wa: #25D366;

    --gradient: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    --gradient-hover: linear-gradient(135deg, #6D28D9 0%, #4338CA 100%);
    --gradient-text: linear-gradient(90deg, #A78BFA 0%, #8B5CF6 45%, #818CF8 100%);
    --gradient-gold: linear-gradient(135deg, #F0B428 0%, #C87800 100%);

    --shadow-sm: 0 1px 2px rgba(10, 11, 20, .06);
    --shadow: 0 4px 6px -2px rgba(10, 11, 20, .04), 0 16px 40px -16px rgba(10, 11, 20, .14);
    --shadow-lg: 0 35px 60px -15px rgba(10, 11, 20, .45);
    --shadow-purple: 0 10px 40px -10px rgba(124, 58, 237, .38);
    --shadow-purple-lg: 0 20px 60px -15px rgba(124, 58, 237, .55);

    --f-display: 'Poppins', 'Inter', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 24px;
    --container: 1200px;
    --grid-lines: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 1.03rem;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
    margin: 0 0 .55em;
    text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-soft-2); color: var(--primary-dark); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
/* Las columnas de grid nunca se ensanchan por su contenido (evita desbordes ocultos en móvil) */
.hero-grid > *, .rule-grid > *, .contact-grid > *, .split > *, .article-layout > *, .cta-final-inner > *, .footer-grid > *, .cards > *, .steps > *, .posts > *, .trust-grid > *, .quotes > *, .route-list > * { min-width: 0; }
.narrow { width: min(100% - 2.5rem, 800px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 1rem; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); white-space: nowrap; } /* trampa anti-bots: fuera de pantalla, sin display:none */
.text-grad { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-fill { fill: currentColor; stroke: none; }

.section { padding-block: clamp(4.5rem, 9vw, 7rem); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.paper-2 { background: var(--slate-light); }
.on-ink { background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.on-ink::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grid-lines); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
.on-ink::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 26rem at 85% 0%, rgba(124, 58, 237, .28), transparent 60%), radial-gradient(34rem 24rem at 0% 100%, rgba(79, 70, 229, .22), transparent 60%); pointer-events: none; }
.on-ink .lead { color: var(--slate-400); }
.on-ink h2, .on-ink h3 { color: #fff; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3.25rem; padding: .9rem 1.8rem;
    border: 1px solid transparent; border-radius: 999px;
    background: var(--dark); color: #fff;
    font: 600 1rem/1.2 var(--f-body); text-decoration: none; text-align: center;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn .ic { transition: transform .22s ease; }
@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .btn:hover .ic-arrow { transform: translateX(4px); }
}
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-primary, .btn-amber { background: var(--gradient); color: #fff; box-shadow: var(--shadow-purple); }
@media (hover: hover) { .btn-primary:hover, .btn-amber:hover { background: var(--gradient-hover); box-shadow: var(--shadow-purple-lg); } }
.btn-ink { background: var(--dark); color: #fff; }
@media (hover: hover) { .btn-ink:hover { background: var(--dark-3); } }
.btn-line { background: rgba(127, 127, 127, .06); color: inherit; border-color: rgba(127, 127, 127, .3); }
@media (hover: hover) { .btn-line:hover { background: rgba(127, 127, 127, .12); border-color: rgba(127, 127, 127, .5); } }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-wa { background: var(--wa); color: #06271A; }
@media (hover: hover) { .btn-wa:hover { background: #1FC05C; } }
.btn-sm { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; min-height: 2.75rem; font-weight: 600; text-decoration: none; color: var(--primary); }
.link-arrow .ic { transition: transform .2s; }
@media (hover: hover) { .link-arrow:hover { color: var(--primary-dark); } .link-arrow:hover .ic { transform: translateX(4px); } }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 11, 20, .8);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
}
.site-header .brand { color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-decoration: none; min-width: 0; color: var(--text); }
.brand-logo { width: 2.5rem; height: 2.5rem; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(0, 40, 100, .25)); }
.brand-text { font: 700 1.2rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.brand-text b { font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: none; align-items: center; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--slate-300); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -.6rem; width: .35rem; height: .35rem; border-radius: 50%; background: var(--primary-light); transform: translateX(-50%); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn-sm { min-height: 2.75rem; }
.nav-toggle {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
    background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, background .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
    position: fixed; inset: 4.5rem 0 0; z-index: 49;
    background: var(--dark); color: #fff;
    padding: 1.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: .25rem; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 1rem .25rem; font: 600 1.35rem var(--f-display); letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu .btn { margin-top: 1rem; }
@media (min-width: 960px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
}
@media (max-width: 420px) { .nav-actions .btn-sm .txt-long { display: none; } }
@media (max-width: 390px) {
    .nav { gap: .5rem; }
    .brand { gap: .45rem; }
    .brand-logo { width: 2.1rem; height: 2.1rem; }
    .brand-text { font-size: 1.02rem; }
    .nav-actions { gap: .4rem; }
    .nav-actions .btn-sm { min-height: 2.75rem; padding: .4rem .9rem; font-size: .86rem; }
    .nav-toggle { width: 2.75rem; height: 2.75rem; }
}
@media (max-width: 340px) { .nav-actions .btn-sm { display: none; } }

/* ---------- Animaciones ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise .85s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes llenar { to { width: var(--w, 50%); } }

/* ---------- Hero ---------- */
/* Fondo propio "Rutas de luz" (SVG): el arte trae su velo oscuro a la izquierda para el texto */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark) url("../img/fondos/hero-a.svg") center / cover no-repeat; color: #fff; }
.hero::before { content: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 9rem; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(10, 11, 20, .6)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; align-items: center; padding-block: clamp(3.25rem, 8vw, 6rem) clamp(8rem, 13vw, 10.5rem); }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--slate-400); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero .btn-line, .on-ink .btn-line, .cta-final .btn-line, .aside-cta .btn-line { background: rgba(255, 255, 255, .05); color: #fff; border-color: rgba(255, 255, 255, .16); }
@media (hover: hover) { .hero .btn-line:hover, .on-ink .btn-line:hover, .cta-final .btn-line:hover, .aside-cta .btn-line:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); } }
.hero-proof { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin: 2rem 0 0; padding: 0; list-style: none; font-size: .93rem; color: var(--slate-300); }
.hero-proof li { display: flex; align-items: center; gap: .45rem; }
.hero-proof .ic { color: #4ADE80; }
@media (max-width: 560px) { .hero-cta .btn { width: 100%; } }
@media (max-width: 420px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1rem; }
    .hero-grid { padding-top: 2.5rem; }
}

/* Tarjeta tipo app del hero */
.hero-visual { position: relative; padding: 2.25rem 0 2.75rem; }
.app {
    position: relative; max-width: 30rem; margin-left: auto; overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow-lg), 0 30px 90px -30px rgba(124, 58, 237, .55);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.app-bar { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.app-dots { display: flex; gap: .35rem; }
.app-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.app-dots i:first-child { background: #F87171; }
.app-dots i:nth-child(2) { background: var(--gold); }
.app-dots i:last-child { background: #4ADE80; }
.app-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--slate-400); font-size: .72rem; }
.app-body { display: grid; gap: 1rem; padding: 1.25rem; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.app-head small { display: block; color: var(--slate-400); font-size: .75rem; }
.app-head strong { font: 700 1.15rem var(--f-display); letter-spacing: -.02em; color: #fff; }
.app-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.app-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.app-list div { flex: 1; min-width: 0; }
.app-list b { display: block; font-size: .88rem; font-weight: 600; color: #fff; }
.app-list small { display: block; color: var(--slate-400); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ic { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 10px; }
.app-ic .ic { width: 1rem; height: 1rem; }
.app-ic.ok { background: rgba(34, 197, 94, .16); color: #4ADE80; }
.app-ic.wait { background: rgba(240, 180, 40, .16); color: var(--gold); }
.app-progress-top { display: flex; justify-content: space-between; margin-bottom: .5rem; color: var(--slate-400); font-size: .75rem; }
.bar { height: .5rem; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gradient-text); animation: llenar 1.6s cubic-bezier(.2, .7, .2, 1) 1s forwards; }
.app-pay { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--gradient); box-shadow: var(--shadow-purple); }
.app-pay small { display: block; color: rgba(255, 255, 255, .78); font-size: .74rem; }
.app-pay strong { font: 600 .95rem var(--f-body); color: #fff; }
.app-btn { flex-shrink: 0; padding: .55rem 1.1rem; border-radius: 999px; background: #fff; color: var(--primary-dark); font: 700 .85rem var(--f-body); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .7rem .7rem; border-radius: 16px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); animation: flotar 6s ease-in-out infinite; }
.float-card b { display: block; font-size: .85rem; line-height: 1.3; }
.float-card small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.3; }
.fc-ic { display: grid; place-items: center; flex-shrink: 0; width: 2.3rem; height: 2.3rem; border-radius: 12px; background: var(--gradient); color: #fff; }
.fc-ic.gold { background: var(--gradient-gold); }
.fc-ic .ic { width: 1.15rem; height: 1.15rem; }
.fc-1 { left: 0; bottom: 0; animation-delay: -3s; }
.fc-2 { right: 0; top: 0; }
@media (min-width: 1024px) { .fc-1 { left: -1.5rem; } .fc-2 { right: -1rem; } }
@media (max-width: 1023px) { .hero-visual { max-width: 30rem; width: 100%; margin-inline: auto; } .app { margin-inline: auto; } }

/* ---------- Ruta de 3 pasos (tarjetas que suben sobre el hero) ---------- */
.route { position: relative; z-index: 5; margin-top: clamp(-6.5rem, -9vw, -5rem); padding-bottom: 1rem; }
.route-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .route-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.route-item a {
    display: flex; align-items: center; gap: 1rem; height: 100%;
    padding: 1.4rem 1.4rem; text-decoration: none;
    background: #fff; border: 1px solid var(--slate-border); border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
@media (hover: hover) { .route-item a:hover { transform: translateY(-4px); box-shadow: var(--shadow-purple); border-color: var(--primary-soft-2); } }
.route-num { display: grid; place-items: center; flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: 14px; background: var(--gradient); color: #fff; font: 700 .95rem var(--f-display); box-shadow: var(--shadow-purple); }
.route-item strong { display: block; font: 700 1.1rem/1.25 var(--f-display); letter-spacing: -.02em; }
.route-item small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.route-item .ic-arrow { margin-left: auto; color: var(--primary); transition: transform .2s; }
@media (hover: hover) { .route-item a:hover .ic-arrow { transform: translateX(5px); } }

/* ---------- Regla de los 3 años ---------- */
.rule-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .rule-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.rule-grid h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }
.note { display: flex; gap: .85rem; padding: 1.1rem 1.25rem; background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-radius: 16px; font-size: .97rem; }
.note .ic { color: var(--primary); margin-top: .2rem; }
.road { position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--slate-border); box-shadow: var(--shadow); }
.road-title { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; color: var(--slate-500); }
.road-track { position: relative; height: .75rem; margin: 1.4rem 0 1rem; border-radius: 999px; background: var(--slate-border); }
.road-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--gradient); transition: width 2.2s cubic-bezier(.65, .05, .25, 1) .3s; }
.road.in .road-fill { width: 100%; }
.road-flag { position: absolute; right: -.35rem; top: 50%; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--gradient-gold); color: #fff; transform: translateY(-50%) scale(.6); opacity: 0; box-shadow: 0 6px 18px -4px rgba(200, 120, 0, .6); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1) 2.3s, opacity .3s 2.3s; }
.road-flag .ic { width: 1rem; height: 1rem; }
.road.in .road-flag { transform: translateY(-50%) scale(1); opacity: 1; }
.road-marks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; text-align: center; }
.road-marks li { display: grid; gap: .1rem; }
.road-marks b { font: 700 .95rem var(--f-display); }
.road-marks span { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.road-marks li:first-child { text-align: left; }
.road-marks li:last-child { text-align: right; }
.road-marks li:last-child b { color: var(--primary); }
.road-foot { margin: 1.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--slate-border); font-size: .92rem; color: var(--muted); }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.4rem; background: #fff; border: 1px solid var(--slate-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
@media (hover: hover) { .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }
.step::before { counter-increment: paso; content: "0" counter(paso); display: grid; place-items: center; width: 2.9rem; height: 2.9rem; margin-bottom: 1.25rem; border-radius: 14px; background: var(--gradient); color: #fff; font: 700 1rem var(--f-display); box-shadow: var(--shadow-purple); }
.step h3 { font-size: 1.22rem; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: .97rem; flex-grow: 1; }
.step-foot { margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--slate-border); }

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; padding: 1.9rem 1.6rem; background: #fff; border: 1px solid var(--slate-border); border-radius: var(--radius); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
@media (hover: hover) { .card.lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-purple); border-color: var(--primary-soft-2); } }
.card h3 { font-size: 1.22rem; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: 1.25rem; border-radius: 14px; background: var(--gradient); color: #fff; box-shadow: var(--shadow-purple); }
.card-icon .ic { width: 1.45rem; height: 1.45rem; }

/* ---------- Confianza ---------- */
.trust-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.qa { padding: 1.8rem 1.6rem; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: background .3s, border-color .3s; }
@media (hover: hover) { .qa:hover { background: rgba(255, 255, 255, .06); border-color: rgba(167, 139, 250, .3); } }
.qa h3 { display: flex; gap: .7rem; align-items: center; font-size: 1.25rem; color: #fff; }
.qa h3::before { content: ""; flex-shrink: 0; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gradient-text); box-shadow: 0 0 0 4px rgba(167, 139, 250, .15); }
.qa p { color: var(--slate-400); margin: 0; font-size: .98rem; }
.badges { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.badge-t { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: var(--slate-300); }
.badge-t .ic { color: var(--primary-light); }

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 1.9rem 1.6rem; background: #fff; border: 1px solid var(--slate-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1.05rem; line-height: 1.6; }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.quote figcaption b { color: var(--text); display: block; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; padding: 1.7rem 1.55rem 1.4rem; background: #fff; border: 1px solid var(--slate-border); border-radius: var(--radius); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
@media (hover: hover) { .post:hover { transform: translateY(-5px); box-shadow: var(--shadow-purple); border-color: var(--primary-soft-2); } .post:hover h3, .post:hover h2 { color: var(--primary); } }
.post h3, .post h2 { font-size: 1.2rem; letter-spacing: -.02em; transition: color .2s; }
.post p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; margin-top: .4rem; border-top: 1px solid var(--slate-border); font-size: .83rem; color: var(--muted); }
.post-meta .ic { color: var(--primary); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--slate-border); border-radius: 16px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--primary-soft-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary-soft-2); color: var(--primary); font: 600 1.15rem/1 var(--f-body); transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gradient); color: #fff; }
.faq .faq-a { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq .faq-a p:last-child { margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact-grid h2 { font-weight: 800; letter-spacing: -.03em; }
.contact-list { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .card-icon { width: 2.6rem; height: 2.6rem; margin: 0; border-radius: 12px; box-shadow: none; }
.contact-list .card-icon .ic { width: 1.2rem; height: 1.2rem; }
.contact-list strong { display: block; }
.contact-list a { text-decoration: none; color: var(--primary); font-weight: 600; }
.panel { padding: clamp(1.5rem, 4vw, 2.4rem); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--slate-border); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field > label { font-weight: 600; font-size: .92rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; min-height: 3.25rem; padding: .8rem 1rem;
    border: 1.5px solid var(--slate-border); border-radius: 12px;
    background: var(--slate-light); color: var(--text);
    font: inherit; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.field.has-error input, .field.has-error textarea { border-color: #F87171; background: #FFF7F7; }
.field-error { color: var(--danger-text); font-size: .86rem; font-weight: 500; }
.field-hint { color: var(--muted); font-size: .85rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.check input { flex-shrink: 0; width: 1.3rem; height: 1.3rem; margin: .12rem 0 0; accent-color: var(--primary); }
.check a { color: var(--primary); }
.form-foot { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.form-foot .ic { color: var(--success); }

.alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; font-size: .97rem; margin-bottom: 1.4rem; }
.alert .ic { margin-top: .15rem; }
.alert p { margin: 0; }
.alert-err { background: var(--danger-soft); color: #991B1B; }
.alert-ok { background: var(--success-soft); color: #166534; }
.alert-info { background: var(--primary-soft-2); color: #5B21B6; }
.alert-wait { background: var(--warn-soft); color: var(--warn-text); }

/* ---------- Cabecera de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 7vw, 5rem); background: var(--dark) url("../img/fondos/hero-c.svg") center / cover no-repeat; color: #fff; }
.page-hero::before, .page-hero::after { content: none; }
/* Tableta (una sola columna): el arte se corre para no quedar bajo el texto (contraste AA medido) */
@media (min-width: 440px) and (max-width: 1023px) { .hero, .page-hero { background-position: 20% center; } }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; color: #fff; max-width: 52rem; }
.page-hero .lead { color: var(--slate-400); max-width: 44rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; font-size: .84rem; color: var(--slate-500); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--slate-400); }
.crumbs a:hover { color: #fff; }

/* ---------- Dos columnas ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .split { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: start; } .split .sticky { position: sticky; top: 6.5rem; } }
.split h2 { letter-spacing: -.03em; }
.checklist { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .ic { color: var(--primary); margin-top: .2rem; }

/* ---------- Estado del caso ---------- */
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin: 0 0 2.25rem; padding: 0; list-style: none; counter-reset: etapa; }
.tracker li { position: relative; text-align: center; font-size: .8rem; line-height: 1.3; color: var(--muted); }
.tracker li::before { counter-increment: etapa; content: counter(etapa); position: relative; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0 auto .6rem; border-radius: 50%; background: #fff; border: 2px solid var(--slate-border); font: 700 .95rem var(--f-display); color: var(--slate-400); }
.tracker li::after { content: ""; position: absolute; top: 1.3rem; left: 50%; width: 100%; height: 2px; background: var(--slate-border); }
.tracker li:last-child::after { display: none; }
.tracker li.done { color: var(--text); }
.tracker li.done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #fff; }
.tracker li.done::after { background: var(--success); }
.tracker li.now { color: var(--primary-dark); font-weight: 700; }
.tracker li.now::before { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(124, 58, 237, .18); }
.status-card { padding: clamp(1.5rem, 4vw, 2.25rem); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--slate-border); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.status-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
.pay { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--dark); color: #fff; border-radius: var(--radius-lg); margin-bottom: 1.5rem; box-shadow: var(--shadow-lg); }
.pay::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(26rem 16rem at 100% 0%, rgba(124, 58, 237, .45), transparent 65%), radial-gradient(20rem 14rem at 0% 100%, rgba(79, 70, 229, .3), transparent 65%); }
.pay h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
.pay-rows { display: grid; gap: .55rem; margin: 1.25rem 0 1.5rem; padding: 1rem 1.2rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; }
.pay-rows div { display: flex; justify-content: space-between; gap: 1rem; font-size: .96rem; color: var(--slate-300); }
.pay-rows .total { padding-top: .6rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 1.12rem; color: #fff; }
.pay-rows .total b { color: var(--gold); font-family: var(--f-display); }
.pay-note { display: flex; gap: .55rem; align-items: center; margin: 1rem 0 0; font-size: .85rem; color: var(--slate-400); }
.pay .check { color: var(--slate-300) !important; }
.pay .check a { color: var(--primary-light) !important; }
.docs { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.docs a { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; background: #fff; border: 1px solid var(--slate-border); border-radius: 14px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
@media (hover: hover) { .docs a:hover { border-color: var(--primary-light); transform: translateX(3px); box-shadow: var(--shadow-sm); } }
.docs .ic-doc { color: var(--primary); width: 1.6rem; height: 1.6rem; }
.docs small { display: block; color: var(--muted); font-size: .8rem; }
.docs .ic-arrow { margin-left: auto; color: var(--slate-400); }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip .ic { width: .9rem; height: .9rem; }
.chip-ok { background: var(--success-soft); color: var(--success-text); }
.chip-no { background: var(--danger-soft); color: var(--danger-text); }
.chip-wait { background: var(--warn-soft); color: var(--warn-text); }
.hero .chip-ok, .app .chip-ok { background: rgba(34, 197, 94, .16); color: #4ADE80; }
.app .chip-wait { background: rgba(240, 180, 40, .16); color: var(--gold); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--slate-border); border-radius: 16px; background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 38rem; }
.tbl th { padding: .85rem 1rem; background: var(--slate-light); text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-500); }
.tbl td { padding: .9rem 1rem; border-top: 1px solid var(--slate-border); vertical-align: top; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl small { color: var(--muted); }

/* ---------- Texto largo (blog y legal) ---------- */
.prose { max-width: 46rem; font-size: 1.07rem; line-height: 1.8; color: #1E2235; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.025em; margin: 2.2em 0 .6em; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; color: var(--text); }
.prose a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.9em 0; padding: 1.25em 1.5em; background: var(--primary-soft); border: 1px solid var(--primary-soft-2); border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; font-size: 1rem; }
.prose blockquote p:last-child { margin: 0; }
.prose table { display: block; width: 100%; overflow-x: auto; margin: 1.6em 0; border-collapse: collapse; font-size: .96rem; }
.prose th { background: var(--dark); color: #fff; text-align: left; padding: .75em 1em; font-weight: 600; }
.prose td { padding: .75em 1em; border-bottom: 1px solid var(--slate-border); vertical-align: top; }
.article-layout { display: grid; gap: 3rem; }
@media (min-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; align-items: start; } .article-aside { position: sticky; top: 6.5rem; } }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem; font-size: .86rem; color: var(--slate-400); }
.aside-cta { position: relative; overflow: hidden; isolation: isolate; padding: 1.75rem 1.5rem; background: var(--dark); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.aside-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(18rem 14rem at 100% 0%, rgba(124, 58, 237, .45), transparent 65%); }
.aside-cta h3 { color: #fff; font-size: 1.3rem; }
.aside-cta p { color: var(--slate-400); font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; background: var(--gradient); color: #fff; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grid-lines); background-size: 44px 44px; opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-final::after { content: ""; position: absolute; right: -8rem; top: -10rem; z-index: -1; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.cta-final-inner { display: grid; gap: 2rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
@media (min-width: 900px) { .cta-final-inner { grid-template-columns: 1.3fr auto; gap: 3rem; } }
.cta-final h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 .35em; color: #fff; }
.cta-final p { margin: 0; font-size: 1.08rem; max-width: 38rem; color: rgba(255, 255, 255, .85); }
.cta-final .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-final .btn-ink { background: #fff; color: var(--primary-dark); }
@media (hover: hover) { .cta-final .btn-ink:hover { background: #F5F3FF; } }
@media (max-width: 560px) { .cta-final .actions .btn { width: 100%; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--dark); color: var(--slate-400); padding-block: 4.5rem 2rem; font-size: .93rem; border-top: 1px solid rgba(255, 255, 255, .05); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }
.site-footer .brand { color: #fff; }
.site-footer h4 { font: 600 .95rem var(--f-display); letter-spacing: 0; color: #fff; margin-bottom: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: .8rem; font-size: .83rem; color: var(--slate-400); }
@media (min-width: 860px) { .footer-legal { grid-template-columns: 1fr auto; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.stamp { display: inline-grid; justify-items: center; gap: .15rem; margin: 0 auto 2rem; padding: 1rem 1.75rem; border-radius: var(--radius); background: var(--gradient); color: #fff; box-shadow: var(--shadow-purple-lg); }
.stamp strong { font: 800 2.5rem/1 var(--f-display); letter-spacing: -.04em; }
.stamp span { font-size: .8rem; font-weight: 500; opacity: .85; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .rise, .js .reveal { opacity: 1; transform: none; }
    .bar i { width: var(--w, 50%); }
    .road-fill { width: 100%; }
    .road-flag { opacity: 1; transform: translateY(-50%); }
}

@media print {
    .site-header, .site-footer, .cta-final { display: none; }
}
