/**
 * KONNEX — CORE STYLESHEET v1.0
 * Estilos compartidos por toda la aplicación.
 */

body {
    font-family: 'Inter', sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.btn-fav {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-fav:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: scale(1.05);
}

.wishlist-float .material-symbols-outlined {
    transition: all 0.3s ease;
}

.wishlist-float:hover .material-symbols-outlined {
    transform: scale(1.2);
}

.hero-glow {
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.15) 0%, transparent 70%);
}

.glow-orange {
    background: radial-gradient(circle at center, rgba(255, 102, 0, 0.2) 0%, transparent 70%);
}

.glow-blue {
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.2) 0%, transparent 70%);
}

.glow-red {
    background: radial-gradient(circle at center, rgba(255, 0, 50, 0.2) 0%, transparent 70%);
}

.glass-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0, 0, 0.5, 1);
    cursor: pointer;
}

/* Dark Theme Pages (Home, Admin): Crystal/Light Glass */
.dark .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Light Theme Pages (Store, News): Dark Impact Glass */
.light .glass-card {
    background: rgba(10, 10, 10, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.glass-card:active {
    transform: scale(0.98);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.text-display {
    font-weight: 900;
    letter-spacing: -0.05em;
}

/* Animation utilities */
@keyframes pulse-glow {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(1); }
}
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

.section-spacing { margin-top: 120px; margin-bottom: 120px; }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* Swiper Customs */
.swiper-button-next, .swiper-button-prev {
    color: #ff6600;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.swiper-pagination-bullet { background: #ff6600; }

/* Mega Menu Refined */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #ff6600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 90;
    padding: 2.5rem 0;
    margin-left: calc(-1 * ((100vw - 100%) / 2));
}

.nav-item-categories:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.mega-menu-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30%;
    height: 1px;
    background: #ff6600;
}

.mega-menu-link {
    font-size: 13px;
    font-weight: 400;
    color: #b0b0b0;
    line-height: 2.2;
    transition: all 0.2s ease;
    display: inline-block;
}

.mega-menu-link:hover {
    color: #ff6600;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
    transform: translateX(5px);
}

/* --- Global Promo Popup --- */
#videoPromoPopup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    padding: 20px;
}
#videoPromoPopup.active { opacity: 1; visibility: visible; }
.promo-content {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2.5rem;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
#videoPromoPopup.active .promo-content { transform: translateY(0) scale(1); }

/* --- Footer Dynamic Styles --- */
.footer-elite {
    background-color: #0b0b0c;
    position: relative;
    color: #E0E0E0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 87, 34, 0.2);
    z-index: 10;
}
.footer-accent-line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FF5722, transparent);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.8), 0 0 30px rgba(255, 87, 34, 0.4);
    animation: scanLine 4s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes scanLine { 0% { opacity: 0.5; transform: translateX(-80%); } 100% { opacity: 1; transform: translateX(80%); } }

/* Footer Particles */
.footer-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.footer-particle { position: absolute; opacity: 0.05; animation: floatParticle 25s infinite linear; }
@keyframes floatParticle { 
    0% { transform: translate(0, 0) rotate(0deg); } 
    100% { transform: translate(0, 0) rotate(360deg); } 
}

/* Utility classes for Footer particles */
.fparticle-1 { top: 10%; left: 8%; width: 100px; height: 100px; }
.fparticle-2 { top: 65%; left: 12%; width: 140px; height: 140px; }
.fparticle-3 { top: 15%; left: 82%; width: 120px; height: 120px; }
.fparticle-4 { top: 55%; left: 65%; width: 160px; height: 160px; }
.fparticle-5 { top: 35%; left: 45%; width: 110px; height: 110px; }
.fparticle-6 { top: 80%; left: 85%; width: 90px; height: 90px; }

/* ... and so on for all shared styles ... */
