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

:root {
    --color-primario: #6b0b40;
    --color-secundario: #6e4231;
    --color-fondo: #f7ffff;
  }

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Spartan',sans-serif;
}

h1 {
    font-size: 50px;
    line-height: 64px;
    color:black;
}

h2 {
    font-size: 46px;
    line-height: 54px;
    color:black;
}

h4 {
    font-size: 20px;
    color:color;
}

h6 {
    font-weight: 700;
    font-size: 12px;
}

p {
    font-size: 16px;
    color: #465b52;
    margin: 15px 0 20px 0;
}

.section-p1 {
    padding: 40px 80px;
}

.section-m1 {
    margin: 40px 0;
}

button.normal{
    font-size: 14px;
    font-weight: 600;
    padding: 15px 30px;
    color: #000;
    background-color: #ffff;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.2s;
}

body {
    width: 100%;
}

#header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    background:var(--color-fondo);
    box-shadow: 0 5px 15px var(--color-primario);
    z-index: 999;
    position: sticky;
    top: 0;
    left: 0;
}

#navbar{
    display: flex;
    align-items: center;
    justify-content: center;
}

#navbar li{
    list-style: none;
    padding: 0 20px;
    position: relative;
}

#navbar li a{
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secundario);
    transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active{
    color: var(--color-primario);
}

#navbar li a.active::after,
#navbar li a:hover::after{
    content: "";
    width: 30%;
    height: 2px;
    background: var(--color-primario);
    position: absolute;
    bottom: -4px;
    left: 20px;
}

/* Mostrar submenú cuando el mouse pasa por el menú */
#navbar li:hover .submenu {
    display: block;
}

/* Para asegurarte de que el submenú no desaparezca cuando se pasa el mouse sobre él */
#navbar li .submenu:hover {
    display: block;
}

/* Estilos del submenú */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-fondo);
    list-style: none;
    padding: 15px 0; /* Más espacio dentro del submenú */
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Bordes redondeados para un diseño más moderno */
}

/* Mayor separación entre elementos del submenú */
.submenu li {
    padding: 15px 25px; /* Aumentar padding para más espacio */
    margin: 15px; /* Espacio entre elementos */
    
}

/* Efecto hover para mejorar la visibilidad */
.submenu li a {
    display: block;
    color: var(--color-secundario);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mostrar el submenú cuando se pasa el mouse sobre "Mujer" */
.dropdown:hover .submenu {
    display: block;
}

/* Opcional: Cambiar color de fondo al pasar el mouse */
.submenu li:hover {
    background-color: #f0f0f0;
}

#mobile{
    display: none;
    align-items: center;
}

#close{
    display: none;
}

/* Home Page*/
#hero {
    background-image: url("img/homepage.png");
    height: 90vh;
    width: 100%;
    background-size: cover;
    background-position: top 50% right 0;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#hero h4{
    padding-bottom: 15px;
}

#hero h1{
    color: white;
}

#hero p{
    color: var(--color-fondo);
}

#hero button{
    background-color:var(--color-primario);
    color: var(--color-fondo);
    border: 0;
    padding: 14px 80px 14px 65px;
    background-repeat: no-repeat;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}

#feature{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: var(--color-fondo);
}

#feature a {
    text-decoration: none; /* Quita el subrayado */
    color: inherit; /* Mantiene el color del texto */
}

#feature .fe-box {
    width: 150px;
    height: 150px; /* Misma medida que el ancho */
    text-align: center;
    padding: 15px; /* Reducir padding para que el contenido encaje bien */
    box-shadow: 20px 20px 34px rgba(223, 223, 223, 0.3);
    border: 1px solid var(--color-primario);
    border-radius: 4px;
    margin: 15px 0;
    background-color: var(--color-primario);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#feature .fe-box:hover{
    box-shadow: 10px 10px 54px var(--color-primario);
}

#feature .fe-box img{
    width: 70%;
    margin-bottom: 10px;
}

