/* --- Importar Fuentes Modernas (Desde Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Genos:wght@300;400;700&family=Geo&display=swap');

/* --- Estilos Globales (Base Tecnológica) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Genos', sans-serif;
    line-height: 1.6;
}

/* --- Contenedor General --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Estilos de Títulos --- */
h1, h2, h3 {
    font-family: 'Geo', sans-serif;
    color: #ffffff; 
    margin-bottom: 15px;
    text-transform: uppercase; 
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 30px;}
h3 { font-size: 1.4rem; }

/* --- Estilos de Enlaces (Links) --- */
a {
    color: #ffffff; 
    text-decoration: none; 
}

/* --- Estilos de Botones (Llamados a la acción) --- */
button, .btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease; 
}
.btn-primary, .cta-button {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #1a1a1a; 
}
.btn-primary:hover, .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFA500; 
}

/* --- Estilos del Header (Barra de Navegación) --- */
.main-header {
    background-color: #111; 
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000; 
}
.main-header .container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}
.main-header .logo img {
    height: 60px; 
    width: auto; 
}
.main-nav {
    display: flex;
    align-items: center;
}
.main-nav ul {
    display: flex; 
    list-style: none; 
    margin-right: 20px; 
}
.main-nav li {
    margin-left: 25px; 
}
.main-nav a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative; 
    padding-bottom: 5px; 
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; 
    height: 2px;
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    transition: width 0.3s ease; 
}
.main-nav a:hover::after {
    width: 100%; 
}

/* ===============================================
--- ESTILOS DEL HERO SECTION (DOBLE ANIMACIÓN Y 2 COLUMNAS) --- 
===============================================
*/
.hero-section {
    background: linear-gradient(135deg, #007353 0%, #00ffc2 50%, #F0F0F0 100%);
    background-size: cover; 
    /* min-height: 80vh; */ /* Dejamos esto comentado por si quieres volver a probarlo */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    position: relative; 
    overflow: hidden; 
}
.hero-content-wrapper {
    display: flex; 
    gap: 50px; 
    align-items: center; 
    text-align: left; 
    z-index: 2;
    position: relative;
}
.hero-left {
    flex: 1; 
    padding-right: 20px; 
}
.hero-right {
    flex: 1; 
    animation: fadeIn 1.5s ease-out forwards; 
}
.hero-section h1 {
    font-size: 3.5rem; 
    margin-bottom: 20px;
    color: #FFA500; 
    text-align: left; 
}
.hero-section p {
    font-size: 1.2rem;
    max-width: 600px; 
    margin-bottom: 30px;
    color: #ffffff; 
    text-align: left; 
}
.hero-lottie-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    z-index: 1; 
    pointer-events: none; 
}
.hero-lottie-background lottie-player {
    position: absolute;
    opacity: 0.3; 
    width: 300%; 
    height: 300%;
    top: 0; 
    left: 0; 
    transform: translate(-50%, -60%); 
    animation: lottiePulse 4s ease-in-out infinite alternate; 
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); 
    border-radius: 8px; 
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===============================================
--- FIN DEL HERO --- 
===============================================
*/


/* --- Estilos de la Sección de Servicios (Las "Cards") --- */
.services-section {
    padding: 60px 0; 
    background-color: #1a1a1a; 
}
.services-section h2 {
    text-align: center; 
    margin-bottom: 40px; 
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; 
}
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.service-card i {
    font-size: 3.5rem; 
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.service-card h3 {
    color: #ffffff; 
    margin-bottom: 10px;
}
.service-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 0 20px rgba(0, 255, 194, 0.6), 0 0 30px rgba(0, 255, 255, 0.4); 
}
.service-card:hover i {
    background: none; 
    -webkit-text-fill-color: #FFD700;
    color: #FFD700;
}

