*{
    box-sizing: border-box;
    margin:0;
    padding: 0;
}
.contenido {
    margin-top: 5px; /* ajusta según la altura total de top-bar + menú */
    padding: 20px;
}
.portada_apoyos{ 
    background-image: url('../img/apoyo-economico.jpg');
    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;
    /* border: 1px solid #ccc; */
    /* border-radius: 8px; */
    /* background-color: #f9f9f9; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}
.descripcion_apoyos { 
    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_apoyos  { 
    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;
  }
.link-img { 
    cursor: pointer;
}
.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; 
}
#thumblist {
    text-align: center;
    border-radius: 8px;
    /* background: rgba(127,127,127,.8); */
}
.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 { /**sets the styling of the image in the lightbox**/
    max-width: 80%;
    max-height: 90%;
    text-align: center;
    margin-top: 2%;
}

.lightbox:target { /**this is where the magic happens. makes the lightbox display when it's the target of a clickable link**/
    outline: none;
    display: block;
}
.previous { /**styling the left arrow**/
    position: fixed;
    left: 4px;
    top: 40%;
    width: 40px;
}
.exit { /**styling the exit button**/
    position: fixed;
    top: 10px;
    right: 4px;
    width: 80px;
}
.next { /**styling the right arrow**/
    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;
}
.thumb {
    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;
}
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right:0; bottom: 0;
    /* background: rgba(0,0,0,0.85); */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 10px;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 70%;
    max-height: 80vh;
    /* border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.7); */
}
.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_apoyos{ 
        width: 100%;
        height: auto;
        aspect-ratio: 2/1;
    }
    .contenedor_testimonio{ 
        display: flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;
    }
    .descripcion_apoyos { 
        width: 370px;
        color:#858585;
        line-height:1.8rem;
        margin-bottom: 30px;
        text-align:justify;
        padding: 15px;
    }

    .gallery{ 
        display:grid;
        grid-template-rows: auto auto;
    }
    .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(50% - 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_apoyos{ 
            width: 100%;
            height: auto;
            aspect-ratio: 2/1;
        }
        .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;
        }
    }
    

