/* ======== ESTILOS GENERALES Y TIPOGRAFÍA ======== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #e4e9ea;
    color: #333;
    padding-top: 110px; 
}

/* Contenedores de sección con fondo blanco para contrastar */
#planeacion, #mision-vision, #objetivos, #participacion {
    background-color: #ffffff;
}

.section-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* ======== BARRA DE NAVEGACIÓN ======== */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.4s ease-in-out;
}

.navbar-hidden {
    top: -120px;
}

.navbar-brand img {
    height: 95px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-align: justify;
}

.navbar-light .navbar-nav .nav-link {
    color: #0D1B2A !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;   
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    background-color: #0D1B2A;
    color: #FFFFFF !important;
}

/* ======== SECCIÓN HERO (BANNER) ======== */
.hero-section {
    padding: 0;
    background-color: #e4e9ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ======== SECCIÓN PLANEACIÓN (VIDEO YOUTUBE) ======== */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
}

.video-container iframe,
.video-container div#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.btn-benefits {
    background-color: #e9ecef;
    border-radius: 50rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    color: #495057;
    border: none;
}

.btn-benefits:hover {
    background-color: #0D1B2A;
    color: #FFFFFF !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: top 0.4s ease-in-out;
}

.benefits-box {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.benefits-box ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.benefits-box ul li {
    padding: 0.25rem 0;
}

/*
 Estilos para listas interactivas (Beneficios, Valores y Pilares)
*/
#benefitsCollapse .list-group-item-action,
#mision-vision .list-group-item-action {
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

#benefitsCollapse .list-group-item-action:hover,
#mision-vision .list-group-item-action:hover {
    background-color: #f8f9fa;
    transform: translateX(10px);
    color: var(--bs-primary);
}

#benefitsCollapse .list-group-item-action:hover i,
#mision-vision .list-group-item-action:hover i {
    color: var(--bs-primary) !important;
}

/* ======== CARRUSEL NOSOTROS (ENFOQUE MOBILE-FIRST) ======== */

/* --- Estilos base para Móvil --- */

#nosotrosCarousel .carousel-item {
    /* (1) Reducimos el padding horizontal para que no se apriete en móviles */
    padding: 2rem 1.5rem; 
    transition: transform .6s ease-in-out;
}

#nosotrosCarousel .section-title.mb-5 {
    margin-bottom: 2rem !important; /* Estandariza el margen del título */
}

#nosotrosCarousel .carousel-item img {
    /* (2) Altura automática en móvil y un máximo para que no sea gigante */
    height: auto;
    max-height: 350px; 
    object-fit: cover;
    width: 100%;
    border-radius: .5rem;
    /* (3) Espacio entre la imagen y el texto cuando se apilan */
    margin-bottom: 1.5rem; 
}

#nosotrosCarousel .carousel-item p {
    /* El texto justificado se ve mal en pantallas angostas, mejor a la izquierda */
    text-align: left;
}

/* Estilos de los controles (flechas) */
#nosotrosCarousel .carousel-control-prev,
#nosotrosCarousel .carousel-control-next {
    /* Quitamos el ancho fijo para que no molesten en móvil */
    width: auto;
}

#nosotrosCarousel .carousel-control-prev-icon,
#nosotrosCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    padding: 1rem; /* Un tamaño de toque cómodo para dedos */
}


/* --- (4) Estilos para Tablet y Escritorio (768px en adelante) --- */
@media (min-width: 768px) {

    #nosotrosCarousel .carousel-item {
        /* Restauramos el padding amplio para escritorio */
        padding: 2rem 4rem;
    }

    #nosotrosCarousel .carousel-item .col-md-6 {
        /* Activamos Flexbox para alinear el texto verticalmente al lado de la imagen */
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Restauramos la altura mínima para mantener la consistencia visual */
        min-height: 480px; 
    }

    #nosotrosCarousel .carousel-item img {
        /* Restauramos la altura fija para que todas las diapositivas sean iguales */
        height: 480px;
        /* Eliminamos el margen inferior que solo era para móvil */
        margin-bottom: 0;
    }

    #nosotrosCarousel .carousel-item p {
        /* El texto justificado se ve elegante en pantallas anchas */
        text-align: justify;
    }

    #nosotrosCarousel .carousel-control-prev,
    #nosotrosCarousel .carousel-control-next {
        /* Devolvemos el ancho para que los controles se posicionen a los lados */
        width: 5%;
    }
}

/* ======== ESTILOS PARA LA PRESENTACIÓN AUTOMÁTICA DE OBJETIVOS ======== */

/* El contenedor principal sigue siendo alto para darnos espacio de scroll */
.objetivos-sticky-container {
    position: relative;
    height: 120vh; 
}

/* NUEVO: Este es el "escenario" que se pega a la pantalla */
.objetivos-cards-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 20vh; /* Se pega al 20% de la altura */
    height: 600px; /* Una altura fija para el escenario */
    width: 100%;
    overflow: hidden; /* Oculta cualquier cosa que se salga */
}

strong{
    font-weight: 600;
}

