@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }

:root {
    --bg-main: #050505;
    --card-bg: rgba(20, 20, 25, 0.7);
    --neon-pink: #ff007f;
    --neon-cyan: #00f0ff;
    --neon-purple: #7928ca;
    --neon-green: #39ff14;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body { 
    background: var(--bg-main); 
    color: #fff; 
    scroll-behavior: smooth;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(121, 40, 202, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 40%);
}

/* Navbar */
.nav { 
    display: flex; 
    justify-content: space-between; 
    padding: 15px 5%; 
    background: rgba(10, 10, 15, 0.8); 
    backdrop-filter: blur(15px);
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid var(--glass-border);
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.2rem; /* larger for readability */
    font-weight: 600;   /* semi-bold */
    transition: 0.3s;
    text-shadow: 0 0 6px var(--neon-cyan);
}

.nav a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.logo {
    font-weight: 900;
    font-size: 2rem !important; /* larger logo text */
    margin: 0 !important;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px var(--neon-pink);
}

/* Item title styling */
.item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* Dropdown link size */
.dropdown-content a {
    font-size: 1rem;
}


:root {
    --bg-main: #050505;
    --card-bg: rgba(20, 20, 25, 0.7);
    --neon-pink: #ff007f;
    --neon-cyan: #00f0ff;
    --neon-purple: #7928ca;
    --neon-green: #39ff14;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body { 
    background: var(--bg-main); 
    color: #fff; 
    scroll-behavior: smooth;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(121, 40, 202, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 40%);
}

/* Navbar */
.nav { 
    display: flex; 
    justify-content: space-between; 
    padding: 15px 5%; 
    background: rgba(10, 10, 15, 0.8); 
    backdrop-filter: blur(15px);
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid var(--glass-border);
}

.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.2rem; /* aumentada para mayor legibilidad */
    font-weight: 600;
    transition: 0.3s;
    text-shadow: 0 0 6px var(--neon-cyan);
}

.nav a:hover { 
    color: var(--neon-cyan); 
    text-shadow: 0 0 10px var(--neon-cyan);
}

.logo {
    font-weight: 900;
    font-size: 1.6rem !important; /* Larger logo text */
    margin: 0 !important;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px var(--neon-pink);
}

/* Toggle y Menú Desplegable */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--neon-cyan);
    margin: 5px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-cyan);
}

.links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 101;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    margin-top: 0px;
}

.dropdown-content a {
    color: #fff !important;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero */
.hero { 
    padding: 120px 5% 100px; 
    text-align: center; 
    background: radial-gradient(circle at center, rgba(121, 40, 202, 0.2) 0%, transparent 70%);
    color: white; 
}

/* --- TIPOGRAFÍA MEJORADA --- */

h1 {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 900;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.9rem;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(0,0,0,0.4);
    margin-top: 20px;
    margin-bottom: 10px;
}

.btns { margin-top: 35px; }
.btns a { 
    padding: 16px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    display: inline-block; 
    margin: 10px; 
    font-weight: 900; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.b1 { 
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple)); 
    color: white; 
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.b2 { 
    border: 2px solid var(--neon-cyan); 
    color: var(--neon-cyan); 
    background: transparent;
}

.btns a:hover { 
    transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5); 
}

.b2:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 25px var(--neon-cyan);
}

/* Grid */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 60px 5%; 
    max-width: 1300px;
    margin: 0 auto;
}

.item { 
    background: var(--card-bg); 
    padding: 50px 30px; 
    text-align: center; 
    border-radius: 24px; 
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease; 
    position: relative;
    overflow: hidden;
}

.item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
    opacity: 0;
    transition: 0.5s;
}

.item:hover { 
    transform: translateY(-15px); 
    border-color: var(--neon-pink);
    box-shadow: 0 20px 40px rgba(255, 0, 127, 0.2); 
    background: rgba(30, 30, 40, 0.9);
}

.item:hover::before { opacity: 1; }

.item span { 
    font-size: 4rem; 
    display: block; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    transition: 0.5s;
}

.item:hover span {
    transform: scale(1.2) rotate(5deg);
}

.item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Formulario */
.form-sec { 
    padding: 100px 5%; 
    max-width: 600px; 
    margin: auto; 
}

.form-group { margin-bottom: 20px; }

input, textarea { 
    padding: 16px; 
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border); 
    border-radius: 12px; 
    width: 100%; 
    font-size: 1rem; 
    color: white;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: rgba(255,255,255,0.1);
}

button { 
    padding: 18px; 
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple)); 
    color: white; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 900; 
    width: 100%; 
    transition: 0.4s; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

