:root {
    --color-primario: #038C8C; /* Código de color en formato hexadecimal */
    --font-titulo: 'Montserrat', sans-serif; /* Fuente para títulos y encabezados */
    --font-cuerpo: 'Avenir Next', sans-serif; /* Fuente para cuerpos de texto */
    --font-subtitulo: 'Poppins', sans-serif; /* Fuente para subtítulos y textos destacados */
}
.bento {
    display: flex;
    flex-direction: column;
    width: 70vw;
    align-items: center;
    gap: 20px;
    padding: 12px;
    position: relative;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--color-primario);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1)
}

.section-bento {
    padding-top: 80px; /* Ajusta este valor según la altura de tu nav */
}
.section-title {
    font-size: 3em;
    font-family: var(--font-titulo);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
    color: #fff;
}

.bento .frame, .bento .frame-3 {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}



.bento .frame-2, .bento .frame-4, .bento-box {
    background-color: #e9e9e9;
    border-radius: 16px;
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 300px; /* Altura base unificada */
}

.bento-box .filter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 182, 152, 0.2) 0%,
        rgba(30, 35, 38, 0.8) 50%,
        rgba(28, 182, 152, 0.4) 100%
    );
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: scaleX(1) scaleY(1);
    transform-origin: bottom right;
}

.bento-box .filter .container{

   border: 1px solid var(--color-primario);
   border-radius: 5px;
   padding: 0.2em;
   background: rgba(8, 54, 50, 0.8);
   backdrop-filter: blur(15px);
   margin: 0.3em;
    
}
.bento-box .filter p{
    color: #fff;
    font-size: small;
    font-weight: lighter;
    font-family: var(--font-subtitulo);

}

.bento-box .icon-tech img {
    width: 20px;
    margin: 3px;
}

.bento-box .title {
    color: var(--color-primario);
    font-size: 28px;
    font-weight: bold;
    margin-top: 10px;
    font-family: var(--font-titulo);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bento-box:hover .filter {
    transform: scaleX(0) scaleY(0);
}

.bento-box .content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-box:hover .content {
    opacity: 1;
    transition-delay: 0.3s;
}

.bento-box video, .bento-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bento-box:hover video, .bento-box:hover img {
    transform: scale(1.05);
}

.portfolio .content-seccion{
    max-width: 1100px;
    margin: auto;
}


/* Estilo del modal */
#modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 1200px;
}

#modal-video, #modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 1000px) {
    .bento {
        width: 85vw;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    .bento .frame-3 {
        flex-direction: column;
    }

    .bento .frame-3 .bento-box {
        width: 100%;
        height: 300px;
    }

    .bento .frame-4 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .bento .frame-4 .bento-box {
        width: calc(50% - 10px);
        height: 250px;
    }
}

@media (min-width: 501px) and (max-width: 768px) {
    .bento {
        width: 90vw;
    }

    .bento .frame, .bento .frame-3 {
        flex-direction: column;
    }

    .bento .frame-2, .bento .frame-3 .bento-box {
        width: 100%;
        height: 300px; /* Ajusta esta altura según prefieras */
    }

    .bento .frame-4 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .bento .frame-4 .bento-box {
        width: calc(50% - 10px);
        height: 250px; /* Ajusta esta altura para que juntos se vean del tamaño de los otros proyectos */
    }
}

@media (max-width: 500px) {
    .bento {
        width: 95vw;
    }

    .bento .frame, .bento .frame-3, .bento .frame-4 {
        flex-direction: column;
    }

    .bento .frame-2, .bento .frame-4, .bento-box {
        width: 100%;
        height: 250px; /* Ajusta esta altura según prefieras */
    }

    .section-title {
        font-size: 2.5em;
    }
}