/*para el texto de portafolio*/

.hero-b{
    font-family: 'Zilla Slab', serif; 
    display: flex;
    align-items: center;
    min-height: 50vh;
    padding-left: 10%;
    padding-right: 10%;
}

.hero-content_b{
    max-width: 500px;
}
/*imagenes del portafolio*/
/* SOLO para la sección antigua */
.portafolio-detalle h2 {
    font-family: 'Zilla Slab', serif; 
    font-weight: 700;
    margin-bottom: 15px;
}

.portafolio-detalle p {
    font-size: 16px;
    line-height: 1.6;
}

.row img{
    border-radius: 10px;
}

/* CADA BLOQUE NEGRO */
.proyecto {
    background-color: #000;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    transition: 0.3s;
}

/* IMAGEN */
.proyecto img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* HOVER */
.proyecto:hover img {
    transform: scale(1.05);
}

/* TEXTO */
.proyecto h5 {
    margin-top: 10px;
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
}

.proyecto p {
    font-size: 14px;
    color: #ccc;
}
/* ============================================================= */
/* ===== MOSAICO PRO ORDENADO ===== */
.proyecto-mosaico{
    padding: 80px 0;
}

/* TITULO */
.titulo-proyecto{
    font-family: 'Zilla Slab', serif;
    color: #fff;
}

/* DESCRIPCION */
.descripcion-proyecto{
    color: #ccc;
    max-width: 700px;
    margin: 10px auto 40px;
}

/* GRID */
.grid-pro{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
}

/* BASE */
.grid-pro img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.grid-pro img:hover{
    transform: scale(1.03);
}

/* DISTRIBUCION (AQUI ESTA LA MAGIA) */
/* VIDEO DENTRO DEL GRID */
.grid-pro video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.img1{
    grid-column: span 2;
    grid-row: span 2;
}

.img2{
    grid-column: span 2;
}

.img3{
    grid-row: span 2;
}

.img5{
    grid-column: span 2;
}

/* RESPONSIVE */
@media (max-width: 992px){
    .grid-pro{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width:576px){

    .grid-pro{
        grid-template-columns:1fr;
        grid-auto-rows:auto;
    }

    .img1,
    .img2,
    .img3,
    .img5{
        grid-column:span 1;
        grid-row:span 1;
    }

    .grid-pro img,
    .grid-pro video{
        height:160px;
        object-fit:cover;
    }

}
/* ===== VISOR WHATSAPP ===== */
.visor{
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);

    justify-content: center;
    align-items: center;
}

/* IMAGEN */
#imagenActiva{
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

@media (max-width:576px){

    #imagenActiva,
    #videoActivo{
        max-width:95%;
        max-height:80%;
    }

}

/* CERRAR */
.cerrar{
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

/* FLECHAS */
.prev, .next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.prev{ left: 20px; }
.next{ right: 20px; }

/* HOVER */
.prev:hover, .next:hover{
    color: #ccc;
}
@media (max-width:576px){

    .prev,
    .next{
        font-size:28px;
        padding:5px;
    }

    .prev{
        left:8px;
    }

    .next{
        right:8px;
    }

    .cerrar{
        top:10px;
        right:18px;
        font-size:28px;
    }

}
#videoActivo{
    display: none;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}
/* ===== HERO RESPONSIVE ===== */
@media (max-width:768px){

    .hero-b{
        min-height: auto;
        padding: 60px 25px;
        text-align: center;
        justify-content: center;
    }

    .hero-content_b{
        max-width: 100%;
    }

}
/* ===== Texto Responsive ===== */
@media (max-width:576px){

    .titulo-proyecto{
        font-size:30px;
    }

    .descripcion-proyecto{
        font-size:15px;
        padding:0 15px;
    }

}
@media (max-width:768px){

    .grid-pro img,
    .grid-pro video{
        height: 180px;
        object-fit: cover;
    }

}

@media (max-width:480px){

    .grid-pro img,
    .grid-pro video{
        height: 130px;
    }

}
@media (max-width:576px){

    .grid-pro{
        display:flex;
        flex-direction:column;
        gap:15px;
    }

    .grid-pro img,
    .grid-pro video{
        width:100%;
        height:160px;
        object-fit:cover;
    }

}