
/* ==========================================================================
   ESTILO FINAL Y UNIFICADO PARA TODA LA SECCIÓN HERO
   Basado en la estructura HTML con .container
   ========================================================================== */

/* 1. SECCIÓN PRINCIPAL DEL HERO */
.hero-section {
    position: relative;
    color: white;
    min-height: 90vh; /* Altura mínima para ocupar la pantalla */
    display: flex;
    align-items: center; /* Centra verticalmente el .container */
    overflow: hidden; /* Evita barras de scroll si la imagen se sale */
}

/* El .hero-container (que es un .container de Bootstrap) se deja sin estilos
   para que mantenga su comportamiento normal de centrado y ancho. */

/* 2. EL CONTENEDOR INTERNO DE LAS COLUMNAS */
.hero-inner-wrapper {
    display: flex;
    align-items: center;
    position: relative; /* Clave para el posicionamiento de la imagen */
    width: 100%;
    min-height: 90vh; /* Le damos altura para que la imagen tenga espacio */
}


/* 3. COLUMNA DE TEXTO (IZQUIERDA) */
.hero-content-column {
    flex-basis: 55%; /* Ocupa el 55% del espacio disponible */
    z-index: 2; /* Siempre encima de la imagen */
    text-align: left; /* Alineamos todo a la izquierda */
}

/* Estilos para el Título y Subtítulo */
.hero-main-title {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    /* Ya no necesitamos hacer el color transparente ni nada complejo */
}


.hero-main-title .title-line-1 {
    display: block; /* Ocupa su propia línea */
    font-size: 2.2rem;
    font-weight: 400; /* Peso normal */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85); /* Blanco semitransparente */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-main-title .title-line-2 {
    display: block; /* Ocupa su propia línea */
    font-size: 3.8rem;
    font-weight: 900; /* Peso extra-bold para impacto */
    text-transform: uppercase;
    color: #ffffff; /* Blanco puro */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 9px;
}


.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
}


/* 4. COLUMNA DE LA IMAGEN (DERECHA) - POSICIONAMIENTO ABSOLUTO */
.hero-image-column {
    position: absolute;
    bottom: 0;
    right: -27%;  /* <-- La movemos más a la derecha */
    width: 60%;   /* <-- La hacemos más ancha */
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
}



/* 5. LOGO Y BOTONES */
.hero-logo-img {
    max-width: 300px;
    margin-bottom: 30px;
    /* Quitamos el centrado */
    margin-left: 0;
}
.hero-buttons {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Alineados a la izquierda */
    gap: 15px;
}
.hero-buttons .btn-theme {
    padding: 12px 28px;
}


/* ==========================================================================
   AJUSTES RESPONSIVE PARA TABLETS Y MÓVILES (VERSIÓN CORREGIDA)
   ========================================================================== */

/* --- TABLETS (Pantallas de hasta 991px) --- */
@media (max-width: 991px) {
    .hero-inner-wrapper {
        min-height: 70vh; /* Reducimos un poco la altura para que no sea tan masivo */
    }

    .hero-content-column {
        flex-basis: 55%; /* Damos un poco más de espacio al texto */
        padding-left: 1rem; /* Reducimos el padding para ganar espacio */
    }

    /* Ajustamos la imagen para tablets */
    .hero-image-column {
        width: 50%;
        right: -10%; /* La ajustamos para que se vea bien en este tamaño */
    }

    /* ¡CLAVE! Reducimos el tamaño de los títulos */
    .hero-main-title .title-line-1 {
        font-size: 1.8rem;
    }
    .hero-main-title .title-line-2 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-logo-img {
        max-width: 220px; /* Reducimos el logo */
    }
     /* Reseteamos la imagen */
    .hero-image-column {
        position: relative; /* Devolvemos al flujo normal */
        order: 1; /* Imagen primero */
        width: 80%;
        height: auto;
        margin-bottom: 30px;
        /* Reseteamos valores de escritorio */
        right: auto;
        bottom: auto;
        display: block; /* Quitamos el flex */
    }
}