/* --- Estilos de la Sección de Partners (Carrusel Infinito de 4 Filas) --- */
.partners-section {
    padding: 60px 0;
    text-align: center;
    background-color: #111;
    overflow: hidden; 
    white-space: nowrap; 
    border-top: 1px solid #222; 
}
.partners-section h2 {
    margin-bottom: 30px;
    color: #ffffff; 
    font-size: 1.6rem;
}
.logo-carousel {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    margin: 40px 0;
}
.partner-row {
    display: flex;
    width: max-content; 
    animation-timing-function: linear; 
    animation-iteration-count: infinite; 
}
.logo-carousel > div:nth-child(1) { animation-duration: 60s; } 
.logo-carousel > div:nth-child(2) { animation-duration: 70s; } 
.logo-carousel > div:nth-child(3) { animation-duration: 55s; } 
.logo-carousel > div:nth-child(4) { animation-duration: 40s; } 
.partner-row-left { animation-name: scroll-left; }
.partner-row-right { animation-name: scroll-right; }
.partner-row img {
    height: 45px; 
    width: auto;
    max-height: 45px;
    margin: 0 35px; 
    opacity: 0.8;
    filter: grayscale(100%) brightness(200%); 
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.partner-row img:hover {
    opacity: 1;
    filter: none; 
    transform: scale(1.05);
}

/* --- Estilos de la Sección "Acerca de" (MEJORADA) --- */
.about-section {
    padding: 60px 0;
    background-color: #1a1a1a; 
}
.about-section h2 {
    text-align: center; 
    margin-bottom: 40px; 
}
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.about-left {
    flex: 2;
    min-width: 300px;
}
.about-left h3 {
    color: #00FFC2;
    margin-top: 20px;
    margin-bottom: 10px;
}
.about-left p {
    color: #ccc;
    line-height: 1.7;
}
.about-right {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-data-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.about-data-card i {
    font-size: 2rem;
    color: #FFA500;
    margin-bottom: 10px;
}
.about-data-card h4 {
    color: #fff;
    margin-bottom: 5px;
}
.about-data-card p {
    color: #ccc;
    font-size: 1.1rem;
    font-weight: bold;
} 
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: #ccc;
    border: 2px solid #555;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    color: #FFA500;
    border-color: #FFA500;
    transform: scale(1.1);
}

/* --- Estilos del Footer (Pie de Página) --- */
.main-footer {
    padding: 30px 0;
    background-color: #111; 
    text-align: center;
    border-top: 1px solid #333; 
}
.main-footer p {
    color: #888; 
    font-size: 0.9rem;
}


/* ===============================================
--- ESTILOS DE PÁGINAS DE SERVICIO (RE-INSERTADO) --- 
===============================================
*/
.service-hero-simple {
    padding: 50px 0;
    background-color: #111;
    border-bottom: 2px solid #00FFC2; /* VERDE por defecto */
    text-align: center;
    position: relative; 
    overflow: hidden;   
}
.service-hero-simple h1 {
    color: #00FFC2; /* VERDE por defecto */
    font-size: 2.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.service-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 300;
    position: relative;
    z-index: 2;
}
.service-page-content {
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.service-main-col {
    flex: 2;
    min-width: 300px;
}
.service-main-col h2 {
    font-size: 2rem;
    color: #FFA500;
    margin-bottom: 20px;
}
.service-main-col h3 {
    font-size: 1.5rem;
    color: #00FFC2; /* VERDE por defecto */
    margin-top: 30px;
    margin-bottom: 15px;
}
.service-main-col p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}
.service-main-col .service-list-items {
    list-style: none;
    padding-left: 0;
}
.service-main-col .service-list-items li {
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 25px; 
    line-height: 1.6;
}
.service-main-col .service-list-items li i {
    background: linear-gradient(90deg, #8A2BE2, #00FFFF); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
    font-size: 1.4rem; 
    margin-right: 15px; 
    margin-top: 5px; 
    flex-shrink: 0; 
}
.list-item-content {
    flex: 1; 
}
.list-item-content strong {
    color: #ffffff; 
    font-size: 1.1rem;
    display: block; 
}
.list-item-content p {
    color: #ccc;
    margin: 0; 
}
.service-sidebar-col {
    flex: 1; 
    min-width: 250px;
    position: sticky; 
    top: 120px;       
}
.service-lottie-container {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    margin-bottom: 30px;
}
.service-image-container {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px; 
    text-align: center;
    margin-bottom: 30px;
}
.service-image-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.service-placeholder-icon {
    font-size: 8rem;
    opacity: 0.3;
}
.service-contact-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}
.service-contact-box h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.service-contact-box p { 
    color: #ccc;
    margin-bottom: 25px; 
}
.service-contact-box .cta-button {
    width: 100%; 
}
.service-hero-simple .hero-lottie-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    z-index: 1; 
    pointer-events: none; 
}
.service-hero-simple .hero-lottie-background lottie-player {
    position: absolute;
    width: 150%; /* Puedes jugar con este tamaño */
    height: 150%; /* Puedes jugar con este tamaño */

    /* === INICIA EL CAMBIO === */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* <-- Esta es la magia del centrado */
    /* === TERMINA EL CAMBIO === */

    opacity: 0.4;
    animation: none;
}

