/* ===== CSS VARIABLES ===== */
:root {
    --primary-bg: #0A0E27;
    --secondary-bg: #1a2332;
    --text-white: #ffffff;
    --text-gray: #d1d5db;
    --text-gray-light: #9ca3af;
    --accent-cyan: #00d9ff;
    --accent-blue: #3b82f6;
    --accent-blue-dark: #1e40af;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    width: 2.5rem;
    height: auto;
}

.logo-text {
    color: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
}

.contact-btn {
    background-color: var(--accent-cyan);
    color: var(--primary-bg) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.contact-btn:hover {
    background-color: #00b8d4;
    color: var(--primary-bg) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.375rem;
}

.menu-toggle span {
    width: 1.5rem;
    height: 0.25rem;
    background-color: var(--text-white);
    border-radius: 0.125rem;
    transition: var(--transition);
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-white);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* =========================================================
   ===== SECCIÓN CARRUSEL (SLIDER INTERACTIVO) =====
   ========================================================= */

.carousel-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--primary-bg);
}

/* --- Estructura para superponer los slides --- */
.carousel-slides-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 500px; /* Asegura un alto mínimo para que no salte el contenido */
}

/* Ahora los contenedores padre solo sirven para posicionar, NO los ocultamos */
.carousel-container {
    position: absolute;
    top: 0;
    left: 1.5rem; 
    right: 1.5rem;
}

/* El contenedor que contiene el slide activo se vuelve visible */
.carousel-slide.active {
    display: flex; /* O grid, dependiendo de tu diseño interno */
}

/* Pero para la animación, controlamos la opacidad desde un contenedor superior (si usas JS para agregar una clase .active-container, o si tu JS alterna la clase .active directamente en el .carousel-slide) */

/* El ocultamiento y la animación se manejan directamente en el slide */
.carousel-slide {
    display: none; /* Oculta los slides inactivos */
    opacity: 0;
}

.carousel-slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad imagen, mitad texto */
    gap: 3rem;
    align-items: center;
    opacity: 1;
    animation: fadeSlide 0.8s forwards;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Imágenes del Carrusel --- */
.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 450px; 
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 5s ease; /* Efecto zoom lento */
}

.carousel-slide.active .carousel-image {
    transform: scale(1.05); /* La imagen hace un ligero zoom cuando el slide está activo */
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 14, 39, 0.4), transparent);
}

/* --- Contenido de Texto --- */
.carousel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.slide-line {
    height: 3px;
    width: 60px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.slide-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: bold;
}

.slide-subtitle {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.slide-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.slide-button {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-button:hover {
    background-color: #fff;
    color: var(--primary-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

/* --- Controles del Carrusel (Flechas, Puntos, Contador) --- */

/* Flechas Laterales */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(10, 14, 39, 0.7);
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.carousel-btn-prev { left: 5%; }
.carousel-btn-next { right: 5%; }

/* Puntos (Dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--accent-cyan);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Contador (01 / 03) */
.carousel-counter {
    position: absolute;
    bottom: 2rem;
    right: 5%;
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 10;
}

.carousel-counter #currentSlide {
    color: var(--text-white);
    font-size: 1.5rem;
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .carousel-slide.active {
        grid-template-columns: 1fr; /* Pasa a una columna */
        gap: 2rem;
        text-align: center;
    }
    
    .carousel-image-wrapper {
        height: 300px;
    }
    
    .slide-number {
        justify-content: center;
    }
    
    .slide-button {
        align-self: center;
    }
    
    .carousel-counter {
        display: none; /* Ocultamos el contador en móviles para ahorrar espacio */
    }
}

@media (max-width: 768px) {
    .slide-title { font-size: 2rem; }
    .slide-subtitle { font-size: 1.2rem; }
    
    /* Movemos las flechas abajo o las ocultamos si preferimos solo dots en móvil */
    .carousel-btn {
        top: auto;
        bottom: 10px;
        transform: none;
    }
    .carousel-btn-prev { left: 20%; }
    .carousel-btn-next { right: 20%; }
}

/* =========================================================
   ===== SECCIÓN HERO (PORTADA PRINCIPAL) =====
   ========================================================= */

/* =========================================================
   ===== SECCIÓN HERO (PORTADA PRINCIPAL ACTUALIZADA) =====
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem 0;
    overflow: hidden;
    
    /* Aquí está la magia: Degradado azul oscuro + Imagen */
    background-image: 
        linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(30, 64, 175, 0.6) 100%),
        url('images/fondo.webp'); /* <-- Reemplaza esto con tu imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Opcional: crea un efecto "parallax" al hacer scroll */
}

/* Ajustamos el overlay para que no tape la imagen en las orillas */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Un ligero viñeteado (bordes oscuros) para resaltar el texto del centro */
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 14, 39, 0.8) 100%);
    z-index: 1;
}

