/* ================= VARIABLES ================= */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-green: #009e4a;
    --gray-light: #f4f4f4;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
ul { list-style: none; }

/* ================= HEADER (DISEÑO MODIFICADO) ================= */
header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    /* Quitamos flex aquí para manejar las filas (Top y Nav) por separado */
    display: block; 
}

/* FILA SUPERIOR: Logo centro, Iconos derecha */
.header-top {
    padding: 15px 40px;
    display: flex;
    align-items: center;
    position: relative; /* Necesario para el centrado absoluto del logo */
    height: 60px; /* Altura fija para evitar saltos */
}

/* 1. LOGO EN EL CENTRO EXACTO */
.logo-container { 
    position: absolute; 
    left: 50%; 
    top: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10;
}
.logo { font-size: 2.5rem; font-weight: 900; letter-spacing: -2px; text-transform: uppercase; display: flex; align-items: center; gap: 5px; color: #000; }
.clover { color: var(--accent-green); font-size: 2rem; line-height: 1; }

/* 2. ICONOS A LA DERECHA DEL TODO */
.icons { 
    display: flex; 
    gap: 25px; 
    align-items: center; 
    margin-left: auto; /* Esto empuja los iconos a la derecha */
}

/* Estilo para los SVGs (Lupa y Carrito) */
.icon-btn svg { 
    width: 24px; 
    height: 24px; 
    stroke: #000; 
    stroke-width: 2; 
    fill: none; 
    cursor: pointer;
    transition: 0.3s;
}
.icon-btn:hover svg { stroke: var(--accent-green); }

/* FILA INFERIOR: Navegación Centrada */
.header-nav { 
    border-top: 1px solid #f9f9f9; 
    padding: 15px 0;
    display: flex; 
    justify-content: center; /* Centrado horizontal */
    width: 100%; 
}

.nav-list { display: flex; gap: 40px; }

.nav-item {
    cursor: pointer; font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; position: relative;
}
.nav-item a { color: #000; }
.nav-item.rebajas a { color: #e74c3c; }
.nav-item:hover > a { opacity: 0.6; }
.nav-item:hover::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background: var(--accent-green); }

/* MEGA MENU */
.mega-menu {
    position: fixed; top: 115px; left: 0; width: 100vw; background: #fff; padding: 40px 0;
    border-bottom: 1px solid #eee; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s ease; z-index: 900;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); pointer-events: none;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.menu-inner { max-width: 1200px; margin: 0 auto; padding: 0 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.menu-column h4 { font-size: 0.8rem; text-transform: uppercase; margin-bottom: 20px; color: var(--accent-green); letter-spacing: 1px; font-weight: 800; }
.menu-column ul li { margin-bottom: 10px; }
.menu-column ul li a { font-size: 0.9rem; color: #555; transition: 0.2s; display: block; }
.menu-column ul li a:hover { color: #000; transform: translateX(5px); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero { 
    height: 85vh; 
    width: 100%;
    position: relative; 
    overflow: hidden; 
    background-color: #000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; /* Mantiene la proporción sin estirar */
    z-index: 0;
    opacity: 1; /* Calidad máxima */
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center; 
    text-align: center;    
}

.dynamic-text {
    color: #ffffff;
    mix-blend-mode: difference;
    margin: 0;
    width: 100%;
    text-align: center;
}

.hero h2 { 
    font-size: 1rem; text-transform: uppercase; letter-spacing: 6px; 
    margin-bottom: 15px; font-weight: 700; 
}

.hero h1 { 
    font-size: 4.5rem; text-transform: uppercase; font-weight: 900; 
    letter-spacing: -2px; line-height: 1; margin-bottom: 30px; 
}

.btn { 
    display: inline-block; padding: 15px 40px; background: #fff; color: #000; 
    text-transform: uppercase; font-weight: bold; font-size: 0.8rem; 
    letter-spacing: 2px; border: none; transition: 0.3s; margin-top: 10px; cursor: pointer;
}
.btn:hover { background: var(--accent-green); color: #fff; }

.video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa negra al 40% de opacidad */
    z-index: 1; /* Encima del video, debajo del texto */
}

/* =========================================
   CONTADOR (CAJA BLANCA REDONDEADA)
   ========================================= */
#countdown-container {
    background-color: #ffffff; 
    color: #000000; 
    border-radius: 12px; /* Redondeado */
    padding: 20px 40px; 
    margin-top: 30px; 
    
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: center; 
    gap: 20px;
    
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#countdown-container span {
    font-size: 2.5rem; 
    font-weight: 900; 
    line-height: 1; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
    font-variant-numeric: tabular-nums;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-unit small {
    font-size: 0.6rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-top: 5px; 
    color: #000;
}

.separator {
    font-size: 2rem; 
    font-weight: 900; 
    color: #000; 
    margin-bottom: 15px; 
}

@media (max-width: 768px) {
    #countdown-container { padding: 15px 20px; gap: 10px; }
    #countdown-container span { font-size: 1.5rem; }
    .separator { font-size: 1.2rem; margin-bottom: 10px; }
    
    .header-top { padding: 15px 20px; }
    .nav-list { gap: 20px; font-size: 0.7rem; }
}

/* ================= RESTO DE LA PÁGINA ================= */
.products-section { padding: 80px 50px; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2rem; text-transform: uppercase; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { cursor: pointer; }
.product-card:hover .product-img { opacity: 0.8; }
.product-img { height: 350px; background: #f0f0f0; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; color: #999; font-weight: bold; }
.product-name { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.product-price { font-size: 0.85rem; color: #666; }
footer { background: #000; color: #fff; padding: 50px; text-align: center; margin-top: 50px; }