@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,700&display=swap');
:root{
    --color_text-green: #96C144;
    --color_text-blue: #122E5E;
    --color_text-grey: #888d9f64;
    --main_color-primaty: #FFFFFF;
    --main_color-secundary: #888d8f20;
    --background-color: #ffffff;
    --lowText_font_size: 16px;
    --text-size_title: 40px;
    --text_titlecard: 24px;
    --text_paragraph: 16px;
    --box_shadow-primaty: 0px 6px 50px -20px rgba(0,0,0,0.5);

}

*{
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
body{
    font-family: 'Poppins', sans-serif;
}
:root{
    scroll-behavior: smooth;
}
/* TODO PARA EL MENU*/
.nav-logo img{
    width: 100%;
    display: flex;
}
a{
    text-decoration: none;
}
nav{
    max-width: 1300px;
    margin: auto;
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.nav-logo{
    max-width: 300px;
}
.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 3rem;
}
.link a{
    position: relative;
    padding-bottom: 0.75rem;
    color: black;
}
.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #122e5e;
    transition: all 0.3s ease;
}
.link a:hover::after{
    width: 70%;
}
.btn{
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #122e5e;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover{
    background-color: #96c144;
}
/* HASTA AQUI EL MENU*/


/* AQUI EMPEZAMOS A DAR ESTILACHO*/
.contenedor{
    width: 90%;
    max-width: 1300px;
    overflow: hidden;
    margin: auto;
    padding: 60px 0;
}
header{
    height: 89vh;
    background-image: linear-gradient(to right, rgba(18, 46, 94, 0) 0%, rgba(150, 193, 68, 0.0) 100%), url(../COMMERCIAL/TOILET\ PARTITIONS/3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}
.head{
    text-align: center;
    padding: 35px;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--color_text-blue);
}
.titulo{
    font-size: 45px;
    margin-bottom: 15px;
}
.copy{
    font-weight: 300;
    font-size: 25px;
    color: black;
}
.subtitulo{
    text-align: center;
    font-weight: 300;
    color:#96c144;
    margin-bottom: 40px;
    font-size: 40px;
}
.gallery{
    background: rgba(216, 212, 215, 0.594);
}
.contenedor-galeria{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.img-galeria{
    object-fit: cover;
    width: 30%;
    display: block;
    margin-bottom: 15px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.imagen-light{
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(100% );
    transition: transform .2 ease-in-out;
}
.show{
    transform: translate(0);
}
.agregar-imagen{
    object-fit: cover;
    width: 40%;
    border-radius: 10px;
    transform: scale(0);
    transition: transform .3s .2s;
}
.close{
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    cursor: pointer;
}
.showImage{
    transform: scale(1.8);
}







/* footer */
.pie-pagina{
    width: 100%;
    background-color: #122E5E;
}
.pie-pagina .group-1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 45px 0px;
}
.pie-pagina .group-1 .box figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pie-pagina .group-1 .box figure img{
    width: 250px;
}
.pie-pagina .group-1 .box h2{
    color: white;
    margin-bottom: 25px;
    font-size: 20px;
}
.pie-pagina .group-1 .box p{
    color: #efefef;
    margin-bottom: 10px;
}
.pie-pagina .group-1 .socialMedia a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 35px;
    line-height: 45px;
    color: withe;
    margin-right: 10px;
    background-color: #96C144;
    text-align: center;
    transition: all 300ms ease;
}
.pie-pagina .group-1 .socialMedia a:hover{
    color: #96C144;
}
.pie-pagina .group-2{
    background-color: #0a1a2a;
    padding: 15px 10px;
    text-align: center;
    color: #FFFFFF;
}
.pie-pagina .group-2 small{
    font-size: 15px;
}



@media (width < 900px){
    main{
        max-width: 900px;
    }
    .nav-links{
        display: none;
    }
    .image__cover{
        width: 0%;
    }
    .image__cover img{
        width: 0px;
    }
    .cover{
      margin-bottom: 40px;
    }
    .text__cover{
        width: 100%;
        padding-right: 15px;
    }
    .text__cover h1{
        font-size: 40px; /*Variable*/
    }
    .titulo{
        font-size: 20px;
    }
    .agregar-imagen{
        width: 80%;
    }
    .img-galeria{
        width: 45%;
    }
    .pie-pagina .group-1{
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        padding: 35px 0px;
    }

}

@media (width < 500px){
    .agregar-imagen{
        width: 95%;
    }
    .titulo{
        font-size: 30px;
    }
    .subtitulo{
        font-size: 30px;
    }
    .img-galeria{
        width: 95%;
    }
}






.imagen-light {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.imagen-light.show {
    display: flex;
    scale: 2;
}

.media-container {
    max-width: 100%;
    max-height: 90%;
    display: contents;
    justify-content: center;
    align-items: center;
}

.media-container img,
.media-container video {
    max-width: 100%;
    max-height: 100%;
    /* object-fit: contain; Mantiene la relación de aspecto sin distorsionar */
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 1; /* Asegura que las flechas estén por encima de las imágenes/videos */
}

.flecha.izquierda {
    left: 25%;
}

.flecha.derecha {
    right: 25%;
}
/* Estilos del botón de cierre */
.cerrar-galeria {
    position: absolute;
    top: 25%;
    right: 28%;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 2;
}