/* =========================================
   ESTILOS GLOBALES (Streamvid Style)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { 
    background-color: #0b0f19; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    overflow-x: hidden; 
}

/* =========================================
   HEADER PREMIUM (Cristal y Desplegables)
   ========================================= */
.main-header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(11, 15, 25, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 1001; }
.logo-img { height: 38px; width: auto; }
.logo-text { font-size: 1.7rem; font-weight: 900; color: #fff; letter-spacing: 0.5px; transition: 0.3s; text-transform: uppercase; }
.logo-container:hover .logo-text { color: #8b5cf6; } 

/* Contenedor principal de navegación */
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; flex: 1; margin-left: 50px; }

/* Navegación PC */
.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; padding: 10px 0; }
.nav-link { 
    color: #ffffff; text-decoration: none; font-size: 1rem; 
    font-weight: 600; display: flex; align-items: center; gap: 6px; transition: color 0.3s ease; 
}
.nav-link:hover { color: #8b5cf6; } 

/* =========================================
   MEJORA: DESPLEGABLES PC (Bordes y Letras Blancas)
   ========================================= */
.dropdown {
    position: absolute; top: 100%; left: 0; 
    background: #131722; 
    /* Borde morado completo alrededor de todo el cuadro */
    border: 1px solid #8b5cf6; 
    border-radius: 10px; /* Bordes redondeados en las 4 esquinas */
    min-width: 220px; padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.3s ease; 
    /* Resplandor morado sutil detrás del cuadro */
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(139, 92, 246, 0.2);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { list-style: none; }
.dropdown a { 
    display: block; padding: 10px 20px; 
    color: #ffffff !important; /* Letras forzadas a color blanco puro */
    text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: 0.3s; 
}
.dropdown a:hover { 
    background: rgba(139, 92, 246, 0.15); 
    color: #8b5cf6 !important; /* El texto se vuelve morado al tocarlo */
    padding-left: 25px; 
    border-left: 3px solid #8b5cf6; /* Pequeña barra indicadora a la izquierda */
}

/* Barra de Búsqueda y Botón */
.header-right { display: flex; align-items: center; gap: 20px; }
.search-bar { display: flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; padding: 8px 15px; transition: 0.3s; }
.search-bar:focus-within { border-color: #8b5cf6; background: rgba(255,255,255,0.1); box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
.search-bar i { color: #9ca3af; margin-right: 10px; }
.search-bar input { background: transparent; border: none; color: #fff; outline: none; width: 180px; font-size: 0.9rem; }

.btn-primary-header { background: #8b5cf6; color: #fff; text-decoration: none; padding: 10px 24px; border-radius: 30px; font-weight: bold; font-size: 0.95rem; transition: 0.3s; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary-header:hover { background: #7c3aed; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5); }

/* Botón Hamburguesa Oculto en PC */
.mobile-menu-btn { display: none; font-size: 1.8rem; color: #fff; cursor: pointer; position: relative; z-index: 1001; transition: color 0.3s; }
.mobile-menu-btn:hover { color: #8b5cf6; }

/* =========================================
   RESPONSIVO (MENÚ LATERAL EN CELULAR)
   ========================================= */
@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .nav-wrapper { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #0b0f19; border-left: 1px solid rgba(255,255,255,0.05); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 90px 25px 30px; margin: 0; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.9); overflow-y: auto; z-index: 1000; }
    .nav-wrapper.active { right: 0; }
    .nav-menu { flex-direction: column; width: 100%; gap: 10px; margin-bottom: 30px; }
    .nav-item { padding: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-link { font-size: 1.1rem; justify-content: space-between; padding: 15px 5px; width: 100%; }
    .dropdown { position: relative; top: 0; left: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 15px; background: transparent; display: none; width: 100%; }
    .nav-item:hover .dropdown { display: block; }
    .header-right { flex-direction: column; width: 100%; gap: 20px; align-items: stretch; }
    .search-bar { width: 100%; }
    .search-bar input { width: 100%; }
    .btn-primary-header { text-align: center; }
}

/* =========================================
   BANNER HERO Y DEGRADADO
   ========================================= */
main { padding-top: 0; flex: 1; }
.hero-section { position: relative; width: 100%; height: 85vh; min-height: 600px; margin-bottom: -80px; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; background: #000; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, #0b0f19 0%, rgba(11,15,25,0.8) 30%, transparent 100%); z-index: 2; pointer-events: none; }

/* =========================================
   TARJETAS Y PRODUCTOS (DISEÑO DINÁMICO)
   ========================================= */
.content-wrapper { position: relative; z-index: 10; padding: 0 5%; }
.section-title { font-size: 1.8rem; color: #fff; margin: 4rem 0 1.5rem; font-weight: 800; letter-spacing: 1px; }
.section-title span { color: #8b5cf6; }

/* Cuadrícula responsiva (Acomoda celulares perfecto) */
.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }

@media (max-width: 768px) {
    .grid-productos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .producto-precio { font-size: 1.2rem !important; }
}

/* LA TARJETA (Borde del color de la marca) */
.producto-card { 
    background: #131722; 
    border-radius: 12px; overflow: hidden; transition: 0.4s ease; 
    border: 2px solid var(--brand-color, #8b5cf6); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}

/* EFECTO DE ACTIVACIÓN (Hover/Touch) - Resplandor Fuerte */
.producto-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 0 25px var(--brand-color, #8b5cf6); 
}

/* CONTENEDOR IMAGEN */
.producto-img-container { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; background: #000; }
.producto-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.producto-card:hover .producto-img-container img { transform: scale(1.08); }

/* INFORMACIÓN DE LA TARJETA (Todo Blanco) */
.producto-info { padding: 18px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.producto-info * { color: #ffffff !important; }

.producto-precio { font-size: 1.5rem; font-weight: 900; margin-bottom: 15px; }

/* BOTÓN DINÁMICO */
.btn-whatsapp { 
    display: block; width: 100%; text-align: center; 
    background: transparent !important; 
    color: var(--brand-color, #8b5cf6) !important; 
    padding: 12px; border-radius: 8px; text-decoration: none; 
    transition: 0.3s; font-weight: bold; 
    border: 2px solid var(--brand-color, #8b5cf6) !important; 
}

/* BOTÓN ACTIVADO */
.btn-whatsapp:hover { 
    background: var(--brand-color, #8b5cf6) !important; 
    color: #ffffff !important; 
    box-shadow: 0 0 15px var(--brand-color, #8b5cf6);
}

/* ESTADOS: AGOTADO */
.img-agotada { filter: grayscale(100%) opacity(0.5); }
.badge-agotado { position: absolute; top: 10px; right: 10px; background: #e63946; color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; z-index: 5; border: 1px solid #fff; }
.producto-card[style*="--brand-color: #333"] { border-color: #333; box-shadow: none; }
.btn-disabled { background: #222 !important; color: #666 !important; border-color: #333 !important; cursor: not-allowed; pointer-events: none; }
