/* --- CONFIGURACIÓN BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-light: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-dark: #0f172a;
    --text-muted: #475569;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-light: #3b82f6;
    --border-light: rgba(226, 232, 240, 0.6);
    --glow-blue: rgba(37, 99, 235, 0.2);
    --glow-purple: rgba(124, 58, 237, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 25px 30px -12px rgba(37, 99, 235, 0.25), 0 4px 8px -2px rgba(0, 0, 0, 0.05);
    --blur-bg: rgba(255, 255, 255, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(145deg, #f9fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER GLASS --- */
header {
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
    gap: 16px;
    flex-wrap: wrap;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.2s;
}
@media (max-width: 600px) {
    .logo img { height: 50px; }
}

nav ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}
nav a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
    width: 100%;
}
nav a:hover { color: var(--accent-blue); }

/* Buscador */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 6px 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s;
}
.search-container:focus-within {
    background: white;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--glow-blue);
}
.search-container input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Montserrat';
    padding: 8px 5px;
    width: 220px;
    color: var(--text-dark);
    font-size: 0.9rem;
}
.search-container input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--accent-blue);
    padding: 0 5px;
    transition: transform 0.2s;
}
.search-container button:hover {
    transform: scale(1.1);
}

/* --- HERO CON VIDEO Y GRADIENTE MEJORADO --- */
.hero {
    position: relative;
    width: 100%;
    height: 630px;
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
}
.hero .hero-content-wrapper {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin-left: 5%;
}
.hero-text {
    max-width: 600px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(0);
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}
.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
@media (max-width: 900px) {
    .hero {
        height: auto;
        min-height: 500px;
    }
    .hero .hero-content-wrapper {
        justify-content: center;
        text-align: center;
        padding-top: 40px;
        margin-left: 0;
    }
    .hero-text {
        max-width: 90%;
        margin: 0 auto;
        padding: 1.5rem;
    }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; max-width: 100%; }
    .hero-gradient {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    }
}

/* --- FILTROS MODERNOS --- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
}
.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--glow-purple);
}
.filter-section h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}
.filters-toggle {
    text-align: center;
    margin: 40px 0 20px;
}
.toggle-filters-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.toggle-filters-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
}
.filters-panel {
    max-width: 1200px;
    margin: 0 auto 20px;
    margin-top: 30px;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease-in-out;
    max-height: 300px;
    overflow-y: auto;
}
.filters-panel[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.filters-panel .filter-section:not(:last-child) {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* --- GRID DE PRODUCTOS --- */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 5%;
}

/* Tarjetas con efecto glass */
.product-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.95);
}
.product-card:hover::before {
    opacity: 1;
}
.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 15px 0 8px;
    color: var(--text-dark);
    line-height: 1.4;
}
.product-card .codigo {
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}
.product-card .precio {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin: 8px 0 5px;
}
.product-card .stock {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.product-card .stock::before {
    content: '●';
    color: #10b981;
    font-size: 0.7rem;
}
.product-card .stock.sin-stock::before {
    color: #ef4444;
}
.product-card button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 180px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.product-card button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}
.product-card button:active {
    transform: scale(0.98);
}
.product-card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Imágenes */
.product-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}
.product-card:hover .product-image {
    transform: scale(1.02);
}

/* Badges */
.badge-low-stock {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    animation: pulseGlow 1.5s ease-out;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- CARRITO (mejorado) --- */
.cart-float {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background: var(--text-dark);
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
}
.cart-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(226, 232, 240, 0.5);
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3 {
    font-weight: 700;
    font-size: 1.2rem;
}
.cart-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.cart-close:hover {
    transform: scale(1.1);
}
.cart-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    margin-bottom: 8px;
}
.cart-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.cart-item-info .codigo {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.cart-item-info .precio {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
}
.btn-eliminar {
    background: rgba(220, 38, 38, 0.1);
    border: none;
    color: #dc2626;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-eliminar:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.05);
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}
.btn-whatsapp {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-whatsapp:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

/* --- OTROS COMPONENTES --- */
.productos-contador {
    text-align: center;
    margin: 20px auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    display: table;
    width: auto;
    padding: 6px 18px;
    border-radius: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.5);
}
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.back-to-top {
    position: fixed;
    bottom: 150px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: var(--shadow-md);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: scale(1.1);
}

.notificacion {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.notificacion.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER --- */
footer {
    background: #0f172a;
    color: #fff;
    padding: 60px 5%;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-col h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: #e2e8f0;
}
.footer-col p, .footer-col a {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.footer-col a:hover {
    color: var(--accent-blue);
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
}

/* --- MENÚ MÓVIL --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}
@media (max-width: 600px) {
    header {
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        width: 100%;
        order: 3;
    }
    nav.active {
        display: block;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 0;
    }
    .search-container {
        width: 100%;
        order: 4;
        margin-top: 10px;
    }
    .search-container input {
        width: calc(100% - 40px);
    }
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.95rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn-primary, .btn-secondary {
        text-align: center;
    }
    .cart-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 70px;
    }
    .back-to-top {
        bottom: 130px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* --- MODAL CLIENTE --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.modal-content.modal-cliente {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    margin: 10% auto;
    width: 90%;
    max-width: 450px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}
.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}
.modal-body {
    padding: 24px;
}
.cliente-form-modal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cliente-form-modal input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}
.cliente-form-modal input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--glow-blue);
}
.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    background: rgba(249, 250, 251, 0.5);
}
.modal-footer .btn-secondary {
    background: #e2e8f0;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    flex: 1;
}
.modal-footer .btn-whatsapp {
    flex: 2;
    margin-top: 0;
}
@media (max-width: 600px) {
    .modal-content.modal-cliente {
        margin: 20% auto;
        width: 95%;
    }
}

/* --- ESTILOS PARA INPUT DE CANTIDAD --- */
.cantidad-control {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
}
.cantidad-input {
    width: 80px;
    padding: 12px 8px;
    border: 1px solid var(--border-light);
    border-radius: 40px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: rgba(249, 250, 251, 0.6);
    transition: all 0.2s ease;
    appearance: textfield;
}
.cantidad-input::-webkit-inner-spin-button,
.cantidad-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cantidad-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--glow-blue);
    background-color: white;
}
.cantidad-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.6;
}

/* --- BOTONES REUTILIZABLES --- */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: white;
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
}

/* --- PAGINACIÓN --- */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px auto 20px;
    flex-wrap: wrap;
}
.pagina-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
}
.pagina-btn:hover:not(:disabled) {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}
.pagina-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--glow-purple);
}
.pagina-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.puntos {
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: var(--text-muted);
}

/* --- MODAL IMAGEN --- */
.modal-imagen {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-imagen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-imagen-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.modal-imagen-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-imagen-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* --- RESPONSIVE PARA FILTROS EN PC --- */
@media (min-width: 768px) {
    .filters-panel {
        display: block !important;
        max-height: none;
        overflow-y: visible;
        padding: 30px 5%;
    }
    .filters-toggle {
        display: none;
    }
}
