/*
 * Cotizador v2 (propuesta look/05 "enlace de compra marcas blancas").
 * Requiere portal-emisiones.css (tokens --pe-*). Todo va dentro de .cq para no afectar el resto
 * del panel (Metronic) ni el cotizador actual.
 */
.cq {
  --cq-success: #15803d;
  --cq-success-bg: #dcfce7;
  --cq-hover: #f1f5f9;
  --cq-ring: rgba(51, 65, 85, 0.14);
  color: var(--pe-heading);
  font-family: var(--pe-font);
  font-size: 14px;
  line-height: 1.5;
}
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq button, .cq input, .cq select, .cq textarea { font: inherit; }
.cq svg.cq-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cq [v-cloak] { display: none; }

/* Contenedor principal */
.cq-shell { background: var(--pe-surface); border: 1px solid var(--pe-border-soft); border-radius: 18px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07); overflow: hidden; }

.cq-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-bottom: 1px solid var(--pe-border-soft); }
.cq-intro h2 { margin: 0 0 6px; color: var(--pe-heading); font-size: 22px; font-weight: 500; line-height: 1.2; }
.cq-intro p { margin: 0; color: var(--pe-muted); font-size: 14px; }
.cq-benefits { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; color: #475569; font-size: 13px; }
.cq-benefit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cq-benefit .cq-icon { color: var(--cq-success); }

/* Progreso general (5 pasos) */
.cq-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 16px 24px; background: var(--pe-field); border-bottom: 1px solid var(--pe-border-soft); }
.cq-progress-item { min-width: 0; min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-radius: 12px; color: var(--pe-muted); background: transparent; text-align: left; cursor: pointer; }
.cq-progress-item:hover:not(:disabled) { background: var(--cq-hover); color: var(--pe-text); }
.cq-progress-item:disabled { cursor: not-allowed; opacity: .75; }
.cq-progress-item:focus-visible { outline: 3px solid var(--cq-ring); outline-offset: 2px; }
.cq-progress-item.is-active { color: var(--pe-text); background: var(--cq-hover); }
.cq-progress-item.is-complete { color: var(--pe-text); }
.cq-progress-number { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--pe-muted); background: var(--pe-border-soft); font-size: 14px; font-weight: 500; }
.cq-progress-item.is-active .cq-progress-number { color: #fff; background: var(--pe-primary); box-shadow: 0 7px 16px rgba(51, 65, 85, 0.2); }
.cq-progress-item.is-complete .cq-progress-number { color: var(--cq-success); background: var(--cq-success-bg); }
.cq-progress-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cq-progress-copy strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.cq-progress-copy span { color: var(--pe-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cq-content { padding: 28px; }

/* Encabezado de cada paso */
.cq-heading { margin-bottom: 22px; padding-left: 14px; border-left: 4px solid var(--pe-primary); }
.cq-eyebrow { display: block; margin-bottom: 4px; color: #475569; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.cq-heading h3 { margin: 0 0 5px; color: var(--pe-heading); font-size: 21px; font-weight: 500; }
.cq-heading p { margin: 0; color: var(--pe-muted); font-size: 14px; }

/* Formularios */
.cq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cq-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cq-field.is-wide { grid-column: 1 / -1; }
.cq-field > label, .cq-label { color: var(--pe-heading); font-size: 13px; font-weight: 500; margin: 0; }
.cq-field > label small, .cq-label small { color: var(--pe-muted); font-weight: 400; }
.cq-input,
.cq .cq-field input[type="text"], .cq .cq-field input[type="email"], .cq .cq-field input[type="number"], .cq .cq-field input:not([type]),
.cq .cq-field select {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--pe-border); border-radius: 11px;
  color: var(--pe-text); background: var(--pe-field); font-size: 15px; box-shadow: none;
}
.cq .cq-field input:focus, .cq .cq-field select:focus, .cq-input:focus { outline: 3px solid var(--cq-ring); border-color: #64748b; background: var(--pe-surface); }
.cq .cq-field input:disabled { color: var(--pe-muted); background: #eef2f6; }
.cq .cq-field #kt_daterangepicker_1 { cursor: pointer; }
.cq .cq-field input.is-invalid, .cq .cq-field select.is-invalid { border-color: var(--pe-error); }
.cq-helper { color: var(--pe-muted); font-size: 12px; }
.cq-error { color: var(--pe-error); font-size: 12px; }
.cq-inline { display: flex; gap: 8px; }
.cq-inline > select { flex: 0 0 120px; max-width: 120px; }

/* select2 dentro del cotizador con el mismo aspecto de los campos */
.cq .select2-container { width: 100% !important; }
.cq .select2-container .select2-selection--single { min-height: 50px; display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--pe-border); border-radius: 11px; background: var(--pe-field); }
.cq .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--pe-text); font-size: 15px; }
.cq .select2-container--focus .select2-selection--single, .cq .select2-container--open .select2-selection--single { border-color: #64748b; background: var(--pe-surface); box-shadow: 0 0 0 3px var(--cq-ring); }
.cq .select2-selection.is-invalid { border-color: var(--pe-error) !important; }

/* Contador de viajeros */
.cq-counter { display: grid; grid-template-columns: 48px 1fr 48px; border: 1px solid var(--pe-border); border-radius: 11px; overflow: hidden; background: var(--pe-field); }
.cq-counter button { min-height: 48px; border: 0; color: var(--pe-text); background: var(--cq-hover); font-size: 20px; cursor: pointer; }
.cq-counter button:disabled { color: #cbd5e1; cursor: not-allowed; }
.cq .cq-counter input { min-height: 48px; border: 0; border-radius: 0; text-align: center; font-weight: 500; color: var(--pe-heading); background: transparent; -moz-appearance: textfield; }
.cq .cq-counter input::-webkit-outer-spin-button, .cq .cq-counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cq-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

/* Acciones */
.cq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--pe-border-soft); }
.cq-actions__status { color: var(--pe-muted); font-size: 12px; }
.cq-primary, .cq-secondary, .cq-ghost { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border-radius: 11px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.cq-primary { border: 1px solid var(--pe-primary); color: #fff; background: var(--pe-primary); box-shadow: 0 8px 18px rgba(51, 65, 85, 0.18); }
.cq-primary:hover { color: #fff; border-color: var(--pe-primary-hover); background: var(--pe-primary-hover); }
.cq-primary:disabled { opacity: .7; cursor: progress; box-shadow: none; }
.cq-secondary { border: 1px solid var(--pe-border); color: #475569; background: var(--pe-surface); }
.cq-secondary:hover { color: var(--pe-heading); background: var(--pe-field); }
.cq-ghost { min-height: 40px; padding: 0 14px; border: 1px solid var(--pe-border-soft); color: var(--pe-text); background: var(--pe-field); font-size: 13px; }
.cq-ghost:hover { color: var(--pe-heading); background: var(--cq-hover); }
.cq-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: cq-spin .7s linear infinite; }
@keyframes cq-spin { to { transform: rotate(360deg); } }

/* Paso 2: categorías */
.cq-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cq-category { display: flex; min-height: 250px; flex-direction: column; border: 1px solid var(--pe-border-soft); border-radius: 15px; background: var(--pe-surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cq-category:hover { border-color: #94a3b8; box-shadow: 0 0 0 3px var(--cq-ring); }
.cq-category-visual { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; color: #475569; background: linear-gradient(145deg, var(--pe-border-soft), var(--pe-field)); }
.cq-category-visual img { width: 100%; height: 100%; object-fit: cover; }
.cq-category-count { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; color: var(--pe-text); background: #ffffffe6; font-size: 11px; font-weight: 500; }
.cq-category-copy { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.cq-category-copy strong { color: var(--pe-heading); font-size: 15px; font-weight: 500; }
.cq-category-copy p { margin: 6px 0 14px; color: var(--pe-muted); font-size: 12px; line-height: 1.45; }
.cq-choice { width: 100%; min-height: 42px; margin-top: auto; border: 1px solid var(--pe-border); border-radius: 10px; color: var(--pe-text); background: var(--pe-field); font-size: 13px; font-weight: 500; cursor: pointer; }
.cq-choice:hover { border-color: var(--pe-primary); color: #fff; background: var(--pe-primary); }

.cq-empty { padding: 28px; border: 1px dashed var(--pe-border); border-radius: 15px; color: var(--pe-muted); background: var(--pe-field); text-align: center; }
.cq-empty strong { display: block; margin-bottom: 4px; color: var(--pe-heading); font-weight: 500; }
.cq-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px; color: var(--pe-muted); }
.cq-loading .cq-spinner { border-color: var(--pe-border-soft); border-top-color: var(--pe-primary); }

/* Resumen del viaje (chips) */
.cq-trip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.cq-trip-item { min-width: 0; padding: 12px 14px; border: 1px solid var(--pe-border-soft); border-radius: 12px; background: var(--pe-field); }
.cq-trip-item span { display: block; color: var(--pe-muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cq-trip-item strong { display: block; margin-top: 3px; overflow: hidden; color: var(--pe-heading); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

/* Paso 3: planes */
.cq-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cq-toolbar__count { color: var(--pe-muted); font-size: 13px; }
.cq-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cq-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cq-plan { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--pe-border-soft); border-radius: 15px; background: var(--pe-surface); transition: border-color .15s, box-shadow .15s; }
.cq-plan:hover, .cq-plan.is-selected { border-color: #94a3b8; box-shadow: 0 0 0 3px var(--cq-ring); }
.cq-plan-badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.cq-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: var(--pe-text); background: var(--cq-hover); font-size: 11px; font-weight: 500; }
.cq-plan h4 { margin: 14px 0 5px; color: var(--pe-heading); font-size: 17px; font-weight: 500; }
.cq-price { color: var(--pe-heading); font-size: 25px; font-weight: 500; line-height: 1.2; }
.cq-price small { color: var(--pe-muted); font-size: 12px; font-weight: 400; }
.cq-price-local { margin-top: 2px; color: var(--pe-muted); font-size: 12px; }
.cq-plan ul { display: grid; gap: 10px; margin: 16px 0 18px; padding: 0; list-style: none; color: #475569; font-size: 12px; }
.cq-plan li { display: flex; align-items: flex-start; gap: 7px; }
.cq-plan li .cq-icon { width: 15px; height: 15px; margin-top: 1px; color: var(--cq-success); }
.cq-plan li b { color: var(--pe-heading); font-weight: 500; }
.cq-plan-actions { display: grid; gap: 10px; margin-top: auto; }
.cq-plan-actions .cq-primary { width: 100%; }
.cq-compare { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--pe-text); font-size: 13px; cursor: pointer; user-select: none; }
.cq-compare input { width: 17px; height: 17px; accent-color: var(--pe-primary); cursor: pointer; }

.cq-coverage { margin-top: 22px; border: 1px solid var(--pe-border-soft); border-radius: 15px; overflow: hidden; }
.cq-coverage__toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 0; color: var(--pe-heading); background: var(--pe-field); font-weight: 500; cursor: pointer; }
.cq-coverage__toggle .cq-icon { transition: transform .2s; }
.cq-coverage__toggle.is-open .cq-icon { transform: rotate(180deg); }
.cq-coverage__body { overflow-x: auto; }
.cq-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.cq-table th, .cq-table td { padding: 11px 14px; border-top: 1px solid var(--pe-border-soft); text-align: center; vertical-align: middle; }
.cq-table th { color: var(--pe-heading); background: var(--pe-surface); font-weight: 500; }
.cq-table th:first-child, .cq-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 200px; text-align: left; background: var(--pe-surface); }
.cq-table td:first-child { color: #475569; }
.cq-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.cq-table .is-missing { color: #94a3b8; }

/* Pasos 4 y 5: layout con resumen */
.cq-summary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: 20px; align-items: start; }
.cq-section { padding: 20px; border: 1px solid var(--pe-border-soft); border-radius: 15px; background: var(--pe-surface); }
.cq-section + .cq-section { margin-top: 16px; }
.cq-section h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 17px; color: var(--pe-heading); font-size: 16px; font-weight: 500; }
.cq-section h4 small { color: var(--pe-muted); font-size: 12px; font-weight: 400; }

.cq-substeps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cq-substep { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--pe-border-soft); border-radius: 999px; color: var(--pe-muted); background: var(--pe-surface); font-size: 12px; font-weight: 500; cursor: pointer; }
.cq-substep:disabled { cursor: not-allowed; opacity: .6; }
.cq-substep span { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--pe-border-soft); font-size: 11px; }
.cq-substep.is-active { border-color: var(--pe-primary); color: var(--pe-heading); }
.cq-substep.is-active span { color: #fff; background: var(--pe-primary); }
.cq-substep.is-complete span { color: var(--cq-success); background: var(--cq-success-bg); }

.cq-sync { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; color: var(--pe-muted); font-size: 12px; }
.cq-sync label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cq-sync input { accent-color: var(--pe-primary); }

.cq-order { position: sticky; top: 90px; overflow: hidden; border-radius: 15px; color: #fff; background: var(--pe-primary); }
.cq-order-head { padding: 20px; }
.cq-order-label { color: #cbd5e1; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.cq-order-price { margin-top: 6px; font-size: 28px; font-weight: 500; line-height: 1.15; }
.cq-order-price small { font-size: 14px; color: #cbd5e1; font-weight: 400; }
.cq-order-local { margin-top: 2px; color: #cbd5e1; font-size: 12px; }
.cq-order-details { display: grid; gap: 11px; padding: 18px 20px; color: #e2e8f0; background: var(--pe-primary-hover); font-size: 12px; }
.cq-order-row { display: flex; justify-content: space-between; gap: 16px; }
.cq-order-row span { color: #cbd5e1; }
.cq-order-row strong { font-weight: 500; text-align: right; }
.cq-order-row.is-discount strong { color: #86efac; }
.cq-order-divider { height: 1px; background: #ffffff1f; }

/* Beneficios adicionales */
.cq-raider { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--pe-border-soft); border-radius: 12px; }
.cq-raider + .cq-raider { margin-top: 10px; }
.cq-raider input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--pe-primary); cursor: pointer; }
.cq-raider__copy { flex: 1; min-width: 0; }
.cq-raider__copy strong { display: block; color: var(--pe-heading); font-weight: 500; }
.cq-raider__copy span { display: block; color: var(--pe-muted); font-size: 12px; }
.cq-raider__value { flex: 0 0 auto; }

/* Notas (pago seguro, crédito, link) */
.cq-note { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--pe-border); border-radius: 11px; color: #475569; background: var(--pe-field); font-size: 13px; line-height: 1.45; }
.cq-note .cq-icon { width: 19px; height: 19px; margin-top: 1px; color: var(--cq-success); }
.cq-note strong { color: var(--pe-heading); font-weight: 500; }
.cq-note--error { border-color: #fecaca; color: var(--pe-error); background: #fef2f2; }
.cq-note--error .cq-icon { color: var(--pe-error); }
.cq-success-text { color: var(--cq-success); font-size: 12px; }

@media (max-width: 1100px) {
  .cq-summary-layout { grid-template-columns: 1fr; }
  .cq-order { position: static; }
  .cq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .cq-intro { align-items: flex-start; flex-direction: column; }
  .cq-benefits { justify-content: flex-start; }
  .cq-progress-copy { display: none; }
  .cq-progress-item { justify-content: center; padding: 7px; }
  .cq-grid, .cq-grid--3, .cq-grid--4 { grid-template-columns: 1fr; }
  .cq-trip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cq-intro, .cq-content { padding: 20px 16px; }
  .cq-intro h2 { font-size: 20px; }
  .cq-benefits { display: grid; gap: 7px; }
  .cq-progress { gap: 5px; padding: 10px; }
  .cq-progress-number { width: 32px; height: 32px; flex-basis: 32px; }
  .cq-trip { grid-template-columns: 1fr; }
  .cq-actions { align-items: stretch; flex-direction: column-reverse; }
  .cq-actions .cq-primary, .cq-actions .cq-secondary { width: 100%; }
  .cq-actions__status { text-align: center; }
  .cq-inline > select { flex-basis: 96px; max-width: 96px; }
}

/* Ajustes sobre el tema select2 de Metronic y el CSS compartido del cotizador actual */
.cq .select2-container .select2-selection--single {
  border: 1px solid var(--pe-border) !important;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 12px;
}
.cq .select2-container .select2-selection--single .select2-selection__rendered { font-weight: 400; }
.cq .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--pe-muted); }
.cq .select2-container .select2-selection__arrow { display: none; }
.cq .select2-container .select2-selection__clear { margin-right: 6px; }
.cq .cq-substeps.checkout-progress { display: flex; margin: 0 0 16px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.cq .cq-substep { white-space: nowrap; }
.cq .cq-primary { font-weight: 500; }

/* Encabezado de pagina de Metronic oculto (el cotizador trae su propio encabezado), como en el actual */
#kt_app_toolbar { display: none !important; }
#app { margin-top: 1rem; }

/* ---------- Popup "Compartir cotización" (propuesta look/07) ---------- */
.cq-share-dialog { max-width: 520px; }
.cq-share { overflow: hidden; border: 1px solid var(--pe-border-soft); border-radius: 18px; color: var(--pe-text); background: var(--pe-surface); box-shadow: 0 24px 60px rgba(15, 23, 42, .14); font-family: var(--pe-font); font-size: 15px; line-height: 1.5; }
.cq-share *, .cq-share *::before, .cq-share *::after { box-sizing: border-box; }
.cq-share svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.cq-share-header { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 24px 60px 20px 24px; border-bottom: 1px solid var(--pe-border-soft); }
.cq-share-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 11px; color: var(--pe-primary); background: #f1f5f9; }
.cq-share-icon svg { width: 20px; height: 20px; }
.cq-share h2 { margin: 0 0 4px; color: var(--pe-heading); font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.cq-share-subtitle { margin: 0; color: var(--pe-muted); font-size: 14px; }
.cq-share-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; color: var(--pe-muted); background: transparent; cursor: pointer; }
.cq-share-close:hover { color: var(--pe-heading); background: #f1f5f9; }
.cq-share-close svg { width: 20px; height: 20px; }
.cq-share-content { padding: 24px; }
.cq-share-summary { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 12px 14px; border: 1px solid var(--pe-border-soft); border-radius: 10px; color: var(--pe-text); background: var(--pe-field); font-size: 13px; }
.cq-share-summary svg { width: 17px; height: 17px; color: var(--pe-muted); }
.cq-share-summary strong { color: var(--pe-heading); font-weight: 500; }
.cq-share-label { display: block; margin: 0 0 8px; color: var(--pe-heading); font-size: 14px; font-weight: 500; }
.cq-share-label small { color: var(--pe-muted); font-weight: 400; }
.cq-share-input-wrap { position: relative; }
.cq-share-input-wrap > svg { position: absolute; top: 16px; left: 15px; width: 20px; height: 20px; color: var(--pe-muted); pointer-events: none; }
.cq-share-input { width: 100%; min-height: 52px; padding: 0 15px 0 46px; border: 1px solid var(--pe-border); border-radius: var(--pe-radius); color: var(--pe-heading); background: var(--pe-field); font: inherit; outline: none; }
.cq-share-input::placeholder { color: var(--pe-muted); opacity: .8; }
.cq-share-input:hover { border-color: var(--pe-muted); }
.cq-share-input:focus { border-color: var(--pe-primary); background: var(--pe-surface); box-shadow: 0 0 0 3px rgba(51, 65, 85, .14); }
.cq-share-input[aria-invalid="true"] { border-color: var(--pe-error); }
.cq-share-help, .cq-share-feedback { min-height: 20px; margin: 7px 0 16px; color: var(--pe-muted); font-size: 12px; }
.cq-share-feedback { margin-bottom: 0; }
.cq-share-feedback.is-error { color: var(--pe-error); }
.cq-share-feedback.is-success { color: #15803d; }
.cq-share-send, .cq-share-download { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: var(--pe-radius); font: inherit; font-weight: 500; cursor: pointer; }
.cq-share-send { min-height: 50px; margin-top: 14px; border: 0; color: #fff; background: var(--pe-primary); }
.cq-share-send:hover { background: var(--pe-primary-hover); }
.cq-share-send:active { background: var(--pe-primary-pressed); }
.cq-share-download { min-height: 48px; border: 1px solid var(--pe-border); color: var(--pe-text); background: transparent; }
.cq-share-download:hover { color: var(--pe-heading); background: var(--pe-field); border-color: var(--pe-muted); }
.cq-share-send:disabled, .cq-share-download:disabled { opacity: .7; cursor: progress; }
.cq-share-send svg, .cq-share-download svg { width: 18px; height: 18px; }
.cq-share button:focus-visible { outline: 3px solid rgba(71, 85, 105, .4); outline-offset: 3px; }
.cq-share-separator { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 20px 0; color: var(--pe-muted); font-size: 12px; }
.cq-share-separator::before, .cq-share-separator::after { content: ""; height: 1px; background: var(--pe-border-soft); }
.cq-share-security { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 18px 0 0; color: var(--pe-muted); font-size: 12px; text-align: center; }
.cq-share-security svg { width: 14px; height: 14px; }
.cq-share-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: #fff; border-radius: 50%; animation: cq-spin .7s linear infinite; }
.cq-share-spinner.is-dark { border-color: var(--pe-border-soft); border-top-color: var(--pe-primary); }
@media (max-width: 560px) {
  .cq-share { border-radius: 15px; }
  .cq-share-header { padding: 20px 54px 18px 18px; }
  .cq-share-content { padding: 20px 18px; }
  .cq-share-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .cq-share h2 { font-size: 19px; }
}

/* ---------- Popup de beneficios adicionales (raiders) ---------- */
.cq-raider-dialog { max-width: 560px; }
.cq-raider-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--pe-border-soft); border-radius: 12px; background: var(--pe-field); }
.cq-raider-card__copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cq-raider-card__copy strong { color: var(--pe-heading); font-weight: 500; }
.cq-raider-card__copy span { color: var(--pe-muted); font-size: 13px; }
.cq-raider-card__copy .cq-raider-card__age { color: var(--pe-text); font-size: 12px; }
.cq-raider-card__value { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; color: var(--pe-text); background: #fff; border: 1px solid var(--pe-border-soft); font-size: 12px; font-weight: 500; }
.cq-raider-list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.cq-raider-traveler { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--pe-border-soft); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.cq-raider-traveler:hover { border-color: var(--pe-border); }
.cq-raider-traveler.is-selected { border-color: var(--pe-primary); background: var(--pe-field); }
.cq-raider-traveler.is-disabled { cursor: not-allowed; opacity: .7; background: var(--pe-field); }
.cq-raider-traveler input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--pe-primary); cursor: pointer; }
.cq-raider-traveler__blocked { width: 19px; height: 19px; flex: 0 0 auto; border: 1px dashed var(--pe-border); border-radius: 5px; }
.cq-raider-traveler__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cq-raider-traveler__copy strong { color: var(--pe-heading); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cq-raider-traveler__copy span { color: var(--pe-muted); font-size: 12px; }
.cq-raider-traveler__note { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; color: var(--pe-error); background: #fef2f2; font-size: 11px; font-weight: 500; }
.cq-raider-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 18px; }
.cq-raider-actions .cq-share-send { margin-top: 0; min-height: 48px; }
.cq-raider-actions .cq-share-send:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 560px) { .cq-raider-actions { grid-template-columns: 1fr; } .cq-raider-actions .cq-share-send { order: -1; } }

/* ======================================================================
 * Calendarios (rango del viaje y fecha de nacimiento)
 * Escritorio: atajos en chips arriba, dos meses y pie con el rango + botones.
 * Celular (<768px): hoja inferior que sube desde abajo, un mes, calendario primero y atajos debajo.
 * ==================================================================== */
body .daterangepicker {
  padding: 0; margin-top: 8px; border: 1px solid var(--pe-border-soft); border-radius: 16px;
  color: var(--pe-text); background: var(--pe-surface); box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
  font-family: var(--pe-font); font-size: 14px; z-index: 1060;
}
body .daterangepicker.drop-up { margin-top: -8px; }
body .daterangepicker::before, body .daterangepicker::after { display: none; }
/* Visible: rejilla con areas (el plugin muestra el contenedor con display:block en linea) */
body .daterangepicker[style*="display: block"] {
  display: grid !important;
  grid-template-columns: auto auto;
  grid-template-areas: "ranges ranges" "left right" "buttons buttons";
}
body .daterangepicker.single[style*="display: block"] { grid-template-columns: auto; grid-template-areas: "left" "buttons"; }
body .daterangepicker .ranges { grid-area: ranges; align-self: start; height: auto !important; min-height: 0 !important; max-height: none !important; float: none; width: auto; margin: 0; padding: 14px 16px 4px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
body .daterangepicker.single .ranges { display: none; }
body .daterangepicker .ranges ul { display: flex; flex-wrap: wrap; gap: 8px; width: auto; max-height: none; margin: 0; padding: 0; overflow: visible; }
body .daterangepicker .ranges li {
  margin: 0; padding: 7px 13px; border: 1px solid var(--pe-border-soft); border-radius: 999px;
  color: var(--pe-text); background: var(--pe-field); font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
body .daterangepicker .ranges li:hover { border-color: var(--pe-border); color: var(--pe-heading); background: #f1f5f9; }
body .daterangepicker .ranges li.active { border-color: var(--pe-primary); color: #fff; background: var(--pe-primary); }

body .daterangepicker .drp-calendar { float: none; width: auto; max-width: none; margin: 0 !important; justify-self: stretch; align-self: start; padding: 12px 16px 8px !important; border: 0 !important; }
body .daterangepicker .drp-calendar.left { grid-area: left; }
body .daterangepicker .drp-calendar.right { grid-area: right; padding-left: 8px !important; }
body .daterangepicker .calendar-table, body .daterangepicker .drp-calendar .calendar-table { padding: 0 !important; border: 0 !important; background: transparent; }
body .daterangepicker .calendar-table th, body .daterangepicker .calendar-table td {
  min-width: 38px; width: 38px; height: 38px; line-height: 38px; padding: 0; border: 0; border-radius: 10px; font-size: 13px;
}
body .daterangepicker .calendar-table thead tr:first-child th { height: 40px; }
body .daterangepicker .calendar-table th.month { color: var(--pe-heading); font-size: 14px; font-weight: 600; text-transform: capitalize; }
body .daterangepicker .calendar-table thead tr:nth-child(2) th { height: 30px; line-height: 30px; color: var(--pe-muted); font-size: 11px; font-weight: 500; text-transform: uppercase; }
body .daterangepicker .calendar-table .prev, body .daterangepicker .calendar-table .next { border-radius: 10px; }
body .daterangepicker .calendar-table .prev span, body .daterangepicker .calendar-table .next span { padding: 3.5px; border-color: var(--pe-text); border-width: 0 2px 2px 0; }
body .daterangepicker .calendar-table .prev:hover, body .daterangepicker .calendar-table .next:hover { background: #f1f5f9; }
body .daterangepicker td.available { color: var(--pe-heading); font-weight: 500; }
body .daterangepicker td.available:hover { color: var(--pe-heading); background: #eef2f6; }
body .daterangepicker td.off, body .daterangepicker td.off.in-range, body .daterangepicker td.off.start-date, body .daterangepicker td.off.end-date { color: #cbd5e1; background: transparent; font-weight: 400; }
body .daterangepicker td.disabled, body .daterangepicker option.disabled { color: #cbd5e1; text-decoration: none; font-weight: 400; }
body .daterangepicker td.in-range { color: var(--pe-heading); background: #eef2f6; border-radius: 0; }
body .daterangepicker td.today:not(.active) { box-shadow: inset 0 0 0 1px var(--pe-border); }
body .daterangepicker td.active, body .daterangepicker td.active:hover { color: #fff; background: var(--pe-primary); }
body .daterangepicker td.start-date { border-radius: 10px 0 0 10px; }
body .daterangepicker td.end-date { border-radius: 0 10px 10px 0; }
body .daterangepicker td.start-date.end-date { border-radius: 10px; }
body .daterangepicker select.monthselect, body .daterangepicker select.yearselect {
  height: 34px; padding: 0 8px; border: 1px solid var(--pe-border); border-radius: 8px; color: var(--pe-heading); background: var(--pe-field); font-size: 13px; cursor: pointer;
}

body .daterangepicker .drp-buttons {
  grid-area: buttons; display: flex !important; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--pe-border-soft); line-height: 1.4;
}
body .daterangepicker .drp-selected { margin-right: auto; padding: 0; color: var(--pe-heading); font-size: 13px; font-weight: 500; }
body .daterangepicker .drp-buttons .btn { min-height: 40px; margin: 0; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 500; }
body .daterangepicker .drp-buttons .cancelBtn { border: 1px solid var(--pe-border); color: var(--pe-text); background: var(--pe-surface); }
body .daterangepicker .drp-buttons .applyBtn { border: 1px solid var(--pe-primary) !important; color: #fff !important; background: var(--pe-primary) !important; }
body .daterangepicker .drp-buttons .applyBtn:hover { background: var(--pe-primary-hover) !important; }

/* Fondo oscuro mientras la hoja inferior esta abierta (clase puesta desde cotizador-v2.php) */
.cq-sheet-backdrop { display: none; }

@media (max-width: 767.98px) {
  body .daterangepicker,
  body .daterangepicker.drop-up {
    position: fixed !important; top: auto !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    width: 100% !important; max-height: 88vh; margin: 0; overflow-y: auto;
    border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, .22);
    padding-top: 14px;
    animation: cq-sheet-up .22s ease-out;
  }
  body .daterangepicker::before {
    display: block; content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border: 0; border-radius: 999px; background: var(--pe-border);
  }
  body .daterangepicker[style*="display: block"] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "ranges" "buttons"; }
  body .daterangepicker .ranges, body .daterangepicker .ranges ul { min-width: 0; }
  body .daterangepicker.single[style*="display: block"] { grid-template-areas: "left" "buttons"; }
  body .daterangepicker .drp-calendar.right { display: none !important; }
  body .daterangepicker .drp-calendar.left { display: block !important; width: 100%; padding: 10px 12px 4px !important; }
  body .daterangepicker .drp-calendar.left .calendar-table { width: 100%; }
  body .daterangepicker .calendar-table table { width: 100%; }
  body .daterangepicker .calendar-table th, body .daterangepicker .calendar-table td { min-width: 0; width: 14.28%; height: 44px; line-height: 44px; font-size: 15px; }
  body .daterangepicker .ranges { padding: 8px 12px 10px; border-top: 1px solid var(--pe-border-soft); }
  body .daterangepicker .ranges ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  body .daterangepicker .ranges ul::-webkit-scrollbar { display: none; }
  body .daterangepicker .drp-buttons { position: sticky; bottom: 0; flex-wrap: wrap; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--pe-surface); }
  body .daterangepicker .drp-selected { flex: 1 0 100%; margin: 0 0 4px; text-align: center; }
  body .daterangepicker .drp-buttons .btn { flex: 1; min-height: 46px; font-size: 14px; }
  body.cq-sheet-open { overflow: hidden; }
  body.cq-sheet-open .cq-sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 1059; background: rgba(15, 23, 42, .45); animation: cq-fade .2s ease-out; }
}
@keyframes cq-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cq-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body .daterangepicker, body.cq-sheet-open .cq-sheet-backdrop { animation: none; } }

/* Estados de los dias con mayor especificidad que Metronic (que los pinta en azul) */
body .daterangepicker .drp-calendar td.in-range, body .daterangepicker .drp-calendar td.in-range:hover { color: var(--pe-heading) !important; background-color: #eef2f6 !important; }
body .daterangepicker .drp-calendar td.active, body .daterangepicker .drp-calendar td.active:hover,
body .daterangepicker .drp-calendar td.start-date, body .daterangepicker .drp-calendar td.end-date { color: #fff !important; background-color: var(--pe-primary) !important; }
body .daterangepicker .drp-calendar td.off, body .daterangepicker .drp-calendar td.off.in-range, body .daterangepicker .drp-calendar td.disabled { color: #cbd5e1 !important; background-color: transparent !important; }
body .daterangepicker .drp-calendar td.today:not(.active):not(.in-range) { color: var(--pe-heading) !important; }
body .daterangepicker .drp-calendar tbody td:not(.in-range):not(.active):not(.start-date):not(.end-date) { background-color: transparent !important; }
body .daterangepicker .drp-calendar tbody td.available:not(.in-range):not(.active):hover { background-color: #eef2f6 !important; }
body .daterangepicker .drp-calendar tbody td.today.active, body .daterangepicker .drp-calendar tbody td.today.start-date,
body .daterangepicker .drp-calendar tbody td.today.end-date { color: #fff !important; background-color: var(--pe-primary) !important; }
body .daterangepicker .drp-calendar tbody td.today.in-range:not(.active) { color: var(--pe-heading) !important; background-color: #eef2f6 !important; }
body .daterangepicker .calendar-table tr, body .daterangepicker .calendar-table tbody tr:nth-child(odd), body .daterangepicker .calendar-table tbody tr:nth-child(even) { background: transparent !important; }
body .daterangepicker, body .daterangepicker .calendar-table th, body .daterangepicker .calendar-table td, body .daterangepicker select, body .daterangepicker .ranges li, body .daterangepicker .drp-buttons .btn { font-family: var(--pe-font) !important; font-variant-numeric: tabular-nums; }
