/* ═══════════════════════════════════════════════
   saas-public.css — headQ Public Pages
   Midnight Command · v1.0
═══════════════════════════════════════════════ */

:root {
    --navy:        #0F172A;
    --navy-light:  #1E293B;
    /* Navy más profundo — usado en los degradados de transición entre bandas
       oscuras (product showcase, "hecho para empresas", footer) para dar el
       ritmo por capas del sistema, sin sumar un tercer color plano. */
    --navy-deep:   #0B1120;
    --navy-card:   rgba(255, 255, 255, 0.04);
    --navy-border: rgba(255, 255, 255, 0.08);
    --blue:        #0891B2;
    --blue-hover:  #0E7490;
    --blue-light:  #22D3EE;
    --cyan:        #06B6D4;
    /* Acento "Enterprise / premium" del sitio público (violet-400). Estaba
       hardcodeado como #a78bfa / rgba(167,139,250,·) decenas de veces. El par
       hex + triple RGB permite usarlo tanto en `color`/`border` como en
       `rgba(var(--violet-rgb), α)` para los fondos translúcidos. */
    --violet:      #a78bfa;
    --violet-rgb:  167, 139, 250;
    --text:        #F1F5F9;
    --text-dim:    rgba(241, 245, 249, 0.65);
    /* 0.55 (antes 0.38): contraste AA para hints/placeholders sobre --navy. */
    --text-muted:  rgba(241, 245, 249, 0.55);
    /* Escala tipográfica — pasos fijos que reemplazan el enjambre de tamaños
       one-off (0.72/0.775/0.8/0.825/0.845/0.855/0.875/0.9/0.925/0.95/0.975/1…).
       El racimo del cuerpo pequeño (0.845–0.875) se colapsa a --fs-sm; la
       diferencia es sub-píxel. Los títulos grandes siguen con clamp() fluido. */
    --fs-2xs:      0.72rem;
    --fs-xs:       0.78rem;
    --fs-sm:       0.875rem;
    --fs-base:     0.95rem;
    --fs-md:       1rem;
    --fs-lg:       1.15rem;
    --fs-xl:       1.35rem;
    --fs-2xl:      1.5rem;
    /* Radio de tarjetas del sistema (feature/persona/pain/trust/faq). Se
       alinea en 16px con .pricing-card, que ya lo usaba; los botones llevan su
       propio 8–10px explícito y no dependen de este token. */
    --radius:      16px;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Tema oscuro también para los widgets del navegador (popup de <select>,
       scrollbars, autofill): evita opciones blanco-sobre-blanco en Windows. */
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navy-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo { height: 28px; width: auto; }

.nav-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.nav-name span { color: var(--blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 500;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

.nav-cta {
    padding: 8px 18px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    margin-left: 8px;
    transition: background 0.15s;
}
.nav-cta:hover { background: var(--blue-hover); }

/* ── NAV LOGIN POPUP ─────────────────────── */
.nav-login-wrap {
    position: relative;
}
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.nav-login-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-login-chevron {
    transition: transform 0.2s;
}
.nav-login-btn[aria-expanded="true"] .nav-login-chevron {
    transform: rotate(180deg);
}
.nav-login-popup {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: #1a1d2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    z-index: 200;
}
.nav-login-popup.open { display: block; }
.nav-login-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0 0 12px;
}
.nav-login-field {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: border-color 0.15s;
}
.nav-login-field:focus-within {
    border-color: var(--blue);
}
.nav-login-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 9px 10px;
    color: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    min-width: 0;
}
.nav-login-input::placeholder { color: rgba(255,255,255,0.3); }
.nav-login-suffix {
    padding: 0 10px 0 4px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-login-go {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    margin-bottom: 12px;
}
.nav-login-go:hover { background: var(--blue-hover); }
.nav-login-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    text-align: center;
}
.nav-login-hint a {
    color: rgba(255,255,255,0.6);
    text-decoration: underline;
}
.nav-login-hint a:hover { color: #fff; }
.nav-login-toggle {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.nav-login-toggle:hover { color: #fff; }

/* ── NAV BURGER + MENÚ MÓVIL ──────────────── */
/* La hamburguesa solo aparece en ≤720px (regla en el bloque responsive). */
.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 9px;
    border-radius: 8px;
    transition: background 0.15s;
}
.nav-burger:hover { background: rgba(255,255,255,0.06); }
.nav-burger-box { position: relative; width: 22px; height: 16px; }
.nav-burger-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-burger-bar:nth-child(1) { top: 0; }
.nav-burger-bar:nth-child(2) { top: 7px; }
.nav-burger-bar:nth-child(3) { top: 14px; }
.nav-burger.open .nav-burger-bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-burger.open .nav-burger-bar:nth-child(2) { opacity: 0; }
.nav-burger.open .nav-burger-bar:nth-child(3) { top: 7px; transform: rotate(-45deg); }

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;               /* alto del nav */
    left: 0; right: 0;
    z-index: 99;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--navy-border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.nav-mobile.open { display: flex; animation: nav-mobile-in 0.22s ease; }
@keyframes nav-mobile-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-link {
    padding: 13px 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border-bottom: 1px solid var(--navy-border);
    transition: color 0.15s, background 0.15s;
}
.nav-mobile-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-mobile-cta {
    margin-top: 12px;
    padding: 14px;
    text-align: center;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(8,145,178,0.35);
    transition: background 0.15s;
}
.nav-mobile-cta:hover { background: var(--blue-hover); }
@media (prefers-reduced-motion: reduce) {
    .nav-mobile.open { animation: none; }
}
@media (min-width: 721px) {
    .nav-mobile { display: none !important; }
}

/* ── HERO ─────────────────────────────────── */
.hero {
    padding: 168px 24px 88px;
    text-align: center;
    width: 100%;
}
/* Contenedor interior del hero — centra el texto sin confinar la aurora */
.hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--blue-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 26px;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    /* Contraste del hero (WEB): el subtítulo se leía demasiado tenue sobre el
       navy + aurora. Fijado por encima de Slate 400 (#94A3B8) para garantizar
       ≥4.5:1 aun sobre las zonas más claras del glow. */
    color: #C0CBDA;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-note {
    font-size: var(--fs-xs);
    /* Fila de claims bajo el CTA — subida a Slate 400 (#94A3B8) para que deje
       de perderse sobre el navy sin competir con el subtítulo. */
    color: #98A6BC;
}

/* ── HERO PRODUCT ───────────────────────────────
   Vistazo del producto dentro del hero: prueba visual inmediata de que es
   software real, sin reordenar el arco problema→solución (el mockup laptop+phone
   más abajo sigue contando lo de "escritorio + móvil"). Marco de navegador, a
   propósito distinto de los marcos de dispositivo de la sección de mockups. */
.hero-product {
    max-width: 1000px;
    margin: 56px auto 0;
    padding: 0 4px;
}
.hero-browser {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    background: #0d1525;
    box-shadow: 0 30px 80px -24px rgba(8, 145, 178, 0.35),
                0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero-browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}
.hero-browser-url {
    margin-left: 10px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-browser-screen {
    display: block;
    background: #07111f;
}
.hero-browser-screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    /* Gradiente cyan — el CTA primario es el elemento más fuerte de cada
       sección donde aparece; el degradado azul→cian lo separa del sólido de
       nav/outline y hace eco del gradiente del título del hero. */
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    transition: filter 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.35);
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 15px 24px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--navy-border);
    transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.18); }