/* ===============================================
--- TEMAS DE COLOR PARA PÁGINAS DE SERVICIO --- 
===============================================
*/

/* --- TEMA PÁGINA DE SERVICIO: AZUL --- */
.theme-blue .service-hero-simple {
    border-bottom-color: #00AFFF;
}
.theme-blue .service-hero-simple h1 {
    color: #00AFFF;
}
.theme-blue .service-main-col h3 {
    color: #00AFFF;
}
.theme-blue .service-main-col li i {
    background: linear-gradient(90deg, #00AFFF, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}
.theme-blue .service-placeholder-icon {
    color: #00AFFF;
}
/* --- TEMA PÁGINA DE SERVICIO: AMARILLO --- */
.theme-yellow .service-hero-simple {
    border-bottom-color: #FFD700;
}
.theme-yellow .service-hero-simple h1 {
    color: #FFD700;
}
.theme-yellow .service-main-col h3 {
    color: #FFD700;
}
.theme-yellow .service-main-col li i {
    /* ¡CAMBIO! Devolvemos el degradado estándar */
    background: linear-gradient(90deg, #8A2BE2, #00FFFF); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.theme-yellow .service-placeholder-icon {
    color: #FFD700;
}
/* --- TEMA PÁGINA DE SERVICIO: NARANJA PROFUNDO --- */
.theme-orange .service-hero-simple {
    border-bottom-color: #F57C00; 
}
.theme-orange .service-hero-simple h1 {
    color: #F57C00;
}
.theme-orange .service-main-col h3 {
    color: #F57C00;
}
.theme-orange .service-main-col li i {
    background: linear-gradient(90deg, #F57C00, #FFB74D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}
.theme-orange .service-placeholder-icon {
    color: #F57C00;
}
/* --- TEMA PÁGINA DE SERVICIO: MORADO (Seguridad) --- */
.theme-purple .service-hero-simple {
    border-bottom-color: #8A2BE2;
}
.theme-purple .service-hero-simple h1 {
    color: #8A2BE2;
}
.theme-purple .service-main-col h3 {
    color: #8A2BE2;
}
.theme-orange .service-main-col li i {
    /* ¡CAMBIO! Devolvemos el degradado estándar */
    background: linear-gradient(90deg, #8A2BE2, #00FFFF); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.theme-purple .service-placeholder-icon {
    color: #8A2BE2;
}


/* ===============================================
--- TEMA PÁGINA DE SERVICIO: BLANCO (IA/SPLINE) --- 
===============================================
*/

/* --- 1. Estilos Base del Tema Blanco --- */

body.theme-white {
    background-color: #ffffff;
    color: #333; /* Texto principal oscuro */
}
.theme-white .main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}
/* (Logo oscuro - pendiente) */
.theme-white .main-nav a {
    color: #333; 
}
.theme-white .main-nav a:hover::after,
.theme-white .main-nav a::after {
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
}
.theme-white .menu-toggle {
    color: #333; 
    border-color: #333;
}
.theme-white h1,
.theme-white h2,
.theme-white h3,
.theme-white h4 {
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; 
}
/* Hacemos el h4 del CTA oscuro (sin degradado) */
.theme-white .ia-cta-box h4 {
    color: #333;
    background: none; 
    -webkit-text-fill-color: initial;
}
.theme-white p,
.theme-white .list-item-content p,
.theme-white .list-item-content strong {
    color: #555;
}

/* --- ESTA ES LA REGLA PARA ALINEAR PALOMITAS --- */
.theme-white .service-list-items li {
    display: flex;
    align-items: flex-start;
}

.theme-white .service-list-items li i {
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.theme-white .main-footer {
    background-color: #f4f4f4;
    border-top: 1px solid #ddd;
}
.theme-white .main-footer p {
    color: #888;
}

/* --- 2. Estilos del NUEVO Hero de IA (Tu Visión) --- */

/* SECCIÓN 1: TÍTULO */
.ia-hero-title {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.ia-hero-text-top {
    position: relative; 
    z-index: 10;
}
.ia-hero-text-top h1 { font-size: 3.5rem; }
.ia-hero-text-top p { font-size: 1.2rem; color: #555; }

/* Capa 1: Lottie de Fondo (Para el Título) */
.ia-hero-lottie-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.4; 
    filter: grayscale(100%);
}
.ia-hero-lottie-background lottie-player {
    width: 100%; height: 100%;
}


/* SECCIÓN 2: SPLINE INTERACTIVO */
.spline-ia-hero {
    width: 100%;
    min-height: 65vh; /* Altura reducida */
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9; 
    padding: 40px 0; /* Padding reducido */
}

/* Capa 1: Escena 3D de Spline (EL FONDO GRIS) */
.spline-embed-fullscreen {
    position: absolute; 
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Capa 1 (Fondo) */
}
.spline-embed-fullscreen iframe {
    width: 100%;
    height: 100%;
}

/* --- 🎨 AQUÍ ESTÁ EL PARCHE PARA TAPAR EL LOGO --- */
/* Está "pegado" al iframe (Capa 1) */
.spline-embed-fullscreen::after {
    content: '';
    position: absolute;
    z-index: 100; /* Capa 100 (encima del iframe) */

    /* === ¡AJUSTA ESTO! === */
    /* 1. CAMBIA EL COLOR */
    background-color: #E9E9E9; /* <-- Pon el color exacto de tu fondo de Spline */
    
    /* 2. ACOMODA EL PARCHE */
    bottom: 15px; /* Píxeles desde abajo */
    right: 15px;  /* Píxeles desde la derecha */
    width: 150px; /* Ancho del parche */
    height: 60px; /* Alto del parche */
}

/* Capa 2: Contenido Superpuesto (REGLA CONSOLIDADA) */
.spline-content-overlay {
    position: relative; 
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr; /* 3 columnas */
    align-items: center;
    gap: 20px;
    min-height: 500px;
    
    /* --- 🖱️ ARREGLO DE INTERACTIVIDAD --- */
    z-index: 101; /* Capa 101 (encima del parche) */
    pointer-events: none; /* <-- Hacemos la cuadrícula invisible al mouse */
}

/* Columna Izquierda: Servicios */
.ia-service-list {
    grid-column: 1 / 2;
    z-index: 10;
    padding: 20px;
    align-self: start;
    pointer-events: NONE; /* <-- 🖱️ Reactivamos el mouse para la columna */
}
.ia-service-list h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.ia-service-list .service-list-items {
    padding-left: 0;
    list-style: none;
}
.theme-white .list-item-content strong {
    font-size: 1rem;
    color: #222; 
}

/* --- 🖱️ ARREGLO DE INTERACTIVIDAD (HIJOS IZQUIERDOS) --- */
/* ¡Esta era la regla que faltaba! */
.ia-service-list > * {
    pointer-events: auto;
}


/* Columna Derecha: CTA (SIN CUADRO NEGRO) */
.ia-cta-box {
    grid-column: 3 / 4;
    z-index: 10;
    padding: 20px;
    text-align: center; 
    align-self: start; 
    background: none; 
    box-shadow: none;
    border: none;
    pointer-events: NONE; /* <-- 🖱️ Reactivamos el mouse para la columna */
}

.ia-cta-box > * {
    pointer-events: auto;
}

.ia-cta-box h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.ia-cta-box p {
    margin-bottom: 20px;
    color: #555;
}
.ia-cta-box .cta-button {
    width: 100%; 
}


/* ===============================================
--- ANIMACIÓN DE SCROLL (FADE IN UP) --- 
===============================================
*/
.fade-in-up {
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1; 
    transform: translateY(0); 
}


/* ===============================================
--- ESTILOS DE LA MODAL (VENTANA PROFESIONAL) ---
===============================================
*/

/* --- El fondo oscuro (Overlay) --- */
.modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000; 
    padding: 15px; 
}

/* --- La caja del formulario --- */
.modal-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    width: 100%; 
    max-width: 500px;
    
    /* ¡CAMBIO! Se añadió la sombra cian al final */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7), 
                0 0 25px rgba(0, 255, 194, 0.4); /* <--- ESTE ES EL GLOW CIAN */
    
    position: relative; 
    transition: transform 0.3s ease; 
    transform: translateY(-20px); 
}

/* --- Botón de Cerrar (la 'X') --- */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover {
    color: #FFA500; 
    transform: scale(1.1);
}

/* --- Título (H2) con estilo "Geo" y degradado --- */
.modal-content h2 {
    font-family: 'Geo', sans-serif; 
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2.2rem; 
    color: #ffffff; /* ¡CAMBIO! Color blanco sólido */
}

/* --- Párrafo de descripción --- */
.modal-content p {
    text-align: center;
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* --- Grupo de Formulario --- */
.form-group {
    margin-bottom: 15px;
}

/* --- Etiquetas (Label) del formulario --- */
.modal-content label {
    text-align: left; 
    display: block; 
    margin-bottom: 8px; 
    color: #ccc;
    font-weight: bold; 
    font-size: 0.9rem;
    text-transform: uppercase; 
}

/* --- Estilos para los <input>, <select> y <textarea> --- */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    
    /* ¡CAMBIO! Fondo negro y texto blanco */
    background: #111;           /* <--- FONDO NEGRO */
    color: #e0e0e0;             /* <--- TEXTO BLANCO */
    border: 2px solid #777;     /* <--- Borde gris más claro */
    
    border-radius: 5px;
    font-family: 'Genos', sans-serif; 
    font-size: 1.1rem;
    box-sizing: border-box; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Flecha personalizada para el <select> */
.modal-content select {
    appearance: none;
    -webkit-appearance: none;
    
    /* ¡CAMBIO! El color de la flecha ahora es blanco (#e0e0e0) */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.41%200.58L6%205.17L10.59%200.58L12%202L6%208L0%202L1.41%200.58Z%22%20fill%3D%22%23e0e0e0%22%2F%3E%3C%2Fsvg%3E');
    
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.modal-content textarea {
    resize: vertical; 
    min-height: 100px;
}

/* Efecto "Glow" (naranja) al seleccionar un campo */
.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: #FFA500; 
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5); 
    outline: none; 
}

/* Placeholders */
.modal-content ::placeholder {
  color: #777; /* Un gris que se ve bien sobre el fondo negro */
  opacity: 1;
}

/* --- Botón de Enviar (hereda de .btn-primary) --- */
/* --- Botón de Enviar (hereda de .btn-primary) --- */
.modal-content .btn-primary {
    width: 100%; 
    padding: 15px;
    font-size: 1.1rem;
    font-family: 'Geo', sans-serif; /* <-- ¡ARREGLADO! */
}
    
/* ===============================================
--- DEFINICIONES DE ANIMACIÓN (KEYFRAMES) --- 
===============================================
*/
@keyframes circuitMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; } 
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
@keyframes scroll-right {
    0% { transform: translateX(-50%); } 
    100% { transform: translateX(0); } 
}
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); } 
    100% { opacity: 1; transform: translateY(0); } 
}


