/**
 * Header + mega menú — Terra Quechua Peru
 * Blanco con azul de marca y naranja de acción · Poppins (títulos) / Montserrat (texto)
 */
.tqh, .tqh-drawer {
    --tqh-blue: #2e47ab;
    --tqh-blue-d: #1f3284;
    --tqh-navy: #0b1f33;
    --tqh-ink: #1e293b;
    --tqh-muted: #64748b;
    --tqh-line: #e6eaf2;
    --tqh-soft: #f5f7fc;
    --tqh-accent: #f7931e;
    --tqh-accent-d: #e07b06;
    --tqh-ok: #15803d;
    --tqh-wa: #1faa55;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--tqh-ink);
    text-align: left;
    line-height: 1.35;
}
.tqh *, .tqh-drawer * { box-sizing: border-box; }
.tqh a, .tqh-drawer a { text-decoration: none; }
.tqh ul, .tqh-drawer ul { list-style: none; margin: 0; padding: 0; }
.tqh button, .tqh-drawer button { font-family: inherit; cursor: pointer; }
.tqh :focus-visible, .tqh-drawer :focus-visible { outline: 2px solid var(--tqh-accent); outline-offset: 2px; border-radius: 6px; }
.tqh p, .tqh-drawer p { margin: 0; }
.tqh-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 28px; }

