/*
 * Orliv · Sistema de diseño del sitio público
 * Autor: jose javier esquivel gloria
 * Desarrollo: goglo agency
 *
 * Comparte la paleta del panel (--orliv-*) para que marketing y producto se
 * vean como un mismo sistema. Todo el espaciado usa una escala de 4 px y los
 * anchos máximos evitan líneas de texto más largas de 75 caracteres.
 */

@font-face {
    font-family: "InterVariable";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
    /* Paleta heredada del panel */
    --blue: #1557FF;
    --blue-hover: #0B45D9;
    --blue-active: #0838B8;
    --navy: #05265F;
    --dark: #031A42;
    --light: #EAF0FF;
    --ultralight: #F4F7FF;

    --ink: #0F172A;
    --ink-soft: #334155;
    --slate: #667085;
    --slate-light: #94A3B8;
    --line: #E2E8F0;
    --line-soft: #EEF2F7;
    --bg: #F7F9FC;
    --surface: #FFFFFF;

    --success: #16A34A;
    --success-soft: #DCFCE7;
    --amber: #F59E0B;
    --amber-soft: #FEF3C7;
    --violet: #7C3AED;
    --violet-soft: #F3E8FF;
    --cyan: #0EA5E9;
    --cyan-soft: #E0F2FE;

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow: 0 12px 32px rgba(15, 40, 100, .08);
    --shadow-lg: 0 28px 68px rgba(5, 38, 95, .14);
    --shadow-blue: 0 14px 32px rgba(21, 87, 255, .26);

    --container: 1200px;
    --container-narrow: 780px;
    --nav-height: 72px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: "InterVariable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "cv02", "cv03", "cv04", "ss01";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
/* La regla anterior también aplica a los iconos ocultos con [hidden]:
   sin esto se verían los dos estados del ojo de la contraseña a la vez. */
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button { font: inherit; }
::selection { background: var(--light); color: var(--navy); }

h1, h2, h3, h4, h5 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.022em;
    line-height: 1.18;
    text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); letter-spacing: -.04em; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.75rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