/* ===============================================
--- INICIA ESTILOS DE PÁGINA: CAPACITACIÓN (TEMA OSCURO) --- 
===============================================
*/

/* --- SECCIÓN 1: HERO "UNIVERSITARIO" --- */
.hero-capacitacion {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    background-image: url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
    background-size: cover;
    background-position: center;
}

/* Capa de color (más oscura) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(50, 20, 90, 0.7), rgba(0, 50, 50, 0.7)), rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-capacitacion .hero-content {
    position: relative;
    z-index: 2;
}

/* h1 ahora tendrá el degradado por defecto al quitar .theme-white */
.hero-capacitacion h1 {
    font-size: 3rem;
    font-family: 'Geo', sans-serif;
}

/* p ahora debe ser clara */
.hero-capacitacion p {
    color: #ccc;
    font-size: 1.3rem;
    max-width: 600px;
    margin: 15px auto 30px auto;
}

/* Wrapper para los dos botones del Hero */
.hero-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.hero-buttons-wrapper .btn-primary,
.hero-buttons-wrapper .btn-secondary {
    font-size: 1.1rem;
    padding: 12px 28px;
}
.hero-buttons-wrapper .btn-primary i,
.hero-buttons-wrapper .btn-secondary i {
    margin-right: 8px;
}
/* Estilo para el botón secundario (borde amarillo) */
.btn-secondary {
    display: inline-block;
    background: none;
    border: 2px solid #FFA500;
    color: #FFA500;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: #FFA500;
    color: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFA500;
}


