/* ProyectaFin Landing — tokens y primitivos alineados con proyectate-front */

:root {
    /* Aliases app */
    --pf-text: var(--text);
    --pf-text-secondary: var(--text-secondary);
    --pf-text-muted: var(--text-muted);
    --pf-page-bg: var(--page-bg);
    --pf-card-bg: var(--card-bg);
    --pf-border: var(--border);
    --pf-brand: var(--blue);
    --pf-brand-bright: var(--blue-bright);
    --pf-green: var(--green);
    --pf-glass-bg: var(--glass-bg);
    --pf-glass-border: var(--glass-border);
    --pf-glass-highlight: var(--glass-highlight);
    --pf-glass-blur: var(--glass-blur);
    --pf-glass-shadow: var(--glass-shadow);
    --pf-plan-card-radius: var(--radius-lg);
    --pf-plan-card-popular-border: rgba(59, 130, 246, 0.3);
    --pf-plan-card-popular-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
    --pf-text-on-dark: var(--text-on-dark);
    --pf-on-dark-muted: var(--on-dark-muted);
    --pf-on-dark-faint: var(--on-dark-faint);
    --pf-accent-on-dark: var(--accent-on-dark);
    --pf-border-strong: var(--border-strong);
    --pf-pos-text: var(--pos-text);
    --pf-neg-text: var(--neg-text);
    --pf-font-mono: var(--font-mono);

    /* Tipografía */
    --pf-text-hero: clamp(2.25rem, 6vw, 4.5rem);
    --pf-text-section-title: 2.5rem;
    --pf-text-panel-title: 1.125rem;
    --pf-text-page-subtitle: 1rem;
    --pf-text-body: 1rem;
    --pf-text-caption: 0.75rem;
    --pf-text-display: 1.5rem;
    --pf-text-kpi-value: 1.375rem;
    --pf-text-toolbar-label: var(--pf-text-panel-title);

    /* Espaciado 8pt */
    --pf-space-xs: 4px;
    --pf-space-sm: 8px;
    --pf-space-md: 12px;
    --pf-space-lg: 16px;
    --pf-space-xl: 24px;
    --pf-space-2xl: 32px;
    --pf-space-3xl: 64px;

    --pf-layout-section-gap: var(--pf-space-lg);
    --pf-layout-section-padding-y: 6.25rem;
    --pf-layout-page-gutter: 24px;
    --pf-layout-page-gutter-mobile: 12px;
    --pf-layout-grid-gap: var(--pf-space-lg);
    --pf-layout-inline-gap: var(--pf-space-md);
    --pf-layout-inline-gap-tight: var(--pf-space-sm);
    --pf-layout-kpi-min-col: 200px;

    /* Controles */
    --pf-control-height-md: 2.5rem;
    --pf-control-height-sm: 2rem;
    --pf-control-height-lg: 2.75rem;
    --pf-control-padding-x-md: 1rem;
    --pf-control-padding-x-sm: 0.75rem;
    --pf-control-radius-md: 10px;
    --pf-control-radius-sm: 8px;
    --pf-btn-secondary-bg: var(--card-bg);
    --pf-btn-secondary-text: var(--text);
    --pf-btn-secondary-border: var(--border-strong);
    --pf-btn-secondary-hover-bg: var(--card-bg);
    --pf-btn-secondary-hover-text: var(--text);
    --pf-btn-secondary-hover-border: var(--text-muted);
}

/* --- Layout shell --- */
.landing-page {
    display: flex;
    flex-direction: column;
}

.landing-page .container {
    max-width: 1200px;
    padding-left: var(--pf-layout-page-gutter);
    padding-right: var(--pf-layout-page-gutter);
}

.landing-section {
    padding-top: var(--pf-layout-section-padding-y);
    padding-bottom: var(--pf-layout-section-padding-y);
}

/* El orden del DOM y la historia visual coinciden para navegación, SEO y lectores de pantalla. */
.landing-page .home-story {
    display: flex;
    flex-direction: column;
}