/* ── SECTION WRAPPER ─────────────────────────── */
.section {
    /* Espaciado vertical fluido (escala del design system): más aire en
       desktop, se comprime solo en pantallas chicas. El ancho de contenido
       sigue topado; las bandas full-bleed pintan el fondo a 100vw aparte. */
    padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 48px);
    max-width: 1120px;
    margin: 0 auto;
}

.section-label {
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--blue-light);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-align: center;
    margin-bottom: 14px;
}

.section-subtitle {
    /* Subtítulo de sección más grande (antes --fs-base 0.95rem): funciona como
       punto de anclaje bajo el título, no como cuerpo pequeño. */
    font-size: 1.075rem;
    color: var(--text-dim);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

.divider {
    height: 1px;
    background: var(--navy-border);
    max-width: 1120px;
    margin: 0 auto;
}

/* ── RITMO DE SECCIONES — bandas full-bleed ───────────────────────
   Rompen la monotonía del muro navy sin envolver cada sección en un
   wrapper: el fondo se pinta con un ::before a 100vw (body ya tiene
   overflow-x:hidden, así que no genera scroll horizontal). Los .divider
   existentes siguen enmarcando cada banda.
     · --band      : relleno plano, apenas más claro que el fondo.
     · --spotlight : glow radial azul/cian para destacar el producto.
     · --band       : relleno plano, apenas más claro que el fondo.
     · --spotlight  : glow radial azul/cian para destacar el producto.
     · --deep-top   : degradado navy-deep → navy (la banda "baja" desde lo oscuro).
     · --deep-bottom: degradado navy → navy-deep (la banda "cae" hacia lo oscuro).
     · --light      : banda clara (#F8FAFC) — el ÚNICO segundo color de fondo del
                      sitio (navy + este). Reservada para precios. Reescribe los
                      tokens de texto/tarjeta dentro de la banda para que las
                      primitivas compartidas (section-*, pricing-*) se adapten. */
.section--band, .section--spotlight, .section--light,
.section--deep-top, .section--deep-bottom { position: relative; }
.section--band > *, .section--spotlight > *, .section--light > *,
.section--deep-top > *, .section--deep-bottom > * { position: relative; z-index: 1; }
.section--band::before, .section--spotlight::before, .section--light::before,
.section--deep-top::before, .section--deep-bottom::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}
.section--band::before {
    background: rgba(255, 255, 255, 0.022);
}
.section--spotlight::before {
    background: radial-gradient(ellipse 55% 60% at 50% 42%,
                rgba(59,130,246,0.10) 0%, rgba(6,182,212,0.05) 42%, transparent 72%);
}
.section--deep-top::before {
    background: linear-gradient(180deg, var(--navy-deep), var(--navy));
    border-top: 1px solid var(--navy-border);
}
.section--deep-bottom::before {
    background: linear-gradient(180deg, var(--navy), var(--navy-deep));
    border-top: 1px solid var(--navy-border);
}
.section--light::before {
    background: #F8FAFC;
}
/* Tokens re-mapeados dentro de la banda clara: todo lo que use var(--text*),
   var(--navy-card) o var(--navy-border) cambia a su equivalente sobre claro.
   Ratios sobre #F8FAFC: dim #475569 ≈ 7.3:1, muted #64748B ≈ 4.6:1. */
