@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300&display=swap');

body {
    font-family: 'Lora', serif; 
    margin: 0;
    padding: 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 950px; /* Ajuste para coincidir con el video */
}

.logo img {
    width: 150px; /* Ajuste de tamaño */
    height: auto;
    margin-top: -19px;
}

nav {
    width: 100%;
    max-width: 1100px; /* Alineado con el video */
    margin: 0 auto;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

nav ul li {
    position: relative;
    margin: 0 10px;
}

nav ul li a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #030303;
    transition: color 0.3s ease-in-out;
    padding-bottom: 5px;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    color: #808080;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: white;
    border-bottom: 2px solid #ffffff;
    margin-bottom: 40px;
    
}
/* Cambia el color del texto al pasar el mouse */
nav ul li a:hover,
nav ul li a.active { /* También se aplica a la opción activa */
    color: #808080; /* Gris intermedio */
}

/* Efecto de subrayado */
nav ul li::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    background-color: #808080; /* Gris intermedio */
    bottom: -5px;
    left: 50%;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* Expande la barra al hacer hover o en el estado activo */
nav ul li:hover::after,
nav ul li.active::after {
    width: 100%;
    left: 0;
}
.video-container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video {
    width: 100%;
    max-width: 1400px;
    margin-top: -50px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* relación 16:9 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Nueva sección de presentación */
.presentation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px; /* Mismo tamaño que el video */
    margin: 20px auto;
    text-align: center;
}

/* Estilos para el texto */
.presentation-text {
    max-width: 1300px; /* Igual al video */
    padding: 0 20px; /* Espaciado interno */
}

.presentation-text p {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 25px; /* Aumenta tamaño del texto */
    align-self: center;
    font-weight: 400;
    color: #000000;
    line-height: 1; /* Ajusta el espaciado entre líneas */
    margin-top: 60px;
}

.presentation-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1300px; /* Igualando al video */
    margin: 0 auto;

}


.text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px; /* Aumentado para que sea más impactante */
    font-weight: 650;
    color: #07121b; 
    text-transform: uppercase;
    max-width: 1100px; 
    margin: 0 auto;
    text-align: center;
    margin-right: 30px;
}

.presentation-text p {
 
    font-size: 22px; 
    color: #666; 
    max-width: 900px;
    margin: 20px auto;
    line-height: 1.5; 
    text-align: center;
    margin-top: 40px;
    font-family: 'Roboto', sans-serif;
}
/* Asegurar que la imagen de la sección de becas esté alineada con el video */
.becas-section {
    text-align: center;
    max-width: 1500px; /* Alineado con el video */
    margin-top: 30px auto;
    justify-content: center;
    align-items: center;
}

.becas-image img {
    width: 100%;
    max-width: 1390px;
    height: auto;
    max-height: 750px;
    filter: grayscale(40%);
    margin-left:5px;
}
.becas-caption {
    font-size: 20px;
    color: #3b3a3a;
    font-style: italic;
    margin-top: 10px;
}
.vision-wrap {
    width: 110%;
    display: flex;
    justify-content: center;
    margin: 80px 0;
    position: relative;
    margin-left: 100px;
  }
  
  .vision-image-box {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin-left: auto; /* desplaza la imagen hacia la derecha */

  }
  
  .vision-image-box img {
    width: 100%;
    max-width: 945px;
    height: 550px; /* Ajusta según lo que visualmente necesites */
    object-fit: cover;
    display: block;
    margin-left: 30px;
  }
  .vision-card {
    position: absolute;
    top: 5%;
    left: -7%; /* más centrado, ya que ahora es más estrecho */
    background-color: #979494;
    color: white;
    padding: 80px 40px; /* más altura con mayor padding vertical */
    width: 49%; /* menos ancho */
    max-width: 800px;
    font-family: 'Josefin Sans', sans-serif;
    box-shadow: 12px 16px 30px rgba(0, 0, 0, 0.3);
  }
  
  .vision-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 58px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1;
    text-align: left;
  }
  
  .vision-card p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
  }

  .mision-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 80px 0;
    position: relative;
    margin-left: 50px;
  }
  
  .mision-image-box {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin-left: auto;
  }
  
  .mision-image-box img {
    width: 100%;
    max-width: 945px;
    height: 550px;
    object-fit: cover;
    display: block;
    margin-left: -65px;  /* Desplaza la imagen hacia la izquierda */
    margin-right: auto;  /* Empuja el resto del contenido hacia la derecha */
  }
  
  
  
  .mision-card {
    position: absolute;
    top: 5%;
    right: 3%; /* Ahora se coloca a la derecha */
    background-color: #979494;
    color: white;
    padding: 80px 40px;
    width: 49%;
    max-width: 800px;
    font-family: 'Josefin Sans', sans-serif;
    box-shadow: 12px 16px 30px rgba(0, 0, 0, 0.3);
  }
  
  .mision-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 58px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1;
    text-align: left;
  }
  
  .mision-card p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
  }
  
