#altec-cotizacion-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#altec-cotizacion-panel.abierto {
    right: 0;
}

#altec-cotizacion-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

#altec-cotizacion-overlay.abierto {
    opacity: 1;
    visibility: visible;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #F5C518 0%, #e6b800 100%);
}

.panel-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h3 svg {
    width: 22px;
    height: 22px;
}

.panel-close {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #1a1a1a;
}

.panel-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.panel-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.panel-items::-webkit-scrollbar {
    width: 6px;
}

.panel-items::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.panel-items::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.panel-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.panel-item:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.panel-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.panel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-item-info {
    flex: 1;
    min-width: 0;
}

.panel-item-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.panel-item-sku {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.panel-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.panel-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid #e0e0e0;
}

.panel-item-quantity button {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 700;
    color: #666;
}

.panel-item-quantity button:hover {
    background: #F5C518;
    color: #1a1a1a;
}

.panel-item-quantity span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.panel-item-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #F5C518;
}

.panel-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.panel-item-remove:hover {
    color: #e74c3c;
}

.panel-empty {
    text-align: center;
    padding: 48px 24px;
    color: #999;
}

.panel-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.panel-empty p {
    font-size: 1rem;
    margin: 0;
    color: #666;
}

.panel-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #fff;
}

.panel-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.panel-subtotal-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.panel-subtotal-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
}

.panel-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.panel-btn-primary {
    background: #F5C518;
    color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(245, 197, 24, 0.3);
}

.panel-btn-primary:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
    color: #1a1a1a;
    text-decoration: none;
}

.panel-btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.panel-btn-secondary:hover {
    background: #eee;
    color: #333;
    text-decoration: none;
}

.altec-badge {
    position: fixed;
    top: 120px;
    right: 0;
    width: 56px;
    height: 56px;
    background: #F5C518;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    color: #1a1a1a;
}

.altec-badge:hover {
    background: #e6b800;
    transform: translateX(-4px);
    box-shadow: -8px 4px 24px rgba(0, 0, 0, 0.2);
}

.altec-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    #altec-cotizacion-panel {
        width: 100%;
        right: -100%;
    }
    
    .altec-badge {
        top: auto;
        bottom: 24px;
        right: 16px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .altec-badge:hover {
        transform: scale(1.1);
    }
}
