/* =========================================
   SMART TRADE | MANUAL DE MARCA V1.0
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Geist+Mono:wght@400;500;700&family=Geist:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    /* Paleta Base 70/20/10 — Manual §04 */
    --ink:          #08090B;
    --ink-deep:     #050607;
    --surface:      #121418;
    --surface-card: #15181E;
    --surface-hover:#1A1E26;
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --foreground:   #F3F4F6;
    --silver:       #9CA3AF;
    --silver-light: #D1D5DB;
    --paper:        #FFFFFF;

    /* Acentos Verticales — Manual §04 */
    --quantum-cyan:      #38BDF8;
    --quantum-cyan-glow: rgba(56, 189, 248, 0.18);
    --nexus-indigo:      #818CF8;
    --nexus-indigo-glow: rgba(129, 140, 248, 0.18);
    --automation-green:  #10B981;
    --automation-green-glow: rgba(16, 185, 129, 0.18);
    --support-amber:     #F59E0B;
    --alert-yellow:      #F0E040;
    --risk-red:          #EF4444;

    /* Sombras y Luces */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, 0.8);
    --glow-cyan: 0 0 35px -5px rgba(56, 189, 248, 0.25);
    --glow-indigo: 0 0 35px -5px rgba(129, 140, 248, 0.25);
    --glow-green: 0 0 35px -5px rgba(16, 185, 129, 0.25);

    /* Tipografías — Manual §05 */
    --font-display:   'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:      'Geist Mono', monospace;
    --font-editorial: 'Instrument Serif', Georgia, serif;
    --font-bebas:     'Bebas Neue', sans-serif;
}

/* =========================================
   RESETEO Y BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--ink);
    color: var(--silver);
    font-family: var(--font-display);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--foreground);
    font-weight: 500;
    letter-spacing: -0.025em;
}

a { color: inherit; }

/* Cursiva editorial — Manual §05 */
.editorial-accent,
em {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
}

/* Eyebrow mono — Manual §05 "Mono · 11/14" */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--silver);
    display: block;
    margin-bottom: 16px;
}

/* Eyebrow del hero — con glifo ↗ */
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--quantum-cyan);
    display: block;
    margin-bottom: 24px;
}

/* =========================================
   NAVEGACIÓN MODERNA // GLASSMORPHISM & DISPLAY TYPOGRAPHY
   ========================================= */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: rgba(9, 11, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Logo — imagen real del lockup — Manual §03 */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: opacity 0.2s ease;
}

.logo-container a:hover .logo-img {
    opacity: 0.9;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

/* Enlaces principales: tipografía Bebas Neue y todo mayúsculas */
.nav-links > a,
.nav-dropdown > a {
    font-family: var(--font-bebas);
    font-size: 21px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--silver);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    position: relative;
}

.nav-links > a:hover,
.nav-dropdown > a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.nav-links > a.active-link,
.nav-dropdown > a.active-link {
    color: #FFFFFF;
}

.nav-links > a.active-link::after,
.nav-dropdown > a.active-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--quantum-cyan);
    box-shadow: 0 0 8px var(--quantum-cyan);
    border-radius: 2px;
}

/* Indicador de flecha en dropdown */
.nav-caret {
    font-size: 11px;
    color: var(--silver);
    transition: transform 0.25s ease, color 0.2s ease;
    display: inline-block;
    margin-left: 2px;
}

.nav-dropdown:hover .nav-caret {
    transform: rotate(180deg);
    color: var(--quantum-cyan);
}

/* Dropdown Card flotante moderna */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: linear-gradient(180deg, rgba(18, 22, 30, 0.98) 0%, rgba(10, 12, 16, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 250px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.9), 0 0 30px -5px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--silver-light);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.18s ease;
    margin-left: 0;
    border-left: 2px solid transparent;
    letter-spacing: 0.02em;
}

.dropdown-menu a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--quantum-cyan);
    transform: translateX(3px);
}

.dropdown-desc {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--silver);
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover .dropdown-desc {
    color: var(--quantum-cyan);
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
}

/* CTA PRINCIPAL DE NAVEGACIÓN — BOTÓN MODERNO LUMÍNICO */
.nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 60%, #CBD5E1 100%) !important;
    color: #08090B !important;
    font-family: var(--font-bebas) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    letter-spacing: 0.09em !important;
    padding: 10px 24px 8px !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 25px -4px rgba(56, 189, 248, 0.35) !important;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-left: 20px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none;
}

