/*
  OS TigerLab — Estilo principal (Cyber / Tech)
  DIAGNÓSTICO: Spacing ad-hoc, sombras 4 niveles, bordes inconsistentes, cards/iconos sin escala unificada.
  Sin sticky nav, FAQ, Módulo 1. Hover botones algo agresivos. Tipografía correcta pero mejorable.
  Paleta: #0A0A0A #00B4FF #00FF9C #1E1E1E #F5F5F5
*/

:root {
    /* Paleta */
    --bg: #0A0A0A;
    --bg-elevated: #1E1E1E;
    --bg-muted: #161616;
    --accent: #00FF9C;
    --accent-sec: #00B4FF;
    --accent-hover: #00e08a;
    --text: #F5F5F5;
    --text-muted: #A3A3A3;
    --border: rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.1);

    /* Tokens: 4/8/12/16/24/32/48/64 */
    --space-4: 0.25rem;
    --space-8: 0.5rem;
    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-48: 3rem;
    --space-64: 4rem;

    /* Radius: 14 base, 10 small */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 100px;

    /* Sombras: 2 niveles + featured */
    --shadow: 0 2px 8px rgba(0,0,0,0.24), 0 0 0 1px var(--border);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.28), 0 0 0 1px rgba(0,255,156,0.08);
    --shadow-featured: 0 8px 28px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,255,156,0.12);

    /* Legacy compat */
    --azul-oscuro: var(--bg);
    --azul-acero: var(--bg-elevated);
    --blanco: var(--text);
    --texto: var(--text);
    --texto-suave: var(--text-muted);
    --acento: var(--accent);
    --acento-sec: var(--accent-sec);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    left: var(--space-12);
    top: var(--space-12);
    padding: var(--space-8) var(--space-16);
    background: var(--accent);
    color: var(--bg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 200;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent-sec); outline-offset: 2px; }

/* ========== STICKY NAV ========== */
.nav-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-12) 0;
    background: rgba(10,10,10,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.3s ease, background 0.3s ease;
}
.nav-sticky.is-visible { transform: translateY(0); }

.nav-sticky .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}

.nav-sticky .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.nav-sticky .nav-logo:focus-visible { outline: 2px solid var(--accent-sec); outline-offset: 2px; border-radius: 2px; }
.nav-sticky .nav-logo-img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-sticky .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-32);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-sticky .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-sticky .nav-links a:hover { color: var(--text); }
.nav-sticky .nav-links a:focus-visible { outline: 2px solid var(--accent-sec); outline-offset: 2px; border-radius: 2px; }

.nav-sticky .btn-cta-nav {
    padding: var(--space-8) var(--space-16);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-sticky .btn-cta-nav:hover { background: var(--accent-hover); color: var(--bg); transform: none; }
.nav-sticky .btn-cta-nav:focus-visible { outline: 2px solid var(--accent-sec); outline-offset: 2px; }

@media (max-width: 768px) {
    .nav-sticky .nav-links { display: none; }
}

/* ========== LAYOUT ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--space-24); }

/* ========== TIPO Y BLOQUES ========== */
.block-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-12);
    text-align: center;
}

.block-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-16);
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}

.block-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 42rem;
    margin: 0 auto var(--space-32);
}

.block-cta { text-align: center; margin-top: var(--space-32); }
.btn-sm { padding: var(--space-12) var(--space-24); font-size: 0.9rem; }

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-16) var(--space-32);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:hover { box-shadow: 0 4px 16px rgba(0,255,156,0.2); }
.btn:active { transform: none; }

.btn.is-disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
}
.btn-primary:hover:not(.is-disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary, .btn-outline {
    background: transparent;
    color: var(--accent-sec);
    border: 1px solid var(--accent-sec);
}
.btn-secondary:hover:not(.is-disabled), .btn-outline:hover {
    background: rgba(0,180,255,0.08);
    border-color: var(--accent-sec);
}

.block-value .btn-outline, .block-pricing .btn-outline { color: var(--accent); border-color: var(--accent); }
.block-value .btn-outline:hover, .block-pricing .btn-outline:hover { background: rgba(0,255,156,0.06); }

/* Icono CTA principal (sutil) */
.btn-primary .btn-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

/* ========== 1. HERO ========== */
.hero {
    position: relative;
    padding: var(--space-64) 0 var(--space-48);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0A0A0A 0%, #0f1220 40%, #0A0A0A 70%, #0c1322 100%);
}
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 70% 50% at 20% 20%, rgba(0,180,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0,255,156,0.05) 0%, transparent 45%);
    pointer-events: none;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,180,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.9;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.14;
    pointer-events: none;
}
.hero-shape-1 { width: 360px; height: 360px; background: var(--accent-sec); top: -100px; right: -60px; }
.hero-shape-2 { width: 240px; height: 240px; background: var(--accent); bottom: -40px; left: -30px; opacity: 0.1; }
.hero-shape-3 { width: 160px; height: 160px; background: var(--accent-sec); top: 38%; left: 8%; opacity: 0.08; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.4) 100%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; text-align: center; color: var(--text); }

