/**
 * Módulo de reserva del Camino Inca en los tours 2D / 4D — Terra Quechua
 * Mismos tokens que el calendario (.tic): azul de marca, naranja de acción, Poppins / Montserrat.
 */
.tqb, .tqb-card, .tqb-bar, .tqb-shell {
    --tqb-blue: #2e47ab;
    --tqb-navy: #0b1f33;
    --tqb-ink: #1e293b;
    --tqb-muted: #64748b;
    --tqb-line: #e3e8f2;
    --tqb-soft: #f5f7fc;
    --tqb-accent: #f7931e;
    --tqb-accent-d: #e07b06;
    --tqb-ok: #15803d;
    --tqb-few: #b45309;
    --tqb-sold: #b42318;
    --tqb-wa: #1faa55;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tqb-ink);
    line-height: 1.35;
}
.tqb *, .tqb-card *, .tqb-bar *, .tqb-shell * { box-sizing: border-box; }
.tqb, .tqb-card, .tqb-bar, .tqb-shell { text-align: left; }
.tqb svg, .tqb-card svg, .tqb-bar svg, .tqb-shell svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.tqb button, .tqb-card button, .tqb-bar button, .tqb-shell button { font-family: inherit; cursor: pointer; }

/* ---------- Distintivo en la portada del tour ---------- */
.tqb-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 4px 0 18px; padding: 9px 16px; border-radius: 999px;
    background: #fff; color: #0b1f33 !important; text-decoration: none !important;
    font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.tqb-hero-badge i { color: #15803d; }
.tqb-hero-badge:hover { background: #f7931e; color: #fff !important; }
.tqb-hero-badge:hover i { color: #fff; }

/* ---------- Sección de disponibilidad ---------- */
.tqb { margin: 18px 0 34px; }
.tqb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 4px; }
.tqb-head__txt { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.tqb-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--tqb-ok); }
.tqb-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: tqb-pulse 2s infinite; }
@keyframes tqb-pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.tqb .tqb-title { margin: 0 !important; padding: 0 !important; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.15; color: var(--tqb-navy); text-transform: none; }
.tqb .tqb-sub { margin: 0 !important; font-size: 14.5px; line-height: 1.45 !important; color: var(--tqb-muted); }
.tqb-cross {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: 999px;
    background: #f0f3ff; color: var(--tqb-blue) !important; text-decoration: none !important;
    font-size: 13px; font-weight: 700;
}
.tqb-cross:hover { background: #e1e7ff; }
.tqb .tic { margin: 16px 0 0; }

/* Solo en móvil */
.tqb-next, .tqb-sheet-head, .tqb-mini { display: none; }

/* ---------- Tarjeta lateral (escritorio) ---------- */
.tqb-aside { position: sticky; top: 84px; }
.tqb-card {
    background: #fff;
    border: 1px solid var(--tqb-line);
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(11,31,51,.10);
    overflow: hidden;
}
.tqb-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 20px 20px 14px; }
.tqb-card__price span { font-size: 13.5px; font-weight: 600; color: #475569; }
.tqb-card__price strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 34px; line-height: 1; color: var(--tqb-navy); }
.tqb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 20px; padding: 4px; background: var(--tqb-soft); border-radius: 12px; }
.tqb-seg button { border: 0; padding: 9px 6px; border-radius: 9px; background: transparent; color: var(--tqb-muted); font-size: 12.5px; font-weight: 700; }
.tqb-seg button[aria-pressed="true"] { background: #fff; color: var(--tqb-navy); box-shadow: 0 2px 8px rgba(11,31,51,.10); }
.tqb-card__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.tqb-field { display: flex; flex-direction: column; gap: 7px; }
.tqb-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; color: var(--tqb-muted); text-transform: uppercase; }
.tqb-date { padding: 13px; border: 2px dashed #cbd2dd; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--tqb-muted); }
.tqb-date.is-set { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 2px solid var(--tqb-blue); background: #f7f9ff; color: var(--tqb-navy); }
.tqb-date.is-set div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tqb-date.is-set strong { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; }
.tqb-date.is-set small { font-size: 12px; font-weight: 600; color: var(--tqb-muted); }

.tqb-pill { flex: none; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tqb-pill.is-available { background: #d9f2e1; color: var(--tqb-ok); }
.tqb-pill.is-few { background: #ffe8c2; color: var(--tqb-few); }
.tqb-pill.is-soldout { background: #fbdcd8; color: var(--tqb-sold); }
.tqb-pill.is-closed { background: #e2e8f0; color: #475569; }
.tqb-pill.is-consult, .tqb-pill.is-short { background: #dde4ff; color: var(--tqb-blue); }

.tqb-pax { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tqb-pax small { display: block; margin-top: 2px; font-size: 12px; color: var(--tqb-muted); }
.tqb-step { display: flex; align-items: center; gap: 10px; }
.tqb-step button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid #cbd2dd; background: #fff; color: var(--tqb-blue);
    font-size: 20px; font-weight: 700; line-height: 1; padding: 0;
}
.tqb-step button:disabled { opacity: .35; cursor: not-allowed; }
.tqb-step output { min-width: 22px; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; color: var(--tqb-navy); }

.tqb-warn { margin: 0 !important; padding: 10px 12px; border-radius: 10px; background: #fdf2f1; color: var(--tqb-sold); font-size: 12.5px; font-weight: 600; }
.tqb-hint { margin: 0 !important; padding: 10px 12px; border-radius: 10px; background: #f0f3ff; color: #1f3284; font-size: 12.5px; font-weight: 600; }

.tqb-sum { display: flex; flex-direction: column; gap: 7px; padding: 13px; border-radius: 12px; background: #f8fafc; font-size: 13.5px; }
.tqb-sum div { display: flex; justify-content: space-between; gap: 10px; }
.tqb-sum span { color: #475569; }
.tqb-sum strong { color: var(--tqb-navy); white-space: nowrap; }
.tqb-sum .is-green { color: var(--tqb-ok); }
.tqb-sum .is-muted, .tqb-sum .is-muted span { font-size: 12.5px; color: var(--tqb-muted); }

.tqb-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 16px; border-radius: 14px; border: 0;
    font-size: 15px; font-weight: 700; text-align: center;
    text-decoration: none !important;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.tqb-btn svg { font-size: 18px; }
.tqb-btn--book { background: var(--tqb-accent); color: #fff !important; box-shadow: 0 10px 22px rgba(247,147,30,.35); }
.tqb-btn--book:hover { background: var(--tqb-accent-d); transform: translateY(-1px); }
.tqb-btn--wa { background: #fff; color: var(--tqb-ok) !important; border: 2px solid var(--tqb-wa); padding: 11px 14px; font-size: 14px; }
.tqb-btn--wa:hover { background: var(--tqb-wa); color: #fff !important; }
.tqb-btn--wa-solid { background: var(--tqb-wa); color: #fff !important; }
.tqb-btn--wa-solid:hover { background: #178a45; }
.tqb-btn--off { background: #e2e8f0; color: var(--tqb-muted); cursor: not-allowed !important; }
.tqb-btn--link { background: transparent; color: var(--tqb-ok) !important; padding: 6px; font-size: 13.5px; }

.tqb-trust { list-style: none !important; margin: 0 !important; padding: 14px 20px 18px !important; border-top: 1px solid #eef1f6; display: flex; flex-direction: column; gap: 9px; }
.tqb-trust li { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: 12.5px; color: #475569; }
.tqb-trust li::before, .tqb-trust li::marker { content: none; }
.tqb-trust li svg { font-size: 17px; }
.tqb-trust li:nth-child(1) svg { color: var(--tqb-ok); }
.tqb-trust li:nth-child(2) svg { color: var(--tqb-blue); }
.tqb-trust li:nth-child(3) svg { color: var(--tqb-accent); }

/* ---------- Barra fija inferior (móvil) ---------- */
.tqb-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--tqb-line);
    box-shadow: 0 -10px 30px rgba(11,31,51,.12);
}
.tqb-bar[hidden] { display: none; }
.tqb-bar__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tqb-bar__txt strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16.5px; color: var(--tqb-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tqb-bar__txt span { font-size: 12.5px; font-weight: 700; color: var(--tqb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tqb-bar__txt .is-available { color: var(--tqb-ok); }
.tqb-bar__txt .is-few { color: var(--tqb-few); }
.tqb-bar__txt .is-soldout { color: var(--tqb-sold); }
.tqb-bar .tqb-btn { width: auto; flex: none; padding: 13px 18px; }

/* ---------- Hoja inferior (móvil) ---------- */
.tqb-shell { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.tqb-backdrop { position: absolute; inset: 0; background: rgba(11,31,51,.6); opacity: 0; transition: opacity .28s ease; }
.tqb-shell.is-open { pointer-events: auto; }
.tqb-shell.is-open .tqb-backdrop { opacity: 1; }
.tqb-shell .tqb-cal {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-radius: 22px 22px 0 0;
    padding: 0 12px;
    transform: translateY(102%); transition: transform .28s ease;
}
.tqb-shell.is-open .tqb-cal { transform: none; }
.tqb-shell .tqb-sheet-head {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 2px 10px; background: #fff;
}
.tqb-shell .tqb-sheet-head strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; color: var(--tqb-navy); }
.tqb-handle { position: absolute; top: 7px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: #cbd2dd; }
.tqb-close { width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: var(--tqb-soft); color: var(--tqb-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.tqb-shell .tic { margin: 0; }
.tqb-shell .tic-card { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.tqb-shell .tic-note { display: none; }
.tqb-shell .tqb-mini {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; flex-direction: column; gap: 10px;
    margin: 10px -12px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--tqb-line);
    box-shadow: 0 -8px 20px rgba(11,31,51,.06);
}
.tqb-mini__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: #475569; }
.tqb-mini__sum strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; color: var(--tqb-navy); }
html.tqb-lock, html.tqb-lock body { overflow: hidden !important; }
/* Botón flotante del plugin de WhatsApp: oculto mientras la hoja está abierta */
html.tqb-lock .wa__btn_popup, html.tqb-lock .wa__popup_chat_box { display: none !important; }

/* ---------- Móvil / tablet ---------- */
@media (max-width: 991.98px) {
    .tqb { margin: 4px 0 26px; }
    .tqb .tqb-title { font-size: 22px; }
    .tqb .tqb-sub { font-size: 13.5px; }
    .tqb-cal-home .tqb-cal { display: none; }

    .tqb-next { display: block; margin-top: 14px; }
    .tqb-next.is-empty .tqb-next__list { display: none; }
    .tqb-next__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .tqb-next__head strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 17px; color: var(--tqb-navy); }
    .tqb-open { border: 0; background: transparent; padding: 10px 0 10px 10px; color: var(--tqb-blue); font-size: 13.5px; font-weight: 700; }
    .tqb-next__list { display: flex; gap: 8px; overflow-x: auto; margin: 0 -12px; padding: 4px 12px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
    .tqb-next__list::-webkit-scrollbar { display: none; }
    .tqb-chip {
        flex: none; width: 76px; scroll-snap-align: start;
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 10px 4px; border-radius: 14px;
        border: 1px solid var(--tqb-line); background: #fff; color: var(--tqb-navy);
    }
    .tqb-chip strong { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 23px; line-height: 1.05; }
    .tqb-chip__wd { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
    .tqb-chip__mo { font-size: 11px; font-weight: 600; }
    .tqb-chip__n { margin-top: 3px; padding: 3px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: #effaf2; color: var(--tqb-ok); white-space: nowrap; }
    .tqb-chip.is-few .tqb-chip__n { background: #fff6e6; color: var(--tqb-few); }
    .tqb-chip[aria-pressed="true"] { background: var(--tqb-blue); border-color: var(--tqb-blue); color: #fff; box-shadow: 0 8px 18px rgba(46,71,171,.28); }
    .tqb-chip[aria-pressed="true"] .tqb-chip__n { background: rgba(255,255,255,.2); color: #fff; }

    /* Espacio para la barra fija y botón flotante de WhatsApp por encima */
    body.tqb-has-bar { padding-bottom: 76px; }
    body.tqb-has-bar .wa__btn_popup,
    body.tqb-has-bar .wa__popup_chat_box { bottom: 90px !important; }
}
@media (min-width: 992px) {
    .tqb-bar { display: none !important; }
    /* El build de Bootstrap del tema no incluye .col-lg-9 */
    .tqb-col-main { flex: 0 0 auto; width: 68%; }
    .tqb-col-aside { flex: 0 0 auto; width: 32%; }
}
@media (prefers-reduced-motion: reduce) {
    .tqb *, .tqb-shell *, .tqb-shell .tqb-cal { animation: none !important; transition: none !important; }
}
