    .catalog-sidebar {
        position: sticky;
        top: 2rem;
    }

    .catalog-content {
        min-width: 0;
        /* Previene desbordamiento en grid */
    }

    @media (max-width: 992px) {
        .catalog-layout {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .catalog-sidebar {
            position: static;
        }
    }

    .filters-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .filter-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-sm);
        background: var(--bg-primary);
        color: var(--text-primary);
        font-family: 'Poppins', sans-serif;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }

    .product-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        overflow: hidden;
        transition: all var(--transition-normal);
        cursor: pointer;
    }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }

    .product-image {
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4rem;
        color: var(--blue-primary);
    }

    .product-body {
        padding: 1.5rem;
    }

    .product-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
    }

    .product-specs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .product-spec {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    .product-spec i {
        color: var(--blue-primary);
        width: 20px;
    }

    .product-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: var(--secondary-gradient);
        color: white;
        border-radius: var(--radius-full);
        font-size: 0.8rem;
        font-weight: 600;
        margin-top: 0.5rem;
    }

    .product-actions {
        display: flex;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .btn-add-cart {
        flex: 1;
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-normal);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-add-cart:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-add-cart:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-view-details {
        background: var(--bg-secondary);
        border: 2px solid var(--border-color);
        padding: 0.75rem;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .btn-view-details:hover {
        background: var(--bg-primary);
        border-color: var(--blue-primary);
    }

    /* ========== TABLA DE STOCK ========== */
    .stock-table-container {
        overflow-x: auto;
        margin-top: 1.5rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .stock-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--bg-card);
        font-size: 0.95rem;
    }

    .stock-table thead {
        background: linear-gradient(135deg, #1565C0, #0D47A1);
    }

    .stock-table th {
        padding: 1rem 1.25rem;
        text-align: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        color: #ffffff !important;
    }

    .stock-table tbody tr {
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
    }

    .stock-table tbody tr:hover {
        background: var(--bg-secondary);
    }

    .stock-table td {
        padding: 1rem 1.25rem;
        vertical-align: middle;
    }

    .color-indicator {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .color-dot {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }

    .stock-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.75rem;
        border-radius: var(--radius-full);
        font-weight: 600;
        font-size: 0.85rem;
    }

    .stock-badge.high {
        background: #dcfce7;
        color: #166534;
    }

    .stock-badge.medium {
        background: #fef9c3;
        color: #854d0e;
    }

    .stock-badge.low {
        background: #fee2e2;
        color: #991b1b;
    }

    .btn-ver-producto {
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-md);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.85rem;
    }

    .btn-ver-producto:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    /* ========== TOGGLE VISTA LISTA/CUADRÍCULA ========== */
    .view-toggle-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background: var(--bg-secondary);
        border-radius: var(--radius-lg);
    }

    .view-toggle-info {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    .view-toggle-info strong {
        color: var(--text-primary);
    }

    .view-toggle-buttons {
        display: flex;
        gap: 0.5rem;
        background: var(--bg-primary);
        padding: 0.25rem;
        border-radius: var(--radius-md);
        border: 2px solid var(--border-color);
    }

    .view-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        border: none;
        background: transparent;
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
    }

    .view-toggle-btn:hover {
        color: var(--text-primary);
        background: var(--bg-secondary);
    }

    .view-toggle-btn.active {
        background: var(--primary-gradient);
        color: white;
        box-shadow: var(--shadow-sm);
    }

    .view-toggle-btn i {
        font-size: 1rem;
    }

    /* ========== VISTA CUADRÍCULA - PRODUCTOS (NUEVO DISEÑO) ========== */
    .products-grid-view {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .product-grid-card {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border-color);
        position: relative;
        display: flex;
        flex-direction: column;
    }

    /* Borde semántico sutil en la parte superior */
    .product-grid-card.stock-high {
        border-top: 3px solid #22c55e;
    }

    .product-grid-card.stock-medium {
        border-top: 3px solid #f59e0b;
    }

    .product-grid-card.stock-low {
        border-top: 3px solid #ef4444;
    }

    .product-grid-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .product-grid-image {
        position: relative;
        width: 100%;
        height: 200px;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 1.5rem;
    }

    .product-grid-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    }

    .product-grid-card:hover .product-grid-image img {
        transform: scale(1.1);
    }

    /* Badges flotantes */
    .product-badges {
        position: absolute;
        top: 10px;
        left: 10px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 2;
    }

    .badge-ref {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(4px);
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-secondary);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .stock-indicator {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        z-index: 2;
        box-shadow: 0 0 0 2px white;
    }

    .stock-indicator.high {
        background: #22c55e;
    }

    .stock-indicator.medium {
        background: #f59e0b;
    }

    .stock-indicator.low {
        background: #ef4444;
        animation: pulse-red 2s infinite;
    }

    @keyframes pulse-red {
        0% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        }

        70% {
            box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        }
    }

    .product-grid-body {
        padding: 1.25rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .product-grid-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0 0 0.25rem 0;
        line-height: 1.3;
    }

    .product-dims {
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-bottom: 0.75rem;
    }

    .product-meta {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.8rem;
        color: var(--text-secondary);
        background: var(--bg-secondary);
        padding: 0.25rem 0.6rem;
        border-radius: 4px;
    }

    .color-dot-mini {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .stock-text {
        font-size: 0.85rem;
        font-weight: 600;
        margin-top: auto;
        padding-top: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border-color);
    }

    .stock-text.high {
        color: #15803d;
    }

    .stock-text.medium {
        color: #a16207;
    }

    .stock-text.low {
        color: #b91c1c;
    }

    .btn-card-action {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-card-action:hover {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
    }

    /* Ocultar según vista activa */
    .view-list .products-grid-view {
        display: none;
    }

    .view-list .stock-table-container,
    .view-list .dist-table-container {
        display: block;
    }

    .view-grid .products-grid-view {
        display: grid;
    }

    .view-grid .stock-table-container,
    .view-grid .dist-table-container {
        display: none;
    }

    /* Responsive para toggle y grid */
    @media (max-width: 768px) {
        .view-toggle-container {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }

        .view-toggle-btn span {
            display: none;
        }

        .products-grid-view {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .product-grid-card {
            border-left-width: 3px;
        }

        .product-grid-image {
            height: 160px;
        }

        .product-grid-body {
            padding: 1rem;
        }

        .product-grid-title {
            font-size: 1rem;
        }

        .product-grid-subtitle {
            font-size: 0.8rem;
            margin-bottom: 0.75rem;
        }

        .product-grid-color {
            padding: 0.5rem 0.7rem;
            margin-bottom: 0.75rem;
        }

        .product-grid-color .color-circle {
            width: 20px;
            height: 20px;
        }

        .product-grid-color .color-name {
            font-size: 0.85rem;
        }

        .product-grid-specs {
            gap: 0.4rem;
        }

        .product-grid-spec {
            padding: 0.3rem 0.6rem;
            font-size: 0.75rem;
        }

        .product-grid-stock-badge {
            padding: 0.35rem 0.6rem;
            font-size: 0.7rem;
        }

        .product-grid-badge {
            padding: 0.3rem 0.6rem;
            font-size: 0.7rem;
        }

        .product-grid-actions {
            margin-top: 1rem;
            padding-top: 1rem;
        }

        .product-grid-actions .btn-ver-producto {
            padding: 0.75rem 1rem;
            font-size: 0.85rem;
        }
    }

    @media (max-width: 480px) {
        .products-grid-view {
            grid-template-columns: 1fr;
            gap: 1.25rem;
        }

        .product-grid-image {
            height: 200px;
        }

        .product-grid-body {
            padding: 1.25rem;
        }

        .product-grid-title {
            font-size: 1.1rem;
        }
    }

    /* ========== SUB-PESTAÑAS DE CATEGORÍAS ========== */
    .sub-tabs-container {
        margin-bottom: 2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-tabs {
        display: flex;
        gap: 0.75rem;
        padding: 0.5rem;
        background: var(--bg-secondary);
        border-radius: var(--radius-lg);
        min-width: fit-content;
    }

    .sub-tab {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.25rem;
        border-radius: var(--radius-md);
        font-weight: 500;
        font-size: 0.9rem;
        text-decoration: none;
        color: var(--text-secondary);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .sub-tab:hover {
        background: var(--bg-primary);
        color: var(--text-primary);
    }

    .sub-tab.active {
        background: var(--primary-gradient);
        color: white;
        box-shadow: var(--shadow-sm);
    }

    .sub-tab i {
        font-size: 1rem;
    }

    .sub-tab .badge-count {
        background: rgba(255, 255, 255, 0.2);
        padding: 0.15rem 0.5rem;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 600;
    }

    .sub-tab.active .badge-count {
        background: rgba(255, 255, 255, 0.3);
    }

    @media (max-width: 768px) {
        .sub-tabs {
            gap: 0.5rem;
            padding: 0.35rem;
        }

        .sub-tab {
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
        }

        .sub-tab span.tab-text {
            display: none;
        }

        .sub-tab i {
            margin-right: 0;
        }
    }

    /* ========== TABLA DE DISTRIBUCIÓN ========== */
    .dist-table-container {
        overflow-x: auto;
        margin-top: 1.5rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .dist-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--bg-card);
        font-size: 0.95rem;
    }

    .dist-table thead {
        background: linear-gradient(135deg, #7c3aed, #5b21b6);
    }

    .dist-table th {
        padding: 1rem 1.25rem;
        text-align: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        color: #ffffff !important;
    }

    .dist-table tbody tr {
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
    }

    .dist-table tbody tr:hover {
        background: var(--bg-secondary);
    }

    .dist-table td {
        padding: 1rem 1.25rem;
        vertical-align: middle;
    }

    .producto-img-thumb {
        width: 50px;
        height: 50px;
        object-fit: contain;
        border-radius: var(--radius-md);
        border: 2px solid var(--border-color);
        background: #f8f9fa;
    }

    .producto-nombre-cell {
        font-weight: 600;
        color: var(--text-primary);
    }

    .producto-marca {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    /* ========== MODAL PRODUCTO (PREMIUM SPLIT & CLEAN) ========== */
    .modal-producto-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 1rem;
    }

    .modal-producto-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-producto {
        background: var(--bg-card);
        border-radius: var(--radius-xl);
        width: 100%;
        max-width: 900px;
        max-height: 90vh;
        display: flex;
        flex-direction: row;
        /* Layout Dividido por defecto */
        overflow: hidden;
        transform: scale(0.95) translateY(20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    .modal-producto-overlay.active .modal-producto {
        transform: scale(1) translateY(0);
    }

    /* --- LADO IZQUIERDO (Visual) --- */
    .modal-left {
        width: 40%;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 2rem;
        overflow: hidden;
    }

    /* --- ESTILOS MODAL DISTRIBUCIÓN (MATCH LAYOUT) --- */
    .modal-producto-header {
        width: 40%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 2rem;
        overflow: hidden;
        /* Background se define por JS según categoría */
    }

    .modal-producto-body {
        width: 60%;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: var(--bg-card);
        position: relative;
    }

    /* Fondo abstracto sutil */
    .modal-left::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
        opacity: 0.6;
        pointer-events: none;
    }

    .modal-image-display {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .modal-image-display:hover {
        transform: scale(1.05);
    }

    .modal-image-display img {
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
        filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    }

    .modal-visual-icon {
        font-size: 5rem;
        color: var(--text-muted);
        opacity: 0.3;
        z-index: 1;
    }

    /* --- LADO DERECHO (Info) --- */
    .modal-right {
        width: 60%;
        padding: 2.5rem;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: var(--bg-card);
        position: relative;
    }

    .modal-close-btn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        color: var(--text-secondary);
        z-index: 10;
    }

    .modal-close-btn:hover {
        background: #ef4444;
        color: white;
        transform: rotate(90deg);
    }

    .modal-header-info {
        margin-bottom: 2rem;
    }

    .modal-badge-status {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.35rem 0.85rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .modal-title-lg {
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-primary);
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .modal-subtitle-lg {
        font-size: 1.1rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    /* Grid de especificaciones limpio */
    .modal-specs-clean {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .spec-clean-item .label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
        display: block;
        font-weight: 600;
    }

    .spec-clean-item .value {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    /* Barra de stock integrada */
    .stock-bar-container {
        margin-bottom: 2rem;
    }

    .stock-bar-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .stock-progress-track {
        height: 10px;
        background: #f1f5f9;
        border-radius: 5px;
        overflow: hidden;
    }

    .stock-progress-fill {
        height: 100%;
        border-radius: 5px;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(90deg, #22c55e, #16a34a);
    }

    .stock-progress-fill.medium {
        background: linear-gradient(90deg, #f59e0b, #d97706);
    }

    .stock-progress-fill.low {
        background: linear-gradient(90deg, #ef4444, #dc2626);
    }

    /* Control de Cantidad Premium */
    .action-row {
        display: flex;
        gap: 1rem;
        align-items: center;
        margin-top: auto;
    }

    .qty-control-premium {
        display: flex;
        align-items: center;
        background: var(--bg-secondary);
        border-radius: 12px;
        padding: 4px;
        border: 1px solid var(--border-color);
    }

    .qty-btn {
        width: 42px;
        height: 42px;
        border: none;
        background: white;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: var(--text-primary);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.2s;
    }

    .qty-btn:hover {
        transform: scale(1.05);
        color: var(--blue-primary);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .qty-input {
        width: 60px;
        text-align: center;
        font-weight: 700;
        font-size: 1.2rem;
        border: none;
        background: transparent;
        color: var(--text-primary);
        padding: 0;
    }

    .btn-add-premium {
        flex: 1;
        background: linear-gradient(135deg, #10B981 0%, #059669 100%);
        color: white;
        border: none;
        height: 52px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1.05rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
    }

    .btn-add-premium:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    }

    .btn-add-premium:active {
        transform: scale(0.98);
    }

    /* RESPONSIVE DESIGN */
    @media (max-width: 850px) {
        .modal-producto {
            flex-direction: column;
            max-height: 95vh;
            max-width: 100%;
        }

        .modal-left,
        .modal-producto-header {
            width: 100%;
            height: 220px;
            padding: 1.5rem;
        }

        .modal-image-display img {
            max-height: 180px;
        }

        .modal-right,
        .modal-producto-body {
            width: 100%;
            padding: 1.5rem;
            overflow-y: initial;
            /* Permitir scroll nativo del modal */
        }

        .modal-title-lg {
            font-size: 1.5rem;
        }

        .action-row {
            flex-direction: column;
            gap: 1rem;
        }

        .qty-control-premium {
            width: 100%;
            justify-content: space-between;
        }

        .qty-input {
            width: 100%;
        }

        .btn-add-premium {
            width: 100%;
        }

        .modal-specs-clean {
            gap: 1rem;
        }
    }

    @media (max-width: 768px) {

        .stock-table,
        .dist-table {
            min-width: 600px;
        }

        .stock-table th,
        .stock-table td,
        .dist-table th,
        .dist-table td {
            padding: 0.75rem 0.5rem;
            font-size: 0.8rem;
        }

        .stock-table th:nth-child(3),
        .stock-table td:nth-child(3) {
            display: none;
        }

        .stock-table-container,
        .dist-table-container {
            margin: 1rem -1rem;
            border-radius: 0;
            -webkit-overflow-scrolling: touch;
        }

        .modal-specs-grid {
            grid-template-columns: 1fr;
        }
    }

    .cart-float-button {
        position: fixed;
        bottom: 90px;
        left: 20px;
        z-index: 1000;
        width: 60px;
        height: 60px;
        background: var(--accent-gradient);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.8rem;
        box-shadow: var(--shadow-lg);
        cursor: pointer;
        transition: all var(--transition-normal);
    }

    .cart-float-button:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-xl);
    }

    .empty-state {
        text-align: center;
        padding: 4rem 2rem;
    }

    .empty-state i {
        font-size: 4rem;
        color: var(--text-muted);
        margin-bottom: 1rem;
    }

    /* Pestañas */
    .catalog-tabs {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 2rem auto 2rem;
        /* Ajustado el margin-top */
        max-width: 600px;
        background: var(--bg-secondary);
        padding: 0.5rem;
        border-radius: var(--radius-lg);
    }

    .catalog-tab {
        flex: 1;
        padding: 1rem 1.5rem;
        background: transparent;
        border: none;
        border-radius: var(--radius-md);
        font-weight: 600;
        color: var(--text-secondary);
        cursor: pointer;
        transition: all var(--transition-fast);
        text-decoration: none;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .catalog-tab:hover {
        background: var(--bg-primary);
        color: var(--text-primary);
    }

    .catalog-tab.active {
        background: var(--primary-gradient);
        color: white;
        box-shadow: var(--shadow-md);
    }

    /* Selector de productos comerciales */
    .commercial-selector {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 2.5rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .selector-group {
        margin-bottom: 2rem;
    }

    .selector-group label {
        display: block;
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        color: var(--text-primary);
    }

    .selector-group select {
        width: 100%;
        padding: 1rem;
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-primary);
        color: var(--text-primary);
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .selector-group select:focus {
        outline: none;
        border-color: var(--blue-primary);
        box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    }

    .product-preview {
        background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
        border-radius: var(--radius-lg);
        padding: 2rem;
        margin-top: 2rem;
    }

    .product-preview h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1.5rem;
    }

    .preview-specs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .preview-spec {
        background: white;
        padding: 1rem;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .preview-spec i {
        color: var(--blue-primary);
        font-size: 1.5rem;
    }

    .preview-spec-label {
        font-size: 0.85rem;
        color: var(--text-muted);
        display: block;
    }

    .product-preview-spec-value {

        font-weight: 600;

        color: var(--text-primary);

        display: block;

    }



    .medida-cards-grid {

        display: grid;

        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));

        gap: 1.5rem;

        margin-bottom: 2rem;

    }



    .medida-card {

        background: var(--bg-card);

        border: 2px solid var(--border-color);

        border-radius: var(--radius-lg);

        padding: 1.5rem;

        text-align: center;

        cursor: pointer;

        transition: all var(--transition-normal);

    }



    .medida-card:hover,
    .medida-card.active {

        transform: translateY(-5px);

        box-shadow: var(--shadow-xl);

        border-color: var(--blue-primary);

    }



    .medida-card-nombre {

        font-size: 1.5rem;

        font-weight: 700;

        color: var(--blue-primary);

        margin-bottom: 0.5rem;

    }



    .medida-card-dimensiones {

        font-size: 1rem;

        color: var(--text-secondary);

        font-weight: 600;

    }



    #price-table-container {

        margin-top: 2rem;

        padding-top: 2rem;

        border-top: 2px solid var(--border-color);

    }



    .price-table {

        width: 100%;

        border-collapse: collapse;

        margin-top: 2rem;

    }

    .price-table th,
    .price-table td {
        border: 1px solid var(--border-color);
        padding: 12px 15px;
        text-align: left;
    }

    .price-table thead {
        background-color: var(--bg-secondary);
    }

    .price-table th {
        font-weight: 600;
        color: var(--text-primary);
    }

    .price-table tbody tr:nth-child(even) {
        background-color: var(--bg-primary);
    }

    .price-table tbody tr:hover {
        background-color: var(--bg-secondary);
    }

    @media (max-width: 768px) {
        .catalog-header {
            padding: 5rem 1rem 2rem;
        }

        .catalog-stats {
            gap: 1.5rem;
        }

        .products-grid {
            grid-template-columns: 1fr;
        }

        .cart-float-button {
            bottom: 80px;
            left: 15px;
            width: 55px;
            height: 55px;
        }

        .catalog-tabs {
            flex-direction: column;
            gap: 0.5rem;
        }

        .commercial-selector {
            padding: 1.5rem;
        }

        .preview-specs {
            grid-template-columns: 1fr;
        }
    }

    /* ========== ESTILOS DE ESTADÍSTICAS Y FILTROS ========== */
    .catalog-stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .catalog-stat {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        text-align: center;
        transition: transform 0.2s;
        border: 1px solid #e5e7eb;
    }

    .catalog-stat:hover {
        transform: translateY(-2px);
    }

    .catalog-stat-number {
        display: block;
        font-size: 2rem;
        font-weight: 800;
        color: var(--primary-color, #0D47A1);
        line-height: 1;
        margin-bottom: 0.5rem;
    }

    .catalog-stat-label {
        font-size: 0.9rem;
        color: var(--text-secondary, #64748b);
        font-weight: 500;
    }

    .catalog-stat-label {
        font-size: 0.9rem;
        color: var(--text-secondary, #64748b);
        font-weight: 500;
    }

    .product-price-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: var(--primary-gradient, linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%));
        color: white;
        padding: 0.35rem 0.85rem;
        border-radius: 20px;
        font-weight: 700;
        font-size: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
        z-index: 10;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Sidebar y Layout */
    .catalog-layout {
        display: flex;
        gap: 2rem;
        position: relative;
    }

    .catalog-sidebar {
        width: 280px;
        flex-shrink: 0;
    }

    .catalog-search-container {
        margin-bottom: 1.5rem;
    }

    .catalog-search-input-wrapper {
        position: relative;
        display: flex;
    }

    .catalog-search-input {
        width: 100%;
        padding: 0.75rem 1rem;
        padding-right: 3rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.95rem;
        transition: all 0.2s;
    }

    .catalog-search-input:focus {
        border-color: var(--primary-color, #0D47A1);
        outline: none;
        box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    }

    .catalog-search-btn {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 3rem;
        background: none;
        border: none;
        color: var(--text-secondary, #64748b);
        cursor: pointer;
        transition: color 0.2s;
    }

    .catalog-search-btn:hover {
        color: var(--primary-color, #0D47A1);
    }

    .catalog-filters {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .catalog-filter-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .filter-group {
        margin-bottom: 1.5rem;
    }

    .catalog-filter-label {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-primary, #1e293b);
    }

    .catalog-filter-select {
        width: 100%;
        padding: 0.6rem;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        font-size: 0.9rem;
        color: var(--text-primary, #1e293b);
        background-color: #fff;
        cursor: pointer;
    }

    .catalog-filter-select:focus {
        border-color: var(--primary-color, #0D47A1);
        outline: none;
    }

    .catalog-filter-checkbox {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        font-size: 0.9rem;
        color: var(--text-secondary, #475569);
    }

    .catalog-filter-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .btn-clear-filters {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ef4444;
        color: #ef4444;
        border-radius: 6px;
        font-weight: 500;
        font-size: 0.9rem;
        margin-top: 1rem;
        transition: all 0.2s;
    }

    .btn-clear-filters:hover {
        background: #fef2f2;
    }

    .catalog-content {
        flex: 1;
        min-width: 0;
    }

    .mobile-filter-toggle {
        display: none;
        width: 100%;
        padding: 1rem;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* Responsive */
    @media (max-width: 1024px) {
        .catalog-layout {
            flex-direction: column;
        }

        .catalog-sidebar {
            width: 100%;
            display: none;
            /* Oculto por defecto en móvil */
        }

        .catalog-sidebar.active {
            display: block;
        }

        .mobile-filter-toggle {
            display: flex;
        }

        .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
        }
    }

    @media (max-width: 640px) {
        .filters-grid {
            grid-template-columns: 1fr;
        }

        .catalog-stats {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }

    /* ========== ZOOM DE IMAGEN OVERLAY ========== */
    .imagen-zoom-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .imagen-zoom-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .imagen-zoom-overlay img {
        max-width: 90%;
        max-height: 90vh;
        object-fit: contain;
        transform: scale(0.9);
        transition: transform 0.3s ease;
        border-radius: 4px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    .imagen-zoom-overlay.active img {
        transform: scale(1);
    }

    .imagen-zoom-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        z-index: 100001;
        transition: all 0.2s;
    }

    .imagen-zoom-close:hover {
        background: #ef4444;
        color: white;
        transform: rotate(90deg);
    }

    .imagen-zoom-hint {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        background: rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        backdrop-filter: blur(4px);
    }

    /* Empty State Moderno */
    .empty-state-modern {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4rem 2rem;
        background: white;
        border-radius: 12px;
        border: 2px dashed #e2e8f0;
        text-align: center;
        margin-top: 2rem;
    }

    .empty-state-icon-wrapper {
        width: 80px;
        height: 80px;
        background: #f1f5f9;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .empty-state-icon-wrapper i {
        font-size: 2.5rem;
        color: #94a3b8;
    }

    .empty-state-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .empty-state-desc {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
        max-width: 400px;
    }

    .btn-reset-filters {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: var(--primary-color);
        color: white;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.2s;
    }

    .btn-reset-filters:hover {
        transform: translateY(-2px);
    }

    /* =========================================
       ESTILOS MODAL SALES-DRIVEN
       ========================================= */
    .trust-badges {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }

    .trust-badge-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 500;
    }

    .trust-badge-item i {
        color: #22c55e;
        font-size: 0.9rem;
    }

    .price-total-highlight {
        font-size: 1.8rem !important;
        background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800 !important;
    }

    .bulk-price-hint {
        text-align: right;
        font-size: 0.75rem;
        color: #f59e0b;
        font-weight: 600;
        margin-top: 0.2rem;
        margin-bottom: -0.5rem;
    }

    .material-badge-modal {
        display: inline-block;
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.2rem 0.6rem;
        border-radius: 99px;
        margin-top: 0.2rem;
    }

    /* Urgencia de Stock */
    .stock-label.urgent {
        color: #ef4444 !important;
        animation: pulse-red 2s infinite;
    }

    .stock-label.warning {
        color: #f59e0b !important;
    }

    @keyframes pulse-red {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.7;
        }

        100% {
            opacity: 1;
        }
    }