.builder-container {
    display: grid;
    grid-template-columns: 250px 1fr 350px;
    gap: 20px;
    padding: 20px;
    }

    .preview-panel {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 600px;
    max-height: calc(100vh - 100px);
    background: white;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    }

    /* Estilos para la navegación y contenedores */
    .accessories-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
    }

    .section-navigation {
    padding: 20px 20px 0 20px;
    }

    .nav-tabs .nav-link {
    font-size: 1.1rem;
    padding: 12px 24px;
    }

    .nav-tabs .nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #007bff;
    }

    /* Estilos para los productos */
    .product-card {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s;
    background: white;
    }

    .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }


    .product-name {
    font-size: 1rem;
    margin-bottom: 10px;
    height: 2.4em;
    overflow: hidden;
    }

    .product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    }

    .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    }

    /* Estilos para las categorías */
    .category-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    position: relative;
    }

    .category-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dot-color, #ffc107);
    margin-right: 10px;
    transition: background-color 0.2s;
    }

    .category-item:hover {
    background: #f8f9fa;
    border-color: #0056b3;
    }

    .category-item.selected {
    background: #e9ecef;
    border-color: #28a745;
    }

    /* Estilos para badges */
    .badge {
    padding: 5px 10px;
    border-radius: 4px;
    }

    .badge-success {
    background-color: #28a745;
    color: white;
    }

    .badge-danger {
    background-color: #dc3545;
    color: white;
    }

    /* Resto de estilos existentes para el constructor de PC */

    .categories-panel {
    border-right: 1px solid #dee2e6;
    padding: 15px;
    }
    .category-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    }
    .category-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    }
    .category-item.selected::before {
    background: #28a745;
    }
    .category-item:hover {
    background: #f8f9fa;
    border-color: #0056b3;
    }
    .category-item.active {
    background: #e9ecef;
    border-color: #007bff;
    }
    .products-panel {
    padding: 20px;
    background: #fff;
    }
    .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    }
    .product-card {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    }
    .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .product-card.selected {
    border-color: #007bff;
    background: #f8f9fa;
    }
    .product-image {
    width: 50%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    }
    .preview-panel {
    border-left: 1px solid #dee2e6;
    padding: 20px;
    background: #fff;
    }
    .product-carousel {
    position: relative;
    margin-bottom: 20px;
    }
    .thumbnail-container {
    position: relative;
    padding: 0 25px;
    }
    .main-image-container {
    position: relative;
    margin-bottom: 15px;
    }
    .main-image {
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    }
    .main-prev, .main-next {
    background: rgba(255,255,255,0.9);
    }
    .thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 0 5px;
    }
    .mini-preview {
    flex: 0 0 75px;
    height: 75px;
    border: 1px solid #dee2e6;
    padding: 5px;
    cursor: pointer;
    }
    .mini-preview.active {
    border-color: #007bff;
    }
    .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #dee2e6;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    }
    .carousel-button:hover {
    background: #fff;
    border-color: #0056b3;
    }
    .carousel-button.prev {
    left: 0;
    }
    .carousel-button.next {
    right: 0;
    }
    .info-panel {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    }
    .total-section {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
    padding-bottom: 15px;
    }
    .selected-components {
    font-size: 0.9rem;
    }
    .mini-preview img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    }
    .selected-components {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    }
    .selected-item {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    }
    .selected-item:last-child {
    border-bottom: none;
    }
    .total-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    }
    .compatibility-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 300px;
    }
    .ram-quantity {
    padding: 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 60px;
    margin-left: 8px;
    }

    .ram-quantity:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    }

    .alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    }


    @keyframes slideIn {
    from {
    transform: translateX(100%);
    opacity: 0;
    }
    to {
    transform: translateX(0);
    opacity: 1;
    }
    }

    @keyframes slideOut {
    from {
    transform: translateX(0);
    opacity: 1;
    }
    to {
    transform: translateX(100%);
    opacity: 0;
    }
    }

    .category-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    position: relative;
    }

    .category-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dot-color, #ffc107);
    margin-right: 10px;
    transition: background-color 0.2s;
    }

    .category-item:hover {
    background: #f8f9fa;
    border-color: #0056b3;
    }

    .category-item.selected {
    background: #e9ecef;
    border-color: #28a745;
    }

    .alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    }

    /* ... (resto de los estilos que ya tenías) ... */

    .accessories-container {
    display: grid;
    grid-template-columns: 250px 1fr 350px;
    gap: 20px;
    padding: 20px;
    min-height: 800px;
    }

    #accessories .preview-panel {
    background: #fff;
    padding: 20px;
    border-left: 1px solid #dee2e6;
    }

    #accessories .category-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    }

    #accessories .category-item:hover {
    background: #f8f9fa;
    border-color: #0056b3;
    }

    #accessories .category-item.active {
    background: #e9ecef;
    border-color: #007bff;
    }

    #accessories .product-card {
    transition: transform 0.2s;
    }

    #accessories .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    #accessories .selected-accessories {
    margin-top: 20px;
    }

    .nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    }

    .nav-tabs .nav-link.active {
    color: #007bff;
    font-weight: 600;
    }