/* --- Fondos y Capas --- */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}



/* --- Contenedor Principal del Hero --- */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 1000px;
}

/* --- Logo y Eslogan --- */
.hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.3));
}

.hero-slogan {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- Textos Principales --- */
.hero-text-section {
    animation: fadeInUp 1s ease-out 0.2s both; /* Animación de entrada */
}

.hero-title {
    /* El tamaño se adapta dinámicamente según la pantalla */
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Botones --- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Corrección de los botones para que no ocupen el 100% como en el formulario de contacto */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    width: auto; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* El ícono de flecha se mueve al pasar el mouse */
.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: rgba(0, 217, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Estadísticas del Hero --- */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats .stat-box {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.4); /* Resplandor */
}

.hero-stats .stat-label {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Animaciones Suaves --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        min-height: auto; /* Permite que el contenido fluya si la pantalla es muy pequeña */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%; /* En celulares, los botones sí abarcan toda la pantalla */
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        padding-top: 2rem;
    }
}


/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background-color: #00b8d4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}


/* =========================================================
   ===== SECCIÓN FÓRMULA (CÓMO LOGRAMOS RESULTADOS) =====
   ========================================================= */

.formula-section {
    padding: 6rem 0;
    background-color: var(--primary-bg); /* O puedes usar var(--secondary-bg) si quieres intercalar colores */
}

/* --- Cuadrícula Principal (Imagen + Lista de Pasos) --- */
.formula-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mitad imagen, mitad texto */
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.formula-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* --- Lista de Pasos (1 al 4) --- */
.formula-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.formula-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

/* Efecto hover: el elemento resalta y se desplaza ligeramente a la derecha */
.formula-item:hover {
    border-color: var(--accent-cyan);
    transform: translateX(10px);
    box-shadow: -5px 10px 20px rgba(0, 217, 255, 0.05);
}

/* Círculos con los números */
.formula-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.formula-item h3 {
    color: var(--text-white);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.formula-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Resultado Final y Métricas (+70%, -60%, etc.) --- */
.formula-outcome {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(26, 35, 50, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.formula-outcome h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.formula-outcome > p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* Las cajas de los porcentajes */
.formula-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric {
    background-color: rgba(10, 14, 39, 0.5); /* Fondo muy oscuro para contrastar */
    border: 1px solid rgba(0, 217, 255, 0.15);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.metric:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.metric-label {
    color: var(--text-white);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .formula-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 3rem;
    }
    
    .formula-image {
        order: -1; /* Pone la imagen arriba de la lista en móviles/tablets */
        text-align: center;
    }
}

@media (max-width: 768px) {
    .formula-outcome {
        padding: 3rem 1.5rem;
    }
    
    .formula-metrics {
        grid-template-columns: 1fr; /* Apila las métricas una debajo de la otra */
        gap: 1.5rem;
    }
}


/* =========================================================
   ===== SECCIÓN DE SOLUCIONES (SOLUTIONS SECTION) =====
   ========================================================= */

.solutions-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--primary-bg);
    overflow: hidden;
}

/* --- Fondo animado (Blobs compartidos) --- */
.solutions-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.solutions-section .container {
    position: relative;
    z-index: 1;
}

/* --- Cuadrícula de Tarjetas de Solución --- */
/* --- Cuadrícula de Tarjetas de Solución (Ajustada a 2 columnas) --- */
.solutions-grid {
    display: grid;
    /* Forzamos a que sean exactamente 2 columnas del mismo tamaño */
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
    margin-top: 3rem;
}

/* Diseño Responsivo: En celulares o tablets pequeñas, pasa a 1 sola columna */
@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Diseño de Tarjeta Individual --- */
.solution-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%; /* Asegura que todas midan lo mismo en la fila */
}

/* Efecto al pasar el cursor sobre la tarjeta */
.solution-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.08);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    display: inline-block;
    background: rgba(0, 217, 255, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    width: max-content;
}