.landing-page .home-story > section {
    width: 100%;
    scroll-margin-top: var(--pf-space-3xl);
}

.landing-section__header,
.landing-page .section-header {
    max-width: 62ch;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: var(--pf-space-3xl);
    text-align: left;
}

/* El cierre navy conserva el eje central. */
.landing-page .cta-section .section-header {
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.landing-section__header h2,
.landing-page .section-header h2 {
    font-size: var(--pf-text-section-title);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pf-text);
}

.landing-section__header p,
.landing-page .section-header p {
    font-size: var(--pf-text-page-subtitle);
    color: var(--pf-text-secondary);
    line-height: 1.7;
}

/* --- Botones (tiers app) --- */
.landing-page .btn {
    min-height: var(--pf-control-height-md);
    padding: 0 var(--pf-control-padding-x-md);
    font-size: var(--pf-text-body);
    border-radius: var(--pf-control-radius-md);
    gap: var(--pf-layout-inline-gap-tight);
}

.landing-page .btn-sm {
    min-height: var(--pf-control-height-sm);
    padding: 0 var(--pf-control-padding-x-sm);
    font-size: var(--pf-text-body);
    font-weight: 600;
    border-radius: var(--pf-control-radius-sm);
}

.landing-page .btn-lg {
    min-height: var(--pf-control-height-lg);
    padding: 0 calc(var(--pf-control-padding-x-md) + 4px);
    font-size: var(--pf-text-body);
    font-weight: 700;
    border-radius: var(--pf-control-radius-md);
}

.landing-page .btn-secondary {
    background: var(--pf-btn-secondary-bg);
    color: var(--pf-btn-secondary-text);
    border: 1px solid var(--pf-btn-secondary-border);
    font-weight: 600;
}

.landing-page .btn-secondary:hover {
    background: var(--pf-btn-secondary-hover-bg);
    color: var(--pf-btn-secondary-hover-text);
    border-color: var(--pf-btn-secondary-hover-border);
    transform: translateY(-1px);
}

.landing-page .btn-on-dark,
.landing-page .btn-white {
    background: var(--pf-btn-secondary-bg);
    color: var(--pf-btn-secondary-text);
    border: 1px solid var(--pf-btn-secondary-border);
    font-weight: 600;
}

.landing-page .btn-on-dark:hover,
.landing-page .btn-white:hover {
    background: var(--pf-btn-secondary-hover-bg);
    color: var(--pf-btn-secondary-hover-text);
    border-color: var(--pf-btn-secondary-hover-border);
    box-shadow: 0 4px 20px rgba(76, 141, 255, 0.2);
    transform: translateY(-1px);
}

.landing-page .plan-card .plan-cta.btn-secondary {
    width: 100%;
}

.landing-page .plan-card-popular .plan-cta.btn-primary {
    width: 100%;
}

/* --- Glass card base --- */
.pf-glass-card,
.landing-page .feature-card,
.landing-page .doubt-card,
.landing-page .integration-card,
.landing-page .email-compare-card,
.landing-page .step-card,
.landing-page .plan-card,
.landing-page .nw-card,
.landing-page .currency-card,
.landing-page .control-mock,
.landing-page .patrimonio-mock {
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.landing-page .currency-card {
    background: var(--pf-card-bg);
}

/* --- KPI strip --- */
.pf-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--pf-layout-grid-gap);
}

.pf-kpi-strip--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Tres expansiones: Familia, Propiedades y Herencia. */
.landing-page .solutions-grid--expansions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}



.landing-page .social-proof .hero-countries {
    justify-content: center;
    margin-top: var(--pf-space-lg);
}

.landing-page .result-rail {
    padding-top: var(--pf-space-2xl);
    padding-bottom: var(--pf-space-2xl);
}

.landing-page .result-rail .proof-stats {
    gap: var(--pf-space-2xl);
}