/* Destello sutil al hover */
.nav-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.nav-cta:hover::before {
    left: 140%;
    opacity: 1;
}

.nav-cta:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 26px rgba(255, 255, 255, 0.45), 0 0 35px rgba(56, 189, 248, 0.55) !important;
}

/* Indicador Live Dot en el botón CTA */
.nav-cta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    display: inline-block;
    animation: ctaPulse 2s infinite ease-in-out;
}

@keyframes ctaPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* =========================================
   HERO SECTIONS
   ========================================= */
.hero-section {
    padding: 96px 32px 80px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Textura ambiental luminosa y retícula sutil */
.hero-section::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 50% 15%, rgba(56, 189, 248, 0.12), transparent 70%),
        radial-gradient(ellipse 40% 30% at 85% 20%, rgba(129, 140, 248, 0.08), transparent 60%),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px;
    pointer-events: none;
    z-index: -1;
}

/* Badge de Estado en Vivo (Píldora moderna) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 16px;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--quantum-cyan);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px -5px rgba(56, 189, 248, 0.2);
    transition: all 0.25s ease;
}

.hero-badge:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.08);
}

.live-dot {
    width: 7px;
    height: 7px;
    background-color: var(--automation-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--automation-green);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* H1 — Display scale: 60px / letter-spacing -0.03em */
.hero-title {
    font-size: 60px;
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin-bottom: 22px;
    color: var(--foreground);
}

.hero-title em,
.hero-title .editorial-accent {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.hero-lede {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 36px;
    color: var(--silver);
    font-weight: 300;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

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

/* =========================================
   PREVIEW TERMINAL / DASHBOARD HERO
   ========================================= */
.hero-preview-container {
    max-width: 960px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.hero-preview-card {
    background: linear-gradient(180deg, rgba(19, 22, 28, 0.9) 0%, rgba(10, 11, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px -10px rgba(56, 189, 248, 0.15);
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(16px);
}

.preview-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-window-dots {
    display: flex;
    gap: 6px;
}

.preview-window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}

.preview-window-dots span:nth-child(1) { background: #EF4444; opacity: 0.8; }
.preview-window-dots span:nth-child(2) { background: #F59E0B; opacity: 0.8; }
.preview-window-dots span:nth-child(3) { background: #10B981; opacity: 0.8; }

.preview-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--silver);
    font-weight: 500;
}

.preview-status {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--automation-green);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.preview-card-body {
    padding: 24px 28px;
}

.preview-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.preview-stat {
    display: flex;
    flex-direction: column;
}

.preview-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--silver);
    opacity: 0.8;
}

.preview-stat-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--foreground);
    margin-top: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.preview-stat-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.preview-stat-badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--automation-green);
}

.preview-chart-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 16px;
}

.preview-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.preview-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-log-text {
    color: var(--silver);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-log-text strong {
    color: var(--quantum-cyan);
}

.preview-latency {
    color: var(--automation-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =========================================
   BOTONES MODERNOS
   ========================================= */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-outline-cyan,
.btn-outline-indigo,
.btn-outline-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

/* CTA primario — luminoso, alta conversión */
.btn-primary {
    background: linear-gradient(180deg, #FFFFFF 0%, #E5E7EB 100%);
    color: #08090B;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.btn-primary:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* CTAs de verticales */
.btn-outline-cyan {
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--quantum-cyan);
    background-color: rgba(56, 189, 248, 0.06);
    border-radius: 10px;
}

.btn-outline-cyan:hover {
    background-color: var(--quantum-cyan);
    color: #08090B;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.btn-outline-indigo {
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: var(--nexus-indigo);
    background-color: rgba(129, 140, 248, 0.06);
    border-radius: 10px;
}

.btn-outline-indigo:hover {
    background-color: var(--nexus-indigo);
    color: #08090B;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.4);
    transform: translateY(-2px);
}

.btn-outline-green {
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--automation-green);
    background-color: rgba(16, 185, 129, 0.06);
    border-radius: 10px;
}

.btn-outline-green:hover {
    background-color: var(--automation-green);
    color: #08090B;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-outline-amber {
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--support-amber);
    background-color: rgba(245, 158, 11, 0.06);
    border-radius: 10px;
}

.btn-outline-amber:hover {
    background-color: var(--support-amber);
    color: #08090B;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-outline-silver {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--silver-light);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.btn-outline-silver:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* =========================================
   MÉTRICAS (GEIST MONO)
   ========================================= */
.metrics-bar,
.tech-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    border: 1px solid var(--border);
    background: rgba(18, 20, 24, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 20px 40px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.metric-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--silver);
    opacity: 0.75;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--foreground);
    margin-top: 5px;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* =========================================
   TARJETAS MODERNAS DESACOPLADAS
   ========================================= */
.cards-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    border: none;
}

.cards-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    border: none;
}

