/* =====================================================
   FILTROS Y ORDENACIÓN
   ===================================================== */

.filtros-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.filtros-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 800px;
    width: 100%;
}

.filtro-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.filtro-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filtro-label svg {
    color: #6366f1;
}

.filtro-select {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 180px;
}

.filtro-select:hover {
    border-color: #6366f1;
}

.filtro-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Badge de filtro activo */
.badge-filtro {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Responsive filtros */
@media (max-width: 768px) {
    .filtros-box {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .filtro-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .filtro-label {
        justify-content: center;
    }
    
    .filtro-select {
        min-width: unset;
        width: 100%;
    }
}

/* =====================================================
   PRECIO GRATUITO
   ===================================================== */

.precio-gratuito {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* En cards pequeñas */
.producto-card .precio-gratuito {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* =====================================================
   BOTÓN ADMIN EDITAR (inline en detalle)
   ===================================================== */

.producto-header-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.producto-header-row h1 {
    margin: 0;
    flex: 1;
}

.btn-admin-edit-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.btn-admin-edit-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-admin-edit-inline svg {
    width: 18px;
    height: 18px;
}

/* Responsive botón admin */
@media (max-width: 768px) {
    .producto-header-row {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .btn-admin-edit-inline {
        width: 36px;
        height: 36px;
        margin-top: 0.25rem;
    }
}

/* =====================================================
   INFO DE PAGINACIÓN MEJORADA
   ===================================================== */

.pagination-info {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 1rem 0;
    color: #64748b;
    font-size: 0.95rem;
}

.pagination-info strong {
    color: #1e293b;
    font-weight: 600;
}

/* =====================================================
   MEJORAS ADICIONALES RESPONSIVE
   ===================================================== */

@media (max-width: 480px) {
    .precio-gratuito {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .producto-card .precio-gratuito {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}
