:root {
    --primary-color: #00AC73;
    --secondary-color: #EFEFEF;
    --tertiary-color: #9C9B9B;
    --text-color: #6D6D6D;
    --light-text-color: #ffffff;
    --dark-text-color: #000201;
    --primary-button-color: var(--primary-color);
    --primary-button-hover-color: #029660;
    --secondary-button-color: #d1d1d1;
    --secondary-button-hover-color: var(--tertiary-color);
    --spacing: 30px;
    --spacing-sm: 15px;
    --spacing-lg: 40px;
    --spacing-xlg: 60px;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section {
    overflow: hidden;
}

h1 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1;
    color: var(--dark-text-color);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-weight: 800;
    font-size: 42px;
    color: var(--light-text-color);
}
h3 {
    font-size: 23px;
    font-weight: 500;
    color: var(--light-text-color);
}
h4 {
    font-weight: 500;
    font-size: 20px;
    color: var(--light-text-color);
}

h5 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-text-color)
}

p {
    font-size: 17px;
}

hr {
    border-top-color: var(--primary-color);
    border-top-width: 5px;
    width: 60%;
    opacity: 1;
    margin-bottom: var(--spacing-lg);
}

html {
    scroll-padding-top: 90px; 
}

.contenedor {
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.whatsapp-link {
    position: fixed;
    bottom: 100px;
    right: 50px;
    z-index: 1000;
    display: block;
    width: 100px;
    height: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.whatsapp-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Header */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
header .contenedor{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #FFFFFF;
}
header.navbar {
    background-color: #FFFFFF;
}
.header ul .nav-link {
    font-family: Poppins;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: var(--dark-text-color);
    margin: 0 10px;
    padding: 5px 10px;
}
.header ul .nav-link.active {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 10px 20px;
}
.header .navbar-toggler {
    border: 0;
    box-shadow: none;
}
.header .navbar-toggler:hover {
    background-color: transparent;
}
.navbar-brand {
    position: relative;
    z-index: 100001;
}
.header-mobile {
    display: none;
}
.navbar-collapse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px 20px;
    display: none;
    flex-direction: column;
    align-items: center;
}
.navbar-collapse.show {
    display: flex;
}
.navbar-nav .nav-item {
    margin: 10px 0;
    width: 100%;
    text-align: center;
}
.close-menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: var(--dark-text-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1200;
    padding: 0;
    box-shadow: none;
}
.navbar-collapse:not(.show) .close-menu-btn {
    display: none;
}

/* Slider */
.slider {
    position: relative;
}
.slider img {
    width: 100%;
    height: 100%;
    max-height: 1800px;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}
.slider .content {
    position: absolute; 
    top: 50%;         
    left: 50%;        
    transform: translate(-50%, -50%); 
    z-index: 2;         
    text-align: center; 
    padding: 10px;  
}
.carousel-indicators [data-bs-target] {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    box-shadow: none;
}
.carousel-indicators .active {
    opacity: 1;
    background-color: var(--primary-color);;
}
/* End Slider */

/* servicios */
.servicios {
    padding: var(--spacing-xlg) 0;
}
.servicios .contenedor{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.servicios article:first-child {
    flex: 45% 1 0;
    padding-right: var(--spacing);
}
.servicios article:nth-child(2) {
    flex: 55% 0 0;
}
.servicios-cta {
    margin-top: var(--spacing-lg);
    text-align: left; 
}
.servicios img {
    width: 100%;
}
.servicios-image-mobile {
    display: none;
}
/* end servicios */

/* servicios mas */
.servicios-mas .contenedor{
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing);
    padding: 80px var(--spacing);
}
.servicios-mas article {
    background-color: #FFFFFF;
    border-radius: 25px;
    padding: 60px var(--spacing) var(--spacing) var(--spacing);
    text-align: center;
    flex: 1;
    min-width: 300px;
    position: relative
}
.servicios-mas article img {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
}
.servicios-mas p {
    color: var(--primary-color);
    font-size: 14px;
}
/* End Servicios */

/* Gestion responsable */
.gestion-responsable {
    width: 100%;
    background-image: url(../images/gestion-responsable.png);
    height: 460px;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center; 
}

.gestion-responsable .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.gestion-responsable article {
    margin-right: 20px;
}
.gestion-responsable img {
    max-width: 800px;
    width: 100%;
}
.gestion-responsable h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 65px;
    color: #FFFFFF;
    margin-bottom: 0;
}
/* End Gestion responsable */

/* Nosotros */
.nosotros .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nosotros article:first-child {
    flex: 45% 1 0;
    padding-right: var(--spacing);
}
.nosotros article:nth-child(2) {
    flex: 55% 0 0;
}
.nosotros img {
    max-width: 100%;
}
.nosotros .mobile {
    display: none;
}
/* End Nosotros */

