.galeria{
    width:100%;
    padding:120px 8%;
    background:#f5f5f5;
    position:relative;
    overflow:hidden;
}

.galeria{
    background:#f5f5f5;
}

.galeria-titulo span{
   color:#ff008c;
    font-size:14px;
    font-weight:800;
    letter-spacing:3px;
    margin-bottom:12px;
}

.galeria-titulo h2{
    margin:15px 0;
    line-height:1.2;
}

.galeria-titulo h2{
    font-size:45px;
    color:#111;
}

.galeria-titulo p{
    font-size:17px;
    line-height:1.8;
}

.galeria-titulo p{
    color:#111;
}

.galeria-titulo{
    text-align:center;
    margin-bottom:70px;
}

.galeria-titulo p{
    max-width:700px;
    margin:auto;
}

.galeria-item:hover img{
    transform:scale(1.1);
}

/* =========================
SECCIÓN GALERÍA
========================= */

.galeria-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    grid-auto-rows:280px;
    gap:25px;
    position:relative;
    z-index:2;
}


/* =========================
ITEMS
========================= */

.galeria-item{
    position:relative;
    overflow:hidden;
    border-radius:25px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
}


/* HOVER */

.galeria-item:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.14);
}


/* IMAGEN */

.galeria-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}


/* ZOOM */

.galeria-item:hover img{
    transform:scale(1.1);
}


/* IMÁGENES GRANDES */

.galeria-item.grande{
    grid-column:span 2;
    grid-row:span 2;
}


/* =========================
OVERLAY
========================= */

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient( to top,rgba(0,0,0,.7),rgba(0,0,0,.2));
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:.4s;
}


/* TEXTO */

.overlay h3{
    color:white;
    font-size:30px;
    font-weight:800;
    letter-spacing:2px;
    transform:translateY(20px);
    transition:.4s;
}


/* EFECTOS */

.galeria-item:hover .overlay{
    opacity:1;
}

.galeria-item:hover .overlay h3{
    transform:translateY(0);
}


/* =========================
MODAL GALERÍA
========================= */

.modal-galeria2{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.96);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    overflow:hidden;
    animation:fadeInGaleria2 .4s ease;
}

.modal-galeria2.activo{
    display:flex;
}


/* IMAGEN MODAL */

.modal-imagen2{
    width:85%;
    max-width:950px;
    max-height:85vh;
    object-fit:contain;
    border-radius:28px;
    box-shadow:0 0 40px rgba(0,170,255,.25);
    animation:zoomGaleria2 .4s ease;
}


/* =========================
CERRAR
========================= */

.cerrar-modal2{
    position:absolute;
    top:25px;
    right:40px;
    font-size:50px;
    color:white;
    cursor:pointer;
    transition:.3s;
    z-index:10000;
}

.cerrar-modal2:hover{
    color:#ff008c;
    transform:scale(1.2);
}

/* =========================
BOTONES
========================= */

.prev2,
.next2{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:#00aaff;
    border:none;
    color:white;
    font-size:35px;
    width:65px;
    height:65px;
    border-radius:50%;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,170,255,.25);
}


/* HOVER */

.prev2:hover,
.next2:hover{
    background:#ff008c;
    transform:translateY(-50%)scale(1.1);
    box-shadow:0 10px 25px rgba(255,0,140,.25);
}

.prev2{
    left:40px;
}

.next2{
    right:40px;
}

/* =========================
ESTADÍSTICAS
========================= */

.estadisticas{
    margin-top:100px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}


/* BOX */
.estadistica-box{
    background:white;
    padding:45px 30px;
    border-radius:28px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
    position:relative;
    overflow:hidden;
}

/* LINEAS */
.estadistica-box:nth-child(1)::before{
    background:#00aaff;
}

.estadistica-box:nth-child(2)::before{
    background:#ff008c;
}

.estadistica-box:nth-child(3)::before{
    background:#ffd500;
}

.estadistica-box:nth-child(4)::before{
    background:#00aaff;
}

/* LINEA */

.estadistica-box::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
}

/* HOVER */
.estadistica-box:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.12);
}


/* NÚMEROS */
.estadistica-box h3{
    font-size:48px;
    margin-bottom:12px;
    font-weight:800;
}

/* COLORES */
.estadistica-box:nth-child(1) h3{
    color:#00aaff;
}

.estadistica-box:nth-child(2) h3{
    color:#ff008c;
}

.estadistica-box:nth-child(3) h3{
    color:#ffd500;
}

.estadistica-box:nth-child(4) h3{
    color:#00aaff;
}

/* TEXTO */
.estadistica-box p{
    color:#555;
    font-size:17px;
    font-weight:600;
}




/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

    .modal-header{
        grid-template-columns:1fr;
    }

    .modal-header-texto h2{
        font-size:38px;
    }

    .info-rapida{
        grid-template-columns:1fr;
    }

    .galeria-container{
        grid-template-columns:1fr;
    }

    .galeria-item.grande{
        grid-column:span 1;
        grid-row:span 1;
    }

    .overlay{
        opacity:1;
        justify-content:flex-start;
        align-items:flex-end;
        padding:25px;
        background:linear-gradient(
            to top,
            rgba(0,0,0,.8) 0%,
            rgba(0,0,0,.3) 45%,
            transparent 100%
        );
    }

    .overlay h3{
        transform:none;
        font-size:24px;
        letter-spacing:1px;
        width:100%;
        text-align:left;
    }

    .galeria-item:active{
        transform:scale(.97);
    }

}


