
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.contenedor-general
{
    width: 100vw;
    height: auto;   
    padding-left: 4vw;
    padding-right: 4vw;
    margin-bottom: 2vw;
}

.imagen-principal{
    background-image: url(/../assets/image/homeimage/principal.png);
    width: 100%;
    height: 60vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    grid-area: apartado-principal;
    margin-bottom: 13vw;
}

.imagen-principal::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2; 
}

.text-rotator {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #F6F3EC;
    z-index: 3;
    text-align: center;
    font-size: 6vw;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    max-width: 70vw;
    min-height: 2.5em; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phrase {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
}

.phrase.active {
    opacity: 1;
    transform: translateX(0);
    font-size: 1.1em;
}

.seccion-populares{
    display: flex;
    justify-content: space-between;
    height: 50vw;
    width: 100%;
}

.productos-populares{
    display: flex;
    justify-content: space-between;
    width: 50vw;
    align-self: flex-start; /* <--- Esto es la clave */
    height: auto;
}

.titulo-populares{
    font-size: 3vw;
    color: #574C3F;
    font-family: Space Grotesk;
    font-weight: 700;
    margin-bottom: 3vw;
    
}

.texto-popular{
    font-size: 1.2vw;
    width: 28vw;
    font-family: Raleway;
}

.btn {
    width: 14vw;
    height: 4.5vw;
    margin-top: 40px;
    background-color: #36302A !important;
    padding: 10px;
    color: #F6F3EC !important;
    position: absolute;
    display: flex; /* ← Añadido */
    align-items: center; /* ← Centra verticalmente */
    justify-content: center; /* ← Centra horizontalmente */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3vw;
    font-weight: 500;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.3), 
    0 10px 18px rgba(0, 0, 0, 0.2), 
    0 14px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}


.btn:hover{
    width: 14vw;
    height: 4.5vw;
    margin-top: 40px;
    background-color: #36302A;
    padding: 10px;
    color: #F6F3EC;
    position: absolute;
    display: flex; /* ← Añadido */
    align-items: center; /* ← Centra verticalmente */
    justify-content: center; /* ← Centra horizontalmente */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3vw;
    font-weight: 500;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 
    0 10px 16px rgba(0, 0, 0, 0.4), 
    0 14px 24px rgba(0, 0, 0, 0.3), 
    0 18px 30px rgba(0, 0, 0, 0.25);
}

.btn:active{
    width: 14vw;
    height: 4.5vw;
    margin-top: 40px;
    background-color: #36302A;
    padding: 10px;
    color: #F6F3EC;
    position: absolute;
    display: flex; /* ← Añadido */
    align-items: center; /* ← Centra verticalmente */
    justify-content: center; /* ← Centra horizontalmente */
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3vw;
    font-weight: 500;
    border-radius: 35px;
    cursor: pointer;
    box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.3), 
    0 10px 18px rgba(0, 0, 0, 0.2), 
    0 14px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.btn-catalogo{
    width: 100%;
}

.redes-sociales{
    background-image: url(/../assets/image/homeimage/redessociales.png);
    width: 100%;
    height: 70vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-left: 15vw;
    padding-right: 15vw;
    margin-bottom: -140px;
    padding-top: 40vw;
}

.text-sociales{
    color: #F6F3EC;
    z-index: 3;
    position: absolute;
    font-size: 2.2vw;
    font-weight: 700;
    font-family: Space Grotesk;
    line-height: 3rem;
    text-align: center;
    bottom: 18vw;
    left: 50%;
    transform: translate(-50%, 0);
    width: 90%;
}

.redes-sociales::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2; 
}

.social-items{
    position: absolute;
    color: #F6F3EC;
    z-index: 5;
    bottom: 10vw;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4em;
    margin-bottom: 5vh;
}

.social-item{
    width: 4vw;
    height: 4vw;
}

.social-item:hover{
    cursor: pointer;
}


.contact-img{
    background-color: #B9A590;
    margin: 0 auto;
    z-index: 40;
    position: relative;
    width: 40vw;
    padding-bottom: 4em;
    padding-top: 4em;
    border-radius: 2.5em;
    padding-left: 2em;
    padding-right: 2em;
    box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.3), 
    0 10px 18px rgba(0, 0, 0, 0.2), 
    0 14px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: -40vw;
}

.form{
    margin: 0 auto;
}


.form-contacto .form h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 4vw;
    font-weight: 500;
    color: #36302A;
    margin-bottom: 4vh;
    text-align: center;
}

label {
    font-size: 1.2vw;
    font-weight: 300;
    margin: 1vw 0;
}

.nombre-apellido {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1vw;
}

.nombre-apellido div {
    display: flex;
    flex-direction: column;
}