/* Valores */
.valores {
    width: 100%;
    background-color: var(--primary-color);
}
.valores .contenedor {
    padding: var(--spacing-xlg) var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.valores h1,
.valores p {
    color: #FFFFFF;
}
.valores-text {
    display: block;
    max-width: 600px;
}
.valores article:first-child {
    flex: 45% 1 0;

}
.valores article:nth-child(2) {
    flex: 55% 0 0;
    padding-left: var(--spacing);
}
.valores .descripcion {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center; 
    gap: 20px; 
}
.valores .descripcion div {
    flex: 0 1 calc(50% - 20px); 
    box-sizing: border-box; 
    display: flex; 
    align-items: center;
    gap: 10px;
}
.valores .descripcion div img {
    max-width: 99px;
    flex-shrink: 0; 
    height: auto;
}
/* End Valores */

/* Proyectos */
.proyectos {
    width: 100%;
    background-image: url(../images/proyectos.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: var(--spacing-lg);
    background-attachment: fixed;
    background-position: center; 
}
.proyectos h1 {
    font-size: 65px;
    color: #FFFFFF;
}
.proyectos .contenedor article {
    padding: 100px var(--spacing) 60px var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.proyectos .contenedor article span {
    width: 47%;
    margin: 0 auto;
}
.proyectos span {
    display: block;
    text-align: center;
}
.proyectos .button {
    box-shadow: none;
    max-width: 397px;
    width: 100%;
    margin: 0 auto;
}
/* End Proyectos */

/* Marcas */
.marcas {
    width: 100%;
    text-align: left;
    padding: 0 -20px;
    background-color: var(--light-text-color);
}
.marcas .contenedor {
    padding: 60px var(--spacing);
}
.marcas article {
    text-align: center;
}
.marcas img {
    padding: 20px;
}
.marcas .button {
    display: inline-block;
    color: var(--light-text-color);
    background-color: #000000;
    width: inherit;
    padding: 3px 15px;
    font-size: 23px;
    font-weight: 500;
    border-radius: 25px;
    border: 0;
}
/* End Marcas */

/* Obras */
.obras {
    width: 100%;
    text-align: left;
    padding: 0 -20px;
    background-color: var(--light-text-color);
}
.obras .contenedor {
    padding: 60px var(--spacing);
}
.obras p {
    max-width: 465px;
    width: 100%;
    color: #787A7A;
}
/* End Obras */

/* Galeria*/
.image-selector {
    text-align: center;
}
.image-selector div{
    display: flex;
    justify-content: center;
    gap: 25px;
    padding-bottom: 20px;
}
.image-selector button {
    background-color: #EAEAEA;
}
.image-selector .impar div:last-child,
.image-selector .par div:first-child {
    display: flex;
    max-width: 680px;
    width: 100%;
    height: 390px;
    overflow: hidden;
}
.image-selector .impar div:first-child,
.image-selector .par div:last-child {
    display: flex;
    max-width: 475px;
    width: 100%;
    height: 390px;
    overflow: hidden;
}
.image-selector .impar span:last-child,
.image-selector .par span:first-child {
    display: flex;
    width: 100%;
    height: 390px;
}
.image-selector .impar span:first-child,
.image-selector .par span:last-child {
    display: flex;
    width: 100%;
    height: 390px;
}
.image {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
}
.image:hover {
    transform: scale(1.1);
    border-color: #007BFF;
}
/* Modal: Ocupa toda la pantalla */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Contenedor del contenido del modal */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%; 
    overflow: auto; 
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Imagen principal del modal */
#mainImage {
    max-width: 100%;
    max-height: 70vh; 
    display: block;
    margin: 0 auto;
}

/* Botón de cierre */
#closeModal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7); 
    color: white; 
    border: none;
    width: 40px; 
    height: 40px;
    border-radius: 50%; 
    font-size: 20px; 
    font-weight: bold;
    line-height: 40px; 
    text-align: center; 
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1001; 
    padding: 0;
    box-shadow: none;
}

#closeModal:hover {
    background: rgba(0, 0, 0, 0.9); /* Hacerlo más oscuro al pasar el mouse */
}

/* Miniaturas */
#thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

#thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

#thumbnails img.active {
    border: 2px solid #007bff;
    transform: scale(1.1);
}
/* Miniaturas Ver mas*/
.thumbnail {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border: 2px solid #007BFF;
}
/* End Galeria*/