/* --- SECCIÓN 3: CATÁLOGO DE CURSOS --- */
.course-catalog-section {
    background-color: #1a1a1a; /* Fondo oscuro principal */
    padding: 60px 0;
}
.course-catalog-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta de Curso (estilo oscuro, como service-card) */
.course-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
    text-align: center;
    transition: all 0.3s ease;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 194, 0.6); /* Glow cian */
}

/* Ícono del curso (degradado) */
.course-card i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
/* h3 heredará el degradado */
.course-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.course-card p {
    color: #ccc;
    margin-bottom: 25px;
}

/* --- NUEVOS ESTILOS PARA EL CATÁLOGO DE CURSOS --- */

/* 1. Cambiamos la cuadrícula a 4 columnas */
.course-catalog-section .course-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Mantenemos el espacio */
}

/* 2. Eliminamos el estilo de las tarjetas antiguas */
.course-card {
    /* Puedes borrar las reglas de .course-card si ya no las usas */
    display: none; /* Oculta las tarjetas de diseño antiguo */
}

/* 3. Estilo principal de la nueva tarjeta vertical */
.course-card-vertical {
    background: #1e1e1e; /* Fondo de tarjeta oscuro */
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden; /* Para que la imagen respete los bordes */
    display: flex;
    flex-direction: column; /* Apila imagen, contenido y botón */
    height: 100%; /* Asegura que todas las tarjetas en una fila tengan la misma altura */
    transition: all 0.3s ease;
}
.course-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 194, 0.4); /* Glow cian */
}

