/* assets/css/style.css */

/* --- VARIABLES GLOBALES --- */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #9c8c74; /* Dorado/Arena Invenni */
    --gray-light: #f5f5f5;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET Y BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Lato', sans-serif; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    overflow-x: hidden; 
    padding-top: 80px; /* Espacio para el header fixed */
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}

ul { list-style: none; }

/* --- HEADER & NAVIGATION --- */
header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    padding: 20px 40px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(255,255,255,0.98); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

/* Menú para Computadora (Escritorio) */
.nav-links { 
    display: flex; 
    gap: 30px; 
}

.nav-links a { 
    text-transform: uppercase; 
    font-size: 11px; 
    letter-spacing: 1.5px; 
    font-weight: 700; 
    color: #333; 
}

.nav-links a:hover { 
    color: var(--accent-color); 
}

/* Logo Central */
.logo img { 
    height: 35px; 
    display: block; 
}

/* Acciones de Usuario (Derecha) */
.user-actions { 
    display: flex; 
    gap: 20px; 
    font-size: 16px; 
    color: #333; 
}

.user-actions a:hover { 
    color: var(--accent-color); 
}

/* Botón Hamburguesa: OCULTO POR DEFECTO (Escritorio) */
.menu-toggle { 
    display: none; 
    font-size: 20px; 
    cursor: pointer; 
    color: #333;
}

/* --- HERO SECTION --- */
.hero { 
    height: calc(100vh - 80px); 
    width: 100%; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white; 
}

.hero h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.1rem; 
    letter-spacing: 3px; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 3.5rem; 
    margin-bottom: 35px; 
    font-style: italic; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.btn-cta { 
    padding: 15px 45px; 
    background-color: white; 
    color: black; 
    text-transform: uppercase; 
    font-size: 11px; 
    letter-spacing: 2.5px; 
    font-weight: bold; 
    border: 1px solid white; 
    transition: 0.3s; 
}

.btn-cta:hover { 
    background-color: transparent; 
    color: white; 
}

/* --- GRID DE CATEGORÍAS --- */
.categories-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    height: 600px; 
}

.cat-item { 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    height: 100%; 
    border-right: 1px solid white; 
}

.cat-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease; 
}

.cat-overlay { 
    position: absolute; 
    z-index: 2; 
    color: white; 
    text-align: center; 
    background: rgba(0,0,0,0.1); 
    padding: 20px; 
    width: 100%; 
}

.cat-overlay h3 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    font-weight: 400; 
}

.cat-item:hover img { 
    transform: scale(1.05); 
}

/* --- PRODUCTOS --- */
.products-section { 
    padding: 100px 40px; 
    text-align: center; 
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 40px; 
}

.product-image-container { 
    width: 100%; 
    aspect-ratio: 3/4; 
    background-color: var(--gray-light); 
    margin-bottom: 20px; 
    overflow: hidden; 
}

.product-image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

/* --- FOOTER --- */
footer { 
    background: #111; 
    color: #fff; 
    padding: 80px 40px; 
    text-align: center; 
}

.footer-links { 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    margin-bottom: 30px; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    opacity: 0.7; 
}

.footer-links a:hover { 
    opacity: 1; 
    text-decoration: underline; 
}

/* --- MEDIA QUERIES (CELULAR) --- */
@media (max-width: 768px) {
    header { 
        padding: 15px 20px; 
    }

    /* Mostrar hamburguesa */
    .menu-toggle { 
        display: block; 
    }

    /* Transformar el menú en un panel lateral deslizante */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Totalmente oculto a la izquierda */
        height: 100vh;
        width: 80%; /* Ocupa el 80% del ancho del cel */
        background: #fff;
        flex-direction: column;
        justify-content: center; /* Centrar links verticalmente */
        align-items: center;
        padding: 40px;
        transition: var(--transition);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        gap: 30px;
        z-index: 1001;
    }

    /* Clase para mostrar el menú (activada por JS) */
    .nav-links.active {
        left: 0;
    }

    /* Ajustar textos del Hero para cel */
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 0.9rem; }

    /* Ajustar grillas */
    .categories-grid { 
        grid-template-columns: 1fr; 
        height: auto; 
    }
    
    .cat-item { 
        height: 400px; 
        border-right: none; 
        border-bottom: 1px solid white; 
    }

    .product-grid { 
        grid-template-columns: 1fr 1fr; 
        gap: 15px; 
    }
}