.tqh { position: relative; z-index: 1000; background: #fff; box-shadow: 0 1px 0 var(--tqh-line); }

/* ---------- Barra de alerta ---------- */
.tqh-alert { background: var(--tqh-navy); color: #dbe3f4; font-size: 13px; }
.tqh-alert .tqh-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.tqh-alert__kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--tqh-accent); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.tqh-alert__txt { color: #fff !important; font-weight: 500; }
.tqh-alert__txt strong { color: #ffc27a; font-weight: 700; }
.tqh-alert__cta {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 5px 14px; border-radius: 999px; background: var(--tqh-accent); color: #fff !important;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.tqh-alert__cta:hover { background: var(--tqh-accent-d); }

/* ---------- Fila principal ---------- */
.tqh-main__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.tqh-logo { display: inline-flex; flex: none; }
.tqh-logo img { display: block; width: auto; height: 68px; }
.tqh-actions { display: flex; align-items: center; gap: 10px; }

.tqh-avail {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 18px; border-radius: 12px;
    background: #fff4e3; color: #9a4f00 !important; border: 1px solid #fbd9a6;
    font-size: 14px; font-weight: 700; white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
.tqh-avail:hover { background: #ffe8c2; transform: translateY(-1px); }
.tqh-avail i { font-size: 16px; color: var(--tqh-accent-d); }
.tqh-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: tqh-pulse 2s infinite; flex: none; }
@keyframes tqh-pulse { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.tqh-contact {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 16px; border-radius: 12px; border: 1px solid var(--tqh-line); background: #fff;
    color: var(--tqh-navy); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.tqh-contact > .fa-whatsapp { color: var(--tqh-wa); font-size: 18px; }
.tqh-caret { font-size: 11px; color: var(--tqh-muted); transition: transform .15s ease; }
.tqh-contact[aria-expanded="true"] .tqh-caret { transform: rotate(180deg); }
.tqh-drop { position: relative; }
.tqh-pop {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
    width: 320px; padding: 10px; border-radius: 16px; background: #fff;
    border: 1px solid var(--tqh-line); box-shadow: 0 20px 44px rgba(11,31,51,.16);
}
.tqh-pop[hidden] { display: none; }
.tqh-pop a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--tqh-ink); }
.tqh-pop a:hover { background: var(--tqh-soft); }
.tqh-pop a > i { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e9f8ef; color: var(--tqh-wa); font-size: 17px; }
.tqh-pop a > .fa-envelope { background: #eef2ff; color: var(--tqh-blue); }
.tqh-pop strong { display: block; font-size: 14px; color: var(--tqh-navy); }
.tqh-pop small { display: block; font-size: 12px; color: var(--tqh-muted); }
.tqh-pop__note { display: flex; align-items: center; gap: 8px; margin-top: 6px !important; padding: 9px 10px; border-top: 1px solid var(--tqh-line); font-size: 12px; color: var(--tqh-muted); }

.tqh-lang { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--tqh-soft); border: 1px solid var(--tqh-line); }
.tqh-lang a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; color: var(--tqh-muted); font-size: 13px; font-weight: 700; }
.tqh-lang a:hover { color: var(--tqh-navy); }
.tqh-lang a.is-current { background: #fff; color: var(--tqh-navy); box-shadow: 0 2px 6px rgba(11,31,51,.08); }
.tqh-lang img { display: block; border-radius: 2px; }

.tqh-book {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 12px 20px; border-radius: 12px; background: var(--tqh-accent); color: #fff !important;
    font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 18px rgba(247,147,30,.3);
    transition: background .15s ease, transform .15s ease;
}
.tqh-book:hover { background: var(--tqh-accent-d); transform: translateY(-1px); }

.tqh-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #e9f8ef; color: var(--tqh-wa) !important; font-size: 22px; }
.tqh-burger { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--tqh-line); background: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.tqh-burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--tqh-navy); }
.tqh-show-md { display: none !important; }

/* ---------- Barra de navegación ---------- */
.tqh-nav { position: relative; border-top: 1px solid var(--tqh-line); background: #fff; }
.tqh .tqh-nav__list { display: flex; align-items: stretch; justify-content: center; gap: 4px; margin: 0 auto; max-width: 1640px; }
.tqh-item { position: static; display: flex; align-items: center; }
.tqh-nav .tqh-wrap { padding-left: 12px; padding-right: 12px; }
.tqh-item__link {
    position: relative; display: inline-flex; align-items: center;
    padding: 18px 3px 18px 10px; color: var(--tqh-navy) !important;
    /* Tamaño base; header.js lo reduce (--tqh-nav-fs) solo si las secciones no caben en una fila */
    font-family: 'Poppins', sans-serif; font-size: var(--tqh-nav-fs, clamp(13.5px, 1vw, 16px)); font-weight: 600; white-space: nowrap;
}
.tqh-item:not(.has-panel) .tqh-item__link { padding-right: 9px; }
.tqh-item__toggle { border: 0; background: transparent; padding: 17px 7px 17px 2px; color: var(--tqh-muted); font-size: 10px; line-height: 1; }
/* Modo compacto (lo activa header.js si las secciones no caben en una fila) */
.tqh-nav.is-compact .tqh-item__link { padding-left: 6px; }
.tqh-nav.is-compact .tqh-item__toggle { padding-right: 4px; }
.tqh-nav.is-compact .tqh-item.is-open .tqh-item__link::after { left: 6px; }
.tqh-item__toggle i { transition: transform .18s ease; }
.tqh-item.is-open .tqh-item__link, .tqh-item:hover .tqh-item__link { color: var(--tqh-blue) !important; }
.tqh-item.is-open .tqh-item__toggle, .tqh-item:hover .tqh-item__toggle { color: var(--tqh-blue); }
.tqh-item.is-open .tqh-item__toggle i { transform: rotate(180deg); }
.tqh-item.is-open .tqh-item__link::after, .tqh-item.is-current .tqh-item__link::after {
    content: ""; position: absolute; left: 12px; right: -14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--tqh-blue);
}

/* ---------- Panel del mega menú ---------- */
.tqh-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    background: #fff; border-top: 1px solid var(--tqh-line);
    box-shadow: 0 30px 50px rgba(11,31,51,.14);
    max-height: calc(100vh - 150px); overflow-y: auto;
    animation: tqh-drop .18s ease;
}
.tqh-panel[hidden] { display: none; }
@keyframes tqh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tqh-panel__inner { padding-top: 28px; padding-bottom: 30px; }
.tqh-panel--list { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
.tqh-panel--list.has-info { grid-template-columns: 290px minmax(0, 1fr) 340px; }
.tqh-panel--grid { display: flex; flex-direction: column; gap: 20px; }

.tqh-feature { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--tqh-navy); color: #fff !important; min-height: 320px; box-shadow: 0 14px 30px rgba(11,31,51,.18); }
.tqh-feature__img { flex: 1 1 170px; min-height: 170px; background: var(--tqh-blue) center/cover no-repeat; transition: transform .4s ease; }
.tqh-feature:hover .tqh-feature__img { transform: scale(1.04); }
.tqh-feature__body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; background: var(--tqh-navy); }
.tqh-feature__body strong { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; line-height: 1.2; color: #fff; }
.tqh-feature__body > span:not(.tqh-feature__cta) { font-size: 13px; color: #c9d3e6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tqh-feature__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: #ffc27a; font-size: 13.5px; font-weight: 700; }

.tqh-col__h {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 10px !important; padding-bottom: 10px; border-bottom: 1px solid var(--tqh-line);
    font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--tqh-blue) !important;
}
a.tqh-col__h i { font-size: 11px; opacity: 0; transform: translateX(-4px); transition: all .15s ease; }
a.tqh-col__h:hover i { opacity: 1; transform: none; }

.tqh-list { align-self: start; }
.tqh-list.is-2col { column-count: 2; column-gap: 32px; }
.tqh-list.is-2col .tqh-col__h { column-span: all; }
.tqh-tour {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 12px; margin: 0 -12px; border-radius: 12px; break-inside: avoid;
    color: var(--tqh-ink) !important; transition: background .12s ease;
}
.tqh-tour:hover { background: var(--tqh-soft); }
.tqh-tour__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.tqh-tour:hover .tqh-tour__name { color: var(--tqh-blue); }
.tqh-tour__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.tqh-badge { padding: 2px 8px; border-radius: 999px; background: #fff4e3; color: #b45309; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tqh-price { font-size: 12px; font-weight: 600; color: var(--tqh-muted); white-space: nowrap; }
.tqh-tour.is-compact { padding: 7px 10px; margin: 0 -10px; gap: 3px; }
.tqh-tour.is-compact .tqh-tour__name { font-size: 13px; font-weight: 500; }

.tqh-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 28px 30px; }
.tqh-panel__foot { display: flex; justify-content: flex-start; padding-top: 16px; border-top: 1px solid var(--tqh-line); }
.tqh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--tqh-blue); color: #fff !important; font-size: 13.5px; font-weight: 700; }
.tqh-btn:hover { background: var(--tqh-blue-d); }

.tqh-info { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--tqh-soft); align-self: start; }
.tqh-info .tqh-col__h { color: var(--tqh-navy) !important; }
.tqh-info__item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; color: var(--tqh-ink) !important; }
.tqh-info__item:hover { background: #fff; box-shadow: 0 6px 16px rgba(11,31,51,.06); }
.tqh-info__ico {
    position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--tqh-line); color: var(--tqh-accent-d); font-size: 17px;
}
.tqh-info__ico .tqh-live { position: absolute; top: -3px; right: -3px; border: 2px solid #fff; width: 11px; height: 11px; }
.tqh-info__item strong { display: block; font-size: 13.5px; color: var(--tqh-navy); }
.tqh-info__item small { display: block; margin-top: 2px; font-size: 12px; color: var(--tqh-muted); line-height: 1.4; }
.tqh-info__item:hover strong { color: var(--tqh-blue); }

/* ---------- Panel lateral (móvil / tablet) ---------- */
.tqh-drawer { position: fixed; inset: 0; z-index: 100001; }
.tqh-drawer[hidden] { display: none; }
.tqh-drawer__backdrop { position: absolute; inset: 0; background: rgba(11,31,51,.55); opacity: 0; transition: opacity .25s ease; }
.tqh-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
    display: flex; flex-direction: column; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); transition: transform .28s ease;
}
.tqh-drawer.is-open .tqh-drawer__backdrop { opacity: 1; }
.tqh-drawer.is-open .tqh-drawer__panel { transform: none; }
.tqh-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--tqh-line); }
.tqh-drawer__head .tqh-logo img { height: 46px; }
.tqh-drawer__close { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--tqh-soft); color: var(--tqh-navy); font-size: 20px; }
.tqh-drawer__cta { display: grid; gap: 8px; padding: 14px 16px; }
.tqh-drawer__cta a { justify-content: center; }
.tqh-acc > li { border-bottom: 1px solid var(--tqh-line); }
.tqh-acc__row { display: flex; align-items: center; }
.tqh-acc__row > a { flex: 1; padding: 15px 16px; color: var(--tqh-navy) !important; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; }
.tqh-acc__row > button { width: 52px; height: 52px; border: 0; border-left: 1px solid var(--tqh-line); background: transparent; color: var(--tqh-muted); }
.tqh-acc__row > button i { transition: transform .18s ease; }
.tqh-acc__row > button[aria-expanded="true"] i { transform: rotate(180deg); color: var(--tqh-blue); }
.tqh-acc__body { padding: 4px 16px 16px 28px; background: var(--tqh-soft); }
.tqh-acc__body[hidden] { display: none; }
.tqh-acc__group { margin: 12px 0 2px !important; }
.tqh-acc__group a { color: var(--tqh-blue) !important; font-size: 13.5px; font-weight: 700; }
.tqh-acc__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--tqh-blue) !important; font-size: 13.5px; font-weight: 700; }
.tqh-drawer__foot { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding: 16px; border-top: 1px solid var(--tqh-line); }
.tqh-drawer__foot .tqh-lang { align-self: flex-start; margin-bottom: 8px; }
.tqh-drawer__foot > a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--tqh-ink) !important; font-size: 14px; font-weight: 600; }
.tqh-drawer__foot > a i { width: 20px; text-align: center; color: var(--tqh-wa); font-size: 17px; }
.tqh-drawer__foot > a .fa-envelope { color: var(--tqh-blue); }
.tqh-drawer__foot small { color: var(--tqh-muted); font-weight: 500; }
html.tqh-lock, html.tqh-lock body { overflow: hidden !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
    .tqh-panel--list.has-info { grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 28px; }
}
@media (max-width: 1199.98px) {
    .tqh-nav { display: none; }
    .tqh-hide-md { display: none !important; }
    .tqh-show-md { display: inline-flex !important; }
    /* Fijo arriba al hacer scroll; la barra de alerta se va (top negativo = su altura, lo mide header.js) */
    .tqh { position: sticky; top: calc(var(--tqh-alert-h, 0px) * -1); }
    .tqh-main__row { min-height: 70px; }
    .tqh-logo img { height: 50px; }
}
@media (max-width: 575.98px) {
    .tqh-wrap { padding: 0 14px; }
    .tqh-alert .tqh-wrap { gap: 10px; justify-content: space-between; font-size: 12px; }
    .tqh-alert__kicker { display: none; }
    .tqh-alert__txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .tqh-alert__cta { padding: 5px 10px; font-size: 11px; }
    .tqh-main__row { min-height: 64px; gap: 10px; }
    .tqh-logo img { height: 42px; }
    .tqh-actions { gap: 8px; }
    .tqh-hide-sm { display: none; }
    .tqh-avail { padding: 0; width: 44px; height: 44px; justify-content: center; }
    .tqh-avail .tqh-live { position: absolute; top: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .tqh *, .tqh-drawer * { animation: none !important; transition: none !important; }
}
