/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */

:root {
    --nav-primary: #d17a5b;
    --nav-secondary: #e9ddcf;
    --nav-bg: #faf9f677;
    --nav-border: #666666;
    --nav-text: #1e1e1e;
    --font-primary: "Manrope", Arial, Helvetica, sans-serif;
    --font-heading: "Manrope", Arial, Helvetica, sans-serif;
    --negro: #1e1e1e;
    --blanco: #faf9f6;
    --terracota: #d17a5b;
    --beige: #e9ddcf;
    --gris: #666666;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    /* CORRECCIÓN: Quitamos paddings laterales para permitir elementos "Full-Width" */
    padding: 90px 0 32px 0; 
    font-family: var(--font-primary);
    background:
        radial-gradient(circle at top left, #faf9f6, transparent 30%),
        radial-gradient(circle at bottom right, #e9ddcf, transparent 36%),
        linear-gradient(135deg, #faf9f6, #faf9f6);
}

/* Limitador de ancho global para el contenido interno de las secciones */
.contenedor {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: var(--blanco);
}

.text-banner {
    color: var(--blanco);
}

/* ==========================================================================
   2. MENÚ DE NAVEGACIÓN (NAVBAR)
   ========================================================================== */

.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    border-bottom: 1px solid rgba(209, 122, 91, 0.22);
    background: var(--nav-bg);
    color: var(--nav-text);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px rgba(209, 122, 91, 0.12);
    z-index: 1000;
}

.brand,
.navbar-links,
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-heading);
}

.brand__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nav-secondary), var(--nav-primary));
    color: #ffffff;
}

.nav-link,
.icon-button,
.dropdown__menu button {
    border: 1px solid #66666600;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    padding: 10px 14px;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.nav-link:hover,
.icon-button:hover,
.dropdown__menu button:hover {
    transform: translateY(-1px);
    color: #e4764e;
    text-shadow: 0 0 10px #d17a5bcc;
}

.nav-link.is-active {
    background: linear-gradient(135deg, var(--nav-secondary), var(--nav-primary));
    box-shadow: 0 12px 24px #d17a5b56;
}

.icon-button--label {
    min-width: 72px;
}

/* Menú Desplegable (Dropdown) */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--nav-border);
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.34);
}

/* ==========================================================================
   3. SECCIÓN HERO (INICIO)
   ========================================================================== */

.hero-container {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url("../img/bannerInicio.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 550px;
    margin-left: 8%;
    color: #ffffff;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.btn-explorar-catalogo {
    border: none;
    background: var(--terracota);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 40px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-explorar-catalogo:hover {
    background: #b86647;
}

/* ==========================================================================
   4. SECCIÓN BENEFICIOS & HISTORIA
   ========================================================================== */

.beneficios {
    padding: 80px 0;
}

.beneficios-icono {
    font-size: 2.5rem;
    color: #c8846c;
    margin-bottom: 10px;
}

/* Historia de la marca */
.historia {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
}

.historia-image-wrapper {
    width: 100%;
    max-width: 450px;
}

.img-historia {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.historia-content {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.historia-content .subtitle {
    color: #c8846c;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.historia-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
    margin-bottom: 24px;
}

.historia-text p {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.historia-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   5. SECCIÓN PRODUCTOS
   ========================================================================== */

.productos {
    margin: 120px auto;
}

.productos-destacados-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.producto {
    background: #ffffff;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(209, 122, 91, 0.14);
}

.producto img {
    border-radius: 20px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.producto h5 {
    margin-top: 20px;
    font-weight: 700;
}

.producto p {
    color: var(--terracota);
    font-weight: 700;
}

.producto--link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.producto--link:hover,
.producto--link:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(209, 122, 91, 0.18);
    border-color: rgba(209, 122, 91, 0.3);
}

.producto__categoria {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(209, 122, 91, 0.14);
    color: #a95b3f;
    font-size: 0.78rem;
    font-weight: 700;
}

.producto--placeholder {
    min-height: 240px;
    display: grid;
    place-items: center;
}

.producto__placeholder {
    color: var(--gris);
    font-weight: 700;
}

/* ==========================================================================
   6. SECCIÓN BANNER INTERMEDIO
   ========================================================================== */

.banner {
    background: var(--negro);
    color: #ffffff;
    text-align: center;
    padding: 100px;
    border-radius: 35px;
    width: 80%;
    margin: 120px auto;
}

.banner p {
    margin: 25px 0;
    color: #d9d9d9;
}

/* ==========================================================================
   7. PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.site-footer {
    width: min(1120px, 100%);
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(209, 122, 91, 0.22);
    border-radius: 28px;
    background: var(--nav-bg);
    color: var(--nav-text);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 40px rgba(209, 122, 91, 0.12);
    text-align: center;
}

.site-footer__brand,
.site-footer__nav,
.site-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nav-secondary), var(--nav-primary));
    color: var(--negro);
    font-weight: 800;
}

.site-footer__name {
    font-weight: 800;
    font-family: var(--font-heading);
}

.site-footer__link,
.site-footer__social-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__link:hover,
.site-footer__social-link:hover {
    opacity: 0.75;
}

.site-footer__social-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(229, 225, 230, 0.12);
    background: rgba(229, 225, 230, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
}

.site-footer__social-link:hover {
    background: rgba(179, 162, 105, 0.14);
    border-color: rgba(179, 162, 105, 0.25);
}

.site-footer__copy {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   8. MEDIA QUERIES (DISEÑO ADAPTATIVO)
   ========================================================================== */

@media (min-width: 992px) {
    .historia {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
        padding: 100px 0;
    }

    .historia-image-wrapper {
        width: 42%;
    }

    .historia-content {
        width: 48%;
    }
}

@media (max-width: 860px) {
    .glass-navbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 20px;
    }

    .navbar-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .navbar-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 60px 0;
    }

    .hero-text {
        margin-left: 5%;
        padding-right: 5%;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .banner {
        width: 100%;
        padding: 60px 30px;
        border-radius: 0;
    }

    .productos-destacados-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-footer__grid,
    .site-footer__bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    body {
        /* Corrección de padding lateral en móvil */
        padding: 132px 0 20px 0; 
    }

    .productos-destacados-grid {
        grid-template-columns: 1fr;
    }
}