/*--------------------------------------------------------------
# 1. VARIABLES GLOBALES & CONFIGURACIÓN
--------------------------------------------------------------*/
:root {
    --default-font: "Montserrat", sans-serif;
    --heading-font: "Montserrat", sans-serif;
    --nav-font: "Raleway", sans-serif;

    /* Colores Principales */
    --background-color: #ffffff;
    --default-color: #333;
    --heading-color: #1979d8;
    --accent-color: #1979d8;
    /* Azul principal */
    --nav-color: #ffffff;
    --nav-hover-color: #ffff;

    /* Colores Específicos EU AI Act */
    --dark-bg: #0a1128;
    --neon-green: #ffff;
    --soft-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    scroll-behavior: smooth;
}

body {
    font-family: var(--default-font);
    color: var(--default-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
}

/*--------------------------------------------------------------
# 2. HEADER & NAVEGACIÓN
--------------------------------------------------------------*/
.header {
    background-color: rgba(10, 17, 40, 0.95);
    /* Fondo oscuro sólido */
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 997;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .logo h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Menú de Navegación */
.navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navmenu a {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    font-size: 15px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: color 0.3s;
}

.navmenu a:hover,
.navmenu .active {
    color: var(--neon-green);
}

/* Dropdown */
.navmenu .dropdown ul {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
    min-width: 220px;
}

.navmenu .dropdown:hover>ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navmenu .dropdown ul a {
    color: #333;
    padding: 10px 20px;
}

.navmenu .dropdown ul a:hover {
    color: var(--accent-color);
    background-color: #f8f9fa;
}

/* Botón Book a Call en Header */
.book-call-btn {
    background: linear-gradient(135deg, #0062c7, #0054b3);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
}

.book-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 98, 199, 0.4);
    color: #fff;
}

/* Móvil Toggle */
.mobile-nav-toggle {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: none;
    margin-right: 15px;
}

@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navmenu ul {
        display: none;
    }
}

/*--------------------------------------------------------------
# 3. HERO SECTION (Tech & Dark)
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 85vh;
    position: relative;
    padding: 160px 0 100px 0;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #0d1b2a 0%, #000428 100%);
    overflow: hidden;
}

/* Imagen de fondo sutil */
.hero .hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

/* Efecto Máquina de Escribir (Caja de Código) */
#typewriter-description {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: #a0a0a0;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--neon-green);
    margin-bottom: 35px;
    backdrop-filter: blur(5px);
    line-height: 1.6;
}

#typewriter-description strong {
    color: var(--neon-green);
    font-weight: 600;
}

/* Badge "Compliance" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botones del Hero */
.hero .download-btn {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 16px;
    padding: 15px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
}

.primary-cta {
    background: #fff;
    color: #000428;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.primary-cta:hover {
    transform: translateY(-3px);
    background: var(--neon-green);
    color: #000428;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.secondary-cta {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.secondary-cta:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hero .hero-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero .hero-img:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/*--------------------------------------------------------------
# 4. ARTICLE 10 & REQUIREMENTS SECTION
--------------------------------------------------------------*/
#article10 {
    background-color: #ffffff;
    padding: 100px 0;
    overflow: hidden;
}

#article10 h4 {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 6px 14px;
    background: rgba(25, 121, 216, 0.08);
    border-radius: 30px;
}

#article10 h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #0a1128;
}

#article10 p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* Lista de Requisitos */
#article10 .list-unstyled li {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
    display: flex;
    align-items: flex-start;
}

#article10 .list-unstyled li i {
    font-size: 1.4rem;
    margin-right: 15px;
    color: #28a745;
    flex-shrink: 0;
    margin-top: 3px;
}

#article10 .list-unstyled li strong {
    color: #0a1128;
    font-weight: 700;
    margin-right: 5px;
}

/* Tarjetas de Riesgo (Derecha) */
.icon-boxes .icon-box {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.icon-boxes .icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.icon-boxes .icon-box i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    background: -webkit-linear-gradient(45deg, #0054b3, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Icono de advertencia en rojo */
.icon-boxes .col-md-6:first-child .icon-box i {
    background: -webkit-linear-gradient(45deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-boxes .icon-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a1128;
}

.icon-boxes .icon-box p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/*--------------------------------------------------------------
# 5. COGNITIVE BIAS SECTION (Dark Cards)
--------------------------------------------------------------*/
#cognitive-bias.dark-background {
    background-color: #050a19;
    /* Fondo muy oscuro */
    padding: 100px 0;
}

#cognitive-bias .section-title h2 {
    color: #fff;
}

#cognitive-bias .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 16px;
    height: 100%;
    transition: 0.3s;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.benefit-icon i {
    font-size: 2.5rem;
    color: var(--neon-green);
    margin-bottom: 20px;
    display: block;
}

.benefit-card h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/*--------------------------------------------------------------
# 6. SUMMARY SECTION & TABLE
--------------------------------------------------------------*/
#summary {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.table-responsive {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #0a1128;
    color: #fff;
    padding: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    text-align: left;
}

.table td {
    padding: 25px;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.table tr:last-child td {
    border-bottom: none;
}

/*--------------------------------------------------------------
# 7. SOLUTION / FEATURES SECTION
--------------------------------------------------------------*/
#solution {
    background-color: #fff;
    padding: 100px 0;
}

.video-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-card.result-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
}

