/* ================================
   PRODUCTOS PAGE STYLES
   ================================ */

/* Hero Section Productos */
.productos-hero {
    background: linear-gradient(135deg, #e8e8ea 0%, #c697f6 100%);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.productos-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.productos-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    
}

.productos-title span {
}

.productos-description {
    font-size: 1.25rem;
    color: white;
    opacity: 0.95;
}

/* Productos Section */
.productos-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

/* Filtros Container */
.filtros-container {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Filtros de Categorías */
.filtros-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filtro-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filtro-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filtro-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.filtro-btn i {
    font-size: 1rem;
}

/* Resultados Info */
.resultados-info {
    margin-bottom: var(--spacing-lg);
}

.resultados-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.resultados-info span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Grid de Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Producto Card */
.producto-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.producto-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-warm);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.producto-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.producto-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-base);
}

.producto-card:hover .producto-img img {
    transform: scale(1.05);
}

.producto-info {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.producto-marca {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.producto-descripcion {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    flex: 1;
}

.producto-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contactar {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-llamar {
    background: #3b82f6;
    color: white;
}

.btn-llamar:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #e8e8ea 0%, #c697f6 100%);
    color: white;
}

.btn-whatsapp:hover {
    background: #8849f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* No Resultados */
.no-resultados {
    text-align: center;
    padding: var(--spacing-2xl);
}

.no-resultados i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.no-resultados h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.no-resultados p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* ================================
   DARK MODE
   ================================ */

[data-theme="dark"] .productos-hero {
    background: var(--gradient-primary);
}

[data-theme="dark"] .filtros-container {
    background: var(--bg-card);
}

[data-theme="dark"] .search-box input {
    background: var(--bg-primary);
    border-color: var(--text-light);
    color: var(--text-primary);
}

[data-theme="dark"] .filtro-btn {
    background: var(--bg-primary);
    border-color: var(--text-light);
    color: var(--text-primary);
}

[data-theme="dark"] .filtro-btn:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .producto-card {
    background: var(--bg-card);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1024px) {
    .productos-title {
        font-size: 2.5rem;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .productos-hero {
        padding: 100px 0 40px;
    }

    .productos-title {
        font-size: 2rem;
    }

    .productos-description {
        font-size: 1rem;
    }

    .filtros-categorias {
        gap: 0.5rem;
    }

    .filtro-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .filtro-btn i {
        font-size: 0.875rem;
    }

    .productos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--spacing-md);
    }

    .producto-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .productos-title {
        font-size: 1.75rem;
    }

    .filtros-container {
        padding: var(--spacing-md);
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .producto-img {
        height: 200px;
    }

    .filtro-btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 140px;
        justify-content: center;
    }

    .btn-contactar {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-card {
    animation: fadeIn 0.4s ease forwards;
}

.producto-card:nth-child(1) { animation-delay: 0s; }
.producto-card:nth-child(2) { animation-delay: 0.05s; }
.producto-card:nth-child(3) { animation-delay: 0.1s; }
.producto-card:nth-child(4) { animation-delay: 0.15s; }
.producto-card:nth-child(5) { animation-delay: 0.2s; }
.producto-card:nth-child(6) { animation-delay: 0.25s; }