.card {
    background: linear-gradient(180deg, rgba(22, 25, 31, 0.7) 0%, rgba(13, 15, 19, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(28, 32, 40, 0.85) 0%, rgba(16, 18, 23, 0.98) 100%);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 20px;
    font-weight: 500;
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.1);
    color: var(--quantum-cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-indigo {
    background: rgba(129, 140, 248, 0.1);
    color: var(--nexus-indigo);
    border: 1px solid rgba(129, 140, 248, 0.25);
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--automation-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--foreground);
    letter-spacing: -0.02em;
    font-weight: 600;
}

.card p {
    font-size: 14px;
    color: var(--silver);
    margin-bottom: 24px;
    line-height: 1.65;
    font-weight: 300;
    flex-grow: 1;
}

/* Micro-etiquetas dentro de las tarjetas */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tag-item {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--silver-light);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
}

.card-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--silver);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-weight: 500;
}

.card-link:hover {
    gap: 10px;
}

/* Acentos de color por vertical con micro-luz superior */
.card-cyan {
    border-top: 1px solid rgba(56, 189, 248, 0.35);
}

.card-cyan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--quantum-cyan), transparent);
    filter: blur(0.5px);
}

.card-cyan:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-md), var(--glow-cyan);
}

.card-indigo {
    border-top: 1px solid rgba(129, 140, 248, 0.35);
}

.card-indigo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nexus-indigo), transparent);
    filter: blur(0.5px);
}

.card-indigo:hover {
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow: var(--shadow-md), var(--glow-indigo);
}

.card-green {
    border-top: 1px solid rgba(16, 185, 129, 0.35);
}

.card-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--automation-green), transparent);
    filter: blur(0.5px);
}

.card-green:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--shadow-md), var(--glow-green);
}

.card-amber {
    border-top: 1px solid rgba(245, 158, 11, 0.35);
}

