/* ==========================================================
   Cotizaciones VB — misma paleta que Reservas VB (negro · rojo · oro)
   ========================================================== */
:root {
	--vbq-black: #111;
	--vbq-red: #dd0000;
	--vbq-red-dark: #b30000;
	--vbq-gold: #ffce00;
	--vbq-gold-soft: #fff4c2;
	--vbq-muted: #6b6b70;
	--vbq-line: #e7e7ea;
	--vbq-off: #f4f4f6;
}

.vbq-ico { vertical-align: -3px; margin-right: 2px; }

/* Botones */
.vbq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; border-radius: 12px; border: 0; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .1s; }
.vbq-btn:active { transform: translateY(1px); }
.vbq-btn-red { background: var(--vbq-red); color: #fff !important; }
.vbq-btn-red:hover { background: var(--vbq-black); }
.vbq-btn-dark { background: var(--vbq-black); color: #fff !important; }
.vbq-btn-dark:hover { background: var(--vbq-red); }
.vbq-btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* Botón "Añadir a cotización" en la ficha */
.vbq-quote-only form.cart .single_add_to_cart_button { display: none !important; }
button.vbq-add { background: var(--vbq-black) !important; color: #fff !important; border-radius: 10px !important; border: 0 !important; font-weight: 700 !important; display: inline-flex !important; align-items: center; gap: 6px; transition: background .15s; margin-left: 6px; }
button.vbq-add:hover { background: var(--vbq-red) !important; }
.vbq-quote-only button.vbq-add { margin-left: 0; }
button.vbq-add.is-loading { opacity: .6; pointer-events: none; }
button.vbq-add.is-added { background: var(--vbq-red) !important; }
.vbq-add-loop { margin-top: 6px !important; }
.vbq-ref { display: block; font-size: 11px; color: var(--vbq-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.vbq-price-tbd { font-weight: 700; color: var(--vbq-black); }
.vbq-form { display: flex; align-items: center; gap: 8px; margin: 12px 0; }

/* Tarjeta principal */
.vbq-page { max-width: 860px; margin: 0 auto; }
.vbq-card { background: #fff; border: 1px solid var(--vbq-line); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 32px -14px rgba(0,0,0,.18); margin: 16px 0; }
.vbq-flag { display: flex; flex-direction: column; height: 8px; }
.vbq-flag span { flex: 1; }
.vbq-flag span:nth-child(1) { background: var(--vbq-black); }
.vbq-flag span:nth-child(2) { background: var(--vbq-red); }
.vbq-flag span:nth-child(3) { background: var(--vbq-gold); }
.vbq-card-head { padding: 20px 24px 6px; }
.vbq-card-head h2 { margin: 0 0 4px; font-size: 24px; }
.vbq-card-head p { margin: 0; color: var(--vbq-muted); }

/* Lista */
.vbq-list { padding: 8px 24px; transition: opacity .15s; }
.vbq-list.is-busy { opacity: .5; pointer-events: none; }
.vbq-items { list-style: none; margin: 0; padding: 0; }
.vbq-item { display: grid; grid-template-columns: 64px 1fr auto auto 28px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--vbq-line); margin: 0; transition: opacity .2s; }
.vbq-item.is-removing { opacity: .3; }
.vbq-item-img img, .vbq-thumb { width: 64px !important; height: 64px !important; object-fit: cover; border-radius: 10px; display: block; }
.vbq-item-name { font-weight: 700; color: var(--vbq-black); text-decoration: none; display: block; }
.vbq-item-meta { display: block; font-size: 12px; color: var(--vbq-muted); }
.vbq-qty { display: inline-flex; align-items: center; background: var(--vbq-off); border-radius: 999px; padding: 3px; }
.vbq-qty span { min-width: 28px; text-align: center; font-weight: 800; }
.vbq-qty-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--vbq-black); color: #fff; font-size: 16px; line-height: 1; padding: 0; cursor: pointer; }
.vbq-qty-btn:hover { background: var(--vbq-red); }
.vbq-item-price { text-align: right; font-weight: 700; min-width: 90px; }
.vbq-item-price small { display: block; font-weight: 400; font-size: 11px; color: var(--vbq-muted); }
.vbq-tbd { font-size: 12px; background: var(--vbq-gold-soft); padding: 3px 8px; border-radius: 999px; }
.vbq-remove { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--vbq-line); background: #fff; color: var(--vbq-muted); font-size: 18px; line-height: 1; padding: 0; cursor: pointer; }
.vbq-remove:hover { border-color: var(--vbq-red); color: var(--vbq-red); }
.vbq-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.vbq-total span { text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.vbq-total b { font-size: 22px; }
.vbq-note { font-size: 12px; color: var(--vbq-muted); margin: 4px 0 8px; }
.vbq-empty { text-align: center; padding: 30px 10px; color: var(--vbq-muted); }
.vbq-empty .vbq-ico { width: 40px; height: 40px; color: var(--vbq-gold); }

/* Formulario */
.vbq-form-send { margin: 8px 24px 24px; padding: 18px; background: #fafafa; border: 1px solid var(--vbq-line); border-radius: 14px; }
.vbq-form-send h3 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
.vbq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.vbq-fields label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; font-weight: 600; }
.vbq-fields input, .vbq-fields textarea { width: 100%; box-sizing: border-box; border: 1px solid #d5d5da; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400; background: #fff; }
.vbq-fields input:focus, .vbq-fields textarea:focus { outline: 2px solid var(--vbq-gold); border-color: var(--vbq-black); }
.vbq-full { grid-column: 1 / -1; }
.vbq-hp { position: absolute !important; left: -9999px !important; }

/* Avisos de integración (reserva / cotización) */
.vbq-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; margin: 12px 0; font-size: 14px; }
.vbq-banner .vbq-btn { padding: 10px 14px; font-size: 14px; }
.vbq-banner-booking { background: #fff; border: 2px solid var(--vbq-red); }
.vbq-banner-quote { background: var(--vbq-gold-soft); border: 2px solid var(--vbq-gold); }

/* Éxito / documento */
.vbq-success { text-align: center; padding-bottom: 24px; }
.vbq-success h2 { margin: 6px 0; }
.vbq-success p { padding: 0 24px; }
.vbq-success-ico { width: 64px; height: 64px; margin: 24px auto 6px; border-radius: 50%; background: var(--vbq-red); color: #fff; font-size: 32px; display: grid; place-items: center; }
.vbq-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.vbq-doc { padding: 0 0 20px; }
.vbq-doc > *:not(.vbq-flag) { margin-left: 24px; margin-right: 24px; }
.vbq-doc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--vbq-black); margin-bottom: 14px; }
.vbq-doc-meta { text-align: right; }
.vbq-doc-meta h2 { margin: 0; font-size: 20px; }
.vbq-logo { max-height: 60px; width: auto; }
.vbq-site { font-size: 20px; }

/* Barra flotante */
.vbq-dock { position: fixed; right: 16px; bottom: 16px; z-index: 9990; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.vbq-dock-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px; text-decoration: none !important; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); font-size: 14px; transition: transform .15s; }
.vbq-dock-item:hover { transform: translateY(-2px); }
.vbq-dock-item.is-hidden { display: none; }
.vbq-dock-item.is-booking { background: var(--vbq-red); color: #fff; }
.vbq-dock-item.is-quote { background: var(--vbq-black); color: #fff; }
.vbq-dock-label { font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.vbq-dock-label b { background: var(--vbq-gold); color: var(--vbq-black); border-radius: 999px; min-width: 22px; padding: 1px 6px; text-align: center; font-size: 12px; }
.vbq-dock-cta { background: #fff; color: var(--vbq-black); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; }
.vbq-dock-item.is-booking .vbq-dock-cta { color: var(--vbq-red); }

/* Notificación */
.vbq-toast { position: fixed; left: 50%; top: 20px; transform: translate(-50%, -160%); z-index: 9999; width: min(440px, calc(100% - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -10px rgba(0,0,0,.35); border-top: 5px solid var(--vbq-gold); padding: 14px 16px; transition: transform .25s ease; }
.vbq-toast.is-open { transform: translate(-50%, 0); }
.vbq-toast.is-error { border-top-color: var(--vbq-red); }
.vbq-toast-body b { display: block; font-size: 15px; }
.vbq-toast-body span { font-size: 13px; color: var(--vbq-muted); }
.vbq-toast-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.vbq-toast-actions .vbq-btn { padding: 9px 14px; font-size: 14px; }
.vbq-toast-close { background: none; border: 0; font-weight: 700; color: var(--vbq-muted); cursor: pointer; }

@media (max-width: 640px) {
	.vbq-card-head, .vbq-list { padding-left: 16px; padding-right: 16px; }
	.vbq-form-send { margin: 8px 12px 16px; padding: 14px; }
	.vbq-fields { grid-template-columns: 1fr; }
	.vbq-item { grid-template-columns: 52px 1fr auto; grid-template-areas: "img info rm" "img qty price"; row-gap: 8px; }
	.vbq-item-img { grid-area: img; }
	.vbq-item-img img, .vbq-thumb { width: 52px !important; height: 52px !important; }
	.vbq-item-info { grid-area: info; }
	.vbq-qty { grid-area: qty; justify-self: start; }
	.vbq-item-price { grid-area: price; }
	.vbq-remove { grid-area: rm; justify-self: end; }
	.vbq-item-price { min-width: 0; }
	.vbq-dock { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
	body:has(.vbq-dock-item:not(.is-hidden)) { padding-bottom: 130px; }
	.vbq-dock-item { justify-content: space-between; }
	.vbq-doc > *:not(.vbq-flag) { margin-left: 16px; margin-right: 16px; }
}

@media print {
	.vbq-dock, .vbq-toast, .vbq-noprint, header, footer, .site-header, .site-footer { display: none !important; }
	.vbq-card { box-shadow: none; border: 0; }
}
