/* VARIABLES DE DISEÑO PROFESIONAL */
:root {
    --bg-dark: #08080a;
    --card-bg: #121214;
    --accent-blue: #00AEEF;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a5;
    --grad: linear-gradient(135deg, #00AEEF 0%, #0077b6 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
    margin: 0;
}
    -webkit-font-smoothing: antialiased;
}

/* MENÚ Y NAVEGACIÓN OPTIMIZADA */
header {
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--accent-blue); }

/* INTERFAZ DE PRODUCTO PROFESIONAL */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.product {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #222;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.1);
}

/* CONTROL ESTRICTO DE IMÁGENES GIGANTES */
.slider {
    position: relative;
    width: 100%;
    height: 250px; /* Altura controlada */
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin-bottom: 20px;
}

.slides img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Evita que la foto se estire */
}

/* BOTÓN DE ACCIÓN TIPO E-COMMERCE */
.add-to-cart {
    width: 100%;
    background: var(--grad);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}
/* DISEÑO DE LA BARRA DE BÚSQUEDA */
.search-section { padding: 20px 0; display: flex; justify-content: center; }
.search-container { 
    display: flex; 
    width: 100%; 
    max-width: 600px; 
    background: var(--card-bg); 
    border-radius: 30px; 
    padding: 5px 20px;
    border: 1px solid #333;
}
.search-container input { 
    flex: 1; 
    background: transparent; 
    border: none; 
    color: white; 
    padding: 10px; 
    outline: none;
}

/* TARJETAS DE CATEGORÍA */
.categories-section { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-bottom: 30px; 
}
.category-card { 
    background: var(--card-bg); 
    text-align: center; 
    padding: 20px; 
    border-radius: 15px; 
    cursor: pointer; 
    transition: 0.3s;
    border: 1px solid #222;
}
.category-card:hover { border-color: var(--accent-blue); background: #1c1c1f; }
.category-card .icon { font-size: 30px; display: block; margin-bottom: 10px; }

/* LAYOUT CON SIDEBAR */
.shop-layout { display: grid; grid-template-columns: 200px 1fr; gap: 30px; }
.filters-sidebar { background: var(--card-bg); padding: 20px; border-radius: 15px; height: fit-content; }
.filter-group label { display: block; margin-bottom: 10px; color: var(--accent-blue); font-size: 14px; font-weight: bold; }
.filter-group select { width: 100%; background: #08080a; color: white; border: 1px solid #333; padding: 8px; border-radius: 5px; }

/* RESPONSIVO PARA CELULARES */
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .categories-section { grid-template-columns: 1fr; }
}
/* AJUSTE DE VISIBILIDAD PARA EL FONDO INTERACTIVO */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Manda el fondo de partículas detrás de las letras */
    background: #08080a;
}

main, header, footer {
    position: relative; 
    z-index: 1; /* Trae el contenido, logo y productos al frente */
}
/* ARREGLO DE LOGO Y ESTRUCTURA */
.logo-text { 
    font-size: 28px; 
    font-weight: 700; 
    color: white; 
    letter-spacing: 1px;
}
.y-cart { 
    color: var(--accent-blue); 
    font-style: italic;
}

header, main, footer {
    position: relative;
    z-index: 10; /* Esto asegura que el logo y botones estén sobre el fondo */
}

#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Mantiene las partículas al fondo */
}

/* FIX PARA EL CARRITO Y BOTONES */
.add-to-cart {
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 20;
}
/* Corregir el header y el logo */
header .nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-transform: none;
}

.y-cart {
    color: #00AEEF;
}

/* Asegurar que el contenido no se amontone */
main {
    padding-top: 50px;
    display: block; /* Evita que los elementos se apilen uno tras otro si hay errores de grid */
}