.solution-card h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.solution-card > p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1; /* Empuja los beneficios y el enlace hacia abajo */
}

/* --- Beneficios (Etiquetas / Tags) --- */
.solution-benefits {
    display: flex;
    flex-wrap: wrap; /* Si no caben, pasan a la siguiente línea */
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.benefit {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-gray-light);
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem; /* Forma de píldora */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* Al pasar el cursor por la tarjeta, las etiquetas se iluminan */
.solution-card:hover .benefit {
    background-color: rgba(0, 217, 255, 0.05);
    color: var(--accent-cyan);
    border-color: rgba(0, 217, 255, 0.2);
}

/* --- Enlace "Explorar Solución" --- */
.solution-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: auto; /* Lo pega al fondo de la tarjeta */
}

.solution-link::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.solution-link:hover {
    color: #fff;
}

.solution-link:hover::after {
    transform: translateX(5px);
}

/* --- Llamado a la Acción (CTA) Final --- */
.solutions-cta {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9), rgba(0, 217, 255, 0.05));
    border: 1px solid var(--accent-cyan);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.1);
}

.solutions-cta h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.solutions-cta p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.solutions-cta .btn-primary {
    display: inline-block;
    width: auto;
    margin: 0 auto;
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
    .solutions-cta {
        padding: 3rem 1.5rem;
    }
    
    .solutions-cta h3 {
        font-size: 1.75rem;
    }
}

/* =========================================================
   ===== SECCIÓN QUIÉNES SOMOS (ABOUT SECTION) =====
   ========================================================= */

.about-section {
    padding: 6rem 0;
    background-color: var(--primary-bg);
}

/* --- Primera parte: Texto y Tarjetas --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-white);
    font-weight: 600;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-card {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.05);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-card h4 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.about-card p {
    color: var(--text-gray-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Segunda parte: Ubicaciones y Servicios --- */
.about-locations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.locations-box, 
.services-box {
    background-color: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.locations-box h3, 
.services-box h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.location-item, 
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-item:last-child, 
.service-item:last-child {
    margin-bottom: 0;
}

.location-icon, 
.service-dot {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    line-height: 1;
}

.location-name, 
.service-name {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.location-desc, 
.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- Tercera parte: Destacado del Equipo (Estadísticas) --- */
.team-highlight {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.9), rgba(0, 217, 255, 0.05));
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
}

.team-highlight h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.team-highlight > p {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.stat-label {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Diseño Responsivo (Tabletas y Móviles) --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-locations {
        grid-template-columns: 1fr;
    }
    
    .team-highlight {
        padding: 3rem 1.5rem;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =========================================================
   ===== SECCIÓN AUTORIDAD (AUTHORITY SECTION) =====
   ========================================================= */

.authority-section {
    padding: 6rem 0;
    background-color: var(--primary-bg);
}

/* --- Imagen Principal --- */
.authority-image {
    text-align: center;
    margin: 3rem 0;
}

.authority-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

/* --- Métricas (10+, 500+, etc.) --- */
.authority-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.authority-metric {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.authority-metric:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.05);
}

.metric-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.2); /* Resplandor sutil */
}