/* --- MÓVILES (Pantallas de hasta 767px) --- */
/* --- MÓVILES (Pantallas de hasta 767px) --- */
@media (max-width: 767px) {
    .hero-section {
        min-height: 90vh; /* Damos altura suficiente para centrar bien */
        text-align: center;
    }

    .hero-inner-wrapper {
        flex-direction: column;
        justify-content: center; /* Centra verticalmente */
        min-height: auto;
        padding: 60px 15px;
    }

    /* ¡CLAVE! OCULTAMOS LA IMAGEN POR COMPLETO EN MÓVILES */
    .hero-image-column {
        display: none; 
    }

    /* Nos aseguramos de que la columna de contenido ocupe todo el espacio y esté centrada */
    .hero-content-column {
        order: 0; /* Ya no necesita un orden específico */
        flex-basis: auto;
        width: 100%;
        padding-left: 0;
    }

    /* Centramos el logo */
    .hero-logo-img {
        margin: 0 auto 30px auto; /* top, right/left, bottom, right/left */
        max-width: 200px;
    }
    
    /* Centramos los botones y los apilamos */
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 35px;
    }

    .hero-buttons .btn-theme {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* Ajustamos las fuentes para que se vean bien */
    .hero-main-title .title-line-1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .hero-main-title .title-line-2 {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.5;
        margin-top: 15px;
    }
}


/* ==========================================================================
   ESTILOS PARA EL MODAL DE REQUISITOS (OPCIONAL, PERO RECOMENDADO)
   ========================================================================== */
.modal-title {
    color: #333;
    font-weight: 600;
}
.modal-body h4 {
    color: #0054A6; /* Usamos tu color primario */
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}
.requisitos-list li {
    padding: 6px 0;
}














































/* ==========================================================================
   Estilos para el Footer Moderno
   ========================================================================== */

.footer-modern {
    background-color: #232a3f; /* Un color oscuro y profesional */
    color: #a9aebb; /* Un gris claro para el texto, fácil de leer */
    padding-top: 60px;
    font-size: 14px;
}

.footer-modern h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-col {
    margin-bottom: 40px;
}

.footer-logo-modern {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-slogan {
    line-height: 1.8;
}

.footer-links li {
    padding: 5px 0;
}

.footer-links a {
    color: #a9aebb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.contact-list-modern a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.contact-list-modern li {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
}

.contact-list-modern i {
    font-size: 16px;
    margin-right: 15px;
    color: #ffffff;
    margin-top: 3px;
}

.contact-list-modern a {
    color: #a9aebb;
}

.social-icons {
    padding-top: 10px;
}

.social-icons li {
    padding: 0 5px;
}

.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icon-circle:hover {
    background-color: #5558c7; /* Color de acento de la plantilla, o el que prefieras */
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #1c2235; /* Un poco más oscuro que el fondo principal */
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom p {
    color: #a9aebb;
    font-size: 13px;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

/* Ajustes para móviles */
@media (max-width: 767px) {
    .footer-col {
        text-align: center;
    }
    .contact-list-modern li {
        justify-content: center;
    }
}





/* ==========================================================================
   ESTILOS PARA LA NUEVA SECCIÓN DE CARACTERÍSTICAS
   ========================================================================== */

#features-modern {
    padding: 100px 0;
    position: relative; /* ¡Esencial para que el overlay funcione! */
   

    /* ----- Configuración de la imagen de fondo ----- */
    background-image: url('../img/1920x1080/18.jpg'); /* Ruta a tu imagen */
    background-size: cover;          /* La imagen cubre todo el contenedor */
    background-position: center center; /* La imagen se centra */
    background-attachment: fixed;    /* Efecto parallax: la imagen se queda fija al hacer scroll */
    background-repeat: no-repeat;    /* Evita que la imagen se repita */
}



.heading-modern h2 {
    font-size: 2.8rem; /* Un poco más grande */
    font-weight: 900; /* Más grueso para impacto */
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0054A6, #04B36E); /* Tu degradado de marca */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; /* Necesario para que el degradado se ajuste al texto */
}

.heading-modern p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    max-width: 90%; /* Evita que el texto sea demasiado ancho */
}

/* Lista de características con iconos */
.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}