.card-silver {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-cyan   .card-link { color: var(--quantum-cyan); }
.card-indigo .card-link { color: var(--nexus-indigo); }
.card-green  .card-link { color: var(--automation-green); }
.card-amber  .card-link { color: var(--support-amber); }
.card-silver .card-link { color: var(--silver-light); }

.card-cyan   .card-link { color: var(--quantum-cyan); }
.card-indigo .card-link { color: var(--nexus-indigo); }
.card-green  .card-link { color: var(--automation-green); }
.card-amber  .card-link { color: var(--support-amber); }
.card-silver .card-link { color: var(--silver); }

.card-indigo.featured {
    border: 2px solid var(--nexus-indigo);
    border-top: 2px solid var(--nexus-indigo);
}

.price-card.card-silver.featured {
    border: 2px solid var(--quantum-cyan);
    border-top: 2px solid var(--quantum-cyan);
}

/* =========================================
   SECCIONES
   ========================================= */
section {
    padding: 96px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

section.full-width {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

section h2 {
    font-size: 36px;
    letter-spacing: -0.025em;
    margin-bottom: 48px;
    font-weight: 500;
}

/* =========================================
   GRID 50/50 (MANIFIESTO)
   ========================================= */
.grid-50-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-50-50 h2 {
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Tarjeta Manifiesto */
.manifesto-card {
    background: linear-gradient(180deg, rgba(22, 25, 32, 0.8) 0%, rgba(12, 14, 18, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.manifesto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.manifesto-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.manifesto-pillar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.manifesto-pillar-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--quantum-cyan);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.manifesto-pillar-desc {
    font-size: 13px;
    color: var(--silver);
    line-height: 1.55;
    font-weight: 300;
}

/* Botones de Contacto Especializados */
.btn-contact-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1);
}

.btn-contact-whatsapp:hover {
    background: #10B981;
    color: #08090B;
    border-color: #10B981;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-contact-cyan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
    color: var(--quantum-cyan);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.12);
}

.btn-contact-cyan:hover {
    background: var(--quantum-cyan);
    color: #08090B;
    border-color: var(--quantum-cyan);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.btn-contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-contact-email:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* =========================================
   TIMELINE / PASOS
   ========================================= */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-number {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--quantum-cyan);
    min-width: 40px;
    letter-spacing: 0.1em;
    padding-top: 3px;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--foreground);
}

.step-content p {
    font-size: 15px;
    color: var(--silver);
    line-height: 1.65;
    font-weight: 300;
}

/* =========================================
   PRICING
   ========================================= */
.pricing-intro {
    text-align: center;
    margin-bottom: 64px;
}

.pricing-intro h2 { margin-bottom: 16px; }

.pricing-intro p {
    font-size: 17px;
    color: var(--silver);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.price-card {
    background-color: var(--surface);
    border: none;
    padding: 40px;
    text-align: left;
    transition: background-color 0.2s ease;
}

.price-card:hover { background-color: #1c1e24; }

.price-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--silver);
    display: block;
    margin-bottom: 16px;
}

.price-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.price-amount {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 13px;
    color: var(--silver);
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.price-card p {
    font-size: 14px;
    color: var(--silver);
    margin-bottom: 32px;
    line-height: 1.65;
    font-weight: 300;
}

/* =========================================
   FEATURES
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.feature-block {
    padding: 36px;
    background-color: var(--surface);
    border: none;
    transition: background-color 0.2s ease;
}

.feature-block:hover { background-color: #1c1e24; }

.feature-block h3 {
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--foreground);
    letter-spacing: -0.015em;
}

.feature-block p {
    font-size: 14px;
    color: var(--silver);
    line-height: 1.65;
    font-weight: 300;
}

/* =========================================
   FOOTER INSTITUCIONAL & BLINDAJE LEGAL
   ========================================= */
.main-footer {
    background-color: #060709;
    border-top: 1px solid var(--border);
    padding: 72px 48px 40px;
    margin-top: 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-iso {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand-title {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: 0.1em;
}

.footer-brand-desc {
    font-size: 13.5px;
    color: var(--silver);
    line-height: 1.6;
    font-weight: 300;
    max-width: 360px;
}

.footer-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--automation-green);
    width: fit-content;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--foreground);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links-list a {
    color: var(--silver);
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-links-list a:hover {
    color: var(--quantum-cyan);
    transform: translateX(3px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-name {
    font-size: 14px;
    color: var(--foreground);
    font-weight: 500;
}

.footer-contact-item {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--silver);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact-item.email:hover {
    color: var(--quantum-cyan);
}

.footer-contact-item.whatsapp {
    color: var(--automation-green);
    margin-top: 4px;
}

.footer-contact-item.whatsapp:hover {
    color: #34D399;
}

/* =========================================
   BLINDAJE LEGAL Y STRIP REGULATORIO (LIGHTBOX TRIGGER)
   ========================================= */
.footer-regulatory-strip {
    max-width: 1200px;
    margin: 0 auto 36px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(18, 21, 28, 0.85) 100%);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.footer-regulatory-strip:hover {
    border-color: rgba(239, 68, 68, 0.55);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.14) 0%, rgba(26, 31, 42, 0.95) 100%);
    box-shadow: 0 8px 24px -6px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.reg-strip-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.reg-strip-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: #F87171;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 5px 10px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reg-strip-text {
    font-size: 12.5px;
    color: var(--silver);
    line-height: 1.5;
    margin: 0;
}

.reg-strip-text strong {
    color: #F3F4F6;
}

.reg-strip-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #F87171;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-regulatory-strip:hover .reg-strip-action {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

/* Modal / Lightbox Styles */
.legal-modal-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.legal-tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--silver);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.legal-tab-btn:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.is-active {
    background: rgba(56, 189, 248, 0.12);
    color: var(--quantum-cyan);
    border-color: rgba(56, 189, 248, 0.35);
    font-weight: 600;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.legal-title {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: #F87171;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--silver);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.legal-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px 18px;
}

.legal-block h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--silver-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.legal-block p {
    font-size: 12.5px;
    color: rgba(156, 163, 175, 0.9);
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

.legal-block p strong {
    color: #F3F4F6;
    font-weight: 600;
}

/* Barra Inferior Copyright */
.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(156, 163, 175, 0.6);
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(156, 163, 175, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.footer-bottom-links a:hover {
    color: var(--foreground);
    text-decoration: underline;
}

/* =========================================
   MODAL DE TÉRMINOS Y CONDICIONES (LEGAL)
   ========================================= */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.legal-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.legal-modal-card {
    background: #0D1015;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.legal-modal-overlay.is-active .legal-modal-card {
    transform: scale(1);
}

.legal-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
}

.legal-modal-close {
    background: none;
    border: none;
    color: var(--silver);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.legal-modal-close:hover {
    color: #FFFFFF;
}

.legal-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    font-size: 13.5px;
    color: var(--silver);
    line-height: 1.7;
    font-weight: 300;
}

.legal-modal-body h4 {
    color: var(--foreground);
    font-size: 14.5px;
    margin: 24px 0 10px;
    font-weight: 600;
}

.legal-modal-body h4:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 14px;
}

.legal-modal-body ul {
    margin: 10px 0 16px 20px;
}

.legal-modal-body li {
    margin-bottom: 6px;
}

/* =========================================
   SECCIÓN MANIFIESTO (background surface)
   ========================================= */
.section-surface {
    background-color: var(--surface);
    max-width: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-surface > .grid-50-50 {
    padding: 96px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   RESPONSIVE — MOBILE FIRST
   ========================================= */

/* Hamburger button — oculto en desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--foreground);
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

.nav-hamburger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================
   BLOQUE 2: SHOWCASE CUENTA AUDITADA (NEXUS AI)
   ========================================= */
.audit-showcase-section {
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.audit-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.audit-section-header h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    margin-bottom: 16px;
    line-height: 1.2;
}

.audit-section-desc {
    color: var(--silver);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
}

.audit-window {
    background: linear-gradient(180deg, rgba(16, 20, 29, 0.96) 0%, rgba(9, 11, 17, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px -10px rgba(129, 140, 248, 0.18);
    overflow: hidden;
    backdrop-filter: blur(20px);
    position: relative;
    text-align: left;
}

.audit-window-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audit-window-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #E2E8F0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-window-title span.tag-real {
    background: rgba(129, 140, 248, 0.15);
    color: var(--nexus-indigo);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.audit-status-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--automation-green);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.audit-window-body {
    padding: 28px 28px 24px;
}

/* Grilla de KPIs (Image 1) */
.audit-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.audit-kpi-subgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.audit-kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.audit-kpi-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}

.audit-kpi-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--silver);
    letter-spacing: 0.03em;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audit-kpi-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.audit-kpi-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    font-weight: 300;
}

/* Colores numéricos */
.kpi-val-white { color: #FFFFFF; }
.kpi-val-green { color: #34D399; }
.kpi-val-coral { color: #FB7185; }
.kpi-val-indigo { color: #818CF8; }
.kpi-val-usc { color: #FBBF24; font-size: 13px; font-weight: 600; margin-left: 2px; }

.drawdown-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(251, 113, 133, 0.15);
    color: #FB7185;
    font-size: 11px;
}

/* Gráficos (Rendimiento mensual + Distribución) */
.audit-charts-row {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.audit-chart-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
}

.audit-chart-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.audit-chart-box-title {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    font-family: var(--font-display);
}

.audit-chart-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.audit-chart-tag.teal {
    background: rgba(45, 212, 191, 0.12);
    color: #2DD4BF;
    border-color: rgba(45, 212, 191, 0.25);
}

.audit-svg-container {
    width: 100%;
    position: relative;
}

.audit-svg-container rect {
    transition: all 0.25s ease;
    cursor: pointer;
}

.audit-svg-container rect:hover {
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.75));
    opacity: 0.95;
}

.audit-svg-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Donut box */
.donut-box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.donut-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--silver);
    margin-top: 12px;
}

.donut-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2DD4BF;
    box-shadow: 0 0 8px #2DD4BF;
}

/* Footer / Terminal strip */
.audit-window-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 12px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-log-text {
    color: var(--silver);
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-log-text strong {
    color: var(--nexus-indigo);
}

.audit-footer-tag {
    color: #34D399;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Action strip debajo de la ventana */
.audit-bottom-cta {
    margin-top: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.audit-bottom-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.audit-bottom-info p {
    font-size: 13px;
    color: var(--silver);
    margin: 0;
    font-weight: 300;
}

.audit-bottom-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- TABLET (max 1024px) --- */
@media (max-width: 1024px) {
    section { padding: 64px 32px; }

    .grid-50-50 {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cards-3col,
    .features-grid,
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .audit-kpi-subgrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audit-charts-row {
        grid-template-columns: 1fr;
    }

    .audit-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .audit-bottom-buttons {
        width: 100%;
    }

    .audit-bottom-buttons a {
        flex: 1;
    }

    .footer-contact { text-align: left; }
}

/* --- MÓVIL (max 768px) --- */
@media (max-width: 768px) {

    /* === NAVEGACIÓN MÓVIL === */
    .main-nav {
        padding: 12px 20px;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo-container {
        flex: 1;
        padding: 8px 0;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 8px;
        padding-bottom: 16px;
        border-top: 1px solid var(--border);
        align-items: flex-start;
        gap: 0;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a,
    .nav-dropdown > a {
        font-family: var(--font-bebas);
        font-size: 22px;
        letter-spacing: 0.08em;
        margin-left: 0;
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0;
    }

    .nav-cta {
        font-size: 20px !important;
        border-bottom: none !important;
        padding: 12px 20px !important;
        margin: 16px 0 4px !important;
        text-align: center;
        width: 100%;
        border-radius: 9999px !important;
    }

    .nav-dropdown {
        display: block;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-dropdown > a {
        margin-left: 0;
        padding: 14px 0;
        font-size: 15px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    /* Desactivar hover en móvil — el JS maneja el toggle */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        margin: 0 0 8px 8px;
        padding: 4px 0 4px 16px;
        background: transparent;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, max-height 0.25s ease;
    }

    .nav-dropdown.is-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
    }

    .dropdown-menu a {
        padding: 10px 0;
        border-left: none;
        margin-left: 0;
        font-size: 14px;
        display: block;
    }

    /* === HERO MÓVIL === */
    .hero-section {
        padding: 64px 20px 48px;
        text-align: left;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .hero-lede {
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 15px 24px;
    }

    .hero-preview-card {
        border-radius: 12px;
    }

    .preview-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .preview-card-body {
        padding: 18px 16px;
    }

    .preview-chart-wrapper {
        height: 80px;
    }

    .preview-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 10px;
    }

    .manifesto-card {
        padding: 32px 20px;
    }

    .manifesto-pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* === SECCIONES === */
    section {
        padding: 56px 20px;
    }

    section h2 {
        font-size: 26px;
        margin-bottom: 32px;
    }

    /* === TARJETAS === */
    .card, .price-card, .feature-block {
        padding: 28px 24px;
    }

    .cards-3col,
    .cards-2col,
    .features-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    /* === MÉTRICAS — layout fila en móvil === */
    .metrics-bar,
    .tech-grid {
        flex-direction: column;
        gap: 0;
        margin-top: 40px;
        padding-top: 0;
        border-top: 1px solid var(--border);
    }

    .metric-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    .metric-item:last-child {
        border-bottom: none;
    }

    .metric-value {
        font-size: 13px;
        margin-top: 0;
        text-align: right;
    }

    /* === GRID MANIFIESTO === */
    .grid-50-50 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .grid-50-50 h2 { font-size: 30px; }

    .section-surface > .grid-50-50 {
        padding: 56px 20px;
    }

    /* === TIMELINE PASOS === */
    .steps-timeline { max-width: 100%; }

    .step {
        gap: 20px;
        padding: 24px 0;
    }

    /* === FOOTER === */
    .main-footer {
        padding: 48px 20px 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-regulatory-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .reg-strip-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reg-strip-action {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-contact { text-align: left; }

    .audit-kpi-grid,
    .audit-kpi-subgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .audit-window-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .audit-window-body {
        padding: 16px 14px;
    }

    .audit-window-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .audit-bottom-buttons {
        flex-direction: column;
        width: 100%;
    }
}

/* --- MÓVIL PEQUEÑO (max 480px) --- */
@media (max-width: 480px) {
    .main-nav { padding: 0 16px; }
    .logo-img { height: 24px; }

    .hero-section { padding: 56px 16px 40px; }
    .hero-title { font-size: 30px; }

    section { padding: 48px 16px; }
    section h2 { font-size: 24px; }

    .audit-kpi-grid,
    .audit-kpi-subgrid {
        grid-template-columns: 1fr;
    }

    .card, .price-card, .feature-block {
        padding: 24px 16px;
    }

    .cards-3col,
    .cards-2col,
    .features-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .step { gap: 16px; }
    .step-number { min-width: 32px; }

    .main-footer { padding: 40px 16px 32px; }
}