p { margin: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: -60px; left: 16px; z-index: 999;
    padding: 10px 18px; border-radius: var(--radius-xs);
    background: var(--blue); color: #fff; font-weight: 700;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(21, 87, 255, .45);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Estructura
   -------------------------------------------------------------------------- */

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}
.container-narrow { width: min(var(--container-narrow), calc(100% - 40px)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }
.section--muted { background: var(--bg); }
.section--soft { background: linear-gradient(180deg, var(--ultralight), var(--surface)); }
.section--dark { background: var(--dark); color: #E6EDFF; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { margin-top: 14px; color: var(--slate); font-size: 1.06rem; }
.section--dark .section-head p { color: #A9BEE8; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; margin-bottom: 18px;
    border-radius: var(--radius-pill);
    background: var(--light); color: var(--blue);
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.section--dark .eyebrow { background: rgba(21, 87, 255, .22); color: #9DBBFF; }
.eyebrow--violet { background: var(--violet-soft); color: var(--violet); }
.eyebrow--cyan { background: var(--cyan-soft); color: #0369A1; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 12px 22px;
    border: 1px solid transparent; border-radius: var(--radius-xs);
    font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
    cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: .87rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 18px 38px rgba(21, 87, 255, .32); }

.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--ultralight); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--dark); color: #fff; }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--light); color: var(--navy); }

.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn--link { padding: 0; min-height: 0; background: none; color: var(--blue); box-shadow: none; }
.btn--link:hover { color: var(--blue-hover); text-decoration: underline; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.icon-arrow { transition: transform .18s var(--ease); }
.btn:hover .icon-arrow, a:hover > .icon-arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Barra de navegación
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid transparent;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 18px rgba(15, 23, 42, .05); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: var(--nav-height); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 112px; }

.nav-primary { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: var(--radius-xs);
    color: var(--ink-soft); font-size: .92rem; font-weight: 600;
    transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--ultralight); color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-item { position: relative; }
.nav-toggle-icon { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-item[open] .nav-toggle-icon { transform: rotate(180deg); }

.nav-menu {
    position: absolute; top: calc(100% + 10px); left: 0; z-index: 5;
    display: grid; gap: 4px; width: 330px; padding: 10px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow-lg);
    animation: menu-in .16s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.nav-menu a {
    display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 12px;
    padding: 11px 12px; border-radius: var(--radius-xs); color: var(--ink);
    transition: background-color .16s var(--ease);
}
.nav-menu a:hover { background: var(--ultralight); }
.nav-menu strong { display: block; font-size: .92rem; font-weight: 700; }
.nav-menu small { color: var(--slate); font-size: .8rem; line-height: 1.45; }
.nav-menu .menu-icon {
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 10px; background: var(--light); color: var(--blue); font-size: 1rem;
}

.nav-burger {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: var(--radius-xs);
    background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

@media (max-width: 1024px) {
    .nav-primary { display: none; }
    .nav-burger { display: inline-flex; margin-left: auto; }
    .nav-actions .btn--ghost { display: none; }
}
@media (max-width: 560px) {
    .nav-actions .btn { padding: 10px 14px; font-size: .87rem; }
}

.related-services { padding-top: 0; }
.related-services .section-head p { max-width: 620px; color: var(--slate); }
.related-services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-services-grid a { display: flex; min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); flex-direction: column; text-decoration: none; box-shadow: 0 10px 28px rgba(10, 42, 95, .06); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.related-services-grid a:hover { transform: translateY(-4px); border-color: #aac2ff; box-shadow: 0 18px 38px rgba(10, 42, 95, .11); }
.related-services-grid span { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.related-services-grid strong { margin-top: 12px; font-size: 1.08rem; line-height: 1.35; }
.related-services-grid small { margin-top: auto; padding-top: 24px; color: var(--blue); font-weight: 750; }
.related-services-grid small i { margin-left: 5px; font-style: normal; }
@media (max-width: 980px) { .related-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .related-services-grid { grid-template-columns: 1fr; } .related-services-grid a { min-height: 150px; } }

.mobile-nav {
    position: fixed; inset: var(--nav-height) 0 0; z-index: 55;
    display: none; padding: 22px 20px 40px;
    background: var(--surface); overflow-y: auto;
}
.mobile-nav.is-open { display: block; animation: menu-in .18s var(--ease); }
.mobile-nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 600; }
.mobile-nav .mobile-group { margin-top: 22px; color: var(--slate-light); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.mobile-nav .btn { margin-top: 22px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0 clamp(60px, 7vw, 100px);
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(21, 87, 255, .13), transparent 62%),
        radial-gradient(760px 400px at 92% 6%, rgba(14, 165, 233, .12), transparent 60%),
        linear-gradient(180deg, var(--ultralight) 0%, var(--surface) 72%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(21, 87, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 87, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 0%, #000, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 72%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero p.hero-lead { max-width: 560px; margin-top: 20px; color: var(--ink-soft); font-size: clamp(1.04rem, 1rem + .3vw, 1.2rem); line-height: 1.62; }
.hero .btn-row { margin-top: 32px; }

.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; color: var(--slate); font-size: .87rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 900; }

.title-gradient {
    background: linear-gradient(100deg, var(--blue) 0%, #4C86FF 45%, var(--cyan) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Maqueta de producto del hero */
.hero-mock {
    position: relative; padding: 18px;
    border: 1px solid rgba(21, 87, 255, .14); border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .72); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
}
.mock-window { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #D6DEEA; }
.mock-url { flex: 1; margin-left: 8px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--slate); font-size: .74rem; }
.mock-body { display: grid; gap: 14px; padding: 20px; }

.mock-link-card {
    display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.mock-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--light); color: var(--blue); font-size: 1.05rem; }
.mock-link-card strong { display: block; font-size: .9rem; }
.mock-link-card small { color: var(--slate); font-size: .77rem; }
.mock-metric { text-align: right; }
.mock-metric b { display: block; font-size: 1.05rem; color: var(--ink); }
.mock-metric span { color: var(--success); font-size: .74rem; font-weight: 700; }

.mock-chart { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mock-chart header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: .8rem; color: var(--slate); font-weight: 600; }
.mock-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 92px; }
.mock-bars i {
    display: block; border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--blue), #7EA6FF);
    animation: bar-rise .9s var(--ease) backwards;
}
@keyframes bar-rise { from { transform: scaleY(.15); transform-origin: bottom; opacity: .3; } }

.hero-badge {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 11px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); box-shadow: var(--shadow);
    font-size: .8rem; font-weight: 700;
}
.hero-badge small { display: block; color: var(--slate); font-size: .72rem; font-weight: 500; }
.hero-badge--qr { right: -14px; top: 15%; }
.hero-badge--scan { left: -18px; bottom: 12%; }
.hero-badge .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-mock { margin-top: 12px; }
    .hero-badge--qr { right: 4px; }
    .hero-badge--scan { left: 4px; }
}
@media (max-width: 560px) {
    .hero-badge { display: none; }
}

/* --------------------------------------------------------------------------
   Barra de confianza
   -------------------------------------------------------------------------- */

.trustbar { padding: 34px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.trustbar p { margin-bottom: 20px; color: var(--slate-light); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 48px; }
.trust-logos span {
    color: var(--slate-light); font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
    opacity: .72; transition: opacity .2s var(--ease), color .2s var(--ease);
}
.trust-logos span:hover { opacity: 1; color: var(--navy); }

/* --------------------------------------------------------------------------
   Rejilla de funciones (bento)
   -------------------------------------------------------------------------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > article {
    display: flex; flex-direction: column; gap: 12px;
    padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow-xs);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.bento > article:hover { transform: translateY(-4px); border-color: rgba(21, 87, 255, .3); box-shadow: var(--shadow); }
.bento .span-3 { grid-column: span 3; }
.bento .span-2 { grid-column: span 2; }
.bento .span-6 { grid-column: span 6; }
.bento p { color: var(--slate); font-size: .96rem; }

.feature-icon {
    display: grid; place-items: center; width: 46px; height: 46px;
    border-radius: 13px; background: var(--light); color: var(--blue); font-size: 1.2rem;
}
.feature-icon--navy { background: rgba(5, 38, 95, .1); color: var(--navy); }
.feature-icon--violet { background: var(--violet-soft); color: var(--violet); }
.feature-icon--cyan { background: var(--cyan-soft); color: #0369A1; }
.feature-icon--amber { background: var(--amber-soft); color: #B45309; }
.feature-icon--success { background: var(--success-soft); color: var(--success); }

.feature-list { display: grid; gap: 9px; margin: 4px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-soft); font-size: .92rem; }
.feature-list li::before { content: "✓"; color: var(--blue); font-weight: 900; }

@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .span-3, .bento .span-2, .bento .span-6 { grid-column: span 2; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .bento .span-3, .bento .span-2, .bento .span-6 { grid-column: span 1; } }

/* --------------------------------------------------------------------------
   Casos de uso con pestañas
   -------------------------------------------------------------------------- */

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tab {
    padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink-soft); font-size: .9rem; font-weight: 700; cursor: pointer;
    transition: all .18s var(--ease);
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }

.tab-panel { display: none; }
.tab-panel.is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 60px); animation: fade-up .3s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
.tab-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); letter-spacing: -.03em; }
.tab-panel p { margin-top: 14px; color: var(--slate); font-size: 1.02rem; }