#feature .fe-box h6{
    display: inline-block;
    padding: 9px 8px 6px 8px;
    line-height: 1;
    border-radius: 4px;
    color: var(--color-primario);
    background-color: var(--color-fondo);
}

#feature .fe-box:nth-child(2) h6{
    background-color: var(--color-fondo);
}

#feature .fe-box:nth-child(3) h6{
    background-color: var(--color-fondo);
}

#feature .fe-box:nth-child(4) h6{
    background-color: var(--color-fondo);
}

#product1{
    text-align: center;
    background-color: var(--color-fondo);
}

#product1 h2{
    color: var(--color-primario);
}

#product1 p{
    color: var(--color-secundario);
}

#product1 .pro-container{
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    flex-wrap: wrap;
}

#product1 .pro{
    width: 23%;
    min-width: 250px;
    padding: 10px 12px;
    border: 1px solid rgb(226, 226, 226);
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 20px 20px 30px rgba(0,0,0,0.02);
    margin: 15px 0;
    transition: 0,2s ease;
    position: relative;
}

#product1 .pro:hover{
    box-shadow: 20px 20px 30px var(--color-secundario);
}

#product1 .pro img{
    width: 100%;
    border-radius: 20px;
}

#product1 .pro .des{
    text-align: start;
    padding: 10px 0;
}

#product1 .pro .des span{
    color: #000;
    font-size: 12px;
}

#product1 .pro .des h5{
    padding-top: 7px;
    color: var(--color-secundario);
    font-size: 14px;
}

#product1 .pro .des h4{
    padding-top: 4px;
    color: var(--color-primario);
    font-size: 14px;
}

#newsletter {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--color-primario);
    background-repeat: no-repeat;
    background-position: 20% 30%;
}

#newsletter h4{
    font-size: 22px;
    font-weight: 700;
    color: var(--color-fondo);
}

#newsletter p{
    font-size: 14px;
    font-weight: 600;
    color: var(--color-fondo);
}

#newsletter p span{
    color: var(--color-fondo);
}

#newsletter .form{
    display: flex;
    width: 40%;
}

#newsletter input{
    height: 3.125rem;
    padding: 0 1.25em;
    font-size: 14px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#newsletter button{
    background-color: var(--color-secundario);
    color: var(--color-fondo);
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

footer{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: var(--color-fondo);
}

footer .col{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

footer .logo{
    margin-bottom: 30px;
}

footer h4{
    font-size: 14px;
    padding-bottom: 20px;
    color: var(--color-primario);
}

footer p{
    font-size: 13px;
    margin: 0 0 8px 0;
    color: var(--color-secundario);
}

footer a{
    font-size: 13px;
    text-decoration: none;
    color: var(--color-secundario);
    margin-bottom: 10px;
}

footer .follow{
    margin-top: 20px;
}

footer .follow i{
    color: var(--color-secundario);
    padding-right: 4px;
    cursor: pointer;
}

footer .follow i:hover,
footer a:hover{
    color: var(--color-primario);
}

footer .copyright{
    width: 100%;
    text-align: center;
}

/* Pagina salud todo */
#page-salud-hero{
    background-color: var(--color-primario);
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 14px;
}

#page-salud-hero h1, #page-salud-hero p{
    color: #ffff;
}

#pagination {
    text-align: center;   
}

#pagination a{
    text-decoration: none;
    background-color: var(--color-primario);
    padding: 15px 20px;
    border-radius: 4px;
    color: var(--color-fondo);
    font-weight: 600;
}

#pagination a i{
    font-size: 16px;
    font-weight: 600;
}

/* Single Product*/
#prodetails{
    display: flex;
    margin-top: 20px;
}

#prodetails .single-pro-image{
    width: 30%;
    margin-right: 50px;
}

.small-img-group{
    display: flex;
    justify-content: space-between;
}

.small-img-col{
    flex-basis: 24%;
    cursor: pointer;
}

#prodetails .single-pro-details{
    width: 50%;
    padding-top: 30px;
}