.section--light {
    --text:        #0F172A;
    --text-dim:    #475569;
    --text-muted:  #64748B;
    --navy-card:   #FFFFFF;
    --navy-border: #E2E8F0;
}
.section--light .section-title { color: #0F172A; }
.section--light .section-label { color: #0E7490; }

/* ── FEATURES ─────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 26px 22px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.04);
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--blue-light);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.feature-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.68;
}

/* Feature card highlight (Control de Cumplimiento) */
.feature-card--highlight {
    border-color: rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, rgba(6,182,212,0.06) 0%, rgba(59,130,246,0.04) 100%);
}
.feature-card--highlight:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(59,130,246,0.06) 100%);
}
.feature-card--highlight .feature-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #06B6D4;
}

/* ── EXPLORE LINKS — enlaces secundarios (caso de uso / sector) ────
   Antes estos 7 enlaces SEO eran .feature-card de igual peso que los
   features de producto, saturando la grilla con 15 ítems. Ahora van como
   chips en línea, claramente secundarios. */
.explore {
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.explore-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.explore-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.explore-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 99px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
}
.explore-link svg {
    width: 15px;
    height: 15px;
    color: var(--blue-light);
    flex-shrink: 0;
}
.explore-link:hover {
    border-color: rgba(59,130,246,0.4);
    background: rgba(59,130,246,0.06);
    color: #fff;
    transform: translateY(-1px);
}

/* ── PAIN SECTION ────────────────────────────── */
.pain-section {}
/* La etiqueta de sección va en el mismo rojo que el border-left de las tarjetas
   (en vez del cyan por defecto): refuerza que este bloque es "el problema". */
.pain-section .section-label { color: #EF4444; }
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.pain-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px;
    /* Tarjeta oscura estándar con un acento rojo solo en el borde izquierdo.
       Antes era fondo + borde rojos en las 6-7 tarjetas: seis bloques rojos
       seguidos se leían como "muro de alerta". El acento comunica el mismo
       "esto duele" sin saturar. */
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-left: 4px solid #EF4444;
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}
.pain-item:hover {
    border-color: rgba(59, 130, 246, 0.28);
    border-left-color: #F87171;
    background: rgba(239, 68, 68, 0.05);
}
.pain-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
}
.pain-icon svg { width: 18px; height: 18px; }
.pain-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pain-text strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.pain-text span {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.55;
}

/* ── PRICING ─────────────────────────────────── */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    align-items: stretch;
}

.pricing-card {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 16px;
    padding: 32px 26px;
    width: 240px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}
.pricing-card.featured {
    border-color: var(--blue);
    border-width: 2px;
    background: linear-gradient(160deg, rgba(8,145,178,0.12) 0%, rgba(59,130,246,0.07) 100%);
    box-shadow: 0 0 0 1px rgba(8,145,178,0.2), 0 12px 40px rgba(8,145,178,0.18);
    transform: scale(1.03);
    z-index: 1;
}
/* Card Trial — borde discontinuo para diferenciar de planes pagados */
.pricing-card.trial-card {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.14);
    opacity: 0.92;
}
.pricing-card:hover { border-color: rgba(59,130,246,0.35); }
.pricing-card.trial-card:hover { border-color: rgba(255,255,255,0.28); border-style: dashed; }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
}
/* Badge del plan Trial — verde para diferenciarlo del azul del Pro */
.pricing-badge.trial-badge {
    background: #16a34a;
}