.usecase-visual {
    display: grid; gap: 14px; padding: 26px;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: linear-gradient(150deg, var(--ultralight), var(--surface));
    box-shadow: var(--shadow);
}
.usecase-row {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-xs);
}
.usecase-row .tagpill { margin-left: auto; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--light); color: var(--blue); font-size: .74rem; font-weight: 800; }

@media (max-width: 860px) { .tab-panel.is-active { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pasos
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
    position: relative; padding: 30px 28px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: 14px;
    color: var(--blue); font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em;
}
.step p { margin-top: 10px; color: var(--slate); font-size: .95rem; }
.step-line { position: absolute; top: 46px; right: -22px; width: 22px; height: 1px; background: var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step-line { display: none; } }

/* --------------------------------------------------------------------------
   Métricas
   -------------------------------------------------------------------------- */

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); overflow: hidden; }
.metrics article { padding: 32px 26px; background: var(--dark); }
.metrics strong { display: block; color: #fff; font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 900; letter-spacing: -.04em; }
.metrics span { display: block; margin-top: 6px; color: #9DBBFF; font-size: .88rem; }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   Testimonios
   -------------------------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
    display: flex; flex-direction: column; gap: 18px; padding: 30px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs);
}
.quote blockquote { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.quote .stars { color: var(--amber); font-size: .95rem; letter-spacing: 2px; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--light); color: var(--blue); font-weight: 800; }
.quote strong { display: block; font-size: .9rem; }
.quote small { color: var(--slate); font-size: .8rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Planes
   -------------------------------------------------------------------------- */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 22px; align-items: stretch; }