.metric-label {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Caja de Certificaciones --- */
.certifications-box {
    background: linear-gradient(135deg, var(--secondary-bg), rgba(26, 35, 50, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
}

.certifications-box h3 {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas para los badges */
    gap: 3rem 2rem;
    margin-bottom: 3rem;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Diseño de las etiquetas (badges) */
.cert-badge {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 217, 255, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem; /* Bordes muy redondeados tipo píldora */
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: default;
}

/* Efecto al pasar el cursor sobre la certificación */
.cert-item:hover .cert-badge {
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.cert-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.cert-footer {
    color: var(--text-gray-light);
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-style: italic;
}

/* --- Diseño Responsivo --- */
@media (max-width: 992px) {
    .authority-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .authority-metrics {
        grid-template-columns: 1fr;
    }
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    .certifications-box {
        padding: 2.5rem 1.5rem;
    }
}
/* =========================================================
   ===== SECCIÓN DE CONTACTO (CONTACT SECTION) =====
   ========================================================= */

.contact-section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--primary-bg);
    overflow: hidden;
}

/* --- Fondo animado (Blobs compartidos con el Carousel) --- */
.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* El contenido debe estar por encima de los blobs */
.contact-section .container {
    position: relative;
    z-index: 1;
}

/* --- Contenedor del Formulario --- */
.contact-form-container {
    max-width: 800px; /* Evita que el formulario sea demasiado ancho en pantallas grandes */
    margin: 0 auto;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas para pantallas grandes */
    gap: 1.5rem 2rem;
}

/* --- Elementos del Formulario --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Hace que el botón de envío abarque ambas columnas */
.contact-form button[type="submit"] {
    grid-column: span 2;
    margin-top: 1rem;
}

label {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

input, 
select, 
textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: rgba(10, 14, 39, 0.5); /* Fondo ligeramente más oscuro que la tarjeta */
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

/* Cambia el color del texto de "placeholder" para que no sea tan brillante */
input::placeholder, 
textarea::placeholder {
    color: var(--text-gray-light);
}

/* Efecto Focus (cuando el usuario hace clic en un campo) */
input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
    background-color: rgba(10, 14, 39, 0.8);
}

/* Para navegadores que ponen texto negro en las opciones de select */
select option {
    background-color: var(--secondary-bg);
    color: var(--text-white);
}

/* --- Botón Primario (Si no lo tienes definido antes) --- */
/* --- Botón Primario Actualizado --- */
.btn-primary {
    padding: 1rem 2.5rem;
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Nuevas propiedades para centrar el texto */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn-primary:hover {
    background-color: #00b8d4; /* Un cyan un poco más oscuro */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

/* --- Pie de sección de contacto --- */
.contact-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.contact-footer strong {
    color: var(--accent-cyan);
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr; /* 1 columna en celulares */
        gap: 1.5rem;
    }
    
    .contact-form button[type="submit"] {
        grid-column: span 1;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}


/* =========================================================
   ===== PIE DE PÁGINA (FOOTER) =====
   ========================================================= */

.footer {
    background-color: var(--secondary-bg); /* Un tono más claro que el fondo principal para destacarlo */
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* --- Cuadrícula Principal del Footer --- */
.footer-grid {
    display: grid;
    /* Divide en 5 columnas: la primera (logo) es el doble de ancha, la última (contacto) un poco más ancha */
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; 
    gap: 2rem;
    margin-bottom: 3rem;
}

/* --- Sección del Logo y Marca --- */
.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Títulos de las Columnas --- */
.footer-section h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Línea decorativa cyan debajo de los títulos del footer */
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 30px;
    height: 2px;
    background-color: var(--accent-cyan);
}

/* --- Listas y Enlaces --- */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

/* Efecto hover: el texto se ilumina y se mueve un poquito a la derecha */
.footer-section a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px); 
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

/* --- Barra Inferior (Copyright y Políticas) --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea muy sutil */
    color: var(--text-gray-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* --- Diseño Responsivo --- */
/* Pantallas medianas (Tablets) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr); /* Pasa a 3 columnas */
    }
    .footer-section:first-child {
        grid-column: span 3; /* El logo y descripción abarcan toda la fila superior */
        margin-bottom: 1rem;
    }
}

/* Pantallas pequeñas (Celulares) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna */
    }
    .footer-section:first-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-links {
        justify-content: center;
    }
}



/* ===== SUBPAGES SECTIONS (Overview, Services, Benefits, SLA) ===== */

/* Contenedores de sección */
.overview-section, 
.services-section, 
.benefits-section, 
.sla-section {
    padding: 4rem 0;
    background-color: var(--primary-bg);
}

/* Grillas responsivas */
.overview-grid, 
.services-grid, 
.benefits-grid, 
.sla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tarjetas de contenido (Cards) */
.overview-card, 
.service-card, 
.sla-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: var(--transition);
}

/* Efecto hover para las tarjetas */
.overview-card:hover, 
.service-card:hover, 
.sla-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