/* Un capítulo editorial: evidencia de patrimonio + tres resultados. */
/* Visual a la izquierda para contrastar con Finn (texto → mock). */
.landing-page .product-chapter-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--pf-space-3xl);
    align-items: center;
}

.landing-page .product-chapter-content .section-tag {
    display: inline-block;
}

.landing-page .product-chapter-content h2 {
    margin-top: var(--pf-space-lg);
    font-size: var(--pf-text-section-title);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pf-text);
}

.landing-page .product-chapter-content > p {
    margin-top: var(--pf-space-lg);
    color: var(--pf-text-secondary);
    font-size: var(--pf-text-page-subtitle);
    line-height: 1.7;
}

.landing-page .product-outcomes {
    display: flex;
    flex-direction: column;
    margin-top: var(--pf-space-2xl);
    list-style: none;
}

.landing-page .product-outcomes li {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: start;
    gap: var(--pf-space-lg);
    padding: var(--pf-space-xl) 0;
    border-bottom: 1px solid var(--border);
}

.landing-page .product-outcomes li:last-child {
    border-bottom: none;
}

.landing-page .product-outcome-number {
    color: var(--pf-brand-bright);
    font-size: var(--pf-text-caption);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.8;
}

.landing-page .product-outcomes li > div {
    display: flex;
    flex-direction: column;
    gap: var(--pf-space-xs);
}

.landing-page .product-outcomes strong {
    color: var(--pf-text);
    font-size: var(--pf-text-panel-title);
    font-weight: 700;
}

.landing-page .product-outcomes span:not(.product-outcome-number) {
    color: var(--pf-text-muted);
    font-size: var(--pf-text-page-subtitle);
    line-height: 1.55;
}

/* Capítulo de control: copy + una evidencia de producto (mock de flujo). */
.landing-page .control-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--pf-space-3xl);
    align-items: center;
}

.landing-page .control-section .section-header {
    margin-bottom: 0;
    max-width: none;
}

.landing-page .control-section .product-outcomes {
    margin-top: var(--pf-space-xl);
}

.landing-page .control-mock {
    background: var(--pf-card-bg);
    padding: var(--pf-space-xl);
}

.landing-page .patrimonio-mock {
    background: var(--pf-card-bg);
    padding: var(--pf-space-xl);
}

.landing-page .patrimonio-mock-hero {
    margin-bottom: var(--pf-space-xl);
}

.landing-page .patrimonio-mock-hero .nw-value {
    margin-bottom: 0;
}

.landing-page .patrimonio-mock-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pf-space-lg);
    margin-bottom: var(--pf-space-xl);
}

.landing-page .patrimonio-mock-liquidity {
    margin-bottom: var(--pf-space-lg);
}

.landing-page .patrimonio-mock-liquidity-row {
    display: flex;
    justify-content: space-between;
    gap: var(--pf-space-md);
    margin-bottom: var(--pf-space-xs);
    color: var(--pf-text-muted);
    font-size: var(--pf-text-caption);
    font-weight: 600;
}

.landing-page .patrimonio-mock .nw-bar {
    margin-bottom: var(--pf-space-md);
}

.landing-page .liquidez-restringido-fill {
    background: var(--data-2);
}

.landing-page .liquidez-inmovilizado-fill {
    background: var(--data-neutral);
}

.landing-page .patrimonio-mock .control-mock-result {
    opacity: 1;
    transform: none;
    animation: none;
}

.landing-page .control-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pf-space-md);
    margin-bottom: var(--pf-space-xl);
}

.landing-page .control-mock-title {
    color: var(--pf-text);
    font-size: var(--pf-text-panel-title);
    font-weight: 700;
}

.landing-page .control-mock-badge {
    color: var(--pf-brand);
    background: var(--blue-light);
    border-radius: var(--pf-control-radius-sm);
    padding: var(--pf-space-xs) var(--pf-space-md);
    font-size: var(--pf-text-caption);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.landing-page .control-mock-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: var(--pf-space-md);
    align-items: center;
    padding: var(--pf-space-lg) 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(6px);
    animation: pf-control-row-in 0.55s ease forwards;
}