.pricing-tier {
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-price-prefix {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    vertical-align: super;
}

.pricing-period {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: 22px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: var(--fs-sm);
    color: var(--text-dim);
    line-height: 1.4;
}

.pricing-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 1px;
    color: var(--blue-light);
}
.pricing-check svg { width: 16px; height: 16px; }

.pricing-btn {
    display: block;
    padding: 11px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pricing-btn-solid {
    /* Mismo gradiente cyan que .btn-primary: el CTA del plan destacado (Growth)
       es el elemento más fuerte de la grilla de precios. */
    background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(8,145,178,0.35);
    font-size: 0.925rem;
    padding: 13px;
}
.pricing-btn-solid:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 24px rgba(6,182,212,0.5);
    transform: translateY(-2px);
}
.pricing-btn-outline {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.22);
}
.pricing-btn-outline:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.38);
    color: #fff;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
    padding: 32px 48px;
    border-top: 1px solid var(--navy-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--text-dim); }
.footer-sep { color: var(--navy-border); font-size: 0.8rem; }
.footer-copy { font-size: 0.775rem; color: var(--text-muted); }
.footer p { font-size: 0.825rem; color: var(--text-muted); }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text-dim); }

/* ── AUTH SPLIT-PANEL ─────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
}

.auth-brand {
    width: 400px;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, #162032 100%);
    border-right: 1px solid var(--navy-border);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    margin-bottom: 48px;
}
.auth-brand-logo img { height: 36px; width: auto; }
.auth-brand-logo-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.auth-brand-logo-name span { color: var(--blue); }

.auth-brand-headline {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.auth-brand-subheadline {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 40px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-light);
}
.auth-feature-icon svg { width: 18px; height: 18px; }

.auth-feature-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.auth-feature-text p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.auth-brand-footer {
    font-size: 0.775rem;
    color: var(--text-muted);
    border-top: 1px solid var(--navy-border);
    padding-top: 20px;
    margin-top: 32px;
}

/* Auth form panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 40px 40px;
    overflow-y: auto;
    background: var(--navy-light);
}

.auth-form-container {
    width: 100%;
    max-width: 460px;
}

.form-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.form-alert {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #FCA5A5;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.form-divider {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 22px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--navy-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group { margin-bottom: 14px; }

.form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.82);
    margin-bottom: 5px;
}
.form-label .req { color: #F87171; margin-left: 2px; }

.form-control {
    width: 100%;
    padding: 9px 13px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--navy-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font);
    transition: border-color 0.15s, background 0.15s;
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.04);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: rgba(239, 68, 68, 0.5); }

/* ── Selects ────────────────────────────────── */
/* `appearance: none` elimina la flecha nativa: se repone una propia para
   que el control se distinga de un input de texto. */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}
/* El popup nativo de <option> no hereda el tema de la página: sin esto,
   en Windows/Linux el desplegable sale con fondo claro del UA y texto
   claro heredado (opciones "en blanco", ilegibles). `color-scheme: dark`
   (en :root) alinea el popup con el tema; esto fija los colores. */
select.form-control option {
    background-color: var(--navy-light);
    color: var(--text);
}

.input-group { position: relative; }
.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.775rem;
    color: var(--text-muted);
    pointer-events: none;
    white-space: nowrap;
}

.form-feedback {
    margin-top: 4px;
    font-size: 0.775rem;
    min-height: 16px;
}
.form-feedback.ok { color: #34D399; }
.form-feedback.err { color: #F87171; }

.form-help {
    margin-top: 4px;
    font-size: 0.775rem;
    color: var(--text-muted);
}

.form-field-error {
    margin-top: 4px;
    font-size: 0.775rem;
    color: #F87171;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}
.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--blue);
    cursor: pointer;
    flex-shrink: 0;
}
.form-checkbox label {
    font-size: 0.825rem;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1.5;
}
.form-checkbox a { color: var(--blue-light); text-decoration: none; }

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    transition: background 0.15s, transform 0.1s;
}
.btn-submit:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-submit:active { transform: none; }

.auth-footer-note {
    margin-top: 18px;
    text-align: center;
    font-size: 0.825rem;
    color: var(--text-muted);
}
.auth-footer-note a { color: var(--blue-light); text-decoration: none; }

/* ── STATUS PAGES ─────────────────────────────── */
.status-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.status-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 48px 40px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 20px;
}

.status-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.status-icon svg { width: 32px; height: 32px; }
.status-icon.success { background: rgba(52, 211, 153, 0.12); color: #34D399; }
.status-icon.warning { background: rgba(251, 191, 36, 0.12); color: #FBBF24; }
.status-icon.error   { background: rgba(248, 113, 113, 0.12); color: #F87171; }

.status-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.status-text {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 6px;
}

.status-domain-box {
    display: inline-block;
    margin: 18px 0 24px;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 8px;
    color: var(--blue-light);
    font-weight: 700;
    font-size: 0.975rem;
    text-decoration: none;
    transition: background 0.15s;
}
.status-domain-box:hover { background: rgba(59, 130, 246, 0.18); }

.status-steps {
    text-align: left;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--navy-border);
    border-radius: 10px;
    padding: 4px 0;
    margin: 20px 0 28px;
}

.status-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--navy-border);
}
.status-step:last-child { border-bottom: none; }

