:root {
    --blanco: #fff;
    --blanco2: #e5e5e5;
    --blanco3: #bebebe;
    --negro: #000;
    --azul-Oscuro: #0a141d;
    --azul-oscuro2: #0d2033;
    --aqua: aqua;
}

.contenido1 {
    display: flex;
    min-height: 100vh;
    height: auto;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 0;
    background-image: url(/media/fondos/fondo2.jpg);
    background-attachment: fixed;
    flex-wrap: wrap;
    gap: 30px;
}

.contenido1 .title {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contenido1 h1 {
    display: flex;
    justify-content: center;
    /* min-width: 100vw; */
    width: 60%;
    background-color: rgba(0, 0, 0, 0.674);
    border-radius: 10px;
    padding: 25px 0;
    color: var(--blanco);
    font-size: 18px;
    text-align: center;
    border-radius: 20px 5px;
}

.contain-imgs {
    display: flex;
    justify-content: center;
    /* margin: 40px 100px; */
    max-width: 100%;
}
    
.contenedor{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position:relative;
    cursor: pointer;
    width: 400px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0px 15px 25px rgba(0,0,0,0.50);
    height: 545px;
    margin: 30px;
    align-content: center;
}

.contenedor figure{
    position:relative;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0px 15px 25px rgba(0,0,0,0.50);
    gap: 30px;
    height: 100%;
}
.contenedor figure img{
    width: 100%;
    height: 100%;
    transition: all 400ms ease-out;
    will-change: transform;
    background-position: center;
    background-size: cover;
    object-fit: cover;
}
.contenedor figure .capa{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 400ms ease-out;
    opacity: 0;
    visibility: hidden;
    display: flex;
    text-align: center;
    align-content: center;
    flex-direction: column;
}
.contenedor figure:hover > .capa {
    opacity: 1;
    visibility: visible;
}
.contenedor figure:hover > .capa h3{
    margin-top: 200px;
    margin-bottom: -100px;
    text-transform: uppercase;
}
.contenedor figure:hover > img{
    transform: scale(1.2);
}
.contenedor figure .capa h3{
    color: #fff;
    font-weight: bold;
    transition: all 400ms ease-out;
    margin-left: 10px;
    margin-right: 8px;
    text-align: center;
}
.contenedor figure .capa p{
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    max-width: 220px;
    margin: auto;
}


@media(max-width:824px) {

    nav {
        display: flex;
    }
}

@media(max-width:600px) {
    .contenedor{
        margin: 30px 15px;
    }

    .contenedor figure .capa {
        display: none;
    }

    .contenedor figure:hover > img{
        transform: scale(1);
    }
}

@media(max-width: 800px) {
    .contenido1 h1 {
        width: 90%;
    }

    .contenido1 {
        gap: 0px;
    }
}

@media(max-width: 428px) {
    .contenedor{
        width: 400px;
        height: 430px;
        margin: 15px;
    }
}