/* --- RESET Y VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth; /* ¡CLAVE! Hace que el scroll sea suave */
}

:root {
    --black: #111;
    --white: #fff;
    --gray: #f5f5f5;
    --accent: #e74c3c; /* Rojo para ofertas */
}

body {
    color: var(--black);
    overflow-x: hidden;
}

/* --- TOP BAR --- */
.top-bar {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- NAV --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Efecto vidrio */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -1px;
}
.logo span { color: #555; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.nav-icons { display: flex; gap: 20px; font-size: 1.2rem; }
.nav-icons a { color: var(--black); position: relative; }
.cart-count {
    position: absolute; top: -5px; right: -8px;
    background: var(--accent); color: white;
    font-size: 0.6rem; width: 16px; height: 16px;
    border-radius: 50%; display: flex; 
    align-items: center; justify-content: center;
}

/* --- HERO (Portada) --- */
header {
    height: 90vh;
    /* IMAGEN LOCAL */
    background: url('imagenes/hero_moda.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado total */
    text-align: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Oscurece la foto para leer el texto */
}

.hero-content {
    position: relative; z-index: 2; color: white;
}

.season-tag {
    display: inline-block;
    border: 1px solid white;
    padding: 5px 15px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

header h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2rem; margin-bottom: 40px; font-weight: 300;
}

.hero-buttons {
    display: flex; gap: 20px; justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary { background: white; color: black; }
.btn-primary:hover { background: var(--black); color: white; }

.btn-secondary { border: 2px solid white; color: white; }
.btn-secondary:hover { background: white; color: black; }

/* --- BANNER CATEGORÍAS --- */
.categories-banner {
    display: flex;
    height: 400px; /* Altura fija impactante */
}

.cat-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: block; /* Para que el link funcione en toda el área */
}

.cat-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: white; transition: background 0.3s;
}

.cat-overlay h3 { font-size: 2.5rem; font-weight: 800; }
.cat-overlay span { 
    margin-top: 10px; font-weight: 500; opacity: 0; transform: translateY(20px); transition: 0.4s; 
}

/* Efecto Hover en Categorías */
.cat-item:hover img { transform: scale(1.1); }
.cat-item:hover .cat-overlay { background: rgba(0,0,0,0.5); }
.cat-item:hover span { opacity: 1; transform: translateY(0); }

/* --- SECCIONES DE PRODUCTOS --- */
.section-product { padding: 80px 5%; }
.bg-light { background: var(--gray); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; }
.section-header p { color: #666; font-style: italic; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    transition: transform 0.3s;
}

.product-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #f0f0f0; /* Fondo gris mientras carga imagen */
}

.product-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.badge {
    position: absolute; top: 10px; left: 10px;
    padding: 5px 12px; color: white; font-weight: 700; font-size: 0.8rem;
}
.badge.new { background: var(--black); }
.badge.sale { background: var(--accent); }
.badge.hot { background: #ff9f43; }

.btn-add {
    position: absolute; bottom: -60px; left: 0; width: 100%;
    background: var(--black); color: white; border: none;
    padding: 15px; font-weight: 700; cursor: pointer;
    transition: 0.3s;
}

/* Hover Producto */
.product-card:hover .btn-add { bottom: 0; }
.product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.1); transform: translateY(-5px); }

.product-info { padding: 20px 0; text-align: center; }
.product-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.price { font-weight: 700; font-size: 1.1rem; }
.old-price { text-decoration: line-through; color: #999; font-weight: 400; margin-right: 5px; }

/* --- NEWSLETTER --- */
.newsletter {
    background: var(--black); color: white;
    padding: 80px 5%; text-align: center;
}
.newsletter h2 { font-size: 2.5rem; margin-bottom: 10px; }
.form-box {
    margin-top: 30px; display: flex; justify-content: center; gap: 10px;
}
.form-box input {
    padding: 15px; width: 300px; border: none; outline: none;
}
.form-box button {
    padding: 15px 30px; background: white; color: black; border: none; font-weight: 800; cursor: pointer;
}
.form-box button:hover { background: #ddd; }

/* --- FOOTER --- */
footer {
    padding: 30px 5%; text-align: center; background: #000; color: #555; border-top: 1px solid #222;
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
}
.socials i { margin-left: 20px; font-size: 1.2rem; cursor: pointer; color: white; }

/* MOVIL */
@media (max-width: 768px) {
    header h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .categories-banner { flex-direction: column; height: auto; }
    .cat-item { height: 250px; }
    .footer-content { flex-direction: column; gap: 20px; }
    .form-box { flex-direction: column; }
    .form-box input { width: 100%; }
}