.status-step-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--blue);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.status-step p {
    font-size: 0.845rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.status-step strong { color: var(--text); }

.status-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.15s;
}
.status-back:hover { color: var(--text-dim); }

/* Botón CTA en páginas de estado (verify_email, etc.) */
.status-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: #6366f1;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.18s;
}
.status-cta:hover { background: #4f46e5; }
.status-cta--outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
}
.status-cta--outline:hover { border-color: #6366f1; color: #6366f1; background: transparent; }

/* ── TRUST STRIP (Social Proof) ─────────────────── */
/* Tira de capacidades. Antes se estilizaba como una fila de estadísticas
   (números grandes) pero sus "valores" eran palabras — "Minutos", "Sin papel" —
   sin cifra detrás. Ahora son chips con ícono + título + subtítulo: comunican lo
   mismo sin aparentar métricas que no existen. */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 52px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 18px 18px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}
.trust-item:hover {
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(59, 130, 246, 0.04);
}

.trust-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-light);
}
.trust-icon svg { width: 17px; height: 17px; }

.trust-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.trust-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.trust-eyebrow {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Nota: aquí vivían los estilos .clients-*/.client-logo-*/.case-card*/.case-stat*
   del caso de cliente (Domani / Ramblas). Se eliminaron junto con sus imágenes:
   esas empresas ya no son clientes y el caso hace tiempo no se renderiza en
   ninguna plantilla (ver docs/plan-mejoras-sitio-publico.md, ítem 26). */

/* ── PERSONAS GRID (Social Proof) ─────────────── */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.persona-card {
    padding: 28px 24px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}
.persona-card:hover {
    border-color: rgba(59,130,246,0.28);
    background: rgba(59,130,246,0.04);
}

.persona-icon {
    width: 44px;
    height: 44px;
    background: rgba(59,130,246,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--blue-light);
}
.persona-icon svg { width: 22px; height: 22px; }
.persona-icon svg { transition: transform 0.3s ease; }
.persona-card:hover .persona-icon svg {
    transform: rotate(8deg) scale(1.12);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.persona-card h3 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.persona-card p {
    font-size: var(--fs-sm);
    color: var(--text-dim);
    line-height: 1.65;
}

/* ── FAQ SECTION ─────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-item {
    padding: 24px 26px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(59,130,246,0.22); }

.faq-q {
    font-size: var(--fs-base);
    font-weight: 700;
    color: #fff;
    margin-bottom: 9px;
    line-height: 1.4;
}

.faq-a {
    font-size: var(--fs-sm);
    color: var(--text-dim);
    line-height: 1.72;
}

/* ── FAQ ACORDEÓN (oscuro, una sola columna) ───────────────────────
   Estilo del design system: tarjetas .faq-acc-item sobre navy, una columna
   centrada, chevron cyan que rota. El toggle (display de .faq-body + rotación
   de .faq-chevron) lo maneja el listener global de .faq-btn en
   base_public.html. Clases propias (.faq-acc*) para no chocar con la grilla
   estática .faq-grid/.faq-item que reusa pricing.html. */
.faq-acc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}
.faq-acc-item {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-acc-item:hover { border-color: rgba(59,130,246,0.22); }
.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--fs-base);
    font-weight: 600;
    color: #fff;
    text-align: left;
    line-height: 1.4;
}
.faq-btn:hover { color: var(--blue-light); }
.faq-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.faq-chevron {
    flex-shrink: 0;
    color: var(--blue-light);
    transition: transform 0.25s ease;
}
/* Rotación inicial del ítem abierto por defecto; tras el primer clic el JS de
   base_public.html toma el control vía transform inline (mismo resultado). */