.hero-logo {
    height: 38px;
    width: auto;
    display: block;
    margin: 0 auto var(--space-24);
    object-fit: contain;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-24);
}

.badge {
    display: inline-block;
    padding: var(--space-8) var(--space-16);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: rgba(0,255,156,0.06);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--accent);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.badge:hover { background: rgba(0,255,156,0.1); border-color: rgba(0,255,156,0.25); }

.hero-headline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.26;
    letter-spacing: -0.025em;
    max-width: 20ch;
    margin: 0 auto var(--space-16);
    color: var(--text);
}

.hero-subheadline {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
    margin: 0 auto var(--space-24);
    color: var(--text-muted);
}

.cta-group { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-16); margin-bottom: var(--space-24); }

.hero-legal { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ========== 2. SECCIONES BASE ========== */
.block { padding: var(--space-48) 0; }
.block--alt { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.block--muted { background: var(--bg-muted); border-top: 1px solid var(--border); }

/* ========== 3. EL PROBLEMA ========== */
.block-pain { background: var(--bg); }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-24);
}

.pain-card, .value-card, .result-card, .content-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-24);
    box-shadow: var(--shadow);
    transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.pain-card:hover, .value-card:hover, .result-card:hover, .content-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,180,255,0.14);
    transform: translateY(-2px);
}

.pain-icon, .value-icon, .content-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-sec);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-16);
}
.pain-icon { background: rgba(0,180,255,0.08); }
.value-icon { color: var(--accent); }
.content-icon { color: var(--accent-sec); margin: 0 auto var(--space-16); }

.pain-card h3, .value-card h3, .result-card h3, .content-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-8);
    line-height: 1.35;
}
.pain-card p, .value-card p, .result-card p, .content-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 38em;
}

/* ========== 4. PROPUESTA DE VALOR ========== */
.block-value { background: var(--bg-elevated); border-top: 1px solid var(--border); }

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-24);
}

/* ========== 5. PROGRAMA — MÓDULO 1 ========== */
.block-programa { background: var(--bg); }

.modulo-intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto var(--space-32);
}
.modulo-intro .block-subtitle { margin-bottom: var(--space-16); }

.modulo-legal {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-24);
    line-height: 1.5;
}

.modulo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-16);
}

.modulo-item {
    display: flex;
    gap: var(--space-16);
    align-items: flex-start;
    padding: var(--space-24) var(--space-24);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modulo-item:hover { border-color: rgba(0,180,255,0.12); box-shadow: var(--shadow); }

.modulo-item-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent-sec), var(--accent));
    border-radius: 6px;
}

.modulo-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
    line-height: 1.35;
}
.modulo-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ========== 6. RESULTADOS ========== */
.block-results { background: var(--bg-elevated); border-top: 1px solid var(--border); }

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-24);
}

.result-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-sec), var(--accent));
    color: var(--bg);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-16);
}

.results-disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.55;
}

/* ========== 7. CONTENIDO ========== */
.block-content { background: var(--bg); }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-24);
}

.content-card { text-align: center; }

/* ========== 8. AUTORIDAD ========== */
.block-authority { background: var(--bg-elevated); border-top: 1px solid var(--border); }

.authority-card {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-32);
    align-items: flex-start;
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-32);
    background: rgba(10,10,10,0.35);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}
.authority-card:hover { border-left-color: var(--accent-hover); box-shadow: var(--shadow-hover); }

.authority-photo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    background: linear-gradient(145deg, var(--accent-sec), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0,255,156,0.2);
}
.authority-initial { font-family: 'Poppins', sans-serif; font-size: 2.25rem; font-weight: 700; color: var(--bg); }
.authority-bio { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ========== 9. CÓMO FUNCIONA ========== */
.block-how { background: var(--bg); }

.steps {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
}
.steps::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 44px;
    bottom: 44px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-sec) 0%, rgba(0,180,255,0.4) 40%, rgba(0,255,156,0.4) 60%, var(--accent) 100%);
    border-radius: 1px;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--space-24);
    align-items: flex-start;
    padding: var(--space-24) 0;
}
.step:last-child { padding-bottom: 0; }

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-sec), var(--accent));
    color: var(--bg);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
}
.step-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: var(--space-4); }
.step-body p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }

/* ========== 10. PLANES ========== */
.block-pricing { background: var(--bg-elevated); border-top: 1px solid var(--border); }

.pricing-single { display: flex; justify-content: center; margin-bottom: var(--space-24); }
.pricing-single .price-card { max-width: 360px; width: 100%; }

.price-card {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: var(--space-32);
    box-shadow: var(--shadow);
    transition: box-shadow 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.price-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.price-card--featured {
    border-color: rgba(0,255,156,0.35);
    box-shadow: var(--shadow-featured);
}
.price-card--featured:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.32), 0 0 0 1px rgba(0,255,156,0.15); }

