@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --titulo: rgb(159, 111, 72);
    --fondo: rgb(247, 237, 227);
    --texto: rgb(55, 50, 46);
    --rosa: #BA0059;
    --marronfondo: #40290f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    font-family: "Poppins";
}

html {
    scroll-behavior: smooth;
  }

/*header*/

#contenido{
    width:100%;
    margin:auto;
}

header{
    position: fixed;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width:100%;
    height: 50px;
    background-color: #ffffff;
    padding-top: 0.8rem; /* modificar en Media query, poner 1.5 rem */
    padding-bottom: 0.8rem;
    padding-left: 1rem; /* modificar en Media query, poner 5 rem */
    padding-right: 1rem;
    z-index: 1000; /* Asegura que el navbar esté por encima de otros elementos */
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}

h1{
    font-weight: 300;
    font-size: 1rem; /*0.8rem; /* modificar en Media query, poner 1.5 rem */
    color: var(--rosa);
}

nav{ 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* Asegura que los elementos estén espaciados uniformemente */
    text-align: right;
}

nav a img {
    width: 1.3rem;
    display: block; /*Esta opción asegura que las imágenes y otros elementos no tengan espacio debajo, ya que no están alineados en línea con el texto.*/
}

header a {
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none; 
    color: var(--texto);
}

.social {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* Asegura que los elementos estén espaciados uniformemente */
    text-align: right;
  
}
.social a {
    margin-left: 0.5rem;
}

.idioma {
    display: flex;
    align-items: center; /* Alinea las banderas verticalmente en el centro */
    background-color: var(--texto);
    border: 2.5px solid var(--texto);
    border-radius: 20px;
  
    margin-left: 0.5rem;
}

.idioma img {
    width: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
}

.esp, .mall {
    display: flex;
    align-items: center; /* Asegura que las banderas estén centradas verticalmente dentro de sus divs */
}

.esp {
    padding-left: 10px;
    padding-right: 10px;
}

.mall {
    padding-right: 10px;
    padding-left: 10px;
}

.idioma img:hover {
    width: 23px;
}


/*main picture*/

picture {
    max-width: 100%;
}

.img_portada {
    max-width: 100%;
    overflow: hidden;
}

.img_portada img{
    margin-top: 50px;
    max-width: 100%;
    height: 100vh;
    object-fit: cover;
    padding: 0;

    object-fit: cover;        /* Ajusta la imagen para cubrir la caja */
    object-position: -110px;
}


/*main introducción*/

#article {
    padding-top: 5rem; /* Ajusta esto según sea necesario */
    margin-top: -5rem; /* Ajusta para mantener el diseño original */

}

article {
    text-align: center;    
}

#introduccion {
    padding-left: 2.5rem; /* modificar en Media query, poner 5 rem */
    padding-right: 2.5rem;
    padding-top: 2.8rem;
    padding-bottom: 2rem;
}

article h2 {
    font-weight: 700;
    color: var(--titulo);
    margin-bottom: 1rem;

}

article p, article li {
    margin-top: 1rem;
    font-weight: 200;
    font-size: 0.9rem;
}

article h3 {
    font-weight: 500;
    color: var(--titulo);
}

article li {
    list-style-type: none;
}

article li strong {
    font-weight: 400;
}

.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 1.8rem;
    margin-bottom: 1.5rem;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgb(113, 86, 62);
}

.separator::before {
    margin-right: 0.5rem; /* Espacio entre el filete y el círculo */
}

.separator::after {
    margin-left: 0.5rem; /* Espacio entre el filete y el círculo */
}

.circle {
    width: 6px; /* Tamaño del círculo */
    height: 6px;
    background-color: var(--titulo);
    border-radius: 50%;
}


/*main información*/

