* { 
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/*background seccion nosotros*/
body.fondo-nosotros {
    background-image: url("imagenes/diseno-elegante-de-banner-para-el-cuidado-de-la-piel.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/*header*/
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px #cccccc;
}
.top-header {
    padding: 16px 32px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%; 
    margin: 0 auto;
}
.logo span {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    font-weight: bold;
    color: #333;
}
.search-bar {
    width: 400px;
}
.search-bar input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.nav-iconos ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none; /*sin puntos*/
}
.nav-iconos a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.nav-iconos a:hover {
    color: #0056b3;
    background-color: #eeeeee; 
    border-radius: 4px;
}
.nav-iconos .perfu-sale {
    background-color: #e60023;
    color: white;
    padding: 8px 13px;
    border-radius: 5px;
    font-weight: bold;
}
.nav-iconos .perfu-sale:hover {
    background-color: #cc001f;
}

/*navegacion principal*/
.nav-principal {
    background-color: #000;
    padding: 13px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    width: 100%;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.nav-principal ul {
    display: flex;
    gap: 32px;
    list-style: none; /* Sin puntos */
}
.nav-principal a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px;
    text-transform: uppercase;
    border-radius: 4px;
}
.nav-principal a:hover {
    background-color: #333;
}
.nav-principal a.nav-active {
    color: #a0daff;
}
.promo-text span {
    color: white;
    font-size: 14px;
    font-weight: 300;
}

/*main content*/
.hero-banner {
    width: 100%;
}
.hero-banner img {
    width: 100%;
    height: auto;
    display: block; 
}
.main-content {
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0; /* permite que el flex funcione correctamente en algunos navegadores */
}
.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 32px;
}

/*productos*/
.categoria-productos {
    width: 90%;
    margin: 48px auto;
    padding-top: 60px;
}
.categoria-productos h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 16px;
}
.productos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.producto-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 280px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 5px #eee;
}
.producto-card img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 8px;
}
.producto-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.producto-card .marca {
    font-style: italic;
    color: #666;
    margin-bottom: 16px;
}
.producto-card .precio {
    font-size: 19px;
    font-weight: bold;
    color: #0056b3;
}

.producto-card:hover {
    background-color: #f0e6e6; 
    border-radius: 20px; 
}
.producto-card:hover img {
    border-radius: 20px;
}

/*paginas internas (contacto, nosotros, FAQ)*/
.main-content-pagina {
    width: 90%;
    margin: 48px auto;
    padding: 32px;
    background-color: #fff;
    box-shadow: 0 2px 10px #eee;
    border-radius: 8px;
}
.main-content-pagina h2 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 16px;
}
.main-content-pagina p {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/*formulario de contacto*/
.form-contacto {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-grupo label {
    font-size: 16px;
    font-weight: bold;
    color: #444;
}
.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}
.form-grupo textarea {
    height: 150px;
    resize: none; /* esta propiedad permite que no se rompa*/
}
.form-grupo input.error,
.form-grupo textarea.error {
    border-color: #e60023;
}
.form-error-input {
    color: #e60023;
    font-size: 14px;
    display: none;
}
.form-error-input.visible {
    display: block;
}
.btn-enviar {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
}
.btn-enviar:hover {
    background-color: #004494;
}
.form-exito {
    color: #008f39;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    display: none;
}
.form-exito.visible {
    display: block;
}

/*FAQ/preguntas frecuentes*/
.faq-container {
    margin-top: 32px;
    text-align: left;
}
.faq-item {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}
.faq-item h3.pregunta {
    font-size: 20px;
    margin: 0;
    padding: 15px;
    background-color: #f4f4f4;
    color: #333;
    border-bottom: 1px solid #eee;
}
.faq-item h3.pregunta:hover {
    background-color: #e9e9e9;
    color: #0056b3;
}
.faq-item p.respuesta {
    font-size: 16px;
    color: #555;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
    text-align: left;
    background-color: #fff;
}

/*responsive*/
@media (max-width: 992px) {
    .top-header, .nav-principal {
        padding: 16px;
    }
    .nav-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    .nav-iconos {
        width: 100%;
        margin-top: 16px;
    }
    .nav-iconos ul {
        justify-content: center;
        gap: 16px;
    }
    .nav-principal .promo-text {
        display: none;
    }
    .nav-principal ul {
        width: 100%;
        background-color: #000;
        justify-content: center;
    }
    .nav-principal {
        flex-direction: column;
        gap: 8px;
    }
    .promo-text span {
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }
    .search-bar {
        width: 100%;
    }
    .nav-iconos ul {
        flex-wrap: wrap; 
        justify-content: center;
    }
    .nav-principal ul {
        flex-wrap: wrap;
        gap: 16px;
    }
    .logo span {
        font-size: 24px;
    }
}