.feature-item:hover {
    transform: translateY(-8px); /* Se eleva al pasar el ratón */
    box-shadow: 0 15px 35px rgba(45, 78, 124, 0.12);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e8eff9; /* Un azul muy claro */
    color: #0054A6; /* Tu color primario */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 25px;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background-color: #0054A6; /* Tu color primario */
    color: #ffffff;
    transform: scale(1.1) rotate(15deg);
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 8px;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

/* Tarjeta del Programa Formativo */
.program-card {
    background: #ffffff;
    border-radius: 12px; /* Bordes más redondeados */
    box-shadow: 0 15px 40px rgba(45, 78, 124, 0.15); /* Sombra más pronunciada */
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid transparent;
    background-clip: padding-box; /* Importante para el borde degradado */
    position: relative;
}

/* Borde degradado sutil */
.program-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px; /* Evita que se vea el borde por dentro */
    border-radius: inherit;
    background: linear-gradient(45deg, #0054A6, #04B36E);
}

.program-card-header {
    background: linear-gradient(45deg, #0054A6, #04B36E); /* Tu degradado de marca */
    color: #ffffff;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.program-card-header i {
    font-size: 24px;
    opacity: 0.8;
}

.program-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.program-card-body {
    padding: 30px;
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-list li {
    display: flex;
    align-items: center;
    padding: 12px 0; /* Más espacio vertical */
    font-size: 1.05rem; /* Letra un poco más grande */
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}
.program-list li:hover {
    background-color: #f9f9f9; /* Un sutil resaltado al pasar el ratón */
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list li i {
    color: #04B36E; /* Tu color secundario */
    margin-right: 15px;
    font-size: 14px;
}

/* ==========================================================================
   HELPER PARA CENTRAR CONTENIDO EN COLUMNAS
   ========================================================================== */



/* ============================================= */
/*  Helper para Alinear Verticalmente en BS3   */
/* ============================================= */

.row-eq-height {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
}

/* 2. Selecciona la columna de texto (que ahora sí es .col-md-5) 
      y la centra verticalmente. */
.row-eq-height > .col-md-5 {
    display: flex;
    flex-direction: column;
    justify-content: center; /* <-- ESTO REALIZA EL CENTRADO VERTICAL */
}
/* Hacemos que el texto dentro esté centrado horizontalmente */
.row-eq-height > .col-md-5 .heading-modern {
    text-align: center;
}

/* ======================================================== */
/*  Ajuste para subir el encabezado con margen negativo    */
/* ======================================================== */
.encabezado-ajustado {
    margin-top: -122px; /* Ajusta este valor para subirlo más o menos */
}

.color-oscuro {
    color: #333; /* Un color oscuro para el subtítulo */
}


/* ==========================================================================
   CSS FINAL Y CONSOLIDADO PARA LA LÍNEA DE TIEMPO
   ========================================================================== */

/* 1. ESTRUCTURA BASE (LÍNEA, ITEMS Y FLECHAS) */
/* =========================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #dce4f2;
}
.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}
.timeline-content::before {
    content: '';
    position: absolute;
    top: 22px;
    width: 0;
    height: 0;
    border-style: solid;
}
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #ffffff;
}
.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #ffffff transparent transparent;
}

/* 2. ICONOS EN LA LÍNEA CENTRAL */
/* ============================= */
.timeline-icon {
    position: absolute;
    top: 35px;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}
.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
    transform: translateY(-50%);
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
    transform: translateY(-50%);
}
.timeline-icon.icon-azul { color: #007bff; border-color: #007bff; }
.timeline-icon.icon-rojo { color: #dc3545; border-color: #dc3545; }
.timeline-icon.icon-verde { color: #28a745; border-color: #28a745; }
.timeline-icon.icon-naranja { color: #fd7e14; border-color: #fd7e14; }
.timeline-icon.icon-marron { color: #8B4513; border-color: #8B4513; }
.timeline-icon.icon-violeta { color: #8a2be2; border-color: #8a2be2; }
.timeline-item:hover .timeline-icon.icon-azul { background-color: #007bff; color: #fff; }
.timeline-item:hover .timeline-icon.icon-rojo { background-color: #dc3545; color: #fff; }
.timeline-item:hover .timeline-icon.icon-verde { background-color: #28a745; color: #fff; }
.timeline-item:hover .timeline-icon.icon-naranja { background-color: #fd7e14; color: #fff; }
.timeline-item:hover .timeline-icon.icon-marron { background-color: #8B4513; color: #fff; }
.timeline-item:hover .timeline-icon.icon-violeta { background-color: #8a2be2; color: #fff; }

/* 3. CONTENIDO DENTRO DE LAS TARJETAS (CON LA NUEVA ALINEACIÓN) */
/* ============================================================= */
.timeline-content {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    /* CAMBIO: convertimos la tarjeta en un contenedor flex vertical */
    display: flex;
    flex-direction: column;
}

/* CAMBIO: Por defecto, todo el contenido de las tarjetas se alinea a la izquierda */
.timeline-content {
    align-items: flex-start;
}

/* CAMBIO: Anulamos para las tarjetas impares (1, 3, 5) y alineamos su contenido a la derecha */
.timeline-item:nth-child(odd) .timeline-content {
    align-items: flex-end;
}

/* CAMBIO: Forzamos la alineación del texto a la derecha para los elementos que lo necesiten en las tarjetas impares */
.timeline-item:nth-child(odd) .timeline-content h3,
.timeline-item:nth-child(odd) .timeline-content p,
.timeline-item:nth-child(odd) .timeline-content .list-unstyled {
    text-align: right;
}

/* Título principal (ej: "1ero Secundaria") */
.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
}

/* Contenedor del nivel de usuario (ej: "Icono Usuario Azul") */
.timeline-user-level {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}
.timeline-user-level .icon-people {
    margin-right: 8px;
    font-size: 1.2em;
    margin-top: -48px;
}
.content-azul .timeline-user-level { color: #007bff; }
.content-rojo .timeline-user-level { color: #dc3545; }
.content-verde .timeline-user-level { color: #28a745; }
.content-naranja .timeline-user-level { color: #fd7e14; }
.content-marron .timeline-user-level { color: #8B4513; }
.content-violeta .timeline-user-level { color: #8a2be2; }

/* Párrafo y lista de materias */
.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    margin-top: -39px;
}
.timeline-content .list-unstyled { margin: 0; padding: 0; }
.timeline-content .list-unstyled li { padding: 3px 0; }
.timeline-content .list-unstyled .icon-check { margin-right: 8px; color: #04B36E; }


/* 4. AJUSTES RESPONSIVE PARA MÓVILES (CON LA ALINEACIÓN CORREGIDA) */
/* =============================================================== */
@media (max-width: 768px) {
    .timeline::before { left: 25px; }
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 15px;
    }
    /* En móvil, todas las tarjetas se alinean a la izquierda */
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        align-items: flex-start;
    }
    .timeline-item:nth-child(odd) .timeline-content h3,
    .timeline-item:nth-child(odd) .timeline-content p,
    .timeline-item:nth-child(odd) .timeline-content .list-unstyled {
        text-align: left;
    }
    .timeline-icon {
        left: 0 !important;
        top: 25px;
    }
    .timeline-content::before {
        left: -10px !important;
        right: auto;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent #ffffff transparent transparent !important;
    }
}

/* ==========================================================================
   CÓDIGO FINAL CORREGIDO PARA EL FONDO DE LA SECCIÓN
   ========================================================================== */

/* 1. La sección principal que contendrá todo */
#learning-path {
    position: relative; /* ¡ESTA ES LA LÍNEA CLAVE QUE FALTABA! */
    
    background-color: #f8f9fa; /* Color de respaldo */
    background-image: url('../img/1920x1080/21.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efecto Parallax */
}

/* 2. El overlay semi-transparente */
#learning-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Overlay negro al 60%. Ajusta la opacidad (0.6) como necesites */
    background-color: rgba(0, 0, 0, 0.8); 
    
    z-index: 0;
}

/* 3. El contenedor del contenido (Timeline, etc.) */
#learning-path .container {
    position: relative; /* Le da su propio contexto de posicionamiento */
    z-index: 1; /* Esto levanta el contenido por encima del overlay (que tiene z-index: 0) */
}

/* ¡NUEVA CLASE! Aquí controlas el texto "Usuario Azul" */
.timeline-user-level .user-level-text {
    font-size: 2.1rem;      /* <-- ¡JUEGA CON ESTE VALOR! Prueba 1.4rem, 1.5rem, etc. */
    font-weight: 700;       /* Puedes hacerlo más grueso que el ícono si quieres */
    position: relative;
    top: -23px; /* Pequeño ajuste para que se alinee visualmente perfecto con el ícono */
    
  
}

/* ====================================================================
   SISTEMA DE COLORES PARA EL NIVEL DE USUARIO (ICONO Y TEXTO)
   ==================================================================== */

/* Al aplicar el color al contenedor .timeline-user-level,
   tanto el ícono como el texto (span) heredan ese color. */

.content-azul .user-level-text    { color: #007bff; }
.content-rojo .user-level-text    { color: #dc3545; }
.content-verde .user-level-text   { color: #28a745; }
.content-naranja .user-level-text { color: #fd7e14; }
.content-marron .user-level-text  { color: #8B4513; }
.content-violeta .user-level-text { color: #8a2be2; }


/* ==========================================================================
   ESTILOS MODERNOS PARA EL CARRUSEL DE PATROCINADORES
   ========================================================================== */

/* Contenedor principal para darle algo de espacio */
#work .swiper-slider {
    padding: 20px 0;
}

/* Centra verticalmente los logos dentro de cada slide */
#work .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo base de los logos: escala de grises y un poco transparentes */
#work .swiper-clients-img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease-in-out;
    max-width: 150px; /* Ajusta el tamaño máximo si es necesario */
}

/* Efecto al pasar el ratón: a todo color, opacidad completa y un ligero zoom */
#work .swiper-slide:hover .swiper-clients-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Para el efecto de movimiento continuo, necesitamos esta regla de CSS */
#sponsors-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}