.landing-page .control-mock-row:nth-child(2) { animation-delay: 0.08s; }
.landing-page .control-mock-row:nth-child(3) { animation-delay: 0.18s; }
.landing-page .control-mock-row:nth-child(4) { animation-delay: 0.28s; }

.landing-page .control-mock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--pf-control-radius-sm);
    background: var(--surface);
    color: var(--pf-brand);
}

.landing-page .control-mock-row--blocked .control-mock-icon {
    color: var(--text-muted);
    background: var(--surface);
}

.landing-page .control-mock-row-copy {
    display: flex;
    flex-direction: column;
    gap: var(--pf-space-xs);
    min-width: 0;
}

.landing-page .control-mock-row-copy strong {
    color: var(--pf-text);
    font-size: var(--pf-text-body);
    font-weight: 600;
}

.landing-page .control-mock-row-copy span {
    color: var(--pf-text-muted);
    font-size: var(--pf-text-caption);
    line-height: 1.4;
}

.landing-page .control-mock-status {
    color: var(--pos-text);
    font-size: var(--pf-text-caption);
    font-weight: 700;
    white-space: nowrap;
}

.landing-page .control-mock-status--off {
    color: var(--text-muted);
    font-weight: 600;
}

.landing-page .control-mock-result {
    margin-top: var(--pf-space-xl);
    padding: var(--pf-space-lg);
    border-radius: var(--pf-control-radius-md);
    background: var(--surface);
    opacity: 0;
    transform: translateY(6px);
    animation: pf-control-row-in 0.55s ease 0.4s forwards;
}

.landing-page .control-mock-result-label {
    display: block;
    margin-bottom: var(--pf-space-md);
    color: var(--pf-brand);
    font-size: var(--pf-text-caption);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.landing-page .control-mock-result-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pf-space-lg);
}

.landing-page .control-mock-metric-label {
    display: block;
    color: var(--pf-text-muted);
    font-size: var(--pf-text-caption);
    margin-bottom: var(--pf-space-xs);
}

.landing-page .control-mock-metric-value {
    color: var(--pf-text);
    font-size: var(--pf-text-panel-title);
    font-weight: 700;
}

@keyframes pf-control-row-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-page .product-chapter-visual {
    min-width: 0;
    perspective: 1200px;
}

.landing-page .product-chapter-visual .dashboard-mock {
    transform: rotateY(-2deg) rotateX(1deg);
}

.landing-page .product-chapter-visual .dashboard-mock:hover {
    transform: rotateY(0) rotateX(0);
}

/* --- Hero --- */
.landing-page .hero {
    isolation: isolate;
    overflow: hidden;
    background: transparent;
    padding-top: calc(var(--pf-space-3xl) * 2);
    padding-bottom: var(--pf-space-3xl);
}

.landing-page .hero::before,
.landing-page .hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    filter: blur(var(--pf-space-2xl));
}

.landing-page .hero::before {
    background: none;
    opacity: 0.72;
    animation: pf-ambient-drift 18s ease-in-out infinite alternate;
}

.landing-page .hero::after {
    background: none;
    opacity: 0.64;
    animation: pf-ambient-drift 22s ease-in-out -8s infinite alternate-reverse;
}

.landing-page .hero-inner,
.landing-page .ai-layout {
    position: relative;
    z-index: 1;
}

.landing-page .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.landing-page .hero-content {
    max-width: 62rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.landing-page .hero-subtitle,
.landing-page .hero-cta-note,
.landing-page .hero-question-note {
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.landing-page .hero h1 {
    max-width: 22ch;
    text-wrap: balance;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--pf-text-hero);
}

.landing-page .hero-subtitle {
    max-width: 44ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    line-height: 1.6;
    color: var(--pf-text-secondary);
}

.landing-page .hero-actions {
    display: flex;
    justify-content: center;
}

.landing-page .hero-cta-note {
    margin: calc(var(--pf-space-sm) * -1) auto 0;
    color: var(--pf-text-muted);
    font-size: 0.8125rem;
}

.landing-page .hero-question {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--pf-space-sm);
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    margin: var(--pf-space-xl) auto 0;
    padding: var(--pf-space-xs) 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--pf-brand-bright);
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    transition: color 0.2s ease;
}