#objetivos .objetivo-card {
    display: flex;
    flex-direction: row;
    
    /* CORRECCIÓN: Cambiamos 'center' por 'flex-start' para alinear todo arriba */
    align-items: center; 
    cursor: pointer;
    
    gap: 2rem;
    
    /* El resto de los estilos se mantiene igual */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-height: 450px;
    background: #ffffff;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 60rem;
    z-index: 1; 
    will-change: transform, opacity;
}

/* NUEVO: Estilos para la columna de texto */
.objetivo-text-content {
    flex: 1 1 40%; /* Ocupa el 60% del espacio */
    text-align: justify; /* Alinea el texto a la izquierda */
    justify-content: center;
}

.objetivo-text-content h3 {
    text-align: left;
}


/* NUEVO: Estilos para la columna de la imagen */
.objetivo-image-content {
    flex: 1 1 40%; /* Ocupa el 40% del espacio */
    height: 350px; /* Una altura fija para la imagen */
}

.objetivo-image-content img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    border-radius: 8px;
}

/* NUEVO: Hacemos que se apile en celulares para mejor lectura */
@media (max-width: 768px) {
    #objetivos .objetivo-card {
        flex-direction: column; /* Las columnas se ponen una encima de la otra */
        min-height: auto; /* La altura se ajusta al contenido */
        padding: 1.5rem;
    }
    
    .objetivo-text-content {
        flex-basis: auto; /* El ancho vuelve a ser automático */
        width: 100%;
        text-align: center;
    }
    .objetivo-text-content h3 {
       text-align: center;
    }

    .objetivo-image-content {
        flex-basis: auto;
        width: 50%;
        height: 250px; /* Una altura menor para la imagen en móvil */
        margin-top: 1rem;
    }

    .objetivo-image-content img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
    border-radius: 8px;
}
}
/* ======== SECCIÓN FACTORES DE ÉXITO ======== */
#factores-exito {
    background-color: #0D1B2A;
}

#factores-exito .section-title {
    color: #FFFFFF;
}

.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

    /* --- Cambios Clave --- */
    width: 90vw; /* Ocupará el 90% del ancho de la pantalla */
    max-width: 500px; /* Pero nunca será más grande que 500px (tamaño de escritorio) */
    aspect-ratio: 1 / 1;
    
}

.orbit-center {
    width: 200px;
    height: 200px;
    background-color: rgb(141,31,154);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    z-index: 10;
    position: relative; /* Cambiado a relative */
}

.factor {
    position: absolute;
    width: 0px;
    top: 50%; /* JS calculará la posición final */
    left: 50%; /* JS calculará la posición final */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    color: #FFFFFF;
    background-color: transparent;
    padding: 10px;
    height: 60px;
}

.bottom-box {
    border: 2px solid rgb(141,31,154);
    color: #FFFFFF;
    padding: 0.75rem;
    font-weight: 500;
}



/* ======== SECCIÓN PARTICIPACIÓN ======== */
.participation-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 2.2rem;
}

.participation-subtitle {
    font-size: 1.5rem;
    color: #6c757d;
    margin-top: -10px;
}

.participation-card {
    border: 2px solid #6c757d;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    margin: 10px;
    font-weight: 600;
    color: #495057;
    flex: 1 1 180px;
    max-width: 200px;
    transition: all 0.3s ease-in-out;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.participation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background-color: #2c3e50;
    color: #ffffff;
    border-color: #2c3e50;
}

.anim-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.anim-reveal.is-visible {
    animation: reveal-up 0.2s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======== SECCIÓN DETALLES DEL EVENTO ======== */
#evento-detalles {
    background-color: #0D1B2A;
    color: #FFFFFF;
}

#evento-detalles .section-title,
#evento-detalles h3 {
    color: #FFFFFF;
    transition: color 0.3s ease;
}

.event-icon {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

#evento-detalles p {
    transition: color 0.3s ease;
}

#evento-detalles .row > div:hover .event-icon,
#evento-detalles .row > div:hover h3,
#evento-detalles .row > div:hover p {
    color: rgb(141,31,154);
}

/* ======== ESTILOS PARA EL MODAL DE VIDEO (NUEVO) ======== */
#videoModal .modal-content {
    background-color: transparent;
    border: none;
}

#videoModal .modal-body {
    padding: 0;
    position: relative;
    aspect-ratio: 16 / 9; /* Mantiene la proporción del video */
}

#videoModal .btn-close {
    position: absolute;
    top: -30px;
    right: 0;
    z-index: 20;
    filter: invert(1) grayscale(100%) brightness(200%); /* Pone el botón en blanco */
    opacity: 0.8;
}

#videoModal .btn-close:hover {
    opacity: 1;
}

/* ======== FOOTER ======== */
footer {
    background-color: #ffffff;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

footer a {
    color: #2c3e50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {

     #objetivos .objetivo-text-content h3 {
        font-size: 1rem; /* Un poco más pequeño en móvil */
    }

    #objetivos .objetivo-card {
        gap: 0rem;
    }

    #objetivos .objetivo-text-content p {
        font-size: 0.8rem; /* Un poco más pequeño en móvil */
        text-align: justify; /* Alineamos el texto a la izquierda */
    }

}