/* Textos dentro de las tarjetas */
.overview-card h3, 
.service-card h3, 
.sla-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.overview-card p, 
.service-card p, 
.sla-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===== ESTILOS ESPECÍFICOS PARA BENEFICIOS ===== */
.benefit-item {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Ajuste de espaciado si el subtítulo va inmediatamente después del título */
.section-title + .section-subtitle {
    margin-top: -2rem; 
    margin-bottom: 3rem;
}

/* =========================================================
   ===== ARREGLOS PARA EL INICIO (INDEX.HTML) Y CAROUSEL ===
   ========================================================= */

/* Contenedores principales con posición relativa para los fondos */
.carousel-section,
.solutions-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background-color: var(--primary-bg);
}

/* ===== FONDOS ANIMADOS (BLOBS) ===== */
.carousel-background,
.solutions-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px); /* Crea el efecto de luz difuminada */
    opacity: 0.4;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 { top: -10%; left: -10%; width: 400px; height: 400px; background: var(--accent-blue-dark); }
.blob-2 { bottom: -10%; right: -10%; width: 500px; height: 500px; background: rgba(0, 217, 255, 0.15); }
.blob-3 { top: 40%; left: 50%; width: 300px; height: 300px; background: rgba(59, 130, 246, 0.2); }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

/* ===== ESTRUCTURA DEL CAROUSEL ===== */
.carousel-slides-container {
    position: relative;
    z-index: 1; /* Asegura que el contenido quede por encima de los blobs */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Corrección de la imagen para que no desborde la pantalla */
.carousel-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* Define una altura fija y proporcional */
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Adapta la imagen sin deformarla */
}

/* Capa oscura sobre la imagen para contraste */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 14, 39, 0.6), transparent);
}

/* ===== ESTILOS DE TEXTO DEL CAROUSEL ===== */
.carousel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
}

.slide-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.slide-line {
    height: 2px;
    width: 40px;
    background-color: var(--accent-cyan);
}