.feature-icon i {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(45deg, #0054b3, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: block;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: #444;
}

.result-item i {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/*--------------------------------------------------------------
# 8. INSIGHTS HUB (ESTILO "COPADO")
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Insights Hub - Estilo "Deep Tech Series"
--------------------------------------------------------------*/

/* Configuración del contenedor de la sección */
/*--------------------------------------------------------------
# Insights Hub - Fondo Opción 1 (Gradiente Sutil Tech)
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Insights Hub - Fondo Opción 2 (Patrón de Datos)
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Insights Hub - Fondo Opción 3 (Contraste Azul Profundo)
--------------------------------------------------------------*/
#insights {
    /* Gradiente azul profundo */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    counter-reset: insight-counter;
}

#insights .section-title h2 {
    color: #ffffff;
}

#insights .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

/* Diseño de la Tarjeta */
.insight-card {
    background: #ffffff;
    border: 1px solid rgba(0, 84, 179, 0.08);
    /* Borde azul muy sutil */
    border-radius: 16px;
    /* Bordes más redondeados */
    padding: 40px 30px 30px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efecto rebote suave */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    z-index: 1;
}

/* Numeración Automática (El toque "Cool") */
.insight-card::before {
    counter-increment: insight-counter;
    content: "0" counter(insight-counter);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 84, 179, 0.05);
    /* Número gigante casi transparente */
    font-family: var(--heading-font);
    z-index: -1;
    transition: all 0.4s ease;
}

/* Barra de Gradiente Inferior (Invisible hasta el hover) */
.insight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0054b3 0%, #00ff88 100%);
    /* Azul a Verde Neón */
    transform: scaleX(0);
    /* Oculto */
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* --- Efectos Hover --- */
.insight-card:hover {
    transform: translateY(-10px);
    /* Se eleva */
    box-shadow: 0 20px 40px rgba(0, 84, 179, 0.15);
    /* Sombra azulada elegante */
    border-color: transparent;
}

.insight-card:hover::after {
    transform: scaleX(1);
    /* Aparece la barra de color */
}

.insight-card:hover::before {
    color: rgba(0, 84, 179, 0.1);
    /* El número se oscurece un poco */
    transform: scale(1.1);
}

/* Tipografía del Título */
.insight-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a1128;
    /* Azul noche */
    line-height: 1.3;
    transition: color 0.3s ease;
}

.insight-card:hover .insight-title {
    color: #0054b3;
    /* Cambia a azul brillante en hover */
}

/* Extracto de texto */
.insight-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Efecto desvanecimiento si es muy largo (opcional) */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Muestra max 4 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enlace "Read More" */
.read-more-link {
    font-weight: 700;
    color: #0054b3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    transition: all 0.3s ease;
    width: fit-content;
}

.read-more-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

/* Animación del enlace */
.read-more-link:hover {
    color: #002a5c;
}

.read-more-link:hover i {
    transform: translateX(8px);
    /* La flecha se mueve a la derecha */
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .insight-card {
        padding: 30px 20px;
    }

    .insight-title {
        font-size: 1.25rem;
    }
}

/*--------------------------------------------------------------
# 9. FINAL CTA SECTION
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Final CTA Section - Estilo "Deep Impact"
--------------------------------------------------------------*/
.final-cta-section {
    position: relative;
    /* Gradiente radial profundo para centrar la atención */
    background: radial-gradient(circle at center, #1a2c55 0%, #000428 100%);
    padding: 120px 0;
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

/* Patrón de puntos sutil en el fondo (Toque Tech) */
.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* Título Impactante */
.final-cta-content h2 {
    font-size: 3.5rem;
    /* Muy grande */
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #ffffff 0%, #a5c9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

/* Subtítulo */
.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Contenedor de Botones */
.cta-buttons {
    position: relative;
    z-index: 2;
}

/* --- BOTÓN PRIMARIO (Blanco/Brillante) --- */
.btn-cta-primary {
    background: #ffffff;
    color: #0054b3;
    /* Azul oscuro */
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    /* Para mantener tamaño con el secundario */
}

.btn-cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    background: #ffffff;
    color: #003c88;
}

.btn-cta-primary i {
    font-size: 1.2rem;
}

/* --- BOTÓN SECUNDARIO (Transparente/Borde) --- */
/* Target específico para el segundo botón que tiene estilo inline en tu HTML */
a.btn-cta-primary[style*="background: transparent"] {
    background: rgba(255, 255, 255, 0.05) !important;
    /* Ligeramente visible */
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    box-shadow: none;
}

a.btn-cta-primary[style*="background: transparent"]:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    transform: translateY(-5px);
    color: #ffffff !important;
}

/* Nota inferior (Trust signal) */
.cta-note {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/*--------------------------------------------------------------
# 10. FOOTER & UTILIDADES
--------------------------------------------------------------*/
.footer {
    color: #fff;
    background: linear-gradient(135deg, #0062c7, #003c88);
    font-size: 15px;
    padding-top: 60px;
}

.footer .footer-top {
    padding-bottom: 30px;
    background: transparent;
}

.footer a {
    color: #dbe9ff;
}

.footer a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    background: var(--neon-green);
    color: #003c88;
}

.footer .copyright {
    background: rgba(0, 0, 0, 0.1);
    padding: 25px 0;
    text-align: center;
}

/* Botones flotantes */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(120deg, #0062c7, #0054b3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

.scroll-top i {
    color: #fff;
    font-size: 20px;
}

.whatsapp-button {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .d-flex {
        justify-content: center !important;
    }

    .hero-img {
        margin-top: 50px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    #article10 {
        text-align: center;
    }

    #article10 .list-unstyled li {
        justify-content: flex-start;
        text-align: left;
    }

    .icon-boxes {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .insight-card {
        padding: 30px 20px;
    }
}