.plan-card {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.is-featured { border: 2px solid var(--blue); box-shadow: 0 22px 54px rgba(21, 87, 255, .16); }
.plan-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 5px 14px; border-radius: var(--radius-pill); background: var(--blue); color: #fff;
    font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.plan-card h3 { font-size: 1.18rem; }
.plan-card .plan-desc { min-height: 62px; margin-top: 6px; color: var(--slate); font-size: .89rem; line-height: 1.5; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan-price b { font-size: 2.2rem; font-weight: 900; letter-spacing: -.045em; }
.plan-price span { color: var(--slate); font-size: .85rem; }
.plan-card ul { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.plan-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.plan-card li::before { content: "✓"; color: var(--success); font-weight: 900; }
.plan-card .btn { margin-top: auto; }
.plan-note { margin-top: 26px; color: var(--slate); font-size: .87rem; text-align: center; }

/* --------------------------------------------------------------------------
   Comparativa
   -------------------------------------------------------------------------- */

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th {
    position: sticky; top: 0; z-index: 1;
    background: var(--bg); color: var(--navy);
    text-align: center; vertical-align: bottom;
}
.compare thead th:first-child { text-align: left; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.compare thead th.is-featured { background: var(--light); }
.compare .compare-plan { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.compare thead small { display: block; margin-top: 3px; color: var(--slate); font-size: .78rem; font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--ink-soft); }
.compare td { text-align: center; color: var(--slate); }
.compare .compare-value { color: var(--slate); font-size: .9rem; font-weight: 400; }
.compare .yes { color: var(--success); font-weight: 900; font-size: 1.05rem; }
.compare .no { color: var(--slate-light); }
.compare .compare-group th {
    padding: 12px 18px;
    background: var(--ultralight);
    color: var(--navy);
    font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.compare tfoot td { padding: 18px; text-align: center; border-bottom: 0; }
.compare tfoot th { border-bottom: 0; }
.compare tbody:last-of-type tr:last-child th,
.compare tbody:last-of-type tr:last-child td { border-bottom: 1px solid var(--line-soft); }

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] { border-color: rgba(21, 87, 255, .32); box-shadow: var(--shadow-xs); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 19px 22px; cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--blue); font-size: 1.35rem; font-weight: 400; line-height: 1; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 21px; color: var(--slate); font-size: .96rem; line-height: 1.68; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta-panel {
    position: relative; overflow: hidden;
    padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 70px);
    border-radius: var(--radius-xl); text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 58%, #3D7BFF 100%);
    color: #fff; box-shadow: var(--shadow-lg);
}
.cta-panel::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel p { max-width: 560px; margin: 16px auto 0; color: #D9E5FF; font-size: 1.05rem; }
.cta-panel .btn-row { margin-top: 30px; }
.cta-fine { margin-top: 20px; color: rgba(255, 255, 255, .78); font-size: .82rem; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(302px, 1fr)); gap: 26px; }

.post-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(21, 87, 255, .28); box-shadow: var(--shadow); }
.post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--light), var(--ultralight)); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb .thumb-fallback { display: grid; place-items: center; height: 100%; color: var(--blue); font-size: 2.2rem; opacity: .45; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.post-body h3 { font-size: 1.1rem; line-height: 1.34; }
.post-body h3 a { color: var(--ink); }
.post-card:hover .post-body h3 a { color: var(--blue); }
.post-body p { color: var(--slate); font-size: .91rem; line-height: 1.6; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--slate-light); font-size: .79rem; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: var(--radius-pill);
    background: var(--light); color: var(--blue);
    font-size: .73rem; font-weight: 800; letter-spacing: .02em;
}
.chip--outline { background: transparent; border: 1px solid var(--line); color: var(--slate); }

.post-featured {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0;
    overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl);
    background: var(--surface); box-shadow: var(--shadow);
}
.post-featured .post-thumb { aspect-ratio: auto; height: 100%; min-height: 300px; }
.post-featured .post-body { gap: 14px; padding: clamp(28px, 4vw, 46px); justify-content: center; }
.post-featured h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
.post-featured h2 a { color: var(--ink); }
.post-featured h2 a:hover { color: var(--blue); }
@media (max-width: 860px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-thumb { min-height: 220px; } }