.landing-page .hero-question svg {
    flex-shrink: 0;
    color: var(--pf-brand-bright);
}

.landing-page .hero-question:hover {
    color: var(--pf-text);
}

.landing-page .hero-question-note {
    margin-top: var(--pf-space-xs);
    color: var(--pf-text-muted);
    font-size: 0.8125rem;
}

/* --- Luz ambiental de Finn --- */
.landing-page .ai-section::before {
    width: min(56vw, 46rem);
    height: min(56vw, 46rem);
    top: -34%;
    left: -18%;
    background: none;
    filter: blur(var(--pf-space-2xl));
    opacity: 0.9;
    animation: pf-ambient-drift 20s ease-in-out infinite alternate;
}

.landing-page .ai-section::after {
    width: min(46vw, 38rem);
    height: min(46vw, 38rem);
    right: -12%;
    bottom: -28%;
    background: none;
    filter: blur(var(--pf-space-2xl));
    opacity: 0.76;
    animation: pf-ambient-drift 24s ease-in-out -10s infinite alternate-reverse;
}

@keyframes pf-ambient-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(6%, -4%, 0) scale(1.08);
    }
}

.landing-page .brokers-form-note {
    margin: 0;
    color: var(--pf-text-muted);
    font-size: var(--pf-text-caption);
    line-height: 1.5;
}

.landing-page .brokers-form-note a {
    color: var(--pf-brand-bright);
}

.landing-page .peace-item {
    color: var(--pf-text-secondary);
    background: var(--green-light);
    border-color: rgba(24, 192, 122, 0.25);
}

.landing-page .icon-success {
    color: var(--pf-green);
    flex-shrink: 0;
}

/* --- Grids tokenizados --- */
.landing-page .features-grid,
.landing-page .doubts-grid,
.landing-page .integrations-grid,
.landing-page .plans-grid,
.landing-page .steps-grid,
.landing-page .nw-grid,
.landing-page .currency-grid,
.landing-page .email-compare-grid {
    gap: var(--pf-layout-grid-gap);
}

.landing-page .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-page .plans-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .landing-page .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-page .solutions-grid--expansions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 52rem;
    }
}

.landing-page .feature-card h3,
.landing-page .doubt-card h3,
.landing-page .step-card h3,
.landing-page .plan-card h3,
.landing-page .nw-card h3 {
    font-size: var(--pf-text-panel-title);
}

.landing-page .feature-card p,
.landing-page .doubt-card p,
.landing-page .step-card p {
    font-size: var(--pf-text-page-subtitle);
    color: var(--pf-text-muted);
}

/* --- Navbar fix --- */
.landing-page .hamburger span {
    background: var(--pf-text-secondary);
}

.landing-page .navbar-inner {
    justify-content: flex-start;
    gap: 30px;
}

.landing-page .nav-links {
    margin-left: 0;
    flex-shrink: 0;
}

.landing-page .nav-end {
    display: flex;
    align-items: center;
    gap: var(--pf-layout-inline-gap);
    margin-left: auto;
    flex-shrink: 0;
}

.landing-page .nav-actions {
    gap: var(--pf-layout-inline-gap);
}

.landing-page .lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--pf-radius-pill, 999px);
    border: 1px solid var(--pf-border-subtle, var(--border));
    background: var(--pf-surface-elevated, var(--card-bg));
}