section {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

section h3 {
    color: var(--rosa);
    font-size: 1.3rem;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

section h4 {
    font-weight: 500;
    padding-top: 1.3rem;
    font-size: 1rem;
}

section img {
    max-width: 100%;
}

/*main carrousel azucar*/


.slider_frame {
    width: 100%;
    height: auto;
    /*background-color: var(--fondo);*/
    margin-top: 2rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

@keyframes slider {
    0% {margin-left: 0%;}
    20% {margin-left: 0%;}

    25% {margin-left: -100%;}
    45% {margin-left: -100%;}

    50% {margin-left: -200%;}
    70% {margin-left: -200%;}

    75% {margin-left: -300%;}
    95% {margin-left: -300%;}
}

.slider_frame ul {
    display: flex;
    padding: 0%;
    width: 400%;
    animation: slider 10s infinite alternate ease-in-out;
}

.slider_frame li {
    list-style: none;
    width: 100%;
   
}

.slider_frame img {
    width: 100%;
}



/*main web*/

#web {
    background-color: var(--rosa);
    color: var(--fondo);
}

.contenedor_web {
    margin-right: 2rem;
    margin-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    text-align: center;
}

.contenedor_web h2 {
    font-weight: 700;
    color: var(--fondo);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.contenedor_web .onlineshop {
    color: var(--fondo);
}

.img_web {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    
}

.img_web img{
    max-width: 100%;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}



/*main contacto*/

#contacto {
    background-color: var(--fondo);
}

.contenedor_contacto {
    
    margin-right: 2rem;
    margin-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    text-align: center;

}

.contenedor_contacto h2 {
    font-weight: 700;
    color: var(--titulo);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}



.form_text{
    position: relative;
}

.form_cuadro{
    max-width: 100%;
    min-width: 100%;
    height: 3.3rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-color: var(--titulo);
    border-width: 0.05rem;
    border-style: solid; /*elimina efecto 3D*/
    font-size: 1.2rem;
    font-family: "Poppins";
    font-weight: 300;
}

.form_cuadro:focus {
    border-width: 0.10rem;
    border-color: var(--rosa);
    outline: none; /* Elimina el borde predeterminado del navegador */
    color: var(--titulo);
}

.form_text textarea{
    min-height: 150px;
    max-height: 200px;
    padding-top: 15px;

}

input, textarea {
    padding-left: 1rem;  
    color: var(--texto)  
}



.form_end {
    text-align: right;
    padding-right: 0.5rem;
    
}

.form_boton {
    background-color: var(--rosa);
    color: rgb(255, 255, 255);
    font-family: "Poppins";
    font-size: 1rem;
    font-weight: 275;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 4px;
    border-width: 0px;
    border-style: solid; /*elimina efecto 3D*/
}


/*footer*/

footer {
    text-align: center;
    padding-bottom: 3rem;
    background-color: var(--marronfondo);
    padding-top: 2rem;
    font-size: 1rem;
}

footer h2, footer p, footer a {
    font-family: "Poppins";
    font-weight: 300;
    color: white;
    padding-bottom: 0.4rem;
}

footer h2 {
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover{
    color: var(--rosa);
    text-decoration: none;
    font-size: 1.1rem;
}

#footer_logos .ig:hover{
    width: 1.7rem;
}
#footer_logos .face:hover{
    width: 1.7rem;
}

.onlineshop {
    text-decoration: underline;
}

#footer_logos img {
    width: 1.5rem;
    padding-bottom: 0.5rem;
    padding-top: 1rem;
}

#footer_logos .ig {
    padding-right: 0.5rem;
}
#footer_logos .face {
    padding-left: 0.5rem;
}

footer .consell {
    padding-top: 1rem;
    width: 10rem;
}


/* ADAPTACIÓN A PC */

@media only screen and (min-width:900px) {

    /*header*/

    header {
        height: 5rem;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        padding-left: 4rem;
        padding-right: 4rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    nav a {
        font-size: 1.3rem;
    }

    .social a {
        margin-left: 1rem;
    }

    .idioma {
        margin-left: 1rem;
    }
  

    /*main picture*/

    .img_portada {
        height: 42rem; /* Altura deseada */
        overflow: hidden; /* Para recortar cualquier parte de la imagen que exceda el contenedor */
        position: relative;
    }
    
    .img_portada img{
        margin-top: -3rem;

        object-fit: cover; /* Esta propiedad ajusta la imagen dentro del contenedor sin deformarla */
        object-position: center;
        position: absolute; /* Establece una posición absoluta para la imagen */
        top: 60%; /* Desplaza la imagen hacia abajo en un 50% del contenedor */
        transform: translateY(-50%); /* Corrige el desplazamiento para centrar verticalmente la imagen */

    }

    /*main introducción*/

    #introduccion {
        padding-left: 9rem;
        padding-right: 9rem;
    }

    article h2 {
        font-size: 2rem;
    }

    article p, article li {
        font-size: 1rem;
    }

    /*main información*/

    section {
        padding-left: 9rem;
        padding-right: 9rem;
    }

    section h3 {
        color: var(--rosa);
        font-size: 1.7rem;
    }
    
    /*main carrousel*/

    .slider_frame ul {
        width: 200%;
    }
    .slider_frame {
        margin-top: 3rem;
        margin-bottom: 2rem;
        
    }

    @keyframes slider {
        0% {margin-left: 0%;}
        20% {margin-left: 0%;}
    
        50% {margin-left: -100%;}
        70% {margin-left: -100%;}
    
    }



    /*main web*/

    .contenedor_web {
        margin-top: 5rem;
        margin-right: 10rem;
        padding-left: 10rem;
        padding-bottom: 5rem;
    }

    .contenedor_web h2 {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }


    .img_web {
        padding-top: 3rem;    
    }


    /*main contacto*/

    .contenedor_contacto {
        
        margin-right: 10rem;
        padding-left: 10rem;
        padding-bottom: 5rem;
    }

    .contenedor_contacto h2 {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    /*footer*/

    footer h2 {
        font-size: 1.7rem;
    }

    #footer_logos img {
        width: 2rem;
    }

    #footer_logos .ig:hover{
        width: 2.3rem;
    }
    #footer_logos .face:hover{
        width: 2.3rem;
    }
    footer .consell {
        width: 13rem;
    }

}