@import "header_footer.css";

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Centrar un div */
.portafolio{
    display: flex;
    flex-direction: column;
    align-items: center;
}


h3{
    font-family: "Sansita", sans-serif;
    font-weight: 600;
    font-style: normal;
}


p{
    font-family: "Belleza", sans-serif;
    font-style: normal;   
}


.descripcion_sub_pag p{
    font-family: "Belleza", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    font-size: 3vh;
}

.titulo2{
    color: rgb(234, 140, 27);
 
    text-align: center;
    margin-bottom: 0px;
    padding: 2% 0% 3% 0%;
    font-size: 5vh;
    font-family: "Sansita", sans-serif;
    font-weight: 400;
    font-style: normal;
}
   

  /* NOVEDADES */

 .contenedor{
        width: 80%;
      }


.novedad{
    width: 100%;
    display: flex;
    align-items: center;
    height: 68vh;   
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .5);
}

.novedad figure{
    height: 68vh;
    flex: 0 0 50%;
    overflow: hidden;
}
 
.novedad .horizontal{
    height: 68vh;
    flex: 0 0 50%;
    overflow: hidden;
}

.novedad .vertical{
    height: 68vh;
    flex: 0 0 35%;
    overflow: hidden;
    margin-left: auto; /* Alinea la imagen completamente a la derecha */
}

.novedad figure img{
    width: 100%;
    height: 100%;
}

.novedad .hover-galeria{
    padding: 0% 5% 0% 5%;
}

.novedad .hover-galeria h3{
    color: rgb(0, 64, 91);
    font-size: 3.5vh;
}

.novedad .hover-galeria p{
    font-size: 2.8vh;
    text-align: left;
}

.derecha .hover-galeria,
.izquierda figure {
    order: 1;
}

.derecha figure,
.izquierda .hover-galeria {
    order: 2;
}


.btn-central{
    position: relative;
    font-family: 'Calibri';
    display: inline-block;
    padding: 7px 10px;
    font-size: 15px;
    text-decoration: none;
    overflow: hidden;
    transition: all 1s ease;
    border-radius: 6px;
    background-color: transparent;
    border-width: 2px;
    border-style: solid;
    color: white;
    background: rgb(0, 64, 91);
    font-weight: 500;
}

.btn-central:hover{
    background: rgb(234, 140, 27);
    color: rgb(0, 64, 91);
    font-weight: 500;
}

.espacio{
    height: 10vh;
}

 .galeria-port{
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60vh;
    border-bottom: 1px solid gray;
}

.galeria-port figure{
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 350px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .5);
    cursor: pointer;
}

.galeria-port figure:nth-child(1) img{
    width: 100%;
    height: 100%;
    transition: all 500ms ease-out;
    object-position: center;
}

.galeria-port figure:nth-child(2) img{
    width: 100%;
    height: 100%;
    transition: all 500ms ease-out;
    object-fit: cover;
    object-position: 90%;
}

.galeria-port figure:nth-child(3) img{
    width: 100%;
    height: 100%;
    transition: all 500ms ease-out;
    object-fit: cover;
    object-position: 65%;
}



.galeria-port figure .hover-galeria{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 64, 91, .8);
    transition: all 500ms ease-out;
    opacity: 0;
    visibility: hidden;
    text-align: center; 
}

.galeria-port figure:hover > .hover-galeria{
    opacity: 1;
    visibility: visible;
}

.galeria-port figure:hover > .hover-galeria h3{
    margin-top: 70px;
    margin-bottom: 15px;
}

.galeria-port figure .hover-galeria h3{
    color: rgb(234, 140, 27);
    font-weight: 600;
    margin-bottom: 120px;
    transition: all 500ms ease-out;
    margin-top: 30px;
}

.galeria-port figure .hover-galeria p{
    color: white;
    font-family: 'Calibri';
    font-size: 17px;
    line-height: 1.5;
    width: 100%;
    max-width: 220px;
    margin: auto;
}

.btn-portf{
    position: relative;
    font-family: 'Calibri';
    display: inline-block;
    padding: 7px 10px;
    color: white;
    font-size: 15px;
    text-decoration: none;
    overflow: hidden;
    transition: all 1s ease;
    border-radius: 6px;
    background-color: transparent;
    border-width: 2px;
    border-style: solid;
    border-color: white;
    font-weight: 500;
}

.btn-portf:hover{
    background: rgb(234, 140, 27);
    color: black;
    font-weight: 300;
}


/* DISEÑO RESPONSIVE */

/*Media Query para pantallas pequeñas tipo tablet */

@media (max-width: 1300px) {
    .contenedor{
        width: 85%; 
    }
}


/* Media Query para pantallas tipo celular  */
@media (max-width: 768px) {
    .contenedor{
        width: 80%;
    }
    
    .descripcion_sub_pag p{
        font-size: 2.5vh;
    }
    
    .novedad{
        flex-direction: column; /* Cambiar la disposición a columna */
        height: auto; /* Ajustar la altura */
    }

    .novedad figure{
        flex: 0 0 auto;
        height: auto; /* Dejar que la imagen se ajuste al contenido */
    }

    .novedad .hover-galeria{
        padding: 2rem;
    }

    .novedad .hover-galeria h3{
        font-size: 3.5vh;
        line-height: 1.12;
    }

    .novedad .hover-galeria p{
        font-size: 2.75vh; /* Aumentar el tamaño del texto */
    }

    .derecha{
        display: flex;
        position: relative;
        flex-direction: column;
    }

    .derecha .hover-galeria{
        order: 2;
    }

    .derecha figure{
        order: 1;
    }

}

