/* 
    DomoTechStore - CSS MAESTRO DARK PREMIUM 2026
*/

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-text: #f8fafc;
    --muted-text: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--light-text);
    background-color: var(--dark-bg); /* Esto pondrá el fondo oscuro */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* HEADER */
.main-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--primary); 
    letter-spacing: -0.02em;
}

.nav-list { display: flex; gap: 10px; align-items: center; }
.nav-list a { color: var(--muted-text); font-weight: 500; padding: 10px 18px; border-radius: 8px; }
.nav-list a:hover { background: rgba(255,255,255,0.05); color: var(--white); }

/* DROPDOWN */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-card);
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 8px;
    display: none;
    z-index: 1001;
}
.has-dropdown:hover .dropdown { display: block; }

/* HERO */
.hero {
    background: radial-gradient(circle at top, #1e3a8a 0%, #0f172a 70%);
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-brand {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 12px;
    background: linear-gradient(to right, #fff, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 5px;
}

.hero h1 { 
    font-size: 1.6rem; 
    font-weight: 400; 
    color: var(--muted-text); 
    margin-bottom: 40px;
}

.hero p { 
    font-size: 1.2rem; 
    margin: 0 auto 50px; 
    max-width: 800px;
    opacity: 0.9;
}

.search-hero input {
    width: 100%;
    max-width: 600px;
    padding: 20px 35px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1.1rem;
    outline: none;
}

/* GRID Y CARDS */
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 50px; }
.bg-dark-alt { background-color: #111827; }

.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    transition: var(--transition);
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow); }

.cat-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; filter: drop-shadow(0 0 10px var(--primary)); }

/* BADGES */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.btn-link { color: var(--primary); font-weight: 700; display: inline-block; margin-top: 15px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero-brand { font-size: 2.5rem; }
}