/* HERO */

.hero {
    position: relative;
    height: 70vh;
    background-image: url('../imag-optim/salones/Captura\ de\ pantalla\ 2025-08-30\ 165649.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: #346231 2px solid;
}


/* Capa con opacidad encima de la imagen */

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 241, 200, 0.3);
    /* Blanco con opacidad */
    z-index: 1;
}

.hero-overlay {
    position: relative;
    text-align: center;
    color: #000;
    z-index: 2;
    /* Para que esté por encima de la capa */
}

.hero h1 {
    font-size: 140px;
    font-weight: normal;
    margin: 0;
    color: white;
    letter-spacing: 2px;
    font-family: 'Archicoco', sans-serif;
}

.hero h2 {
    font-size: 38px;
    font-weight: bold;
    margin: 10px 0 0;
    color: #000;
}

.section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: center;
    align-items: center;
    padding: 40px 90px;
    border-bottom: 1px solid #346231;
    color: #346231;
}


/* Texto e imagen alternados */

.section:nth-child(even) {
    direction: rtl;
    /* invierte el orden visual */
}

.section:nth-child(even) .text,
.section:nth-child(even) .image {
    direction: ltr;
    /* corregimos el texto para que no quede alineado raro */
}


/* Estilos de texto */

.text h1 {
    font-size: 50px;
    font-weight: bold;
    margin: 10px 0;
}

.text p {
    font-size: 20px;
}

.infoextraMuebles {
    background-color: white;
    border-radius: 8px;
    padding: 8px 16px;
    border: #346231 solid 1px;
    text-decoration: none;
    color: #346231;
}

.infoextraMuebles:hover {
    background-color: #346231;
    color: white;
    transition: 0.5s;
}


/* Imágenes */

.image img {
    width: 600px;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
}


/* Animación */

.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
}


/* ========================= RESPONSIVE ========================= */


/* ========================= RESPONSIVE HERO ========================= */


/* Para tablets */

@media screen and (max-width: 1024px) {
    .hero {
        height: 60vh;
    }
    .hero h1 {
        font-size: 50px;
    }
}


/* Para móviles */

@media screen and (max-width: 768px) {
    .hero {
        height: 40vh;
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 38px;
    }
}


/* Para móviles muy pequeños */

@media screen and (max-width: 480px) {
    .hero {
        height: 20vh;
    }
    .hero h1 {
        font-size: 27px;
    }
}


/* ========================= RESPONSIVE SECTIONS ========================= */


/* Para tablets */

@media screen and (max-width: 1024px) {
    .section {
        padding: 30px 40px;
    }
    .image img {
        width: 100%;
    }
    .text h1 {
        font-size: 40px;
    }
    .text p {
        font-size: 18px;
    }
}


/* Para móviles */

@media screen and (max-width: 768px) {
    .section {
        padding: 20px 20px;
    }
    .text h1 {
        font-size: 32px;
    }
    .text p {
        font-size: 16px;
    }
    .image img {
        height: 200px;
        border-radius: 5px;
    }
}


/* Para móviles muy pequeños */

@media screen and (max-width: 480px) {
    .section {
        grid-template-columns: 1fr;
    }
    .text h1 {
        font-size: 26px;
    }
    .text p {
        font-size: 14px;
    }
    .image img {
        width: 90%;
        height: 150px;
    }
}