/* Título de la sección */
.programas-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: -30px;
    margin-bottom: 40px;
    font-weight: bold;

}

/* GRID DE PROGRAMAS */
.programas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 94%;
    margin: 0 auto;
    align-items: start; /* Alinea las cards arriba */
    margin-right:-7px;
}

/* CARD */
.programa-card {
    position: relative;
    height: 350px;              /* MISMA ALTURA PARA TODAS */
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;

    display: flex;              /* NECESARIO para centrar */
    justify-content: center;
    align-items: center;
}

/* IMAGEN */
.programa-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
    transition: 0.3s ease-in-out;
}

.programa-card:hover img {
    filter: brightness(80%);
    transform: scale(1.05);
}

/* TEXTO CENTRADO */
.programa-text {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.programa-text h3 {
    font-family: 'Josefin Sans', sans-serif;
    color: white;
    font-size: 1.9rem;
    font-weight: bold;
    text-shadow: 0px 3px 8px rgba(0,0,0,0.8);
}


/* AJUSTES VISUALES DE SECCIONES EN MÓVIL */
@media (max-width: 768px) {

    .video-container video {
        margin-top: 0;
    }

    .vision-card, 
    .mision-card {
        position: relative;
        width: 90%;
        margin: auto;
        left: 0 !important;
        right: 0 !important;
        top: 20px;
    }

    .vision-image-box img, 
    .mision-image-box img {
        margin: 0 !important;
        width: 100%;
    }

    .programas-grid {
        grid-template-columns: 1fr;
    }

    .programa-card {
        height: 350px;
    }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
    .text h1 {
        font-size: 32px !important;
    }

    .presentation-text p {
        font-size: 18px !important;
    }
}

/* Asegurar que la hamburguesa quede a la izquierda */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: flex-start !important;
        gap: 20px;
    }

    .logo {
        margin-left: -5px;
    }
}