.landing-page .lang-switcher-btn {
    min-width: 2.25rem;
    height: var(--pf-control-height-sm, 28px);
    padding: 0 0.5rem;
    border: none;
    border-radius: var(--pf-radius-pill, 999px);
    background: transparent;
    color: var(--pf-text-muted, var(--nav-muted));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.landing-page .lang-switcher-btn:hover {
    color: var(--pf-text);
}

.landing-page .lang-switcher-btn.is-active {
    background: var(--pf-accent-soft, rgba(61, 128, 245, 0.18));
    color: var(--pf-text);
}

@media (max-width: 768px) {
    .landing-page .navbar-inner {
        gap: 12px;
    }

    .landing-page .lang-switcher-btn {
        min-width: 2rem;
        height: 26px;
        font-size: 0.6875rem;
    }
}

/* --- CTA --- */
.landing-page .cta-section h2 {
    font-size: var(--pf-text-section-title);
    color: var(--pf-text-on-dark);
}

/* El cierre vive sobre el navy de campaña, así que su texto secundario usa la
   escala sobre-oscuro, no la tinta de papel. */
.landing-page .cta-section p {
    font-size: var(--pf-text-page-subtitle);
    color: var(--pf-on-dark-muted);
}

.landing-page .nw-cards.pf-kpi-strip--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--pf-layout-grid-gap);
}

.landing-page .nw-value {
    font-size: var(--pf-text-kpi-value);
}

/* --- FAQ --- */
.landing-page .faq-section {
    padding: var(--pf-layout-section-padding-y) 0;
    background: var(--surface);
}

.landing-page .faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--pf-space-md);
    max-width: 820px;
    margin: 0 auto;
}

.landing-page .faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 0 var(--pf-space-lg);
}

.landing-page .faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: var(--pf-text-panel-title);
    font-weight: 700;
    color: var(--pf-text);
    padding: var(--pf-space-lg) 0;
    padding-right: 28px;
    position: relative;
}

.landing-page .faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-page .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pf-text-secondary);
    font-size: 1.25rem;
    font-weight: 600;
}

.landing-page .faq-item[open] summary::after {
    content: "−";
}

.landing-page .faq-item p {
    margin: 0 0 var(--pf-space-lg);
    font-size: var(--pf-text-page-subtitle);
    color: var(--pf-text-muted);
    line-height: 1.65;
}

@media (max-width: 768px) {
    :root {
        --pf-text-section-title: 1.625rem;
        --pf-text-panel-title: 1rem;
        --pf-text-page-subtitle: 0.9375rem;
        --pf-text-body: 0.9375rem;
        --pf-layout-section-padding-y: 4rem;
        --pf-layout-page-gutter: var(--pf-layout-page-gutter-mobile);
        --pf-layout-grid-gap: var(--pf-space-md);
        --pf-layout-inline-gap: var(--pf-space-sm);
    }

    .landing-page .section-header {
        margin-bottom: var(--pf-space-2xl);
    }

    .pf-kpi-strip,
    .pf-kpi-strip--3,
    .landing-page .nw-cards.pf-kpi-strip--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-page .features-grid,
    .landing-page .plans-grid {
        grid-template-columns: 1fr;
    }

    .landing-page .product-chapter-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--pf-space-2xl);
    }

    .landing-page .product-chapter-visual {
        width: min(100%, 28rem);
        margin-left: auto;
        margin-right: auto;
        order: 2;
    }

    .landing-page .product-chapter-content {
        order: 1;
    }

    .landing-page .control-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--pf-space-2xl);
    }

    .landing-page .control-visual {
        width: min(100%, 28rem);
        margin-left: auto;
        margin-right: auto;
    }

    .landing-page .hero-actions .btn-lg {
        width: 100%;
    }

    .landing-page .cta-actions .btn-lg {
        width: 100%;
    }

    .landing-page .hero-inner > *,
    .landing-page .hero-content {
        min-width: 0;
    }

    .landing-page .hero-countries .country-chip {
        max-width: 100%;
    }

    .landing-page .navbar {
        padding-top: env(safe-area-inset-top, 0);
    }

    .landing-page .hero {
        min-height: auto;
        padding-top: calc(100px + env(safe-area-inset-top, 0));
        padding-bottom: var(--pf-space-2xl);
    }

    .landing-page .hero-question {
        width: 100%;
    }

    .landing-page .hero::before {
        background: none;
    }

    .landing-page .hero::after {
        background: none;
    }

    .landing-page .ai-section::before {
        width: 118vw;
        height: 118vw;
        top: -22%;
        left: -54%;
    }

    .landing-page .ai-section::after {
        width: 104vw;
        height: 104vw;
        right: -50%;
        bottom: -20%;
    }
}