.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter a {
    padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink-soft); font-size: .86rem; font-weight: 700;
    transition: all .18s var(--ease);
}
.cat-filter a:hover { border-color: var(--blue); color: var(--blue); }
.cat-filter a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.search-box { position: relative; display: flex; }
.search-box input {
    width: 260px; min-height: 42px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    background: var(--surface); font: inherit; font-size: .9rem;
}
.search-box input:focus { outline: none; border-color: var(--blue); }
.search-box button {
    min-height: 42px; padding: 8px 20px; border: 1px solid var(--blue); border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    background: var(--blue); color: #fff; font-size: .88rem; font-weight: 700; cursor: pointer;
}
@media (max-width: 560px) { .search-box, .search-box input { width: 100%; } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
    display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-xs);
    background: var(--surface); color: var(--ink-soft); font-size: .9rem; font-weight: 700;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Artículo */
.article-hero { padding: clamp(38px, 5vw, 62px) 0 clamp(26px, 3vw, 38px); background: linear-gradient(180deg, var(--ultralight), var(--surface)); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--slate-light); font-size: .82rem; }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; color: var(--slate-light); }

.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.article-head .article-lead { max-width: 720px; margin-top: 18px; color: var(--slate); font-size: 1.1rem; line-height: 1.62; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; color: var(--slate); font-size: .88rem; }
.article-byline .avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--blue); font-weight: 800; }
.article-byline strong { color: var(--ink); }

.article-cover { margin: clamp(24px, 3vw, 38px) 0 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(30px, 5vw, 62px); align-items: start; padding: clamp(38px, 5vw, 60px) 0 clamp(50px, 6vw, 84px); }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static !important; order: -1; } }

.article-aside { position: sticky; top: calc(var(--nav-height) + 24px); display: grid; gap: 20px; }
.toc { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc h2 { margin-bottom: 12px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); }
.toc ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc a { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; border-left: 2px solid var(--line); padding-left: 12px; }
.toc a:hover, .toc a.is-active { color: var(--blue); border-left-color: var(--blue); }
.toc .lvl-3 a { padding-left: 24px; font-size: .84rem; color: var(--slate); }

.share-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.share-box h2 { margin-bottom: 12px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-links button {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: var(--radius-xs);
    background: var(--surface); color: var(--slate); cursor: pointer;
    transition: all .18s var(--ease);
}
.share-links a:hover, .share-links button:hover { border-color: var(--blue); color: var(--blue); background: var(--ultralight); }

.aside-cta { padding: 24px; border-radius: var(--radius); background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; }
.aside-cta h2 { color: #fff; font-size: 1.05rem; }
.aside-cta p { margin: 10px 0 18px; color: #D3E0FF; font-size: .87rem; line-height: 1.55; }

/* Tipografía del artículo */
.prose { max-width: 760px; color: var(--ink-soft); font-size: 1.07rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); letter-spacing: -.028em; scroll-margin-top: calc(var(--nav-height) + 20px); }
.prose h3 { margin-top: 1.8em; font-size: 1.22rem; scroll-margin-top: calc(var(--nav-height) + 20px); }
.prose h4 { margin-top: 1.6em; font-size: 1.05rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose ul li::marker { color: var(--blue); }
.prose ol li::marker { color: var(--blue); font-weight: 800; }
.prose blockquote {
    margin-inline: 0; padding: 20px 26px;
    border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--ultralight); color: var(--navy); font-size: 1.07rem; font-style: italic;
}
.prose blockquote p + p { margin-top: .8em; }
.prose img, .prose figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose figcaption { margin-top: 10px; color: var(--slate-light); font-size: .85rem; text-align: center; }
.prose code { padding: 2px 7px; border-radius: 6px; background: var(--light); color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.prose pre { padding: 20px 22px; border-radius: var(--radius); background: var(--dark); color: #DCE7FF; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose hr { height: 1px; margin: 2.4em 0; border: 0; background: var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg); font-weight: 700; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }

.author-card {
    display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center;
    margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg);
}
.author-card .avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.2rem; font-weight: 800; }
.author-card p { color: var(--slate); font-size: .89rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 32px;
    padding: clamp(30px, 4vw, 48px); border-radius: var(--radius-xl);
    background: linear-gradient(140deg, var(--ultralight), var(--light));
    border: 1px solid rgba(21, 87, 255, .16);
}
.newsletter p { margin-top: 12px; color: var(--slate); }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input {
    flex: 1 1 220px; min-height: 50px; padding: 12px 18px;
    border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface); font: inherit;
}
.newsletter input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 87, 255, .16); }
.newsletter small { display: block; margin-top: 12px; color: var(--slate); font-size: .8rem; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Formularios públicos (registro / legales)
   -------------------------------------------------------------------------- */

.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(26px, 4vw, 44px); align-items: start; padding: clamp(34px, 5vw, 62px) 0; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }

.panel-card { padding: clamp(26px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.panel-card h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.panel-card > p { margin-top: 12px; color: var(--slate); }

.field { display: grid; gap: 7px; margin-top: 18px; }
.field > span { font-size: .84rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-xs);
    background: var(--surface); color: var(--ink); font: inherit;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 87, 255, .15); }
.field small { color: var(--slate); font-size: .8rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

.field-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: .89rem; line-height: 1.55; color: var(--ink-soft); }
.field-check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--blue); }

/* Bloques numerados del registro */
.form-block { margin: 26px 0 0; padding: 0; border: 0; }
.form-block legend {
    padding: 0; margin-bottom: 4px;
    color: var(--slate-light); font-size: .72rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
}
.field-note { display: block; margin-top: 12px; color: var(--slate); font-size: .82rem; }

/* Campo de contraseña con botón de ojo */
.field-password { position: relative; display: block; }
.field-password input { padding-right: 48px; }
.password-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 0; border-radius: var(--radius-xs);
    background: transparent; color: var(--slate); cursor: pointer;
    transition: color .15s var(--ease), background-color .15s var(--ease);
}
.password-toggle:hover { background: var(--ultralight); color: var(--blue); }
.password-toggle svg { display: block; }
.password-toggle svg[hidden] { display: none !important; }