.nombre-apellido input {
    width: 100%;
    font-size: 1.3vw;
    height: 3.5vw;
    border-radius: 35px;
    margin-top: 5px;
    background-color: #ece4da;
    border: solid 1px #574C3F;
    padding: 8px;
}

.datos-contacto input{
    width: 100%;
    height: 3.5vw;
    border-radius: 35px;
    margin-top: 5px;
    background-color: #ece4da;
    border: solid 1px #574C3F;
    padding: 8px;
    font-size: 1.3vw;
}

.datos-contacto {
    display: flex;
    flex-direction: column;
}

.datos-contacto input, .datos-contacto textarea {
    width: 100%;
    border-radius: 35px;
    margin-top: 5px;
    background-color: #ece4da;
    border: solid 1px #574C3F;
    padding: 8px;
}

.datos-contacto textarea {
    height: 8vw;
    padding: 10px;
    margin-bottom: 2.5vh;
    font-size: 1.3vw;
}

.datos-contacto button {
    width: 12vw;
    height: 5vw;
    background-color: #36302A;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 1vw;
    color: #F6F3EC;
    border: none;
    box-shadow: 
    0 6px 10px rgba(0, 0, 0, 0.3), 
    0 10px 18px rgba(0, 0, 0, 0.2), 
    0 14px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.datos-contacto button:hover{
    box-shadow: 
    0 10px 16px rgba(0, 0, 0, 0.4), 
    0 14px 24px rgba(0, 0, 0, 0.3), 
    0 18px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width:1919px){
    .titulo-populares{
        font-size: 3.4vw;
        margin-bottom: 1vw;
    }
    .texto-popular{
        width: 33vw;
    }
    .contact-img{
        width: 45vw;
    }
}

@media (max-width:1100px){
    .contact-img{
        width: 52vw;
    }
}  
@media (max-width:900px){
    .imagen-principal{
        height: 70vw;
    }
    .seccion-populares{
        display: flex;
        flex-direction: column;
        row-gap: 13vw;
    }
    .titulo-populares{
        text-align: center;
        margin-bottom: 4vw;
        font-size: 5vw;
    }
    .texto-popular{
        width: 50%;
        font-size: 2.5vw;
    }
    .text-btn-peque{
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .btn-catalogo{
        width: 50%;
        position: relative;
    }
    .btn, .btn:hover{
        width: 25vw;
        height: 7vw;
        font-size: 2.5vw;
        top: 9vw;
        left: 65%;  
        transform: translate(-50%, -50%);  
        position: absolute;
    }
    .productos-populares{
        width: 100%;
        justify-content: space-between;
    }
    .contact-img{
        margin-top: 80vw;
        width: 70vw;
    }
    .form-contacto .form h1{
        font-size: 5vw;
    }
    label{
        font-size: 2vw;
    }
    .nombre-apellido input{
        font-size: 2.3vw;
        height: 4.5vw;
    }
    .datos-contacto input{
        font-size: 2.3vw;
        height: 4.5vw;
    }
    .datos-contacto textarea{
        height: 18vw;
        font-size: 2.3vw;
    }
    .text-sociales{
        bottom: 15vw;
        font-size: 3.5vw;
    }
    .social-items{
        bottom: 5vw;
        margin-bottom: 2vw;
    }
    .social-item{
        height: 5vw;
        width: 5vw;
        
    }
    .datos-contacto button{
        width: 18vw;
        font-size: 2vw;
        height: 8vw;
    }
}

@media (max-width:500px){
    .imagen-principal{
        height: 110vw;
        margin-bottom: 20vw;
    }
    .titulo-populares{
        font-size: 7vw;
        margin-bottom: 8vw;
    }
    .texto-popular{
        font-size: 3.5vw;
    }
    .btn, .btn:hover{
        width: 32vw;
        height: 12vw;
        font-size: 3.5vw;
    }
    .contact-img{
        width: 90vw;
        margin-top: 140vw;
        margin-bottom: -90vw;
    }
    .form-contacto .form h1{
        font-size: 7vw;
    }
    label{
        font-size: 3.5vw;
    }
    .nombre-apellido input{
        font-size: 3.2vw;
        height: 7vw;
    }
    .datos-contacto input{
        font-size: 3.2vw;
        height: 7vw;
    }
    .datos-contacto textarea{
        height: 28vw;
        font-size: 3.2vw;
    }
    .datos-contacto button{
        width: 28vw;
        height: 12vw;
        font-size: 3.5vw;
    }
    .redes-sociales{
        height: 140vw;
    }
    .text-sociales{
        font-size: 5vw;

    }
    .social-item{
        width: 8vw;
        height: 8vw;
    }
}