/* Formulario */
.formulario {
    background-image: url(../images/fondo-formulario.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.formulario .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px var(--spacing);
}
.formulario-img-mobile{
    display: none;
}
.formulario .contenedor article {
    flex: 0 1 40%;
}
.formulario form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.formulario h1 {
    color: var(--light-text-color);
}
.formulario .escribinos {
    font-size: 22px;
    color: var(--light-text-color);
    padding-bottom: 70px;
}
.formulario .links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 22px;
    padding-bottom: 20px
}
.formulario .links p {
    margin-bottom: 0;
}
.formulario .links img {
    padding-right: 5px;
}
.formulario .contenedor img {
    max-width: 100%;
}
.formulario form button {
    max-width: 300px;
    align-self: flex-end;
}
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 4px;
    display: block;
}
.contacto-mobile {
    display: none;
}
.contacto-mobile p {
    text-decoration: none;
    color: var(--dark-text-color);
}
/* End Formulario */

/* Footer */
footer {
    height: 90px;
    background-color: #585B5C;
    display: flex;
}
footer .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer .contenedor .copyright{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
footer p {
    font-size: 15px;
    color: var(--light-text-color);
    margin-bottom: 0;
}
footer .salto {
    width: 90px;
}
.copyright-img{
    padding-right: 5px;
}


/* End Footer */
@media (max-width: 1200px) {
    h3 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    header .contenedor {
        padding: 20px;
    }
    .header .ms-auto {
        margin-left: inherit !important;
    }
    .navbar-brand {
        position: relative;
        z-index: inherit;
    }
    .header-mobile {
        display: block;
        margin-bottom: 15px;
    }
    .slider img {
        height: 100vh;
    }
    .servicios article:first-child {
        padding-right: 0;
    }
    .servicios .contenedor {
        flex-direction: column;
        align-items: center;
    }
    .servicios-mas .contenedor {
        padding: 80px var(--spacing);
    }    
    .servicios-cta {
        padding-bottom: var(--spacing-xlg);        ;
    }
    .servicios-image {
        display: none;
    }
    .servicios-image-mobile {
        display: block;
    }
    .servicios-mas article {
        margin-bottom: 80px;
    }
    .gestion-responsable .contenedor {
        flex-direction: column;
        justify-content: center;
    }
    .gestion-responsable img {
        max-width: 600px;
    }
    .gestion-responsable h1 {
        font-size: 50px;
        padding-top: 40px;
    }
    .nosotros .contenedor {
        flex-direction: column;
    }
    .nosotros {
        margin: var(--spacing-xlg) 0;
    }
    .nosotros .desktop {
        display: none;
    }
    .nosotros .mobile {
        display: block;
    }
    .valores .contenedor,
    .valores .contenedor .descripcion {
        flex-direction: column;
        align-items: flex-start;
    }
    .valores .contenedor .descripcion {
        padding: 0;
        margin-top: 20px;
    }
    .proyectos {
        padding-bottom: 100px;
    }
    .proyectos .contenedor article {
        flex-direction: column;
    }
    .proyectos .contenedor article span {
        text-align: start;
        width: 100%;
    }
    .proyectos h1 {
        font-size: 50px;
        padding-top: 20px;
    }
    .image-selector div {
        flex-direction: column;
    }
    .image-selector .impar div:last-child, .image-selector .par div:first-child,
    .image-selector .impar div:first-child, .image-selector .par div:last-child  {
        max-width: 100%;
    }
    .formulario {
        background-image: none;
        background-color: var(--light-text-color);
    }
    .formulario .contenedor{
        flex-direction: column;
        align-items: flex-start;
    }
    .formulario .contenedor h1 {
        color: var(--dark-text-color);
    }
    .escribinos {
        display: none;
    }
    .formulario-img-mobile{
        display: block;
    }
    .formulario .links {
        display: none;
    }
    .formulario .contenedor h1,
    .formulario .contenedor img {
        margin-bottom: 60px;
    }
    .formulario .contenedor article {
        flex: 0 1 100%;
        width: 100%;
        max-width: 700px;
    }
    .formulario form button {
        text-align: center;
    }
    .contacto-mobile {
        display: block;
        padding-bottom: 45px;
        text-decoration: none;
    }
    .contacto-mobile p {
        margin-bottom: 0;
    }
    #mainImage {
        max-width: 100% !important;
        height: inherit !important;
        object-fit: cover;
    }
    footer {
        height: inherit;
        padding: var(--spacing);
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .marcas img {
        padding: 20px;
        max-width: 30%;
    }
    footer .contenedor {
        padding: 0;
    }
    footer p {
        font-size: 16px;
    }
    footer .redes img {
        max-width: 30px;
    }
    footer .salto {
        width: 70px;
    }
}

@media (max-width: 430px) {
    .image-selector button {
        width: 100%;
        padding: 8px;
        font-size: 20px;
    }
    copyright-img {
        max-width: 15px;
    }
    footer p {
        font-size: 13px;
    }
}