.slide-title {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.25rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.slide-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== BOTÓN DEL SLIDE ===== */
.slide-button {
    align-self: flex-start;
    padding: 0.8rem 2rem;
    background-color: var(--accent-cyan);
    color: var(--primary-bg); /* Texto oscuro para contrastar con el botón cian */
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.slide-button:hover {
    background-color: #00b8d4;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

/* Ajustes responsivos para móviles */
@media (max-width: 768px) {
    .slide-title { font-size: 2rem; }
    .slide-subtitle { font-size: 1.1rem; }
    .carousel-image-wrapper { height: 250px; }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomInSlow {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes blobMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -50px);
    }
    50% {
        transform: translate(-20px, 20px);
    }
    75% {
        transform: translate(50px, 50px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--secondary-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .carousel-slide.active {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .carousel-image {
        height: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }
}

/* =========================================================
   ===== ESTILOS PARA SUBPÁGINAS (SUPPORT, CX, ETC) =====
   ========================================================= */

/* --- Ajuste para el Hero de las Subpáginas --- */
/* Usamos :not(#hero) para afectar solo a las subpáginas y no arruinar el inicio */
.hero-section:not(#hero) {
    min-height: 40vh; /* Mucho más corto que el inicio */
    padding: 10rem 0 4rem 0; /* Da espacio al menú superior */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section:not(#hero) .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Texto ligeramente más contenido */
    margin-bottom: 1rem;
}

.hero-section:not(#hero) .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Overview Section (¿Por Qué Soporte 24/7?) --- */
.overview-section {
    padding: 6rem 0;
    background-color: var(--primary-bg);
}

.overview-grid {
    display: grid;
    /* Auto-fit: Acomoda automáticamente 1, 2, 3 o 4 columnas según el tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.overview-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Efecto al pasar el cursor (Hover) */
.overview-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.08);
    background-color: rgba(26, 35, 50, 0.9);
}

.overview-card h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

/* Línea decorativa debajo del título de cada tarjeta */
.overview-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: var(--transition);
}

/* Al hacer hover, la línea cyan se expande un poco */
.overview-card:hover h3::after {
    width: 60px;
}

.overview-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Diseño Responsivo para el Overview --- */
@media (max-width: 768px) {
    .hero-section:not(#hero) {
        min-height: 35vh;
        padding-top: 8rem;
    }
    
    .overview-grid {
        gap: 1.5rem;
        margin-top: 3rem;
    }
}
}
/* =========================================================
   ===== ESTILOS PARA SUBPÁGINAS (CONTINUACIÓN) =====
   ========================================================= */

/* --- Sección de Servicios (Niveles y Monitoreo) --- */
.services-section {
    padding: 6rem 0;
    background-color: var(--secondary-bg); /* Fondo oscuro para contrastar */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--primary-bg);
    border-left: 4px solid var(--accent-cyan); /* Detalle de línea a la izquierda */
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
    transform: translateX(10px); /* Se desplaza ligeramente a la derecha */
    box-shadow: -5px 10px 20px rgba(0, 217, 255, 0.05);
}

.service-card h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- Sección SLA (Acuerdos de Nivel de Servicio) --- */
.sla-section {
    padding: 6rem 0;
    background-color: var(--primary-bg);
}

.sla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.sla-card {
    background: linear-gradient(145deg, var(--secondary-bg), rgba(26, 35, 50, 0.8));
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.sla-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.1);
}

/* Colores dinámicos para el título según la criticidad (opcional, pero se ve genial) */
.sla-card:nth-child(1) h3 { color: #ff4757; } /* Crítico - Rojo */
.sla-card:nth-child(2) h3 { color: #ffa502; } /* Alto - Naranja */
.sla-card:nth-child(3) h3 { color: #eccc68; } /* Medio - Amarillo */
.sla-card:nth-child(4) h3 { color: var(--accent-cyan); } /* Bajo - Cyan */

.sla-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sla-card p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.sla-card strong {
    color: var(--text-white);
}

/* --- Sección de Beneficios Comprobados --- */
.benefits-section {
    padding: 6rem 0;
    background-color: var(--secondary-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-item:hover {
    border-color: var(--accent-cyan);
    background-color: var(--primary-bg);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

.benefit-item h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Ajustes al Formulario de Subpáginas --- */
/* Como este formulario tiene menos campos y no tiene un div contenedor especial, lo estilizamos directamente */
.contact-section .contact-form {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    background-color: var(--secondary-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex; /* Cambiamos a flex para apilar los campos */
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Ajuste específico para el Footer de las Subpáginas --- */
/* Tu pie de página aquí tiene la clase .footer-content en lugar de .footer-grid, así que le damos su propio formato */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-section .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* =========================================================
   ===== ESTILOS PARA LA PÁGINA DE CERTIFICACIONES =====
   ========================================================= */

/* Utilidad para centrar texto */
.text-center {
    text-align: center;
}

/* --- Hero Específico de Certificaciones --- */
.cert-hero {
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--primary-bg) 100%);
    padding: 10rem 0 5rem 0;
}

.cert-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.cert-hero-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--text-white);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cert-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

/* --- Resumen y Beneficios --- */
.cert-overview {
    padding: 6rem 0;
    background-color: var(--primary-bg);
}

.cert-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cert-overview-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.cert-benefits-box {
    background-color: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.cert-benefits-box h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Listas comunes en la página */
.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.05rem;
}

.cert-check, .cert-dot {
    color: var(--accent-cyan);
    font-weight: bold;
    flex-shrink: 0;
}

/* --- Tarjetas de Niveles ITIL --- */
.cert-levels-section {
    padding: 4rem 0 6rem 0;
    background-color: var(--primary-bg);
}

.cert-levels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-level-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    transition: var(--transition);
}

.cert-level-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 217, 255, 0.05);
}

.cert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.cert-card-header h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cert-badge {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-duration {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.cert-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.cert-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.cert-topics h4 {
    color: var(--text-white);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.cert-exam-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exam-item {
    background-color: rgba(10, 14, 39, 0.6); /* Fondo azul oscuro */
    padding: 1.2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.95rem;
}

.exam-item strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.25rem;
}

/* --- CTA de Certificación --- */
.cert-cta-section {
    padding: 4rem 0 6rem 0;
    background-color: var(--primary-bg);
}

.cert-cta-box {
    max-width: 700px;
    margin: 0 auto;
}

.cert-cta-box p {
    color: var(--text-gray);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .cert-overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cert-card-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cert-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cert-level-card {
        padding: 1.5rem;
    }
}