/* 4. Contenedor de la imagen */
.card-image-container {
    height: 180px; /* Altura fija para la imagen */
    background-color: #333; /* Color mientras cargan las imágenes */
}
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
}

/* 5. Contenedor del texto (para alinear el botón) */
.card-content-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column; /* Apila título, lista y botón */
    flex-grow: 1; /* ¡Magia! Hace que este contenedor crezca y ocupe el espacio */
}

/* 6. Título (h3) del curso */
.course-card-vertical h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    /* Heredará el color de degradado */
}

/* 7. Subtítulo (h4) para "Habilidades" */
.course-card-vertical h4 {
    font-size: 1rem;
    color: #00FFC2; /* Tu color de acento cian */
    text-transform: uppercase;
    font-family: 'Geo', sans-serif;
    margin-bottom: 10px;
    /* Anulamos el degradado de .theme-white h4 */
    background: none;
    -webkit-text-fill-color: initial;
}

/* 8. Lista de habilidades */
.skills-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}
.skills-list li {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.skills-list li i {
    color: #00FFC2; /* Icono de check en cian */
    margin-right: 8px;
    font-size: 0.8rem;
}

/* 9. Botón "Inscribirme" (se empuja al fondo) */
.course-card-vertical .btn-primary {
    width: 100%;
    margin-top: auto; /* ¡Magia! Empuja el botón al fondo de la tarjeta */
}
/* El .btn-secondary (borde amarillo) ya está definido */


/* --- SECCIÓN 4: POR QUÉ ELEGIRNOS --- */
.features-section {
    background: #111; /* Fondo más oscuro */
    padding: 60px 0;
    border-top: 1px solid #333;
}
.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-item i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.feature-item h3 {
    margin-bottom: 10px;
}
.feature-item p {
    color: #ccc;
}


/* --- SECCIÓN 5: CTA PARA EMPRESAS --- */
.company-cta-section {
    background: #1a1a1a;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #333;
}
.company-cta-section h2 {
    font-size: 2rem;
}
.company-cta-section p {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 15px auto 30px auto;
}

/* --- ESTILOS PARA EL CONTENIDO DE LAS NUEVAS MODALS --- */

/* Estilos para el formulario de Login (dentro de la modal) */
.modal-content .login-card {
    padding: 10px 0; /* Añadir padding */
}
.modal-content .login-card h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.modal-content .login-card p {
    text-align: center;
    margin-bottom: 25px;
    color: #ccc;
}
.modal-content .login-card label {
    text-transform: uppercase;
    font-size: 0.9rem;
}
.modal-content .login-card .btn-primary {
    width: 100%;
}
.modal-content .forgot-password {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: underline;
}

/* Estilos para los botones de Aulas Virtuales (dentro de la modal) */
.modal-content .virtual-class-card {
     padding: 10px 0;
}
.modal-content .virtual-class-card h3 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.modal-content .virtual-class-card p {
    text-align: center;
    margin-bottom: 25px;
    color: #ccc;
}
.modal-content .virtual-class-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.modal-content .btn-virtual {
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid transparent;
}
.modal-content .btn-virtual i {
    margin-right: 15px;
    font-size: 1.5rem;
}
/* Botón Google */
.modal-content .btn-google {
    background: #4285F4;
    border-color: #4285F4;
    color: #ffffff;
}
.modal-content .btn-google:hover {
    background: #ffffff;
    color: #4285F4;
    border-color: #4285F4;
}
/* Botón Zoom */
.modal-content .btn-zoom {
    background: #2D8CFF;
    border-color: #2D8CFF;
    color: #ffffff;
}
.modal-content .btn-zoom:hover {
    background: #ffffff;
    color: #2D8CFF;
    border-color: #2D8CFF;
}


/* --- ESTILOS PARA LA MODAL "PRÓXIMAMENTE" --- */
.proximamente-content {
    text-align: center;
    padding: 20px 0;
}
.proximamente-content i {
    font-size: 5rem;
    margin-bottom: 25px;
    /* Usamos el degradado de acento */
    background: linear-gradient(90deg, #8A2BE2, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
/* El h2 heredará el estilo de la modal (blanco) */
.proximamente-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}
.proximamente-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-top: 10px;
    line-height: 1.5;
}

/* ===============================================
--- TERMINA ESTILOS DE PÁGINA: CAPACITACIÓN --- 
===============================================
*/










/* ===============================================
--- ESTILOS DE RESPONSIVIDAD (MÓVILES Y TABLETAS) --- 
===============================================
*/
.menu-toggle {
    display: none; 
    background: none;
    border: 2px solid #FFA500; 
    color: #FFA500; 
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1100; 
}

@media (max-width: 992px) {

    .main-header .container {
        justify-content: space-between;
    }
    .menu-toggle {
        display: block; 
    }
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; 
        background: rgba(17, 17, 17, 0.98); 
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1050; 
    }
    .main-nav.menu-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .main-nav ul {
        display: flex;
        flex-direction: column; 
        text-align: center;
        margin: 0;
    }
    .main-nav li {
        margin: 20px 0; 
    }
    .main-nav a {
        font-size: 1.5rem; 
    }
    .main-nav .cta-button {
    margin-top: 30px; /* Separa el botón de "Solicitar Presupuesto" */
    display: block !important; /* ¡FUERZA A QUE SEA VISIBLE! */
    visibility: visible !important; /* ¡FUERZA A QUE SEA VISIBLE! */
}
    .hero-content-wrapper {
        flex-direction: column; 
        text-align: center; 
        gap: 30px;
    }
    .hero-left, .hero-right {
        text-align: center;
        padding-right: 0; 
        flex-basis: 100%;
        width: 100%;
    }
    .hero-section h1, .hero-section p {
        text-align: center; 
        max-width: 100%;
    }
    .hero-section h1 {
        font-size: 2.5rem; 
    }
    .about-content {
        flex-direction: column; 
    }
    .about-left {
        order: 1; 
    }
    .about-right {
        order: 2; 
        flex-direction: row; 
        gap: 10px; 
    }
    .about-data-card {
        flex: 1; 
        padding: 15px 10px; 
        min-width: 0; 
    }
    .about-data-card i {
        font-size: 1.5rem; 
    }
    .about-data-card h4 {
        font-size: 0.9rem; 
    }
    .about-data-card p {
        font-size: 0.9rem;
        font-weight: normal; 
    }
    .social-icons {
        gap: 15px; 
        justify-content: center; 
    }
    .social-icons a {
        width: 40px; 
        height: 40px;
        font-size: 1.2rem; 
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
    .service-card {
        padding: 20px; 
    }
    .service-card i {
        font-size: 2rem; 
    }
    .service-card h3 {
        font-size: 1rem; 
    }
    
    .partners-section {
        padding: 40px 0; 
    }
    .partners-section h2 {
        font-size: 1.4rem; 
        margin-bottom: 20px;
    }
    #partner-row-3,
    #partner-row-4 {
        display: none;
    }
    .partner-row img {
        height: 35px; 
        max-height: 35px;
        margin: 0 20px; 
    }
    
    /* --- Ajustes de Responsividad para IA (Móvil) --- */
    .spline-ia-hero {
        height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
        min-height: 0; /* Desactivar altura mínima */
}

    /* --- ¡AQUÍ ESTÁ EL ARREGLO! --- */
    /* Usamos el nombre de clase correcto: .spline-content-overlay */
    .spline-content-overlay {
        grid-template-columns: 1fr; /* ¡CAMBIO! 1 sola columna */
        grid-template-rows: auto auto auto; /* Apilamos las filas */
        padding-top: 20px;
        gap: 30px;
        min-height: auto;
        
    }

    /* Usamos el nombre de clase correcto: .spline-embed-fullscreen */
    .spline-embed-fullscreen {
position: relative; /* ¡CAMBIO! Ya no está fijo */
grid-row: 2; /* ¡CAMBIO! Lo ponemos en medio */
width: 100%;
height: 400px; /* Le damos una altura fija */
z-index: 5;
pointer-events: all; /* Habilitado en móvil */
}
.ia-service-list {
grid-row: 1; /* ¡CAMBIO! Lo ponemos primero */
display: block;
margin-top: 0;
z-index: 10;
        text-align: center; /* Centramos la lista */
}
.ia-cta-box {
grid-row: 3; /* Lo ponemos al final */
display: block;
text-align: center;
z-index: 10;
}
.theme-white .service-main-col {
max-width: 100%;
text-align: left;
}
.ia-hero-lottie-background {
display: none;
}
}