/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* Paleta de Colores Principal */
    --primary-color: #0F172A;      /* Slate 900 - Color oscuro corporativo */
    --primary-light: #1E293B;      /* Slate 800 - Para fondos oscuros secundarios */
    --accent-color: #2563EB;       /* Blue 600 - Color de acción/botones */
    --accent-hover: #1D4ED8;       /* Blue 700 - Hover de botones */
    
    /* Textos */
    --text-dark: #1E293B;          /* Texto principal */
    --text-light: #64748B;         /* Texto secundario/gris */
    --text-white: #ffffff;
    
    /* Fondos */
    --bg-body: #F8FAFC;            /* Fondo general muy claro */
    --bg-white: #ffffff;
    
    /* Colores Específicos por Rol */
    --role-director: #0F172A;      /* Ejecutivo/Oscuro */
    --role-supervisor: #059669;    /* Táctico/Verde Esmeralda */
    --role-facilitator: #7C3AED;   /* Operativo/Violeta */
    
    /* Utilidades */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
    --nav-height: 80px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   2. BOTONES Y UTILIDADES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    text-align: center;
    border: none; /* Reset para button tags */
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-white);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--text-white);
}

.btn-white {
    background-color: var(--text-white);
    color: var(--accent-color);
}

.btn-white:hover {
    background-color: #f1f5f9;
}

.highlight {
    color: var(--accent-color);
}

/* =========================================
   3. BARRA DE NAVEGACIÓN
   ========================================= */
.navbar {
    background-color: var(--bg-white);
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================
   4. HERO SECTION (SPLIT LAYOUT)
   ========================================= */
.hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 100px;
    background: radial-gradient(circle at top left, #F8FAFC, #FFFFFF);
    overflow: hidden;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-content {
    flex: 1;
    max-width: 600px;
}

.badge-new {
    display: inline-block;
    background-color: #DBEAFE;
    color: #1E40AF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.3;
}

.hero-text-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid #E2E8F0;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 550px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    border-radius: 50%;
}

/* =========================================
   5. SECCIÓN DE CARACTERÍSTICAS
   ========================================= */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.icon-box.blue { background-color: #EFF6FF; color: var(--accent-color); }
.icon-box.green { background-color: #ECFDF5; color: #059669; }
.icon-box.purple { background-color: #F5F3FF; color: #7C3AED; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   6. SECCIÓN DE ROLES
   ========================================= */
.roles-section {
    padding: 100px 0;
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.role-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

.role-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.role-header {
    padding: 30px;
    color: #ffffff;
    text-align: center;
}

.role-header.director-bg { background-color: var(--role-director); }
.role-header.supervisor-bg { background-color: var(--role-supervisor); }
.role-header.facilitator-bg { background-color: var(--role-facilitator); }

.role-header h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.role-header span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 500;
}

.role-body {
    padding: 30px;
}

.role-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.role-body ul li i {
    color: var(--accent-color);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* =========================================
   7. SECCIÓN DE TECNOLOGÍA
   ========================================= */
.tech-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.tech-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.tech-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tech-list li i {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.tech-list li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.tech-list li small {
    color: var(--text-light);
    font-size: 0.95rem;
}

.tech-visual {
    display: flex;
    justify-content: center;
}

.code-block {
    background-color: #1E293B;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    border: 1px solid #334155;
}

.code-block::before {
    content: "System Status: Online";
    position: absolute;
    top: 12px;
    left: 20px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
}

.code-block pre {
    color: #4ADE80;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 20px;
    overflow-x: auto;
}

/* =========================================
   8. SECCIÓN DE CONTACTO (NUEVA)
   ========================================= */
.contact-section {
    padding: 100px 0;
    background-color: #F1F5F9; /* Gris suave */
    border-top: 1px solid #E2E8F0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-info .info-item i {
    width: 40px;
    height: 40px;
    background-color: #DBEAFE;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Estilos del Formulario */
.contact-form-container {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #ffffff;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: #F8FAFC;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botón full width para el form */
.btn.full-width {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 16px;
}

/* =========================================
   9. CTA & FOOTER
   ========================================= */
.cta-section {
    background-color: var(--primary-color);
    color: var(--text-white);
    text-align: center;
    padding: 100px 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

footer {
    background-color: #020617;
    color: #94A3B8;
    padding: 80px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-col .socials a {
    font-size: 1.25rem;
    margin-right: 20px;
    color: #94A3B8;
}

.footer-col .socials a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* =========================================
   10. RESPONSIVIDAD (Media Queries)
   ========================================= */
@media (max-width: 968px) {
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-text-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons, .hero-stats {
        justify-content: center;
    }

    .hero-img {
        max-width: 400px;
    }

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 24px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        z-index: 999;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
}