/* ============================================================
   Home TraveliaByCO — rediseño v17 (clases .hm-*)
   Usa solo los tokens --brand-* de brand.css (tema claro / oscuro).
   ============================================================ */

.hm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hm-section { padding-top: clamp(40px, 6vw, 72px); }
.hm-h2 { margin: 0; font-size: clamp(24px, 4vw, 38px); font-weight: 700; color: var(--brand-title); }
.hm-lead { margin: 6px 0 0; font-size: 17px; color: var(--brand-muted); }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.hm-btn, .hm-btn-line {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 28px; border-radius: 999px;
    font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.hm-btn { background: var(--brand-cta); border: 0; color: #fff !important; }
.hm-btn:hover { background: var(--brand-cta-dark); }
.hm-btn-line { background: transparent; border: 1.5px solid var(--brand-link); color: var(--brand-title) !important; }
.hm-btn-line:hover { background: var(--brand-band); }

/* ---------- Hero ---------- */
.hm-hero { background: var(--brand-hero); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(120px, 14vw, 170px); }
.hm-eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #FFD3C2; }
.hm-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 60px); line-height: 1.05; font-weight: 700; }
.hm-hero p.hm-sub { margin: 0; max-width: 560px; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: #EDE3F6; }

/* ---------- Buscador flotante con pestañas ---------- */
.hm-search { margin-top: clamp(-130px, -9vw, -90px); position: relative; }
.hm-search-card {
    background: var(--brand-surface); border: 1px solid var(--brand-line);
    border-radius: 24px; box-shadow: 0 8px 32px var(--brand-shadow); overflow: hidden;
}
.hm-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--brand-line); padding: 0 clamp(8px, 2vw, 24px); }
.hm-tab {
    flex: 0 0 auto; min-width: 96px; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 20px 12px; background: none; border: 0; border-bottom: 3px solid transparent;
    font-family: inherit; font-size: 15px; font-weight: 500; color: var(--brand-fg); cursor: pointer;
}
.hm-tab svg { color: var(--brand-link); }
.hm-tab.on { color: var(--brand-link); border-bottom-color: #D77AAE; font-weight: 700; }
.hm-tab:disabled { opacity: .5; cursor: not-allowed; }
.hm-tab small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-muted); }
html[data-theme="dark"] .hm-tab.on { color: #E0C8F5; border-bottom-color: #B58AE0; }

.hm-search-body { padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.hm-search-row { display: flex; flex-wrap: wrap; gap: 8px; border: 1.5px solid var(--brand-border); border-radius: 28px; padding: 8px; }
.hm-field { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 14px; color: var(--brand-link); }
.hm-field input {
    flex: 1; min-width: 0; min-height: 48px; border: 0; outline: none; background: none;
    font-family: inherit; font-size: 16px; color: var(--brand-fg);
}
.hm-field input::placeholder { color: var(--brand-muted); }
.hm-search-row .hm-btn { min-height: 52px; padding: 0 36px; font-size: 17px; }
.hm-search-hint { margin: 0; font-size: 15px; color: var(--brand-muted); }
.hm-search-hint a { font-weight: 700; }

/* ---------- Eventos publicados ---------- */
.hm-featured { background: var(--brand-band); padding: clamp(32px, 5vw, 56px) 0; margin-top: clamp(40px, 6vw, 72px); }
.hm-featured .hm-head { margin-bottom: 24px; }
.hm-empty { text-align: center; padding: 32px 0; color: var(--brand-muted); }

/* ---------- Estilos de viaje (categorías) ---------- */
.hm-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-chip {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
    border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-surface);
    color: var(--brand-fg); font-size: 16px; font-weight: 600; text-decoration: none;
}
.hm-chip:hover { border-color: var(--brand-link); background: var(--brand-band); }
.hm-chip span { font-size: 13px; font-weight: 700; color: var(--brand-chip-fg); background: var(--brand-chip-bg); padding: 2px 9px; border-radius: 999px; }
.hm-chip.cotiza span { background: transparent; color: var(--brand-cta); padding: 0; }

/* ---------- Beneficios ---------- */
.hm-benefits {
    background: var(--brand-band); border-radius: 24px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px;
}
.hm-benefit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hm-benefit svg { color: var(--brand-link); }
.hm-benefit h3 { margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: var(--brand-title); }
.hm-benefit p { margin: 0; flex: 1; font-size: 16px; line-height: 1.5; color: var(--brand-muted); }

/* ---------- Banda del asistente ---------- */
.hm-assistant {
    display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
    background: var(--brand-cta); color: #fff; border-radius: 28px; padding: clamp(24px, 5vw, 56px);
}
html[data-theme="dark"] .hm-assistant { background: #5B3A8E; }
.hm-assistant-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hm-assistant h2 { margin: 0; font-size: clamp(24px, 4.5vw, 40px); line-height: 1.1; font-weight: 700; }
.hm-assistant p { margin: 0; font-size: 18px; line-height: 1.55; color: #F4EDFB; }
.hm-assistant .hm-btn-white {
    align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 32px;
    border-radius: 999px; background: #fff; color: #7A4FA3 !important; font-weight: 700; font-size: 17px; text-decoration: none;
}
.hm-chat { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-bubble { max-width: 88%; padding: 14px 18px; font-size: 16px; }
.hm-bubble.bot { align-self: flex-start; background: #fff; color: #2B2340; border-radius: 18px 18px 18px 4px; }
.hm-bubble.me  { align-self: flex-end; background: #4B2E6B; color: #fff; border-radius: 18px 18px 4px 18px; }

/* ---------- Footer ---------- */
.hm-footer { background: var(--brand-footer); color: #EDE3F6; margin-top: clamp(40px, 6vw, 72px); padding: 56px 0 max(32px, env(safe-area-inset-bottom)); }
.hm-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.hm-footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.hm-footer-col.brand { flex-basis: 280px; }
.hm-footer-col strong { color: #fff; }
.hm-footer a { color: #EDE3F6; text-decoration: none; }
.hm-footer a:hover { text-decoration: underline; }
.hm-footer-copy { margin: 40px 0 0; font-size: 14px; color: #D8C4EC; }

.footer-dev-shalosh { height: 22px; width: auto; opacity: .6; }
.hm-footer .footer-dev-strip { border-top: 1px solid #D77AAE; }