button:hover { 
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* Footer */
footer {
    background: #000;
    padding: 60px 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

/* Responsivo */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 40px 0;
        position: absolute;
        top: 100%;
        left: 0;
        border-bottom: 1px solid var(--neon-cyan);
    }

    .links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .dropdown-content a {
        color: #fff !important;
        opacity: 0.8;
    }

    .hero h1 { font-size: 3rem; }
    .nav { padding: 15px 5%; }
    .btns a { width: 100%; margin: 10px 0; }
}

/* --- ESTILOS DE SUBPÁGINAS (CONSOLIDACIÓN) --- */

/* Hero Secciones Especiales */
.products-hero, .platforms-hero, .about-hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.products-hero h1 { background: linear-gradient(to right, #39ff14, #00f0ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.platforms-hero h1 { background: linear-gradient(to right, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Grids Especiales */
.product-grid, .platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cards de Productos y Plataformas */
.product-card, .platform-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover { border-color: #39ff14; box-shadow: 0 15px 30px rgba(57, 255, 20, 0.2); }
.platform-card:hover { border-color: var(--neon-pink); box-shadow: 0 15px 30px rgba(255, 0, 127, 0.2); }

.product-price { font-size: 1.8rem; font-weight: 900; color: #39ff14; margin: 15px 0; }
.platform-price { font-size: 1.5rem; font-weight: 900; color: var(--neon-cyan); margin: 10px 0; }

/* Forzar fuente uniforme en todas las tarjetas — previene mezcla de fuentes en contenido dinámico de Firebase */
.product-card *, .platform-card *, .item * {
    font-family: 'Outfit', sans-serif !important;
}
.product-card h2, .product-card h3,
.platform-card h2, .platform-card h3,
.product-name, .platform-name {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
}
.product-card p, .platform-card p,
.product-desc, .platform-desc {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400;
}

.buy-btn, .add-screen-btn {
    background: linear-gradient(45deg, #39ff14, #00f0ff);
    color: #000;
    border: none;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.add-screen-btn { background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple)); color: white; }

.buy-btn:hover, .add-screen-btn:hover { transform: scale(1.05); filter: brightness(1.2); }

/* About Page (Nosotros) */
.about-content {
    max-width: 900px;
    margin: -100px auto 100px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 40px; }
.timeline-item { padding: 20px; background: rgba(255,255,255,0.03); border-radius: 20px; text-align: center; }

/* Corrección de Navbar para todas las páginas */
.nav .links { margin-left: auto; }
.nav a.logo { margin-left: 0; }

/* Product Image Gallery Styles */
.product-gallery-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    margin-bottom: 15px;
}

.product-gallery-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.product-gallery-image.active {
    display: block;
}

.product-gallery-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 5px;
    box-sizing: border-box;
    z-index: 5;
}

.product-gallery-nav button {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    padding: 0 !important;
    transition: 0.2s !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3) !important;
}

.product-gallery-nav button:hover {
    background: var(--neon-cyan) !important;
    color: black !important;
    box-shadow: 0 0 15px var(--neon-cyan) !important;
}
/* Product Details Modal (Mercado Libre Style) */
#product-details-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(20px);
    z-index: 100000; display: none; overflow-y: auto; padding: 40px 20px;
    opacity: 0; transition: opacity 0.3s;
}
#product-details-modal.active { display: block; opacity: 1; }
.details-container {
    max-width: 1200px; margin: 0 auto; background: #151518;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative;
    transform: translateY(50px); transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#product-details-modal.active .details-container { transform: translateY(0); }
.details-close {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    color: #fff; font-size: 2rem; cursor: pointer; transition: 0.2s; z-index: 10;
}
.details-close:hover { color: var(--neon-pink); transform: scale(1.1); }
.details-gallery { position: relative; border-radius: 16px; overflow: hidden; background: #0a0a0c; min-height: 400px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.05); }
.details-gallery img { max-width: 100%; max-height: 500px; object-fit: contain; }
.details-gallery-nav { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 10px; }
.details-gallery-thumb { width: 80px; height: 80px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; object-fit: cover; transition: 0.2s; opacity: 0.6; }
.details-gallery-thumb:hover, .details-gallery-thumb.active { border-color: var(--neon-cyan); opacity: 1; }
.details-info { display: flex; flex-direction: column; }
.details-title { font-size: 2.5rem; font-weight: 900; margin: 0 0 10px; color: #fff; }
.details-price { font-size: 3rem; font-weight: 900; color: var(--neon-cyan); margin: 20px 0; }
.details-desc { font-size: 1.1rem; color: #aaa; line-height: 1.6; margin-bottom: 30px; }
.details-buy-btn { background: linear-gradient(45deg, #00f0ff, #0080ff); color: #000; border: none; padding: 18px 40px; border-radius: 12px; font-size: 1.2rem; font-weight: 900; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3); width: 100%; margin-bottom: 40px; }
.details-buy-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 240, 255, 0.5); }
.reviews-section { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.reviews-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.review-card { background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.review-author { font-weight: bold; color: var(--neon-cyan); }
.review-stars { color: #f1c40f; }
.review-text { color: #ccc; font-size: 0.95rem; line-height: 1.5; }
.review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; background: rgba(0,0,0,0.2); padding: 20px; border-radius: 12px; }
.review-form select, .review-form textarea { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px; border-radius: 8px; font-family: inherit; }
.review-form button { background: var(--neon-pink); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.review-form button:hover { background: #ff0055; }
@media (max-width: 900px) { .details-container { grid-template-columns: 1fr; } }


/* ==========================================================================
   CATÁLOGO AVANZADO & FILTROS
   ========================================================================== */

/* Barra de Filtros */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}
.catalog-filters input, .catalog-filters select {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}
.catalog-filters input:focus, .catalog-filters select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0,240,255,0.2);
}

/* Layout del Catálogo */
.catalog-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* Sidebar Selección Especial */
.catalog-sidebar {
    width: 280px;
    flex-shrink: 0;
    border: 2px solid #f1c40f;
    border-radius: 15px;
    background: rgba(241,196,15,0.05);
    padding: 20px;
    align-self: flex-start;
}
.catalog-sidebar h3 {
    color: #f1c40f;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.special-card {
    background: #fff;
    color: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.special-card:hover {
    transform: translateY(-5px);
}
.special-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
}
.special-card-info {
    padding: 15px;
}
.special-card-info .badge {
    background: #e1f5fe;
    color: #0288d1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}
.special-card-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}
.special-card-info p {
    margin: 0;
    color: #f39c12;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Main Grid */
.catalog-main {
    flex: 1;
}
.catalog-info-bar {
    margin-bottom: 15px;
    color: #888;
    font-size: 0.9rem;
}
.dyn-product-grid {
    flex: 1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Tarjeta Dinámica de Producto */
.dyn-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: #000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
}
.dyn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,240,255,0.2);
}
.dyn-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f5f5f5;
    cursor: pointer;
}
.dyn-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dyn-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
}
.dyn-card-meta {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}
.dyn-card-meta span {
    font-weight: bold;
    color: #333;
}
.dyn-card-footer {
    margin-top: auto;
}
.dyn-card-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
}
.dyn-badge-stock {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-in-stock { background: #e8f8f5; color: #1abc9c; border: 1px solid #1abc9c; }
.badge-out-stock { background: #fdedec; color: #e74c3c; border: 1px solid #e74c3c; }

/* === STOCK FILTER BUTTONS === */
.stock-filter-bar {
    display: flex;
    gap: 8px;
    padding: 14px 0 8px;
    flex-wrap: wrap;
}
.stock-filter-btn {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1.5px solid #444;
    background: #111;
    color: #aaa;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.25s;
    letter-spacing: 0.3px;
}
.stock-filter-btn:hover { border-color: #fff; color: #fff; }
.stock-filter-btn.active { background: #222; color: #fff; border-color: #fff; }
.stock-filter-btn.in-stock.active { background: rgba(46,204,113,0.15); color: #2ecc71; border-color: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,0.3); }
.stock-filter-btn.out-stock.active { background: rgba(231,76,60,0.15); color: #e74c3c; border-color: #e74c3c; box-shadow: 0 0 8px rgba(231,76,60,0.3); }

/* === WHATSAPP OUT-OF-STOCK BUTTON === */
.btn-wa-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.2s;
    margin-top: 8px;
}
.btn-wa-stock:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* === MULTI-IMAGE GALLERY IN PRODUCT CARDS === */
.dyn-card-gallery { position: relative; }
.dyn-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 0 0;
    flex-wrap: wrap;
}
.dyn-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #333;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.65;
}
.dyn-thumb:hover { opacity: 1; border-color: #aaa; }
.dyn-thumb.active { opacity: 1; border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0,240,255,0.4); }

@media (max-width: 600px) {
    .stock-filter-bar { gap: 8px; }
    .stock-filter-btn { padding: 8px 16px; font-size: 0.85rem; }
}
or: #e74c3c; border: 1px solid #e74c3c; }

/* Botón Añadir a Carrito en dyn-card */
.btn-dyn-add {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-dyn-add:hover { background: var(--neon-cyan); color: #000; }
.btn-dyn-add:disabled { background: #ccc; cursor: not-allowed; color: #666; }

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,240,255,0.3);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; }
}


/* === DETAILED FOOTER === */
.site-footer {
    background: #111;
    border-top: 1px solid #222;
    padding: 60px 20px 20px;
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.6;
}
.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--neon-cyan);
    font-size: 1.05rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
    padding-left: 12px;
    position: relative;
}
.footer-col ul li::before {
    content: '▪';
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
}
.footer-col strong {
    color: #ddd;
}
.btn-footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.2s;
}
.btn-footer-wa:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.8rem;
}