.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-body {
    display: none;               /* colapsado por defecto; el ítem abierto lo
                                    fuerza con display:block inline. */
    padding: 0 24px 22px;
    font-size: var(--fs-sm);
    color: var(--text-dim);
    line-height: 1.72;
}
.faq-body strong { color: #fff; }
.faq-body a { color: var(--blue-light); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
    .faq-chevron { transition: none; }
}

/* ── PANEL "FLEXIBLE POR DISEÑO" ───────────────────────────────────
   La sección de puntos operativos va dentro de un panel navy-light redondeado
   con la lista en filas (ícono + título + texto) separadas por hairlines, en
   vez de una grilla de tarjetas sueltas. */
.flex-panel {
    background: var(--navy-light);
    border: 1px solid var(--navy-border);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 52px);
}
.flex-list { display: flex; flex-direction: column; }
.flex-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
    border-top: 1px solid var(--navy-border);
}
.flex-row:first-child { border-top: none; padding-top: 4px; }
.flex-row-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59,130,246,0.12);
    color: var(--blue-light);
}
.flex-row-icon svg { width: 20px; height: 20px; }
.flex-row h3 { font-size: var(--fs-md); font-weight: 700; color: #fff; margin-bottom: 5px; }
.flex-row p { font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.6; }

/* ── CASOS DE USO — tarjetas horizontales (estilo v2) ──────────────
   Una sola columna, ícono a la izquierda y separación clara entre tarjetas.
   Reemplaza la grilla de 3 columnas que, apilada en pantallas chicas, dejaba
   las tarjetas casi pegadas y se leían como un solo bloque. */
.usecase-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 940px;
    margin: 0 auto;
}
.usecase-card {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 28px 30px;
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}
.usecase-card:hover {
    border-color: rgba(59,130,246,0.28);
    background: rgba(59,130,246,0.04);
}
.usecase-ic {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59,130,246,0.12);
    color: var(--blue-light);
}
.usecase-ic svg { width: 22px; height: 22px; transition: transform 0.3s ease; }
.usecase-card:hover .usecase-ic svg { transform: rotate(8deg) scale(1.1); }
.usecase-card h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}
.usecase-card p {
    font-size: var(--fs-sm);
    color: var(--text-dim);
    line-height: 1.65;
}
@media (max-width: 560px) {
    .usecase-card { flex-direction: column; gap: 14px; padding: 24px 22px; }
}

/* ── PRECIOS SOBRE BANDA CLARA ─────────────────────────────────────
   La grilla de precios es la única banda #F8FAFC del sitio. El re-mapeo de
   tokens de .section--light vuelve blancas las tarjetas y oscuro el texto; lo
   de abajo arregla los #fff hardcodeados y devuelve al modo oscuro las dos
   "islas" que siguen siendo navy: la tarjeta destacada y el bloque corporativo. */
.section--light .pricing-card { box-shadow: var(--shadow-sm, 0 1px 3px rgba(15,23,42,0.08)); }
.section--light .pricing-card:not(.featured) .pricing-price { color: #0F172A; }
.section--light .pricing-card:not(.featured) .pricing-check { color: var(--blue); }
.section--light .pricing-btn-outline {
    background: #fff;
    border: 1px solid var(--gray-300, #CBD5E1);
    color: #334155;
}
.section--light .pricing-btn-outline:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
}
/* Isla oscura #1 — plan destacado: navy sobre la banda clara (contraste v2).
   Re-remapea los tokens a modo oscuro para que su interior vuelva a ser claro. */
.section--light .pricing-card.featured {
    --text-dim:    rgba(241, 245, 249, 0.72);
    --text-muted:  rgba(241, 245, 249, 0.55);
    background: linear-gradient(160deg, var(--navy) 0%, #16233c 100%);
    border: 2px solid var(--blue);
    box-shadow: 0 20px 40px -8px rgba(8,145,178,0.28);
}
.section--light .pricing-card.featured .pricing-tier { color: var(--blue-light); }
.section--light .pricing-card.featured .pricing-price { color: #fff; }
/* Isla oscura #2 — bloque corporativo/Enterprise (mismos estilos inline que ya
   funcionan sobre navy; solo le devolvemos el fondo oscuro y los tokens claros). */
.section--light .pricing-corp {
    --text-dim:    rgba(241, 245, 249, 0.65);
    --text-muted:  rgba(241, 245, 249, 0.55);
    background: var(--navy);
    border-radius: 20px;
    padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 40px);
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.25);
}

/* ── MID-PAGE CTA ─────────────────────────────── */
.midcta {
    padding: 88px 24px;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(59,130,246,0.07) 0%,
        rgba(6,182,212,0.05) 100%);
    border-top: 1px solid rgba(59,130,246,0.14);
    border-bottom: 1px solid rgba(59,130,246,0.14);
}

.midcta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.midcta .section-label {
    margin-bottom: 18px;
}

