/* SECCION GALERIA */

.gallery-section{
padding:80px 8%;
background:#f8f8f8;
}

.gallery-header{
text-align:center;
margin-bottom:50px;
}

.gallery-header h2{
font-size:36px;
font-weight:700;
}

.gallery-header p{
color:#666;
margin-top:10px;
}

/* GRID */

.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
max-width:1200px;
margin:auto;
}

/* IMAGENES */

.gallery-img{
width:100%;
height:260px;
object-fit:cover;
border-radius:12px;
cursor:pointer;
transition:transform .4s ease, box-shadow .4s ease;
}

.gallery-img:hover{
transform:scale(1.05);
box-shadow:0 10px 30px rgba(0,0,0,.2);
}

/* LIGHTBOX */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.9);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
animation:fadeIn .4s;
}

.lightbox.show{
display:flex;
}

/* IMAGEN GRANDE */

.lightbox-img{
max-width:85%;
max-height:85%;
border-radius:12px;
animation:zoom .3s ease;
}

/* BOTONES */

.close,
.prev,
.next{
position:absolute;
color:white;
cursor:pointer;
user-select:none;
}

.close{
top:30px;
right:40px;
font-size:45px;
}

.prev,
.next{
top:50%;
font-size:55px;
transform:translateY(-50%);
padding:10px;
}

.prev{
left:40px;
}

.next{
right:40px;
}

/* ANIMACIONES */

@keyframes fadeIn{
from{opacity:0;}
to{opacity:1;}
}

@keyframes zoom{
from{transform:scale(.8);}
to{transform:scale(1);}
}

.videos-section{
width:90%;
margin:auto;
padding:70px 0;
font-family:Arial, Helvetica, sans-serif;
}

.videos-title{
text-align:center;
font-size:32px;
font-weight:bold;
margin-bottom:50px;
}

/* TARJETAS */

.video-card{
display:flex;
align-items:center;
gap:40px;
padding:35px;
border-radius:25px;
margin-bottom:40px;
}

/* INVERTIR ORDEN */

.reverse{
flex-direction:row-reverse;
}

/* COLORES */

.blue-card{
background:linear-gradient(135deg,#0f4c81,#3a86d1);
color:white;
}

.red-card{
background:linear-gradient(135deg,#1b5fa7,#4da3ff);
color:white;
}

/* VIDEO */

.video iframe{
width:420px;
height:240px;
border-radius:12px;
}

/* TEXTO */

.video-text{
max-width:500px;
}

.video-text h3{
font-size:24px;
margin-bottom:10px;
}

.video-text p{
font-size:15px;
line-height:1.6;
opacity:0.9;
}

/* BOTON */

.btn{
margin-top:15px;
padding:10px 20px;
border-radius:20px;
border:1px solid white;
background:transparent;
color:white;
cursor:pointer;
}

.btn:hover{
background:white;
color:#333;
}

/* RESPONSIVE */

@media (max-width:900px){

.video-card{
flex-direction:column;
text-align:center;
}

.video iframe{
width:100%;
height:250px;
}

}

/* MAPA */

.footer-col.map {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-col.map h4 {
    font-size: 16px;
    margin-bottom: 12px;
    white-space: nowrap;
}

/* El contenedor del mapa para que encaje en el cuadro azul */
.map-container {
    width: 100%;
    height: 180px; /* Ajusta esta altura según prefieras */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* RESPONSIVE: En móvil el footer ya cambia a 1 o 2 columnas según tu código previo */
@media (max-width: 768px) {
    .map-container {
        height: 250px; /* Un poco más alto en móvil para que sea útil */
    }
}

/* MAPA FIN */