@media (max-width: 480px) {
    html.pricing-region-intl .landing-page .solutions-grid--expansions,
    html.pricing-region-pending .landing-page .solutions-grid--expansions,
    .landing-page .solutions-grid--expansions {
        grid-template-columns: 1fr;
    }

    .pf-kpi-strip,
    .pf-kpi-strip--3,
    .landing-page .nw-cards.pf-kpi-strip--3 {
        grid-template-columns: 1fr;
    }
}

/* --- Submenú "Producto" en la barra de navegación --- */

.landing-page .nav-item-menu {
    position: relative;
}

.landing-page .nav-item-menu > a::after {
    content: '';
    display: inline-block;
    width: 0.32em;
    height: 0.32em;
    margin-left: 0.45em;
    vertical-align: 0.18em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.landing-page .nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + var(--pf-space-md));
    left: calc(var(--pf-space-lg) * -1);
    min-width: 15rem;
    list-style: none;
    padding: var(--pf-space-sm);
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-control-radius-md);
    box-shadow: var(--pf-glass-shadow);
}

/* Puente invisible para que el puntero pueda cruzar el hueco sin cerrarlo. */
.landing-page .nav-item-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--pf-space-md);
}

.landing-page .nav-item-menu:hover > .nav-submenu,
.landing-page .nav-item-menu:focus-within > .nav-submenu {
    display: block;
}

.landing-page .nav-submenu a {
    display: block;
    padding: var(--pf-space-sm) var(--pf-space-md);
    border-radius: var(--pf-control-radius-sm);
    white-space: nowrap;
}

.landing-page .nav-submenu a:hover,
.landing-page .nav-submenu a:focus-visible {
    background: var(--pf-glass-bg);
    color: var(--pf-text);
}

/* La barra horizontal necesita unos 1150px para caber entera. El cambio a menú
   hamburguesa estaba en 768px, así que entre 769px y 1150px —tablets y portátiles
   pequeños— los enlaces se salían del viewport y el CTA quedaba fuera de pantalla.
   Aquí se adelanta ese cambio; el bloque de 768px de styles.css sigue aplicando
   por debajo y no estorba. */