#mobile-menu {
    display: none;
}
/* =====================================================
   💥 MENÚ MÓVIL EXACTO COMO EL DIBUJO 💥
===================================================== */
@media (max-width:1024px){

    nav.desktop-menu{
        display:none!important;
    }

    .nav-container{
        position:relative;
        z-index:2000;
    }

    /* HAMBURGUESA — ÚNICA X */
    .hamburger{
        width:32px;
        height:24px;
        position:absolute;
        right:20px;
        top:20px;
        display:flex!important;
        flex-direction:column;
        justify-content:space-between;
        cursor:pointer;
        z-index:3000;
    }

    .hamburger span{
        width:100%;
        height:3px;
        background:#000;
        border-radius:2px;
        transition:0.3s;
    }

    /* Animación a X */
    .hamburger.open span:nth-child(1){
        transform:translateY(9px) rotate(45deg);
    }
    .hamburger.open span:nth-child(2){
        opacity:0;
    }
    .hamburger.open span:nth-child(3){
        transform:translateY(-9px) rotate(-45deg);
    }

    /* PANEL AJUSTADO:
       - más arriba
       - más ancho
       - menos largo
    */

    #mobile-menu{
        position:absolute !important;
        top:45px !important;        /* 🔼 MÁS ARRIBA */
        right:-9px !important;       /* pegado al borde */
        
        width:180px !important;     /* 🔥 MÁS ANCHO */
        background:rgba(100,100,100,0.92);
        border-radius:6px;
        box-shadow:0px 10px 25px rgba(0,0,0,0.25);

        padding-top:4px;            /* 🔽 MENOS LARGO */
        padding-bottom:4px;

        display:none !important;
        flex-direction:column;

        z-index:4000;
    }

    #mobile-menu.show{
        display:flex!important;
    }

    /* Eliminamos X interna */
    #close-menu{
        display:none !important;
    }

    /* LISTA */
    .mobile-menu-list{
        list-style:none;
        margin:0;
        padding:0;
        width:100%;
    }

    .mobile-menu-list li a{
        display:block;
        width:100%;
        padding:10px 10px;          /* 🔽 MENOS ALTO */
        font-family:'Josefin Sans', sans-serif;
        font-size:15px;             /* 🔽 TEXTO MÁS COMPACTO */
        font-weight:600;
        text-align:center;
        color:white;
        background:rgba(255,255,255,0.12);
        border-bottom:2px solid rgba(255,255,255,0.25);
        text-decoration:none;
    }

    .mobile-menu-list li:last-child a{
        border-bottom:none;
    }

    .mobile-menu-list li a:hover{
        background:rgba(255,255,255,0.20);
    }
}



/* =========== VISIÓN Y MISIÓN – CORRECCIÓN FINAL =========== */
@media (max-width: 768px) {

    .vision-wrap,
    .mision-wrap {
        width: 100% !important;
        margin: 30px auto !important;
        padding: 0 !important;
    }

    .vision-image-box,
    .mision-image-box {
        width: 100% !important;
        margin: 0 auto !important;
        position: static !important;
    }

    .vision-image-box img,
    .mision-image-box img {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: block !important;
    }

    .vision-card,
    .mision-card {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 20px !important;
        margin-top: 15px !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        text-align: center !important;
        box-sizing: border-box;
    }

    .vision-card h2,
    .mision-card h2 {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }

    .vision-card p,
    .mision-card p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* =========== PROGRAMAS – 1 COLUMNA =========== */
@media (max-width: 768px) {
    .programas-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 !important;
    }

    .programa-card {
        height: 240px !important;
    }
}



/* ======================================================
   FOOTER ESTILO FUNDACIÓN — ELEGANTE Y PROFESIONAL
====================================================== */

.footer {
    padding: 70px 8%;             /* Mucho aire */
    font-family: 'Inter', sans-serif;
    color: #444;
}

/* TOP: Logo izquierda + texto derecha */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;   /* 🔥 Izquierda / Derecha */
    align-items: center;
    margin-top: 20px;
    width: 100%;
}
/* Logo */
.footer-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-left img{
    width: 175px;  
    padding-left: 35px;               
}

/* Texto descriptivo */
.footer-text {
    flex: 2;
    text-align: left;
    max-width: 700px;
}

.footer-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Línea separadora */
.footer-separator {
    width: 100%;
    border-top: 1px solid #393838;
    margin: 50px 0 25px 0;
}


.footer-bottom p {
    font-size: 12px;              /* 🔥 Texto más pequeño */
    color: #555;
    margin: 0;
    width: 100%;                  /* Forzar salto de línea natural */
    max-width: 330px;             /* Ajusta para 4 líneas */
}

.left-text {
    text-align: left;
}

.right-text {
    text-align: right;
}
/* Responsivo */
@media (max-width: 1024px) {

    /* Centra todo el footer-top */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .footer-left {
        justify-content: center;
    }

    .footer-text {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Centrar completamente el footer-bottom */
    .footer-bottom {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
        gap: 5px;
    }

    .footer-bottom p {
        text-align: center !important;
        width: 100%;
        margin: 0;
    }
}

