.quote-page {
    padding-top: 30px;
    padding-bottom: 60px;
}

.quote-hero {
    background: linear-gradient(135deg, rgba(211,47,47,1) 0%, rgba(179,35,35,1) 50%, rgba(119,17,17,1) 100%);
    border-radius: 10px;
    padding: 28px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.quote-hero h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.quote-hero p {
    margin: 10px 0 0;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.quote-shell {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.quote-content {
    padding: 22px;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.q-col-12 { grid-column: span 12; }
.q-col-6 { grid-column: span 6; }
.q-col-4 { grid-column: span 4; }
.q-col-8 { grid-column: span 8; }

@media (max-width: 900px) {
    .q-col-6, .q-col-4, .q-col-8 { grid-column: span 12; }
    .quote-content { padding: 18px; }
}

.q-field .q-hint {
    font-size: 0.82rem;
    color: #777;
    margin-top: 6px;
    line-height: 1.45;
}

.q-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #444;
    cursor: pointer;
}
.q-checkbox input { accent-color: var(--primary-color, #D32F2F); width: 17px; height: 17px; }

/* Buscador dinámico de productos */
.q-suggest {
    display: none;
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    max-height: 280px;
    overflow-y: auto;
}
.q-suggest.is-open { display: block; }

.q-suggest__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}
.q-suggest__item:last-child { border-bottom: none; }
.q-suggest__item:hover,
.q-suggest__item.is-active {
    background: #fbeaea;
}

.q-suggest__thumb {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
    overflow: hidden;
}
.q-suggest__thumb img { width: 100%; height: 100%; object-fit: contain; }

.q-suggest__info {
    flex: 1;
    min-width: 0;
}
.q-suggest__name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.q-suggest__meta {
    font-size: 0.76rem;
    color: #888;
}
.q-suggest__price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary-color, #D32F2F);
    white-space: nowrap;
}

.q-suggest__empty {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.q-control {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.q-control:focus {
    border-color: rgba(211,47,47,0.7);
    box-shadow: 0 0 0 3px rgba(211,47,47,0.15);
}

.q-textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.q-file {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.q-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.q-file__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    color: #333;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease;
}

.q-file__btn:hover {
    background: #f2f2f2;
    border-color: #dedede;
}

.q-file__btn:active {
    transform: translateY(1px);
}

.q-file__name {
    color: #666;
    font-size: 0.88rem;
}

.q-errors {
    display: none;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #b00020;
    line-height: 1.4;
}

.q-field.is-invalid .q-control {
    border-color: #b00020;
    box-shadow: 0 0 0 3px rgba(176,0,32,0.10);
}

.q-field.is-invalid .q-errors {
    display: block;
}

.q-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 16px;
    border: 1px solid transparent;
}

.q-alert-success {
    background: #eaf7ee;
    border-color: #bfe7c9;
    color: #1f6d33;
}

.q-alert-error {
    background: #fdecee;
    border-color: #f6b9c0;
    color: #8a1322;
}

.q-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.q-btn {
    appearance: none;
    border: none;
    border-radius: 8px;
    height: 46px;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.05s ease, background 0.2s ease;
}

.q-btn-primary {
    background: #D32F2F;
    color: #fff;
}

.q-btn-primary:hover {
    background: #b71c1c;
}

.q-btn-primary:active {
    transform: translateY(1px);
}

.q-btn-secondary {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    color: #333;
}

.q-btn-secondary:hover {
    background: #efefef;
}

.q-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    margin-top: 10px;
}

.q-preview img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #eee;
}

.q-preview .q-preview-meta {
    display: grid;
    gap: 4px;
}

.q-preview .q-preview-name {
    font-weight: 800;
    color: #333;
    font-size: 0.92rem;
}

.q-preview .q-preview-sub {
    color: #666;
    font-size: 0.82rem;
}

.q-preview-change {
    display: none;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.q-preview-change:hover {
    border-color: var(--primary-color, #D32F2F);
    color: var(--primary-color, #D32F2F);
}