.price-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: var(--space-8); text-align: center; }
.price-amount { text-align: center; margin-bottom: var(--space-8); }
.price-currency { font-size: 1.25rem; color: var(--text-muted); }
.price-value { font-size: 2.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.price-save { text-align: center; font-size: 0.8125rem; color: var(--accent); font-weight: 500; margin-bottom: var(--space-24); }

.price-features { list-style: none; margin-bottom: var(--space-24); }
.price-features li {
    padding: var(--space-8) 0 var(--space-8) var(--space-24);
    position: relative;
    font-size: 0.9375rem;
    color: var(--text-muted);
}
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.price-btn-trust { text-align: center; font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-12); }
.pricing-trust { text-align: center; font-size: 0.875rem; color: var(--text-muted); }

/* Aviso previo (card) */
.aviso-previo-block {
    padding: var(--space-16) var(--space-20);
    margin: 0 0 var(--space-24);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.aviso-previo-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.aviso-previo-cb { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.aviso-previo-cb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========== 11. CTA FINAL + TRANSPARENCIA ========== */
.block-cta-final { position: relative; padding: var(--space-48) 0 var(--space-48); overflow: hidden; }

.cta-final-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, #0c1424 0%, #141a2a 50%, #0c1322 100%);
    border-top: 1px solid var(--border);
}

.cta-final-inner { position: relative; z-index: 1; text-align: center; color: var(--text); }

.cta-final-headline { font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; margin-bottom: var(--space-12); letter-spacing: -0.02em; }
.cta-final-text { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: var(--space-32); max-width: 28rem; margin-left: auto; margin-right: auto; }

/* Bloque Transparencia antes de pagar */
.transparencia-block {
    max-width: 420px;
    margin: 0 auto var(--space-24);
    padding: var(--space-24) var(--space-24);
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}
.transparencia-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.transparencia-cb { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.transparencia-cb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-lg { padding: var(--space-16) var(--space-32); font-size: 1.0625rem; }
.cta-final-trust { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-16); }

/* ========== 12. FAQ ACORDEÓN ========== */
.block-faq { background: var(--bg); }

.faq-list { max-width: 600px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    padding: var(--space-24) 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    list-style: none;
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible { outline: 2px solid var(--accent-sec); outline-offset: 2px; }

.faq-q .faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-sec);
    transition: transform 0.25s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(180deg); }

.faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.faq-a-inner {
    padding: 0 0 var(--space-24) 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========== 13. AVISO LEGAL ========== */
.block-legal {
    background: #080808;
    padding: var(--space-32) 0;
    border-top: 1px solid var(--border);
}
.legal-card { max-width: 36rem; margin: 0 auto; }
.legal-title { font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: var(--space-8); }
.legal-text { font-size: 0.9375rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ========== FOOTER ========== */
.footer {
    background: #080808;
    padding: var(--space-32) 0;
    border-top: 1px solid var(--border);
}
.footer-brand {
    text-align: center;
    margin-bottom: var(--space-16);
}
.footer-brand a { display: inline-block; text-decoration: none; }
.footer-brand a:focus-visible { outline: 2px solid var(--accent-sec); outline-offset: 2px; border-radius: 2px; }
.footer-logo {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.92;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-24); margin-bottom: var(--space-16); }
.footer-links a { color: var(--accent-sec); text-decoration: none; font-size: 0.875rem; }
.footer-links a:focus { outline: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-links a:focus-visible { outline: 2px solid var(--accent-sec); outline-offset: 2px; }
.footer-text { font-size: 0.8125rem; text-align: center; color: var(--text-muted); }

/* ========== PÁGINAS LEGALES (privacidad, términos, aviso-legal) ========== */
.legal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-32) var(--space-16);
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}
.legal-page {
    max-width: 560px;
    width: 100%;
    text-align: center;
}
.legal-page .legal-logo {
    height: 28px;
    width: auto;
    display: block;
    margin: 0 auto var(--space-24);
    object-fit: contain;
}
.legal-page h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-24);
}
.legal-page .legal-h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: var(--space-24);
    margin-bottom: var(--space-8);
    text-align: left;
}
.legal-page p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--space-24);
    text-align: left;
}
.legal-page p:last-of-type { text-align: center; }
.legal-page a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.legal-page a:hover { color: var(--accent-sec); text-decoration: underline; }
.legal-page .legal-mail { word-break: break-all; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .block { padding: var(--space-32) 0; }
    .block-subtitle { margin-bottom: var(--space-24); }
    .hero { padding: var(--space-48) 0 var(--space-32); }
    .hero-shape { opacity: 0.1; }
    .block-cta-final { padding: var(--space-32) 0; }
    .modulo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 var(--space-16); }
    .hero { padding: var(--space-32) 0 var(--space-24); }
    .cta-group { flex-direction: column; }
    .btn { width: 100%; }
    .block-cta .btn { width: auto; }
    .authority-card { flex-direction: column; align-items: center; text-align: center; padding: var(--space-24); }
    .footer { padding: var(--space-24) 0; }
    .steps::before { left: 17px; top: 40px; bottom: 40px; }
}
