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

body {
    margin: 0;
    font-family: 'Exo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo', sans-serif;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    min-height: calc(100vh - 120px);
    padding-top: 70px;
}

.section-padded {
    padding: 3rem 1.5rem;
    max-width: 95%;
    margin: 0 auto;
}



.site-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--white);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    margin: 5px auto;
}

.hamburger[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: -70px;
}

.carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    color: var(--white);
    width: 90%;
    max-width: 1200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero-h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 3;
    border-radius: 50%;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 1.5rem;
}

.carousel-control.next {
    right: 1.5rem;
}



.contact-section {
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
}

.contact-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--white);
    text-align: center;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    background-color: var(--primary-color);
}
.contact-form .btn:hover {
    background-color:rgb(230, 115, 0);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


#wsp_fixed {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.bp-wsp-general {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.bp-wsp-general:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wsp-text {
    color: var(--dark-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
}

#wsp_fixed:hover .wsp-text {
    opacity: 1;
}



/* Mosaicos GRID: */

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 8rem);
    gap: 8px;
    margin: 2.2rem;
    overflow: hidden; 
}
    
/* Estilos Comunes de los Mosaicos (Contenedor principal) */
.parent > div {
    position: relative; 
    overflow: hidden; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    transition: transform 0.3s ease; 
    cursor: pointer;

}

/* 2. Estilos del Pseudo-Elemento (Capa de la Imagen y el Blur) */
.parent > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Estará debajo del texto */
    
    /* Configuración de la imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    filter: blur(1.8px); 
    
    transition: filter 0.3s ease, transform 0.3s ease; 
}

/* 3. Estilos Específicos de Cada Mosaico (Tamaño y Imagen) */

.div1 {
    grid-row: span 5 / span 5;
}
.div1::before {
    /* Quienes Somos */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../img/quienes-somos/quienes-somos-3.png');
}

.div2 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
}
.div2::before {
    /* Obras Realizadas */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../img/trabajos-realizados/IMG_20230208_153034.jpg');
}

.div3 {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
    grid-column-start: 4;
}
.div3::before {
    /* Sistema Wood Frame */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../img/trabajos-realizados/IMG_20220406_161605.jpg');
}

.div4 {
    grid-column: span 3 / span 3;
    grid-row: span 3 / span 3;
    grid-column-start: 2;
    grid-row-start: 3;
}
.div4::before {
    /* Nuestros Modelos */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../uploads/modelos/RENDER SOL 74m2 1.png');
}

.div5 {
    grid-row: span 3 / span 3;
    grid-column-start: 5;
    grid-row-start: 3;
}
.div5::before {
    /* Casas Sustentables */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../../img/trabajos-realizados/IMG_20230325_165011.jpg');
}


/* 4.  MOSAICO COMPLETO CLICABLE */


.parent > div a {
    display: block; 
    
    width: 100%;
    height: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;

    text-decoration: none;
    color: inherit; 
}
/* Fin de Mosaicos GRID */

/* ESTILOS DE TEXTO  */

.parent h2 {
    color: white; 
    font-size: 1.5em;
    text-align: center;
    padding: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1); 
    white-space: normal; 
    word-break: break-word;
}

/* EFECTO HOVER */

.parent > div:hover {
    /* Ligeramente más grande y brillante al pasar el ratón */
    transform: scale(1.03); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.parent > div:hover::before {
    filter: blur(0); 
    transform: scale(1.05); 
}

@media (min-width: 1281px) and (max-width: 1366px) {
    .hero-carousel {
        height: 70vh;
    }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .hero-carousel {
        height: 70vh;
    }
}

@media (min-width: 792px) and (max-width: 992px) {
    .hamburger {
        display: block;
    }
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }
    .hero-content {
        width: 95%;
    }
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media ((min-width: 577px) and (max-width:791px)) { /* Tabletas en vertical */
    .hamburger {
        display: block;
    }


}

@media (max-width: 576px) { /* Móviles */
    .hamburger {
        display: block;
    }
    .hero-carousel {
        height: 45vh;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 0.7rem 1.5rem;
    }
    .section-padded {
        padding: 2rem 1rem;
    }

    /* Ajustes para el mosaico en móviles */
    .parent {
        display: flex;
        flex-direction: column;
        margin: 1.5rem 1rem;
        gap: 1rem;
    }

    .parent > div {
        height: 250px;
        width: 100%;
    }

    /* Reseteamos las propiedades de grid que no se aplican en flexbox */
    .div1, .div2, .div3, .div4, .div5 {
        grid-row: auto;
        grid-column: auto;
    }



    .footer-content-wrapper {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 10px;
    }
}