#prodetails .single-pro-details h4{
    font-size: 30px;
    padding: 20px 0 0px 0;
    color: var(--color-primario);
}

#prodetails .single-pro-details h2{
    font-size: 15px;
}

#prodetails .single-pro-details h3{
    font-size: 20px;
    color: var(--color-secundario);
}

#prodetails .single-pro-details span{
    line-height: 25px;
    font-size: 15px;
}

#prodetails .single-pro-details select{
    display: block;
    padding: 5px 10px;
    margin-bottom: 10px;
}

#prodetails .single-pro-details input{
    width: 50px;
    height: 47px;
    padding-left: 10px;
    font-size: 16px;
    margin-right: 10px;
}

.icon a {
    font-size: 1.3rem; /* Aumenta el tamaño de los íconos */
    margin: 0 5px; /* Espaciado entre íconos */
    color: #000; /* Color de los íconos (puedes cambiarlo) */
    text-decoration: none; /* Elimina subrayado si lo hay */
  }
  
  .icon a:hover {
    color: #007bff; /* Cambia el color al pasar el mouse */
  }

  html {
    scroll-behavior: smooth;
  }
  

@media (max-width:799px) {
    .section-p1{
        padding: 40px 40px;
    }
    #navbar{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 300px;
        background-color: var(--color-fondo);
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 10px;
        transition: 0.3s;
    }
    #navbar.active {
        right: 0px;
    }
    #navbar li{
        margin-bottom: 25px;
    }
    #mobile{
        display: flex;
        align-items: center;
    }
    #mobile i{
        color: var(--color-primario);
        font-size: 24px;
        padding-left: 20px;
    }
    #close {
        display: initial;
        position: absolute;
        top: 30px;
        left: 30px;
        color: var(--color-primario);
        font-size: 24px;
    }
    /* Ajustar el submenú para que no se superponga */
    .submenu {
        position: static; /* Quita la posición absoluta */
        display: none; /* Ocultarlo por defecto */
        width: 100%; /* Hacerlo ocupar todo el ancho */
        background-color: var(--color-fondo);
        padding: 10px 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }    
    /* Mostrar el submenú al tocar */
    .dropdown.active .submenu {
        display: block;
    }
    /* Asegurar que los elementos tengan espacio */
    .submenu li {
        padding: 12px 20px;
        text-align: left;
        margin: 10;
    }    
    .submenu li:last-child {
        border-bottom: none;
    }
    #hero {
        height: 80vh;
        padding: 0 80px;
        background-position: top 30% right 30%;
    }
    #feature{
        justify-content: center;
    }
    #feature .fe-box {
        margin: 15px 15px;
        background-color: var(--color-primario);
    }
    #product1 .pro-container{
        justify-content: center;
    }
    #product1 .pro{
        margin: 15px;
    }
    #newsletter .form{
        width: 70%;
    }
        /*Single Product*/
    #prodetails{
        display: flex;
        flex-direction: column;
    }
    #prodetails .single-pro-image{
        width: 100%;
        margin-right: 0px;
    }
    #prodetails .single-pro-details{
        width: 100%;
    }
}

@media (max-width:477px){
    .section-p1{
        padding: 20px;
    }
    #header{
        padding: 10px 30px;
    }
    h1{
        font-size: 38px;
    }
    h2{
        font-size: 32px;
    }
    #hero{
        padding: 0 20px;
        background-position: 55%;
    }
    #feature{
        justify-content: space-between;
    }
    #feature .fe-box{
        width: 155px;
        margin: 0 0 15px 0;
    }
    #product1 .pro{
        width: 100%;
    }
    #newsletter {
        padding: 40px 10px;
    }
    #newsletter .from{
        width: 100%;
    }
    footer .copyright{
        text-align: start;
    }
    /*Single Product*/
    #prodetails{
        display: flex;
        flex-direction: column;
    }
    #prodetails .single-pro-image{
        width: 100%;
        margin-right: 0px;
    }
    #prodetails .single-pro-details{
        width: 100%;
    }
}