@media (max-width: 1150px) {
    /* Sólo la barra completa de la home, que es la única con hamburguesa.
       .navbar-legal (páginas de producto, recursos y legales) lleva una barra
       reducida sin menú desplegable: si aquí se ocultaran sus .nav-actions,
       esas páginas se quedarían sin ningún acceso al registro. */
    .landing-page .navbar:not(.navbar-legal) .nav-links,
    .landing-page .navbar:not(.navbar-legal) .nav-actions {
        display: none;
    }

    .landing-page .navbar:not(.navbar-legal) .hamburger {
        display: flex;
    }

    /* Con el menú abierto la barra crece y todo fluye en columna.
       Antes .nav-actions se colocaba con un offset absoluto de 130px que daba
       por hecho cinco ítems exactos: ya se descuadraba cuando el enlace de
       corredores se ocultaba fuera de Chile, y con el submenú se rompía del
       todo. Ahora no hay ninguna medida fija. */
    .landing-page .navbar:has(.nav-links.open) {
        background: var(--pf-card-bg);
    }

    .landing-page .navbar:has(.nav-links.open) .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        row-gap: var(--pf-space-xl);
        padding-bottom: var(--pf-space-xl);
    }

    .landing-page .navbar:has(.nav-links.open) .logo {
        order: 1;
        margin-right: auto;
    }

    .landing-page .navbar:has(.nav-links.open) .hamburger {
        order: 2;
    }

    /* Mismo selector base que la regla que oculta .nav-links (0,4,0) más .open,
       para ganarle en especificidad. Sin el prefijo :not(.navbar-legal) el menú
       quedaba oculto al abrirse: el hide ganaba y el hamburguesa no hacía nada. */
    .landing-page .navbar:not(.navbar-legal) .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: var(--pf-space-lg);
        order: 3;
        position: static;
        width: 100%;
        padding: 0;
        background: none;
        border-bottom: 0;
        box-shadow: none;
    }

    .landing-page .nav-links.open ~ .nav-end {
        order: 4;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        gap: var(--pf-space-lg);
    }

    .landing-page .nav-links.open ~ .nav-end .nav-actions {
        display: flex;
        flex-direction: column;
        position: static;
        width: 100%;
        padding: 0;
        background: none;
        border-bottom: 0;
    }

    /* Dentro del menú móvil el submenú va siempre desplegado y sangrado:
       un desplegable dentro de un desplegable no aporta nada en pantalla
       pequeña y esconde justo las páginas que queremos exponer. */
    .landing-page .nav-item-menu > a::after {
        display: none;
    }

    .landing-page .nav-submenu {
        display: block;
        position: static;
        min-width: 0;
        margin-top: var(--pf-space-md);
        padding: 0 0 0 var(--pf-space-lg);
        background: none;
        border: 0;
        border-left: 1px solid var(--pf-border);
        border-radius: 0;
        box-shadow: none;
    }

    .landing-page .nav-submenu li + li {
        margin-top: var(--pf-space-md);
    }

    .landing-page .nav-submenu a {
        padding: 0;
    }
}

/* --- Páginas de producto: intro y demostraciones con datos ficticios --- */

/* .legal-intro se usa en todas las páginas interiores y no tenía ninguna regla. */
.legal-intro {
    font-size: var(--pf-text-page-subtitle);
    color: var(--pf-text-secondary);
    line-height: 1.7;
    max-width: 760px;
    margin-top: var(--pf-space-md);
}

.pf-demo {
    margin: var(--pf-space-3xl) 0;
}

/* El tilt de .dashboard-mock solo es correcto dentro de .hero-visual, que aporta
   la perspectiva. Fuera de ahí se ve como un sesgo plano, así que se anula. */
.pf-demo > .dashboard-mock {
    transform: none;
}

.pf-demo > figcaption {
    margin-top: var(--pf-space-lg);
}

.pf-demo .mock-demo-tag {
    margin-left: auto;
}

.landing-page .nw-card p {
    font-size: var(--pf-text-page-subtitle);
    color: var(--pf-text-secondary);
    line-height: 1.6;
}

.landing-page .nw-categories + .nw-categories {
    margin-top: var(--pf-space-sm);
}

.pf-cta-row {
    margin-top: var(--pf-space-xl);
}

/* Bloques de marketing dentro de una página interior (main.legal-page). */
.pf-product-block {
    margin: var(--pf-space-3xl) 0;
}

.pf-product-block .landing-section__header {
    margin-bottom: var(--pf-space-2xl);
}

@media (prefers-reduced-motion: reduce) {
    .landing-page .hero::before,
    .landing-page .hero::after,
    .landing-page .ai-section::before,
    .landing-page .ai-section::after {
        animation: none;
    }

    .landing-page .control-mock-row,
    .landing-page .control-mock-result {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .landing-page .btn-primary:hover,
    .landing-page .btn-secondary:hover,
    .landing-page .btn-on-dark:hover,
    .landing-page .btn-white:hover,
    .landing-page .feature-card:hover,
    .landing-page .doubt-card:hover,
    .landing-page .plan-card:hover {
        transform: none;
    }
}
