.cotizacion-quote-page {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.quote-header {
    background: linear-gradient(135deg, #580003 0%, #881014 100%);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color:white;
}

.quote-icon {
    opacity: 0.9;
}

.header-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
    color:white;
}

.summary-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
}

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h2 {
    margin: 0 0 12px 0;
    color: #334155;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 32px 0;
    color: #64748b;
    font-size: 1.1rem;
}

.quote-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 968px) {
    .quote-layout {
        grid-template-columns: 1fr;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.quote-items-grid {
    display: grid;
    gap: 20px;
}

.quote-item-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.quote-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.item-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.remove-item-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    padding:0;
}

.quote-item-card:hover .remove-item-btn {
    opacity: 1;
}

.remove-item-btn:hover {
    background: #871219;
    transform: scale(1.1);
}

.item-content {
    padding: 20px;
}

.item-header {
    margin-bottom: 16px;
}

.item-title {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.item-sku {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.item-specs {
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.spec-item svg {
    color: #64748b;
    flex-shrink: 0;
}

.spec-label {
    color: #64748b;
    min-width: 80px;
}

.spec-value {
    color: #1e293b;
    font-weight: 500;
}

.item-quantity-control {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.quantity-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background: #f9fafb;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    padding:10px;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quote-quantity {
    border: none;
    width: 60px;
    height: 36px;
    text-align: center;
    font-weight: 500;
    background: white;
}

.quote-quantity:focus {
    outline: none;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 20px;
}

.form-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.form-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.25rem;
}

.form-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.quote-form {
    padding: 0 24px 24px 24px;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.quote-actions{
    text-align:center;
}

button.add-to-quote-list, button.whatsapp-quote-btn{
    width:100%;
    margin-bottom:10px;
    border-radius:6px;
}

.view-quote-list{
    font-weight:600;
    text-align:center;
}

.btn-primary, button.add-to-quote-list, button.whatsapp-quote-btn{
    background: #881014;
    color: white;
    font-weight:600;
    text-transform:Capitalize;
    font-size:1em;
    cursor: pointer;
}

.btn-primary:hover, button.add-to-quote-list:hover, button.whatsapp-quote-btn:hover {
    background: black;
    transform: translateY(-1px);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-ghost:hover {
    background: #f8fafc;
    color: #374151;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    position: relative;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: block;
}

.btn-submit.loading span {
    opacity: 0;
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.quantity-selector{
    display:none;
}



/* Notificaciones personalizadas */
.custom-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    z-index: 10000;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-notification.show {
    opacity: 1;
}

.custom-notification.success {
    border-left: 5px solid #4CAF50;
}

.custom-notification.error {
    border-left: 5px solid #f44336;
}

.custom-notification .icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.custom-notification.success .icon {
    color: #4CAF50;
}

.custom-notification.error .icon {
    color: #f44336;
}

.custom-notification .title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.custom-notification .message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.custom-notification .close-btn {
    background: #871219;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
     border-radius:6px;
}

.custom-notification .close-btn:hover {
    background: black;
    color:white;
   
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
}

.whatsapp-icon{
    display:flex;
    align-content:center;
}