/* 1. Quitar el fondo negro y posicionar el texto sobre la imagen */
.easy-carousel--simple .slide-content {
    background-color: transparent !important; /* Quita el bloque negro */
    position: absolute;
    bottom: 15%; /* Sube el contenido un poco dentro de la foto */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. Estilo del botón "CONOCE MÁS" */
.easy-carousel--simple .slide-content a {
    background-color: transparent !important;
    border: 2px solid #adff2f !important; /* Verde similar a tu línea */
    color: #adff2f !important; /* Letras verdes */
    padding: 8px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px; /* Bordes redondeados para que parezca botón */
    transition: 0.3s;
}

/* 3. Efecto al pasar el mouse */
.easy-carousel--simple .slide-content a:hover {
    background-color: #adff2f !important;
    color: #000 !important;
}

/* 4. Ocultar el texto "item 3" y la descripción */
.easy-carousel--simple .slide-content h3, 
.easy-carousel--simple .slide-content p {
    display: none !important;
}

/* Alinear el ancho con el navbar y centrar verticalmente el contenido de las columnas */
.layout--twocol-section {
    max-width: 1200px; /* Mantiene el ancho alineado con el menú */
    margin-left: auto !important;
    margin-right: auto !important; /* Mantiene la sección centrada en la pantalla */
    padding-left: 15px;
    padding-right: 15px;
    
    /* NUEVAS LÍNEAS PARA CENTRAR VERTICALMENTE */
    display: flex; /* Asegura que se comporte como una caja flexible */
    align-items: center; /* Esta es la magia: centra verticalmente los hijos */
}

/* --- DOMAR IMÁGENES GIGANTES Y CENTRARLAS --- */
.layout--twocol-section .layout__region img {
    max-width: 100% !important; /* Obliga a la imagen a no salirse de su mitad de la pantalla */
    height: auto !important; /* Mantiene la proporción para que no se deforme */
    display: block;
    margin: 15px auto; /* El "auto" a los lados es el que centra la imagen perfectamente */
}

/* =========================================
   1. ESTILOS DEL CARRUSEL PRINCIPAL
========================================= */
.easy-carousel--simple .slide-content {
    background-color: transparent !important;
    position: absolute;
    bottom: 15%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.easy-carousel--simple .slide-content a {
    background-color: transparent !important;
    border: 2px solid #adff2f !important;
    color: #adff2f !important;
    padding: 8px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 20px;
    transition: 0.3s;
}

.easy-carousel--simple .slide-content a:hover {
    background-color: #adff2f !important;
    color: #000 !important;
}

.easy-carousel--simple .slide-content h3, 
.easy-carousel--simple .slide-content p {
    display: none !important;
}

/* =========================================
   2. SECCIÓN LAB EN MOVIMIENTO (2 Columnas)
========================================= */
.layout--twocol-section {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    align-items: center;
}

.layout--twocol-section .layout__region img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
}

/* =========================================
   3. SECCIÓN CONSTRUYENDO FUTURO (Banda Completa)
========================================= */

/* El truco mágico para que el fondo gris sea de banda a banda */
.fondo-construyendo-futuro {
    background-color: #f4f4f4;
    box-shadow: 0 0 0 100vmax #f4f4f4; /* Pinta el gris infinitamente a los lados */
    clip-path: inset(0 -100vmax); /* Evita que pinte hacia arriba y abajo */
    padding: 40px 0; 
}

/* El contenedor que mantiene las fotos y el texto centrados a 1200px */
.seccion-construyendo-futuro {
    display: flex;
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto !important; 
    padding: 0 15px; 
    box-sizing: border-box;
}

/* --- LADO IZQUIERDO: IMÁGENES --- */
.contenedor-imagenes {
    position: relative;
    width: 55%; 
    min-height: 450px; 
}

.img-letras {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%; 
    z-index: 2;
}

.img-señor {
    position: absolute;
    bottom: -20px; 
    left: 20%; 
    width: 80%; 
    z-index: 1;
}

/* --- LADO DERECHO: TEXTO --- */
.contenedor-texto {
    width: 45%;
    padding-left: 30px; 
    padding-right: 30px; 
}

.texto-futuro {
    font-size: 2.2rem;
    font-weight: 400;
    color: #444;
    line-height: 1.4;
    margin-bottom: 15px;
}

.resaltado-rojo {
    background-color: #ff3344;
    color: #ffffff;
    padding: 2px 15px;
    display: inline-block;
    font-weight: bold;
    margin-top: 10px;
}

.parrafo-futuro {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.btn-haz-parte {
    display: inline-block;
    border: 2px solid #ff5722;
    color: #ff5722;
    background-color: transparent;
    padding: 10px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-haz-parte:hover {
    background-color: #ff5722;
    color: #ffffff;
}

/* =========================================
   4. SECCIÓN CURSOS SUBA-TIC
========================================= */
.seccion-cursos-subatic {
    max-width: 1200px;
    margin: 60px auto !important;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

/* --- ESTILOS DEL TÍTULO --- */
.header-cursos {
    margin-bottom: 30px;
}

.titulo-cursos {
    font-family: sans-serif;
    font-size: 45px;
    line-height: 1.1;
    margin: 0;
    font-weight: 300; 
}

.titulo-cursos .texto-negro {
    color: #000000;
    font-weight: 600;
}

.titulo-cursos .texto-cyan {
    color: #00d2ff; /* El color cyan brillante de tu diseño */
}

/* --- ESTILOS DE LA CUADRÍCULA (8 CUADROS) --- */
.grid-cursos {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas exactas */
    gap: 20px;
    width: 100%;
}

.curso-box {
    background-color: #f2f2f2; /* Fondo gris claro */
    border-radius: 5px; 
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el ratón */
.curso-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.icono-curso {
    height: 60px !important; /* Mantiene los iconos del mismo tamaño */
    width: auto !important;
    margin-bottom: 15px;
    display: block;
}

.nombre-curso {
    font-size: 13px;
    color: #333;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

/* --- RESPONSIVE: CELULAR --- */
@media (max-width: 768px) {
    .grid-cursos {
        grid-template-columns: repeat(2, 1fr); /* En celular se vuelve de 2 columnas */
    }
    
    /* Esta línea es la clave: Oculta del elemento 5 en adelante en móviles */
    .curso-box:nth-child(n+5) {
        display: none !important;
    }
    
    .titulo-cursos {
        font-size: 35px;
    }
}