.password-meter { display: block; margin-top: 10px; }
.password-meter-bar { display: block; height: 5px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.password-meter-bar i { display: block; height: 100%; width: 20%; border-radius: inherit; background: #DC2626; transition: width .25s var(--ease), background-color .25s var(--ease); }
.password-meter[data-level="1"] .password-meter-bar i { background: #F97316; }
.password-meter[data-level="2"] .password-meter-bar i { background: var(--amber); }
.password-meter[data-level="3"] .password-meter-bar i { background: #65A30D; }
.password-meter[data-level="4"] .password-meter-bar i { background: var(--success); }
.password-meter small { display: block; margin-top: 6px; color: var(--slate); font-size: .78rem; }

.field-ok { color: var(--success); font-weight: 600; }
.field-warn { color: #B45309; font-weight: 600; }

/* Selector de plan con tarjetas */
.plan-picker { display: grid; gap: 10px; margin-top: 10px; }
.plan-option {
    position: relative; display: block; margin: 0; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.plan-option:hover { border-color: var(--blue); background: var(--ultralight); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px 15px 44px; }
.plan-option-body::before {
    content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%;
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.plan-option.is-selected { border-color: var(--blue); background: var(--ultralight); box-shadow: 0 0 0 3px rgba(21, 87, 255, .12); }
.plan-option.is-selected .plan-option-body::before { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); }
.plan-option:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 87, 255, .2); }
.plan-option-head { display: flex; align-items: center; gap: 9px; }
.plan-option-head strong { font-size: .98rem; }
.plan-option-head .chip { font-style: normal; font-size: .66rem; padding: 3px 8px; }
.plan-option-price { text-align: right; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.plan-option-price small { display: block; color: var(--slate); font-size: .74rem; font-weight: 500; letter-spacing: 0; }

.summary-card { position: sticky; top: calc(var(--nav-height) + 20px); }
.summary-card .plan-box b { margin-bottom: 0; }
.summary-note { margin-top: 18px; color: var(--slate); font-size: .85rem; line-height: 1.6; }
@media (max-width: 900px) { .summary-card { position: static; } }

.alert { padding: 13px 16px; margin-bottom: 16px; border-radius: var(--radius-xs); font-size: .9rem; font-weight: 600; }
.alert--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert--success { background: var(--success-soft); color: #15803D; border: 1px solid #BBF7D0; }

.summary-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.summary-card .plan-box { padding: 20px; border-radius: var(--radius); background: linear-gradient(140deg, var(--light), var(--ultralight)); }
.summary-card .plan-box b { display: block; margin: 8px 0; font-size: 1.9rem; font-weight: 900; letter-spacing: -.04em; }
.summary-card ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.summary-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-soft); font-size: .88rem; }
.summary-card li::before { content: "✓"; color: var(--success); font-weight: 900; }

.legal-page { padding: clamp(34px, 5vw, 60px) 0 clamp(50px, 6vw, 80px); }
.legal-page .prose h2 { margin-top: 1.9em; }

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */

.site-footer { padding: clamp(50px, 6vw, 78px) 0 32px; background: var(--dark); color: #A9BEE8; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.footer-brand img { width: 122px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 18px; max-width: 300px; color: #8FA8D6; font-size: .9rem; line-height: 1.62; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-xs);
    color: #C6D6F5; transition: all .18s var(--ease);
}
.footer-social a:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.footer-col h3 { margin-bottom: 16px; color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: #A9BEE8; font-size: .89rem; transition: color .16s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: clamp(40px, 5vw, 58px); padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1); color: #7E97C8; font-size: .83rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: #7E97C8; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: span 2; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: span 1; } }

/* --------------------------------------------------------------------------
   Animación de entrada
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .article-aside, .cta-panel, .newsletter { display: none !important; }
    body { background: #fff; }
    .prose { max-width: none; font-size: 11pt; }
}

/* Perfiles de autor del blog */
.avatar--photo { object-fit: cover; border-radius: 50%; }
.article-byline .avatar--photo { width: 40px; height: 40px; }
.author-card .avatar--photo { width: 56px; height: 56px; }
.author-card .author-role { display: block; margin-top: 2px; color: var(--slate); font-size: .82rem; }
.author-card p { margin-top: 8px; }
.author-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.author-links a { color: var(--blue); font-size: .84rem; font-weight: 700; }
.author-links a:hover { text-decoration: underline; }

.author-hero { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 30px); flex-wrap: wrap; }
.author-hero-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.author-hero-avatar--initials {
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--blue), var(--navy));
    color: #fff; font-size: 2.1rem; font-weight: 800;
}
.author-hero h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
.author-hero-role { margin-top: 6px; color: var(--blue); font-size: .95rem; font-weight: 700; }
@media (max-width: 560px) { .author-hero-avatar { width: 80px; height: 80px; font-size: 1.7rem; } }

/* Páginas de acceso público en columna única (recuperación de contraseña) */
.auth-single { padding: clamp(38px, 6vw, 70px) 0; }
.auth-single .panel-card { max-width: 520px; margin-inline: auto; }
.auth-help { max-width: 520px; margin: 20px auto 0; color: var(--slate); font-size: .85rem; text-align: center; }

/* Sesión iniciada en la cabecera pública */
.nav-user { display: inline-flex; align-items: center; gap: 9px; padding-right: 4px; }
.nav-user-avatar {
    display: grid; place-items: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--light); color: var(--blue);
    font-size: .82rem; font-weight: 800;
}
.nav-user-name { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
@media (max-width: 767.98px) { .nav-user-name { display: none; } }

/* Páginas independientes de producto y comparación de planes */
.service-page { background: linear-gradient(180deg, #f7faff 0, #fff 55%); }
.service-hero { padding: clamp(54px, 8vw, 104px) 0 clamp(42px, 6vw, 76px); overflow: hidden; }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(32px, 7vw, 88px); }
.service-hero h1 { max-width: 760px; margin-top: 14px; font-size: clamp(2.3rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; }
.service-hero .hero-lead { max-width: 680px; margin-top: 22px; }
.service-hero img { width: 100%; height: auto; filter: drop-shadow(0 28px 48px rgba(14, 55, 130, .16)); }
.plan-landing-offer { display: grid; gap: 10px; padding: clamp(24px, 4vw, 42px); border: 1px solid #dbe6fb; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(14, 55, 130, .12); }
.plan-landing-offer > span { color: #1557ff; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-landing-offer > strong { color: #05265f; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.plan-landing-offer > small { color: #667085; font-size: .9rem; }
.plan-landing-offer > p { margin: 10px 0 8px; color: #596b85; line-height: 1.65; }
.plan-landing-offer .btn { width: 100%; }
.plan-landing-cta { background: #f4f7ff; }
.plan-landing-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(26px, 5vw, 54px); }
.plan-landing-cta h2 { margin: 8px 0; color: #05265f; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.plan-landing-cta p { margin: 0; color: #667085; }
.plan-landing-cta .btn { flex: 0 0 auto; }
.service-content { padding: 0 0 clamp(64px, 9vw, 120px); }
.service-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); align-items: start; gap: clamp(30px, 7vw, 90px); }
.rich-content { color: var(--ink-soft); font-size: clamp(1rem, .96rem + .2vw, 1.12rem); line-height: 1.8; }
.rich-content h2 { margin: 38px 0 12px; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.rich-content h2:first-child { margin-top: 0; }
.rich-content p + p { margin-top: 18px; }
.service-content aside { position: sticky; top: 104px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.service-content aside h2 { font-size: 1.18rem; }
.service-content aside ul { display: grid; gap: 14px; margin-top: 20px; padding: 0; list-style: none; }
.service-content aside li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--ink-soft); line-height: 1.45; }
.service-content aside li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e9f8ef; color: #087d3c; font-weight: 900; }
.public-plan-comparison { overflow-x: auto; margin-top: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.public-plan-comparison table { width: 100%; min-width: 760px; border-collapse: collapse; }
.public-plan-comparison th, .public-plan-comparison td { padding: 17px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.public-plan-comparison th:first-child { text-align: left; }
.public-plan-comparison thead th { color: var(--ink); font-size: .94rem; }
.public-plan-comparison thead small { display: block; margin-top: 5px; color: var(--slate); font-size: .74rem; font-weight: 600; }
.public-plan-comparison .comparison-group th { background: var(--light); color: var(--blue); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.public-plan-comparison .comparison-value { color: var(--slate); font-weight: 400; }
.public-plan-comparison .comparison-included { color: var(--success); font-size: 1.05rem; font-weight: 900; }
.public-plan-comparison .comparison-not-included { color: var(--slate-light); font-weight: 400; }
/* Columna del plan que se está mirando: se resalta para leer la comparación
   desde el plan de esta página sin perder la referencia al desplazarse. */
.public-plan-comparison thead th.is-current { color: var(--blue); }
.public-plan-comparison th.is-current, .public-plan-comparison td.is-current { background: var(--ultralight); }

/* Landing de plan: elementos de conversión */
.plan-landing-note { margin-top: 22px; }
.plan-landing-badge {
    justify-self: start; padding: 5px 12px; border-radius: var(--radius-pill);
    background: var(--amber-soft); color: #92400e; font-size: .72rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.plan-landing-offer-list { display: grid; gap: 11px; margin: 14px 0 6px; padding: 0; list-style: none; }
.plan-landing-offer-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
.plan-landing-offer-list .check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 11px; font-weight: 900; }
.plan-landing-offer > p { font-size: .88rem; }
.plan-landing-aside-note { display: block; margin-top: 10px; color: var(--slate); font-size: .84rem; text-align: center; }
.service-content aside .btn { margin-top: 22px; }
.plan-landing-note-inline { display: block; margin-top: 10px; color: var(--slate); font-size: .86rem; }
.plan-landing-capacity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.plan-landing-capacity article { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.plan-landing-capacity strong { display: block; color: var(--navy); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 900; letter-spacing: -.03em; }
.plan-landing-capacity span { display: block; margin-top: 6px; color: var(--slate); font-size: .9rem; }
/* Acción principal siempre accesible en pantallas pequeñas. Solo se muestra
   cuando la tarjeta de precio ha dejado de verse y nunca tapa el contenido:
   el cuerpo reserva espacio mientras está visible. */
.plan-landing-sticky {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: none;
    align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 28px rgba(5, 38, 95, .12);
}
.plan-landing-sticky strong { display: block; color: var(--ink); font-size: .95rem; }
.plan-landing-sticky span { display: block; color: var(--slate); font-size: .84rem; }
.plan-landing-sticky .btn { min-height: 46px; }

@media (max-width: 860px) {
    .plan-landing-capacity { grid-template-columns: repeat(2, 1fr); }
    .plan-landing-sticky:not([hidden]) { display: flex; }
    body.has-landing-sticky { padding-bottom: 84px; }
    .service-hero-grid, .service-content-grid { grid-template-columns: 1fr; }
    .service-hero-grid > img { max-width: 620px; margin-inline: auto; }
    .service-content aside { position: static; }
    .plan-landing-cta .container { align-items: stretch; flex-direction: column; }
    .plan-landing-cta .btn { width: 100%; }
}
@media (max-width: 560px) {
    .service-hero { padding-top: 42px; }
    .service-hero .btn-row { display: grid; grid-template-columns: 1fr; }
    .service-hero .btn { width: 100%; }
    .service-content aside { padding: 22px; border-radius: 18px; }
    .plan-landing-capacity { grid-template-columns: 1fr; gap: 12px; }
    .plan-landing-capacity article { padding: 18px 20px; }
    .plan-landing-sticky .btn { padding-inline: 16px; font-size: .92rem; }
}
input::placeholder,
textarea::placeholder {
    color: #7b879b;
    opacity: 1;
    font-style: italic;
}