.midcta-title {
    font-size: clamp(1.65rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 14px;
}

.midcta-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ── PRODUCT MOCKUP ──────────────────────────── */
.mockups-section { overflow: visible; }

.mockups-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Laptop frame */
.mockup-laptop {
    flex-shrink: 0;
    transform: perspective(1400px) rotateX(6deg);
    filter: drop-shadow(0 28px 48px rgba(59,130,246,0.22));
    transform-origin: center bottom;
    transition: transform .5s cubic-bezier(.22,1,.36,1), filter .5s ease;
}
.mockup-laptop:hover {
    transform: perspective(1400px) rotateX(2deg);
    filter: drop-shadow(0 18px 36px rgba(59,130,246,0.32));
}
.mockup-laptop-lid {
    width: 560px;
    background: #0d1525;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 8px;
}
.mockup-laptop-cam {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.06);
}
.mockup-laptop-screen {
    width: 100%;
    aspect-ratio: 16/10;
    background: #07111f;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.mockup-laptop-screen img { width:100%; height:100%; object-fit:contain; display:block; background:#07111f; }
.mockup-laptop-hinge {
    height: 5px;
    background: linear-gradient(to bottom, #1a2540, #0e1828);
    border-left: 1.5px solid rgba(255,255,255,0.08);
    border-right: 1.5px solid rgba(255,255,255,0.08);
}
.mockup-laptop-base {
    height: 20px;
    background: linear-gradient(to bottom, #131d2f, #0c1422);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: flex; align-items: center; justify-content: center;
}
.mockup-laptop-notch {
    width: 60px; height: 3px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
}

/* Phone frame */
.mockup-phone {
    flex-shrink: 0;
    transform: perspective(900px) rotateY(8deg) rotateX(3deg);
    filter: drop-shadow(10px 28px 40px rgba(6,182,212,0.18));
    transform-origin: center bottom;
    transition: transform .5s cubic-bezier(.22,1,.36,1), filter .5s ease;
    margin-bottom: 22px;
}
.mockup-phone:hover {
    transform: perspective(900px) rotateY(3deg) rotateX(1deg);
    filter: drop-shadow(4px 16px 28px rgba(6,182,212,0.28));
}
.mockup-phone-inner {
    width: 196px;
    background: #0d1525;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 36px;
    padding: 16px 10px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.mockup-phone-speaker {
    width: 48px; height: 4px;
    background: rgba(255,255,255,0.10);
    border-radius: 2px;
}
.mockup-phone-screen {
    width: 100%;
    aspect-ratio: 9/19;
    background: #07111f;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.mockup-phone-screen img { width:100%; height:100%; object-fit:contain; display:block; background:#07111f; }
.mockup-phone-bar {
    width: 68px; height: 4px;
    background: rgba(255,255,255,0.13);
    border-radius: 2px;
}

/* (Los estilos de skeleton .msk-* se eliminaron: los mockups usan screenshots
   reales —planificador_web.png / PWA.png—, así que ninguna plantilla los usaba.) */

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pain-grid { grid-template-columns: repeat(2, 1fr); }
    .personas-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .auth-brand { width: 340px; padding: 40px 28px; }
    .mockup-laptop-lid { width: 400px; }
    .mockup-laptop { transform: perspective(1000px) rotateX(4deg); }
    .mockup-phone  { transform: perspective(700px)  rotateY(6deg) rotateX(2deg); }
    .mockup-phone  { transform: perspective(600px)  rotateY(7deg)  rotateX(1deg); }
}

@media (max-width: 720px) {
    .nav { padding: 0 20px; }
    /* Oculta el nav de escritorio COMPLETO (enlaces + CTA + popup de login) y
       muestra la hamburguesa; el panel #nav-mobile repone el acceso. */
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .hero { padding: 130px 20px 56px; }
    .hero-product { margin-top: 40px; }
    .section { padding: 56px 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr; }
    .personas-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    /* Mockup: apilados verticalmente en mobile */
    .mockups-stage { flex-direction: column; align-items: center; gap: 40px; }
    .mockup-laptop { width: 100%; max-width: 360px; transform: none; filter: drop-shadow(0 12px 32px rgba(59,130,246,0.18)); }
    .mockup-laptop-lid { width: 100%; }
    .mockup-phone { transform: none; filter: drop-shadow(0 12px 24px rgba(6,182,212,0.22)); margin-bottom: 0; }
    .trust-strip { grid-template-columns: 1fr; }
    .midcta { padding: 64px 20px; }
    .auth-brand { display: none; }
    .auth-form-panel { padding: 48px 20px 32px; background: var(--navy); }
    .form-row { grid-template-columns: 1fr; }
    .pricing-grid { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 360px; }
    /* La tarjeta destacada usa scale(1.03) en desktop para "levantarse" de la
       fila; a 100% de ancho en móvil eso la desborda, así que se anula. */
    .pricing-card.featured { transform: none; }
    .footer { justify-content: center; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   MODERN JS EFFECTS — saas-effects.js  v2 (safe)
   REGLA DE ORO: nunca arrancar con opacity:0 en CSS puro.
   Las animaciones de entrada usan solo transform (opacity siempre 1).
   JS agrega clases para efectos avanzados.
   ═══════════════════════════════════════════════════════════════ */

/* ── Overflow-x global ────────────────────────────────────────── */
html, body { overflow-x: hidden; }

/* ── 1. Aurora — CSS puro vía ::before (sin canvas JS, sin riesgo de layout) ── */
/*
 * Implementada con múltiples radial-gradient animados en el pseudo-elemento ::before.
 * No requiere JS. Nunca puede desplazar contenido. 100% cross-browser.
 */
@keyframes aurora-drift {
    0%   { background-position: 20% 30%, 75% 60%, 50% 10%; }
    33%  { background-position: 35% 55%, 60% 30%, 65% 40%; }
    66%  { background-position: 15% 70%, 80% 20%, 40% 65%; }
    100% { background-position: 20% 30%, 75% 60%, 50% 10%; }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 60% 55% at 20% 30%, rgba(59,130,246,0.20) 0%, transparent 70%),
        radial-gradient(ellipse 55% 50% at 75% 60%, rgba(6,182,212,0.18)  0%, transparent 70%),
        radial-gradient(ellipse 45% 45% at 50% 10%, rgba(139,92,246,0.16) 0%, transparent 70%);
    background-size: 200% 200%;
    background-position: 20% 30%, 75% 60%, 50% 10%;
    animation: aurora-drift 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero::before { animation: none; }
}

/* Asegura que el contenido del hero siempre esté sobre el pseudo-elemento aurora */
.hero > * {
    position: relative;
    z-index: 1;
}

/* ── 2. Card tilt ─────────────────────────────────────────────── */
.tilt-card {
    --tilt-x: 50%;
    --tilt-y: 50%;
    position: relative;
    /* Crea contexto de apilamiento propio para que ::after (z-index:-1) quede
       siempre sobre el fondo de la tarjeta y bajo su contenido. */
    isolation: isolate;
    will-change: transform;
}
/* El brillo que sigue al cursor vive en su propia capa, NO en el `background`
   de la tarjeta. Pintarlo sobre el background borraba el fondo real: sobre la
   banda clara (.section--light) --navy-card es #FFFFFF, y la tarjeta destacada
   —navy con texto blanco— se volvía blanca sobre blanco al pasar el mouse. */
.tilt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: radial-gradient(circle at var(--tilt-x) var(--tilt-y),
                rgba(59, 130, 246, 0.10) 0%, transparent 60%);
}
.tilt-card.is-tilting::after { opacity: 1; }

/* ── 3. Password strength ─────────────────────────────────────── */
.pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.pw-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}
.pw-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: transparent;
    transition: width 0.4s cubic-bezier(0.22,1,0.36,1),
                background 0.3s ease;
}
.pw-label {
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 70px;
    transition: color 0.3s ease;
    letter-spacing: 0.03em;
}

/* ── 4. Glow border (sin @property — amplio soporte) ─────────── */
/* Usa box-shadow pulsante en lugar de conic-gradient animado.     */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 1.5px #0891B2, 0 0 18px 2px rgba(8,145,178,0.25); }
    50%       { box-shadow: 0 0 0 1.5px #06B6D4, 0 0 28px 4px rgba(6,182,212,0.35); }
}
.glow-border {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ── 5. Cursor glow ───────────────────────────────────────────── */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
}

/* ── 6. Slug input focus glow ────────────────────────────────── */
.input-focus-glow {
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25),
                0 0 20px rgba(59,130,246,0.08) !important;
}
.input-suffix { transition: transform 0.15s ease; }

/* ── Hero: animaciones solo con transform (opacity siempre 1) ─── */
/* SEGURO: aunque la animación no cargue, el texto sigue visible.  */
.js-fx .hero-badge {
    animation: badge-in 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes badge-in {
    from { transform: translateY(-14px) scale(0.88); }
    to   { transform: translateY(0)     scale(1);    }
}

.js-fx .hero-title {
    animation: slide-up 0.75s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}
.js-fx .hero-subtitle {
    animation: slide-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.22s forwards;
}
.js-fx .hero-actions {
    animation: slide-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.34s forwards;
}
.js-fx .hero-note {
    animation: slide-up 0.7s cubic-bezier(0.22,1,0.36,1) 0.44s forwards;
}
@keyframes slide-up {
    from { transform: translateY(18px); }
    to   { transform: translateY(0);    }
}

/* ── Feature icon on hover ────────────────────────────────────── */
.feature-icon svg { transition: transform 0.3s ease; }
.feature-card:hover .feature-icon svg {
    transform: rotate(8deg) scale(1.12);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Nav scrolled ─────────────────────────────────────────────── */
.nav.scrolled {
    background: rgba(15,23,42,0.97);
    box-shadow: 0 1px 32px rgba(0,0,0,0.35);
}

/* ── Reduce motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .js-fx .hero-badge, .js-fx .hero-title,
    .js-fx .hero-subtitle, .js-fx .hero-actions,
    .js-fx .hero-note, .glow-border {
        animation: none;
    }
    .pw-bar-fill { transition: none; }
}
