
*{
    box-sizing: border-box;
    margin:0;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.contenido {
    margin-top: 5px; /* ajusta según la altura total de top-bar + menú */
    padding: 20px;
}
.portada_becas { 
    background-image: url('../img/Fondo_educacion2.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    width: 900px;
    height: 450px;
    margin: 0 auto;
}
.container{ 
    display: flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
.contenedor_testimonio {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}
.descripcion_becas { 
    text-align: justify;
    color:#858585;
    width:900px;
    font-size: 16px;
    line-height: 1.8rem;
}
.titulo_testimonio {
    text-align: center;
    font-size: 24px;
    color: #003752;
    margin-bottom: 20px;
    font-weight: 200;
}
.titulo_becas  { 
    margin-top: 40px;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
    color:#003752;
    margin-bottom: 30px;
    font-weight: 200;
}
.descripcion_testimonial {
    text-align: justify;
    font-size: 16px;
    color: #858585;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
}
.firma_autor {
    text-align: right;
    font-style: italic;
    font-weight:300;
    margin-top: auto;
    color: #003752;
}
.fa-quote-left,
.fa-quote-actividad-right {
  color: #003752;
  font-size: 1rem;
  margin: 0 5px;
}
.thumb {
    max-height: 180px;
    width: 200px;
    height:320px; 
    flex: 1 1 calc(20% - 10px); /* 4 columnas en escritorio */
    max-width: calc(20% - 10px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    border-radius: 4px;
}
.thumb:hover {
    border-color: #007BFF;
}
#thumblist {
    text-align: center;
    border-radius: 8px;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right:0; bottom: 0;
    /* background: rgba(0,0,0,0.85); */
    background-color: #333;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 10px;
}
.lightbox img {
    max-width: 80%;
    max-height: 90%;
    text-align: center;
    margin-top: 2%;
}
.lightbox:target {
    outline: none;
    display: block;
}
.previous {
    position: fixed;
    left: 4px;
    top: 40%;
    width: 40px;
}
.close {
    position: fixed;
    top: 10px;
    right: 4px;
    width: 80px;
}
.next { 
    position: fixed;
    right: 4px;
    top: 40%;
    width: 40px;
}
/* collage de imagenes */
.container_premios {
    max-width: 950px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.lightbox.active {
    display: flex;
}
.lightbox .close, 
.lightbox .prev, 
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  background: none;     /* ← elimina fondo */
  border: none;         /* ← elimina borde */
  border-radius: 50%;   /* opcional: puedes quitar esto también */
  padding: 12px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}
.lightbox .close {
    top: 10%;
    right: 5%;
    transform: none;
}
.lightbox .close:hover,
.lightbox .prev:hover,
.lightbox .next:hover,
.lightbox .close:focus,
.lightbox .prev:focus,
.lightbox .next:focus {
        background: none;
        border: none;
        outline: none;
        color: #ECB409; /* cambia el color si deseas efecto visual al pasar el cursor */
}
.lightbox .prev {
        left: 5%;
}
.lightbox .next {
        right: 5%;
}
.lightbox .close:focus,
.lightbox .prev:focus,
.lightbox .next:focus {
    color: #ECB409;
      /* o algún otro estilo visual claro */
}
@media screen and (max-width : 750px){
    .contenido {
        margin-top:140px; /* ajusta según la altura total de top-bar + menú */
        padding: 20px;
    }
    .portada_becas{ 
        width: 100%;
        height: auto;
        aspect-ratio: 2/1;
        background-image: url('../img/Fondo_educacion2.png');

    }
    .contenedor_testimonio{ 
        display: flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }
    .descripcion_becas { 
        width: 370px;
        color:#858585;
        line-height:1.8rem;
        margin-bottom: 30px;
        text-align:justify;
        padding: 15px;
    }
    .titulo_testimonio {
        font-size: 20px;
    }
    .descripcion_testimonial {
        font-size: 14px;
    }
    .firma_autor {
            font-size: 14px;
    }
    .fa-quote-left,
    .fa-quote-actividad-right {
        color: #003752;
        font-size: 1rem;
        margin: 0 4px;
    }
    .thumb {
        flex: 1 1 calc(33.33% - 10px); /* 2 columnas */
        max-width: calc(50% - 10px);
        }
    }
    
    /* Responsive */
    @media (max-width: 480px) {
        .thumb {
          flex: 1 1 calc(50% - 10px); /* 2 columnas */
          max-width: calc(50% - 10px);
        }
        .lightbox .close, 
        .lightbox .prev, 
        .lightbox .next {
          font-size: 2rem;
          padding: 8px;
        }
    }
    @media (max-width: 320px) {
        .thumb {
          flex: 1 1 100%;
          max-width: 100%;
        }
        .lightbox img {
          max-width: 100%;
          max-height: 70vh;
        }
    }
    @media screen and (max-width: 991px) and (min-width: 751px) {
        .portada_becas{  
            width: 100%;
            height: auto;
            aspect-ratio: 2/1;
            background-image: url('../img/Fondo_educacion2.png');

        }
        .Container_asociaciones_afiliadas{ 
            display: flex;
            flex-direction:column;
            align-items: center;
        }
        .descripcion_apoyos{
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }
        .descripcion_testimonial{ 
            text-align: justify;
            color:#858585;
            font-size: 16px;
            width: 100%;
            line-height: 2.5rem;
            font-family: italic;
            padding: 15px;
        }
    }