/* Estilos Generales */
:root {
    --primary-bg: #eaddd3; 
    --accent-color: #c49a6c; 
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --nav-bg: #ffffff;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 400;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAVBAR & DROPDOWN --- */
.main-nav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link img {
    width: 220px; /* Ajuste automático para la proporción 1412x401 */
    height: auto;
    display: block;
}

/* Menú Hamburguesa (Oculto en Desktop) */
.menu-toggle { display: none; }
.menu-icon { 
    display: none; 
    font-size: 28px; 
    cursor: pointer; 
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: bold;
    color: var(--text-dark);
    padding: 10px 5px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Icono de flecha para los dropdowns */
.has-dropdown > .nav-link::after {
    content: ' ▼';
    font-size: 0.7em;
    margin-left: 5px;
    color: #aaa;
}

/* Submenú / Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 0 0 4px 4px;
    /* Scroll en caso de que sea muy largo como Juguetes */
    max-height: 400px;
    overflow-y: auto;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-light);
    font-size: 0.9em;
    transition: background 0.2s, color 0.2s;
}

.dropdown-link:hover {
    background-color: #f9f7f5;
    color: var(--accent-color);
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover { background-color: #a88157; }

/* Hero Section */
.hero {
    background-color: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    min-height: 60vh;
}
.hero-content { flex: 1; padding-right: 40px; max-width: 600px; }
.hero h1 { font-size: 2.5em; text-transform: uppercase; letter-spacing: 2px; line-height: 1.2; }
.hero p { font-size: 1.1em; color: var(--text-dark); margin-bottom: 30px; }
.hero-image { flex: 1; text-align: right; }
.hero-image img { max-width: 100%; height: auto; border-radius: 8px; }

/* Secciones de Productos */
.section { padding: 60px 10%; text-align: center; }
.section-header { max-width: 800px; margin: 0 auto 40px auto; }
.section-header h2 { font-size: 2em; text-transform: uppercase; letter-spacing: 1.5px; }
.section-header p { color: var(--text-light); font-size: 1.1em; }
.product-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.product-card {
    background: var(--white); border: 1px solid #eaeaea; border-radius: 8px;
    padding: 20px; width: calc(33.333% - 20px); box-sizing: border-box; transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-card img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; }
.product-card h3 { font-size: 1.1em; margin: 10px 0; }
.product-card .price { font-weight: bold; color: var(--text-dark); margin-bottom: 15px; }
.product-card .btn-small { color: var(--text-dark); font-size: 0.9em; font-weight: bold; border-bottom: 2px solid var(--accent-color); padding-bottom: 2px; text-transform: uppercase; }

/* Footer CTA / Banner Intermedio */
.footer-cta { background-color: #f7f5f2; padding: 60px 10%; text-align: center; }
.footer-cta h2 { font-size: 1.8em; margin-bottom: 20px; }
.footer-cta p { max-width: 700px; margin: 0 auto 30px auto; color: var(--text-light); }

/* Footer Legales */
.site-footer { background-color: #1a1a1a; color: #aaaaaa; text-align: center; padding: 30px 10%; font-size: 0.85em; }
.legal-links a { color: #dddddd; margin: 0 15px; cursor: pointer; text-decoration: underline; }

/* Modales para Términos y Privacidad */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fff; margin: 5% auto; padding: 40px; border-radius: 8px; width: 80%; max-width: 800px; max-height: 80vh; overflow-y: auto; color: #333; text-align: left; position: relative; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; position: absolute; top: 15px; right: 25px; }
.close-btn:hover { color: #000; }

/* Botón de WhatsApp Flotante */
.whatsapp-btn {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); background-color: #1ebe57; }
.whatsapp-btn svg { width: 35px; height: 35px; fill: currentColor; }

/* Responsividad (Móviles y Tablets) */
@media (max-width: 992px) {
    .menu-icon { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eaeaea;
        max-height: 70vh;
        overflow-y: auto;
    }
    .menu-toggle:checked ~ .nav-menu { display: flex; align-items: flex-start; }
    .nav-item { width: 100%; border-bottom: 1px solid #f4f4f4; }
    .nav-link { padding: 15px 20px; width: 100%; justify-content: space-between; }
    .dropdown-menu {
        position: static; box-shadow: none; display: none; background: #fbfbfb; max-height: none; width: 100%;
    }
    /* En móvil, mostramos el menú al hacer hover o clic */
    .nav-item:hover .dropdown-menu { display: block; }
    .dropdown-link { padding: 12px 40px; border-bottom: 1px solid #f0f0f0; }

    .hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-content { padding-right: 0; margin-bottom: 30px; }
    .hero-image { text-align: center; }
    .product-card { width: 100%; }
    .whatsapp-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-btn svg { width: 30px; height: 30px; }
}