/* ==========================================================================
   HCY Travel — landing (inspiracion: sitios premium de movilidad, blanco y negro)
   Se carga despues del CSS del tema de Taxido y solo usa clases .hx-*
   ========================================================================== */
:root {
    --hx-black: #0a0a0a;
    --hx-ink: #141414;
    --hx-gray-9: #1c1c1c;
    --hx-gray-7: #3a3a3a;
    --hx-gray-5: #8a8a8a;
    --hx-gray-3: #d9d9d9;
    --hx-gray-1: #f4f4f2;
    --hx-white: #ffffff;
    --hx-accent: rgb(var(--primary-color, 25, 150, 117));
    --hx-radius: 20px;
    --hx-radius-sm: 12px;
    --hx-display: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
    --hx-body: "DM Sans", system-ui, sans-serif;
    --hx-max: 1200px;
}

body.hx-body { font-family: var(--hx-body); background: var(--hx-white); color: var(--hx-ink); }
.hx-body h1, .hx-body h2, .hx-body h3, .hx-body h4 { font-family: var(--hx-display); letter-spacing: -0.02em; }
.hx-container { width: 100%; max-width: var(--hx-max); margin: 0 auto; padding: 0 20px; }
.hx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hx-gray-5); margin: 0 0 14px; }
.hx-dark .hx-eyebrow { color: rgba(255,255,255,.62); }
.hx-section { padding: 110px 0; }
.hx-dark { background: var(--hx-black); color: var(--hx-white); }
.hx-soft { background: var(--hx-gray-1); }
.hx-h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; line-height: 1.05; margin: 0; }
.hx-lead { font-size: 17px; line-height: 1.6; color: var(--hx-gray-7); margin: 0; }
.hx-dark .hx-lead { color: rgba(255,255,255,.72); }

/* ---------- botones ---------- */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease; cursor: pointer; white-space: nowrap; }
.hx-btn:hover { transform: translateY(-1px); }
.hx-btn-dark { background: var(--hx-black); color: var(--hx-white); }
.hx-btn-dark:hover { background: #262626; color: var(--hx-white); }
.hx-btn-light { background: var(--hx-white); color: var(--hx-black); }
.hx-btn-light:hover { background: var(--hx-gray-3); color: var(--hx-black); }
.hx-btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.hx-btn-ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.hx-btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- header ---------- */
.hx-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--hx-white); transition: background .25s ease, box-shadow .25s ease; }
.hx-header.is-solid, .hx-header.is-static { background: var(--hx-black); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hx-header .hx-bar { height: 76px; display: flex; align-items: center; gap: 28px; }
.hx-logo img { height: 42px; width: auto; display: block; }
.hx-footer .hx-logo img { height: 56px; }

.hx-nav { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; flex: 1; justify-content: center; }
.hx-nav li { white-space: nowrap; }
.hx-nav a { color: rgba(255,255,255,.86); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (max-width: 1199px) { .hx-nav { gap: 16px; } .hx-nav a { font-size: 13px; } }
.hx-nav a:hover { color: var(--hx-white); }
.hx-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hx-right .language-btn { color: var(--hx-white); display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; font-weight: 600; }
.hx-right .language-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.hx-right .dropdown-menu { border-radius: var(--hx-radius-sm); }
.hx-right .header-search, .hx-right .search-box { color: var(--hx-white); }
.hx-burger { display: none; background: transparent; border: 0; color: var(--hx-white); font-size: 26px; padding: 0; }
.hx-mobile-menu { display: none; }
@media (max-width: 991px) {
    .hx-nav { display: none; }
    .hx-burger { display: inline-flex; }
    .hx-mobile-menu.is-open { display: block; position: fixed; inset: 76px 0 0 0; background: var(--hx-black); padding: 24px 20px; z-index: 49; }
    .hx-mobile-menu a { display: block; color: var(--hx-white); font-size: 22px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; }
    .hx-right .hx-btn-cta span { display: none; }
}

/* ---------- hero ---------- */
.hx-hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--hx-white); background: var(--hx-black) center / cover no-repeat; padding: 140px 0 70px; }
.hx-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); }
.hx-hero .hx-container { position: relative; }
.hx-hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; line-height: 1.02; max-width: 760px; margin: 0 0 18px; }
.hx-hero p.hx-sub { font-size: 18px; max-width: 560px; color: rgba(255,255,255,.82); margin: 0 0 30px; }
.hx-booking { background: var(--hx-white); color: var(--hx-ink); border-radius: var(--hx-radius); padding: 18px; max-width: 980px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hx-booking-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.hx-booking-tabs span { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--hx-gray-1); color: var(--hx-gray-7); }
.hx-booking-tabs span.is-active { background: var(--hx-black); color: var(--hx-white); }
.hx-booking-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.hx-field label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 6px 2px; color: var(--hx-ink); }
.hx-field .hx-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--hx-gray-3); border-radius: var(--hx-radius-sm); padding: 0 14px; height: 50px; background: var(--hx-white); }
.hx-field .hx-input i { color: var(--hx-gray-5); font-size: 18px; }
.hx-field input { border: 0; outline: 0; width: 100%; font-size: 15px; background: transparent; color: var(--hx-ink); }
.hx-booking .hx-btn { height: 50px; border-radius: var(--hx-radius-sm); padding: 0 28px; }
.hx-hero-apps { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 767px) {
    .hx-hero { min-height: auto; padding-top: 120px; }
    .hx-booking-row { grid-template-columns: 1fr; }
}

/* ---------- "lo que hacemos" + cifras ---------- */
.hx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.hx-feature-img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--hx-radius); display: block; }
.hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.hx-stat { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.hx-stat strong { display: block; font-family: var(--hx-display); font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1; }
.hx-stat h4 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; }
.hx-stat p { font-size: 14px; color: rgba(255,255,255,.62); margin: 0; }
@media (max-width: 991px) { .hx-split { grid-template-columns: 1fr; gap: 20px; } .hx-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hx-stats { grid-template-columns: 1fr; } }

/* ---------- servicios (tarjetas) ---------- */
.hx-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; }
.hx-head .hx-lead { max-width: 520px; }
.hx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hx-card { background: var(--hx-white); border-radius: var(--hx-radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.hx-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(0,0,0,.08); }
.hx-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hx-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hx-card-body h3 { font-size: 21px; font-weight: 700; margin: 0; }
.hx-card-body p { font-size: 15px; color: var(--hx-gray-7); margin: 0; line-height: 1.55; flex: 1; }
.hx-card-body .hx-btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 991px) { .hx-cards { grid-template-columns: repeat(2, 1fr); } .hx-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 575px) { .hx-cards { grid-template-columns: 1fr; } }

/* ---------- como funciona ---------- */
.hx-steps-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.hx-phone { position: relative; max-width: 320px; margin: 0 auto; }
.hx-phone img { width: 100%; border-radius: 36px; display: block; box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.hx-steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; }
.hx-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); cursor: pointer; opacity: .55; transition: opacity .2s ease; }
.hx-steps li.is-active, .hx-steps li:hover { opacity: 1; }
.hx-steps li span { font-family: var(--hx-display); font-size: 15px; font-weight: 700; color: var(--hx-accent); padding-top: 3px; }
.hx-steps li h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.hx-steps li p { font-size: 15px; margin: 0; color: rgba(255,255,255,.7); }
@media (max-width: 991px) { .hx-steps-wrap { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- testimonios ---------- */
.hx-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hx-quote { background: var(--hx-white); border-radius: var(--hx-radius); padding: 28px; border: 1px solid rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 18px; }
.hx-quote .hx-stars { color: #f5b301; letter-spacing: 2px; font-size: 15px; }
.hx-quote p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hx-ink); flex: 1; }
.hx-quote .hx-who { display: flex; align-items: center; gap: 12px; }
.hx-quote .hx-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--hx-gray-1); }
.hx-quote .hx-who strong { font-size: 15px; }
@media (max-width: 991px) { .hx-quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .hx-quotes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.hx-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.hx-faq details { border-bottom: 1px solid var(--hx-gray-3); padding: 22px 0; }
.hx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-family: var(--hx-display); font-size: 19px; font-weight: 600; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; font-size: 26px; line-height: 1; font-weight: 400; transition: transform .2s ease; }
.hx-faq details[open] summary::after { transform: rotate(45deg); }
.hx-faq details p { margin: 12px 0 0; color: var(--hx-gray-7); font-size: 16px; line-height: 1.6; }
@media (max-width: 991px) { .hx-faq-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- blog ---------- */
.hx-posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hx-post { text-decoration: none; color: var(--hx-ink); display: flex; flex-direction: column; gap: 12px; }
.hx-post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--hx-radius-sm); background: var(--hx-gray-1); }
.hx-post small { color: var(--hx-gray-5); font-size: 13px; }
.hx-post h3 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.3; }
.hx-post:hover h3 { text-decoration: underline; }
@media (max-width: 991px) { .hx-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hx-posts { grid-template-columns: 1fr; } }

/* ---------- CTA app ---------- */
.hx-cta { border-radius: 28px; background: var(--hx-black) center / cover no-repeat; color: var(--hx-white); padding: 72px 56px; position: relative; overflow: hidden; }
.hx-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.25) 100%); }
.hx-cta > * { position: relative; }
.hx-cta h2 { max-width: 560px; }
.hx-cta .hx-lead { max-width: 520px; margin: 16px 0 28px; }
.hx-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-stores img { height: 46px; width: auto; }
@media (max-width: 575px) { .hx-cta { padding: 44px 24px; } }

/* ---------- footer ---------- */
.hx-footer { background: var(--hx-black); color: rgba(255,255,255,.72); padding: 80px 0 28px; }
.hx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.hx-footer h4 { color: var(--hx-white); font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.hx-footer ul { list-style: none; margin: 0; padding: 0; }
.hx-footer li { display: block; margin-bottom: 10px; }
.hx-footer a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 15px; }
.hx-footer a:hover { color: var(--hx-white); }
.hx-footer p { font-size: 15px; line-height: 1.6; margin: 16px 0 0; }
.hx-news { display: flex; gap: 8px; margin-top: 8px; }
.hx-news input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--hx-white); padding: 0 18px; outline: 0; }
.hx-news input::placeholder { color: rgba(255,255,255,.45); }
.hx-social { display: flex; gap: 10px; margin-top: 18px; }
.hx-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.hx-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.hx-footer-grid.is-3 { grid-template-columns: 1.4fr 1fr 1.3fr; }
@media (max-width: 991px) { .hx-footer-grid, .hx-footer-grid.is-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .hx-footer-grid, .hx-footer-grid.is-3 { grid-template-columns: 1fr; } }

/* ---------- animacion de entrada ---------- */
.hx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hx-reveal { opacity: 1; transform: none; transition: none; } }

/* paginas internas: el header fijo no debe tapar el contenido */
body.hx-body.hx-inner { padding-top: 76px; }

/* ---------- celular: encabezado compacto ---------- */
@media (max-width: 575px) {
    .hx-header .hx-bar { gap: 12px; height: 64px; }
    .hx-logo img { height: 30px; }
    .hx-right { gap: 6px; }
    .hx-right .language-btn span { display: none; }
    .hx-right .language-btn { padding: 6px; }
    .hx-btn-cta { padding: 9px 12px; }
    .hx-mobile-menu.is-open { inset: 64px 0 0 0; }
    body.hx-body.hx-inner { padding-top: 64px; }
    .hx-section { padding: 72px 0; }
}
html, body.hx-body { overflow-x: clip; }

/* ---------- como funciona: lista + recorrido (estilo paso a paso) ---------- */
:root { --hx-orange: #f26a1b; --hx-orange-soft: #fff0e6; }
.hx-how { background: var(--hx-white); }
.hx-how-title { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.hx-how-title .hx-lead { margin-top: 14px; }
.hx-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hx-how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.hx-how-list li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
.hx-how-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--hx-orange-soft); color: var(--hx-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 32px; }
.hx-how-list h3 { font-size: 19px; font-weight: 700; margin: 6px 0 6px; color: var(--hx-ink); }
.hx-how-list p { font-size: 15px; line-height: 1.6; color: var(--hx-gray-7); margin: 0; }

.hx-flow { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hx-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-flow svg path { fill: none; stroke: #dfe3ea; stroke-width: 4; stroke-dasharray: 10 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hx-flow-bubble { position: absolute; transform: translateY(-4px); background: var(--hx-gray-1); border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--hx-ink); white-space: nowrap; }
.hx-flow-bubble::after { content: ""; position: absolute; left: 14px; bottom: -6px; border: 6px solid transparent; border-top-color: var(--hx-gray-1); border-bottom: 0; }
.hx-flow-node { position: absolute; transform: translate(-50%, -44px); display: flex; flex-direction: column; align-items: center; gap: 12px; width: 140px; text-align: center; }
.hx-flow-node span { width: 88px; height: 88px; border-radius: 50%; background: var(--hx-white); box-shadow: 0 6px 22px rgba(15, 23, 42, .10); display: inline-flex; align-items: center; justify-content: center; font-size: 34px; color: var(--hx-ink); }
.hx-flow-node small { font-size: 14px; line-height: 1.35; color: var(--hx-ink); }
.hx-flow-end { position: absolute; transform: translate(-50%, -12px); display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; text-align: center; }
.hx-flow-end b { width: 22px; height: 22px; border-radius: 50%; background: var(--hx-orange); box-shadow: 0 0 0 6px var(--hx-orange-soft); }
.hx-flow-end small { font-size: 14px; color: var(--hx-ink); font-weight: 600; }
@media (max-width: 991px) {
    .hx-how-grid { grid-template-columns: 1fr; }
    .hx-flow { display: none; }
    .hx-how-title { text-align: left; margin-bottom: 36px; }
}
@media (max-width: 575px) {
    .hx-how-list li { grid-template-columns: 56px 1fr; gap: 14px; }
    .hx-how-icon { width: 56px; height: 56px; font-size: 26px; }
}
.hx-how .hx-how-icon i { font-size: 32px; line-height: 1; }
.hx-how .hx-flow-node span i { font-size: 36px; line-height: 1; }
@media (max-width: 575px) { .hx-how .hx-how-icon i { font-size: 26px; } }

/* ---------- buscador de viajes (hero) ---------- */
.hx-search { max-width: 1060px; }
.hx-search-tabs { display: inline-flex; gap: 4px; background: var(--hx-white); border-radius: 14px 14px 0 0; padding: 8px 8px 0; }
.hx-search-tabs button { border: 0; background: transparent; color: var(--hx-gray-7); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.hx-search-tabs button.is-active { background: var(--hx-black); color: var(--hx-white); }
.hx-search-card { background: var(--hx-white); color: var(--hx-ink); border-radius: 0 20px 20px 20px; padding: 16px 16px 12px; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.hx-search-grid { display: grid; grid-template-columns: 1fr auto 1fr 1.05fr auto; gap: 10px; align-items: end; }
.hx-sf { position: relative; min-width: 0; }
.hx-sf > label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 6px 2px; color: var(--hx-ink); }
.hx-sf-box { display: flex; align-items: center; gap: 8px; height: 52px; border: 1px solid var(--hx-gray-3); border-radius: 12px; padding: 0 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.hx-sf-box:focus-within { border-color: var(--hx-black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.hx-sf-box i { color: var(--hx-gray-5); font-size: 18px; line-height: 1; }
.hx-sf-box input, .hx-sf-box select { border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--hx-ink); width: 100%; min-width: 0; height: 100%; }
.hx-sf-box select { cursor: pointer; }
.hx-sf-split select[name="passengers"] { width: auto; min-width: 46px; flex: 0 0 auto; }
.hx-sf-sep { width: 1px; height: 26px; background: var(--hx-gray-3); flex: 0 0 1px; }
.hx-sf-locate { border: 0; background: transparent; padding: 4px; cursor: pointer; color: var(--hx-gray-5); display: inline-flex; }
.hx-sf-locate:hover i { color: var(--hx-black); }
.hx-sf-locate.is-busy i { animation: hx-spin 1s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-swap { width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--hx-gray-3); background: var(--hx-gray-1); color: var(--hx-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hx-swap:hover { background: var(--hx-gray-3); }
.hx-swap i { font-size: 16px; line-height: 1; }
.hx-sf-later { display: none; gap: 6px; margin-top: 6px; }
.hx-search.is-later .hx-sf-later { display: flex; }
.hx-sf-later input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--hx-gray-3); border-radius: 10px; padding: 0 10px; font-size: 14px; }
.hx-search.is-hourly .hx-sf-to, .hx-search.is-hourly .hx-swap { visibility: hidden; }
.hx-search-go { height: 52px; border-radius: 12px; padding: 0 26px; }
.hx-search-go i { font-size: 18px; line-height: 1; }
.hx-search-note { margin: 10px 2px 0; font-size: 13px; color: var(--hx-gray-5); display: flex; align-items: center; gap: 6px; }
.hx-search-note i { color: var(--hx-orange); }
/* lista de sugerencias */
.hx-ac { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.18); display: none; max-height: 320px; overflow-y: auto; }
.hx-ac.is-open { display: block; }
.hx-ac li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; cursor: pointer; }
.hx-ac li:hover, .hx-ac li.is-active { background: var(--hx-gray-1); }
.hx-ac li i { color: var(--hx-gray-5); margin-top: 2px; }
.hx-ac li b { display: block; font-size: 14px; font-weight: 600; color: var(--hx-ink); }
.hx-ac li small { display: block; font-size: 12px; color: var(--hx-gray-5); }
@media (max-width: 991px) {
    .hx-search-grid { grid-template-columns: 1fr; }
    .hx-search-grid .hx-swap { justify-self: end; margin: -18px 14px -18px 0; position: relative; right: auto; }
    .hx-search.is-hourly .hx-sf-to, .hx-search.is-hourly .hx-swap { display: none; }
    .hx-search-go { width: 100%; }
}

/* ---------- campo "Informacion del viaje" (estilo travelthru) ---------- */
.hx-journey { width: 100%; cursor: pointer; background: var(--hx-gray-1); border-color: transparent; font: inherit; color: var(--hx-ink); text-align: left; gap: 7px; }
.hx-journey:hover { border-color: var(--hx-gray-3); }
.hx-sf-when.is-open .hx-journey { border-color: var(--hx-black); background: #fff; }
.hx-journey i { color: var(--hx-ink); font-size: 16px; }
.hx-journey .hx-j-when { flex: 1; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-journey .hx-j-pax, .hx-journey .hx-j-bag { font-size: 15px; font-weight: 600; margin-right: 4px; }
.hx-journey .hx-j-caret { color: var(--hx-gray-5); transition: transform .2s ease; }
.hx-sf-when.is-open .hx-j-caret { transform: rotate(180deg); }

.hx-jp { position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 40; width: 640px; max-width: calc(100vw - 32px); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28); padding: 16px; display: none; grid-template-columns: 1fr 1fr; gap: 16px; color: var(--hx-ink); }
.hx-sf-when.is-open .hx-jp { display: grid; }
.hx-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hx-cal-head strong { font-size: 14px; font-weight: 700; text-transform: capitalize; }
.hx-cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--hx-gray-3); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hx-cal-nav:disabled { opacity: .35; cursor: default; }
.hx-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.hx-cal-wd { font-size: 11px; font-weight: 600; color: var(--hx-gray-5); text-align: center; padding: 6px 0; text-transform: uppercase; }
.hx-cal-day { height: 36px; border: 0; background: transparent; border-radius: 8px; font-size: 13px; color: var(--hx-ink); cursor: pointer; }
.hx-cal-day:hover:not(:disabled) { background: var(--hx-gray-1); }
.hx-cal-day.is-out { color: var(--hx-gray-5); }
.hx-cal-day:disabled { color: #c9c9c9; cursor: default; }
.hx-cal-day.is-today { font-weight: 700; }
.hx-cal-day.is-sel { background: var(--hx-black); color: #fff; font-weight: 700; }
.hx-jp-side { display: flex; flex-direction: column; gap: 8px; }
.hx-jp-time { position: relative; border: 1px solid var(--hx-gray-3); border-radius: 12px; padding: 7px 12px; }
.hx-jp-time small { display: block; font-size: 11px; color: var(--hx-gray-5); }
.hx-jp-time select { width: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; }
.hx-jp-time i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 18px; }
.hx-jp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-counter { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--hx-gray-3); border-radius: 12px; padding: 7px 8px 7px 10px; min-width: 0; }
.hx-counter b { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hx-counter b i { font-size: 14px; }
.hx-counter small { display: block; font-size: 10px; color: var(--hx-gray-5); white-space: nowrap; }
.hx-cnt { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.hx-cnt span { min-width: 16px; text-align: center; font-size: 14px; font-weight: 700; }
.hx-cnt button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hx-gray-3); background: #fff; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--hx-ink); }
.hx-cnt button:disabled { opacity: .35; cursor: default; }
.hx-jp-done { margin-top: auto; width: 100%; border-radius: 12px; height: 44px; }
@media (max-width: 991px) {
    .hx-jp { position: fixed; left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); grid-template-columns: 1fr; max-height: calc(100vh - 100px); overflow-y: auto; width: calc(100vw - 24px); }
}
/* ajustes del panel de viaje */
.hx-jp { width: 700px; }
.hx-cal-head strong { text-transform: none; }
.hx-cal-head strong::first-letter { text-transform: uppercase; }
.hx-cal-day.is-sel, .hx-cal-day.is-sel:hover { background: var(--hx-black); color: #fff; }
.hx-counter { padding: 7px 7px 7px 9px; }
.hx-cnt { gap: 3px; }
.hx-cnt button { width: 22px; height: 22px; font-size: 14px; }
.hx-cnt span { min-width: 14px; }
.hx-search-grid { grid-template-columns: 1fr auto 1fr 1.2fr auto; }
@media (max-width: 991px) { .hx-search-grid { grid-template-columns: 1fr; } }

/* ---------- paginas internas: encabezado pegajoso sin franja blanca ---------- */
body.hx-body.hx-inner { padding-top: 0; }
.hx-header.is-static { position: sticky !important; top: 0; }

/* ---------- login / registro / codigo ---------- */
.hx-auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 76px); background: var(--hx-white); }
.hx-auth-media { position: relative; background: var(--hx-black) center / cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.hx-auth-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%); }
.hx-auth-media-inner { position: relative; padding: 56px; max-width: 560px; }
.hx-auth-media h2 { font-family: var(--hx-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; line-height: 1.05; margin: 0 0 24px; color: #fff; }
.hx-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hx-auth-points li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: rgba(255,255,255,.88); }
.hx-auth-points i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: 0 0 34px; color: #fff; }
.hx-auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--hx-gray-1); }
.hx-auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 36px 32px; box-shadow: 0 20px 50px rgba(15,23,42,.08); color: var(--hx-ink); }
.hx-auth-card h1 { font-family: var(--hx-display); font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; color: var(--hx-ink); }
.hx-auth-sub { color: var(--hx-gray-7); font-size: 15px; margin: 0 0 22px; }
.hx-auth-trip { display: flex; gap: 12px; align-items: center; background: #fff0e6; border-radius: 14px; padding: 12px 14px; margin-bottom: 20px; }
.hx-auth-trip i { font-size: 22px; color: #f26a1b; }
.hx-auth-trip small { display: block; font-size: 12px; color: var(--hx-gray-7); }
.hx-auth-trip strong { font-size: 14px; line-height: 1.35; }
.hx-auth-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.hx-auth-input { display: flex; align-items: stretch; border: 1px solid var(--hx-gray-3); border-radius: 12px; overflow: hidden; background: #fff; height: 52px; transition: border-color .15s ease, box-shadow .15s ease; }
.hx-auth-input:focus-within { border-color: var(--hx-black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.hx-auth-input .country-code-section { border-right: 1px solid var(--hx-gray-3); flex: 0 0 auto; background: var(--hx-gray-1); }
.hx-auth-input .select2-container { height: 100%; }
.hx-auth-input .select2-container .select2-selection--single { height: 50px !important; border: 0 !important; display: flex; align-items: center; padding: 0 4px 0 10px; background: transparent !important; }
.hx-auth-input .select2-selection__rendered { display: flex !important; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; padding: 0 18px 0 0 !important; }
.hx-auth .flag-img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; margin-right: 4px; }
.hx-auth-input input.form-control { border: 0 !important; box-shadow: none !important; height: 100%; font-size: 15px; padding: 0 14px; flex: 1; min-width: 0; background: transparent; border-radius: 0 !important; }
.hx-auth-hint { font-size: 13px; color: var(--hx-gray-5); margin: 10px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.hx-auth-btn { width: 100%; height: 52px; border-radius: 12px; margin-top: 18px; font-size: 16px; }
.hx-auth-btn.hx-btn-ghost { color: var(--hx-ink); border-color: var(--hx-gray-3); margin-top: 10px; }
.hx-auth-switch { text-align: center; margin: 22px 0 0; font-size: 15px; color: var(--hx-gray-7); }
.hx-auth-switch a { color: var(--hx-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hx-auth-legal { text-align: center; font-size: 12px; color: var(--hx-gray-5); margin: 14px 0 0; }
.hx-auth .text-danger, .hx-auth label.error, .hx-auth .invalid-feedback { font-size: 13px; color: #c62828 !important; margin-top: 6px; display: block; }

/* formularios heredados (registro y codigo) dentro de la tarjeta nueva */
.hx-auth-legacy .form-box { margin-bottom: 14px; }
.hx-auth-legacy .form-control { height: 50px; border-radius: 12px !important; border: 1px solid var(--hx-gray-3) !important; box-shadow: none !important; font-size: 15px; background: #fff; }
.hx-auth-legacy .form-control:focus { border-color: var(--hx-black) !important; }
.hx-auth-legacy .form-icon .position-relative > i:first-child { position: absolute; left: 14px; top: 25px; transform: translateY(-50%); color: var(--hx-gray-5); z-index: 2; font-size: 18px; }
.hx-auth-legacy .form-icon .form-control { padding-left: 42px; }
.hx-auth-legacy .right-icon { position: absolute; right: 14px; top: 25px; transform: translateY(-50%); cursor: pointer; color: var(--hx-gray-5); z-index: 2; }
.hx-auth-legacy .number-mail-box { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-auth-legacy .number-mail-box .country-code-section { flex: 0 0 auto; }
.hx-auth-legacy .number-mail-box > div:not(.country-code-section) { flex: 1; min-width: 0; }
.hx-auth-legacy .select2-container .select2-selection--single { height: 50px !important; border-radius: 12px !important; border: 1px solid var(--hx-gray-3) !important; display: flex; align-items: center; }
.hx-auth-legacy .gradient-bg-color, .hx-auth-legacy .otp-btn { background: var(--hx-black) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; height: 52px; width: 100%; font-weight: 700; font-size: 16px; margin-top: 8px; }
.hx-auth-legacy .gradient-bg-color:disabled { opacity: .45; }
.hx-auth-legacy .otp-inputs { display: flex; gap: 10px; justify-content: space-between; }
.hx-auth-legacy .otp-inputs .otp-field { width: 52px; height: 58px; text-align: center; font-size: 22px; font-weight: 700; padding: 0; }
.hx-auth-legacy .new-account { text-align: center; font-size: 14px; color: var(--hx-gray-7); margin-top: 16px; }
.hx-auth-legacy .new-account a { color: var(--hx-ink); font-weight: 700; }
.hx-auth-legacy h6 { font-size: 13px; }

@media (max-width: 991px) {
    .hx-auth { grid-template-columns: 1fr; min-height: 0; }
    .hx-auth-media { min-height: 220px; }
    .hx-auth-media-inner { padding: 28px 20px; }
    .hx-auth-media h2 { font-size: 26px; margin-bottom: 12px; }
    .hx-auth-points { display: none; }
    .hx-auth-panel { padding: 24px 16px 48px; }
    .hx-auth-card { padding: 26px 20px; }
    .hx-auth-legacy .otp-inputs .otp-field { width: 44px; height: 52px; }
}
.hx-auth { padding: 0 !important; margin: 0 !important; }
/* registro: campos con etiqueta e icono */
.hx-reg-field { margin-bottom: 14px; }
.hx-auth-input .hx-in-icon { align-self: center; margin-left: 14px; color: var(--hx-gray-5); font-size: 18px; flex: 0 0 auto; }
.hx-auth-input .hx-in-icon + input.form-control { padding-left: 10px; }
.hx-auth-input .hx-eye { align-self: center; margin-right: 14px; color: var(--hx-gray-5); font-size: 18px; cursor: pointer; flex: 0 0 auto; }
.hx-auth-input .hx-eye:hover { color: var(--hx-ink); }
.hx-auth-input input[type=number]::-webkit-inner-spin-button, .hx-auth-input input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hx-auth-input input[type=number] { -moz-appearance: textfield; }
.hx-auth-input .country-code-section .select2-container { min-width: 96px !important; width: auto !important; }
.hx-auth-input .select2-selection__arrow { top: 50% !important; transform: translateY(-50%); right: 4px !important; }

/* =====================================================================
   AREA DEL PASAJERO (reserva, cuenta, viajes) — diseno HCY
   ===================================================================== */

/* ---------- reserva: panel + mapa ---------- */
.hx-book { background: var(--hx-gray-1); padding: 0 !important; }
.hx-book-grid { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; min-height: calc(100vh - 76px); }
.hx-book-panel { background: #fff; padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid rgba(0,0,0,.06); overflow-y: auto; max-height: calc(100vh - 76px); position: sticky; top: 76px; }
.hx-book-head h1 { font-family: var(--hx-display); font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -.02em; color: var(--hx-ink); }
.hx-book-head p { margin: 4px 0 0; color: var(--hx-gray-7); font-size: 15px; }
.hx-route { position: relative; border: 1px solid var(--hx-gray-3); border-radius: 16px; padding: 6px 14px; background: #fff; }
.hx-route::before { content: ""; position: absolute; left: 21px; top: 34px; bottom: 34px; border-left: 2px dotted var(--hx-gray-3); }
.hx-route-row { display: flex; gap: 14px; align-items: center; padding: 6px 0; }
.hx-route-row + .hx-route-row { border-top: 1px solid var(--hx-gray-1); }
.hx-route-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 14px; position: relative; z-index: 1; }
.hx-route-dot.is-from { background: #fff; border: 4px solid var(--hx-black); }
.hx-route-dot.is-to { background: var(--hx-black); border-radius: 3px; }
.hx-route-field { flex: 1; min-width: 0; }
.hx-route-field label { display: block; font-size: 11px; font-weight: 700; color: var(--hx-gray-5); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.hx-route-field .form-control { border: 0 !important; box-shadow: none !important; padding: 2px 0 !important; height: 32px; font-size: 15px; font-weight: 600; background: transparent !important; color: var(--hx-ink); }
.hx-book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hx-book-field > label, .hx-book-label-row > label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 7px; color: var(--hx-ink); }
.hx-book-field .form-control, .hx-book-field textarea { border: 1px solid var(--hx-gray-3) !important; border-radius: 12px !important; box-shadow: none !important; font-size: 15px; min-height: 48px; }
.hx-book-field .form-control:focus { border-color: var(--hx-black) !important; }
.hx-book-field .select2-container { width: 100% !important; }
.hx-book-field .select2-container .select2-selection--single { height: 48px !important; border-radius: 12px !important; border: 1px solid var(--hx-gray-3) !important; display: flex; align-items: center; padding: 0 8px; }
.hx-book-field .select2-selection__rendered { font-weight: 600; font-size: 14px; }
.hx-book-field .select2-selection__arrow { top: 50% !important; transform: translateY(-50%); }
.hx-book-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hx-trip-stats { display: flex; gap: 12px; list-style: none; margin: 0 0 7px; padding: 0; font-size: 13px; color: var(--hx-gray-7); }
.hx-trip-stats li { display: inline-flex; align-items: center; gap: 4px; }
.hx-vehicles { position: relative; }
.hx-vehicles .vehicle-type-slider-box { display: flex; flex-direction: column; gap: 10px; }
.hx-vehicles .swiper-slide { width: 100% !important; height: auto; }
.hx-vehicles .vehicles-box { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; padding: 12px 14px; border: 1.5px solid var(--hx-gray-3); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.hx-vehicles .vehicles-box:hover { border-color: #b9b9b9; }
.hx-vehicles .vehicles-box.is-selected, .hx-vehicles .vehicles-box:has(input:checked) { border-color: var(--hx-black); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.hx-vehicles .vehicles-box .form-check-input { position: absolute; opacity: 0; pointer-events: none; }
.hx-vehicles .vehicles-image img { width: 76px; height: 52px; object-fit: contain; }
.hx-vehicles .vehicles-name { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.hx-vehicles .vehicles-name h5 { margin: 0; font-size: 15px; font-weight: 700; color: var(--hx-ink); }
.hx-vehicles .vehicles-name h5.price { font-family: var(--hx-display); font-size: 17px; font-weight: 800; }
.hx-vehicles .vehicles-name .btn { grid-column: 1 / -1; justify-self: start; padding: 0; font-size: 12px; color: var(--hx-gray-7); text-decoration: underline; background: none; border: 0; }
.hx-vehicles .data-not-found-box { border: 1.5px dashed var(--hx-gray-3); border-radius: 14px; padding: 18px; text-align: center; color: var(--hx-gray-5); font-size: 14px; }
.hx-vehicles .vehicle-spinner-box { display: flex; justify-content: center; padding: 14px; }
.hx-book-footer { margin-top: auto; position: sticky; bottom: -24px; background: #fff; padding: 12px 0 0; }
.hx-book-info { font-size: 12px; color: var(--hx-gray-5); display: flex; gap: 6px; margin: 0 0 10px; }
.hx-book-btn { width: 100%; height: 54px; border-radius: 14px; font-size: 16px; }
.hx-book-map { position: relative; min-height: 420px; background: #e9ecef; }
.hx-book-map #map { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.hx-book-map #map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--hx-gray-5); text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, #eef0f3 0 14px, #e7eaee 14px 28px); }
.hx-book-map #map-placeholder[style*="none"] { display: none !important; }
.hx-book-map #map-placeholder i { font-size: 42px; }
.hx-book-map #map-placeholder p { max-width: 320px; font-size: 14px; margin: 0; }
@media (max-width: 991px) {
  .hx-book-grid { grid-template-columns: 1fr; }
  .hx-book-map { order: -1; min-height: 40vh; }
  .hx-book-panel { max-height: none; position: static; border-right: 0; padding: 22px 16px; }
  .hx-book-row { grid-template-columns: 1fr; }
  .hx-book-footer { bottom: 0; padding-bottom: 12px; }
}

/* ---------- area de la cuenta ---------- */
.hx-account { background: var(--hx-gray-1); padding: 32px 0 64px !important; }
.hx-account-grid { max-width: var(--hx-max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.hx-side { background: #fff; border-radius: 20px; padding: 22px 18px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.hx-side-profile { display: flex; align-items: center; gap: 12px; }
.hx-avatar { position: relative; width: 56px; height: 56px; flex: 0 0 56px; }
.hx-avatar img, .hx-avatar > span { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--hx-black); color: #fff; font-weight: 800; font-size: 22px; font-family: var(--hx-display); }
.hx-avatar-edit { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--hx-gray-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; margin: 0; }
.hx-side-name { min-width: 0; }
.hx-side-name strong { display: block; font-size: 16px; color: var(--hx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-side-name small { display: block; font-size: 13px; color: var(--hx-gray-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-side-cta { width: 100%; border-radius: 12px; height: 46px; }
.hx-side-nav { display: flex; flex-direction: column; gap: 2px; }
.hx-side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--hx-gray-7); text-decoration: none; font-weight: 600; font-size: 15px; }
.hx-side-nav a i { font-size: 19px; }
.hx-side-nav a:hover { background: var(--hx-gray-1); color: var(--hx-ink); }
.hx-side-nav a.is-active { background: var(--hx-black); color: #fff; }
.hx-side-logout button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; background: none; border-radius: 12px; color: #c62828; font-weight: 600; font-size: 15px; }
.hx-side-logout button:hover { background: #fdecec; }
.hx-account-content { background: #fff; border-radius: 20px; padding: 28px; min-width: 0; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
@media (max-width: 991px) {
  .hx-account { padding-top: 16px !important; }
  .hx-account-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 12px; }
  .hx-side { position: static; padding: 16px; }
  .hx-side-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .hx-side-nav::-webkit-scrollbar { display: none; }
  .hx-side-nav a { white-space: nowrap; border: 1px solid var(--hx-gray-3); padding: 8px 12px; font-size: 14px; }
  .hx-side-logout { display: none; }
  .hx-account-content { padding: 18px 16px; }
}

/* ---------- capa de estilo para los componentes viejos del tema dentro del area ---------- */
.hx-account-content .dashboard-title h3, .hx-account-content .dashboard-title h2 { font-family: var(--hx-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--hx-ink); margin: 0 0 18px; }
.hx-account-content .dashboard-sub-title h3, .hx-account-content .dashboard-sub-title h4, .hx-account-content .general-title h3, .hx-account-content .general-title h4 { font-size: 17px; font-weight: 700; color: var(--hx-ink); }
.hx-account-content .dashboard-details-box, .hx-account-content .general-details-box, .hx-account-content .table-details-box, .hx-account-content .wallet-main-box { background: #fff; border: 1px solid var(--hx-gray-3); border-radius: 16px; padding: 18px; box-shadow: none; }
.hx-account-content .wallet-box { border-radius: 16px !important; border: 0; background: var(--hx-black) !important; color: #fff; }
.hx-account-content .wallet-box * { color: #fff; }
.hx-account-content .table { margin: 0; }
.hx-account-content .table thead th { background: var(--hx-gray-1); border: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--hx-gray-7); font-weight: 700; padding: 12px; }
.hx-account-content .table td { border-color: var(--hx-gray-1); padding: 12px; font-size: 14px; vertical-align: middle; }
.hx-account-content .form-control { border: 1px solid var(--hx-gray-3) !important; border-radius: 12px !important; min-height: 46px; box-shadow: none !important; }
.hx-account-content .form-control:focus { border-color: var(--hx-black) !important; }
.hx-account-content .badge { border-radius: 999px; font-weight: 600; padding: 5px 10px; }
.hx-account-content .dashboard-no-data { text-align: center; color: var(--hx-gray-5); padding: 30px 10px; }
.hx-account-content .dashboard-no-data img { max-width: 220px; opacity: .9; }
.hx-account-content .pagination-box .page-link, .hx-account-content .pagination .page-link { border-radius: 10px; margin: 0 3px; border: 1px solid var(--hx-gray-3); color: var(--hx-ink); }
.hx-account-content .pagination .active .page-link { background: var(--hx-black); border-color: var(--hx-black); color: #fff; }

/* botones y ventanas del tema viejo en todo el sitio publico */
.hx-body .gradient-bg-color { background: var(--hx-black) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; }
.hx-body .gradient-bg-color:hover { background: #262626 !important; }
.hx-body .gradient-border-color { border: 1px solid var(--hx-black) !important; color: var(--hx-black) !important; background: #fff !important; border-radius: 12px !important; }
.hx-body .cancel-btn { border-radius: 12px !important; }
.hx-body .theme-modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hx-body .theme-modal .modal-header { border-bottom: 1px solid var(--hx-gray-1); padding: 18px 22px; }
.hx-body .theme-modal .modal-title { font-family: var(--hx-display); font-weight: 800; font-size: 20px; }
.hx-body .theme-modal .modal-body { padding: 20px 22px; }
.hx-body .theme-modal .modal-footer { border-top: 0; padding: 0 22px 20px; }
.hx-body .vehicle-detail-modal .vehicles-list { list-style: none; padding: 0; margin: 14px 0; }
.hx-body .vehicle-detail-modal .vehicles-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hx-gray-1); font-size: 14px; }
.hx-body .vehicle-detail-modal .vehicles-list li.total-box { font-weight: 800; border-bottom: 0; font-size: 16px; }
.hx-body .vehicle-detail-modal .vehicles-image { text-align: center; }
.hx-body .vehicle-detail-modal .vehicles-image img { max-height: 120px; }
.hx-body .vehicle-detail-modal p { font-size: 13px; color: var(--hx-gray-7); margin: 6px 0; }
.hx-body .find-driver-modal .set-timer { font-family: var(--hx-display); font-size: 40px; font-weight: 800; text-align: center; }

/* detalle y seguimiento del viaje */
.hx-body .ride-details-section, .hx-body .track-ride-section { background: var(--hx-gray-1); }
.hx-body .ride-details-section .container, .hx-body .track-ride-section .container { max-width: var(--hx-max); }
.hx-body .general-details-box, .hx-body .right-details-box > .general-details-box { border-radius: 16px; border: 1px solid var(--hx-gray-3); background: #fff; }

/* ===== Area do passageiro v2 (cabecalho, resumo, corridas, carteira, enderecos, avisos) ===== */
.hx-account-content > .dashboard-details-box { background: transparent !important; border: 0 !important; padding: 0 !important; }
.hx-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hx-page-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 4px; color: var(--hx-ink); }
.hx-page-head p { margin: 0; color: var(--hx-gray-5); font-size: 15px; }
.hx-page-head form { margin: 0; }
.hx-page-head .hx-btn { padding: 11px 20px; font-size: 14px; }
.hx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--hx-ink); text-decoration: underline; text-underline-offset: 3px; }
.hx-link:hover { color: var(--hx-black); }

.hx-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.hx-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--hx-gray-1); color: var(--hx-ink); text-decoration: none; transition: background .2s; }
.hx-stat:hover { background: #ebebe8; color: var(--hx-ink); }
.hx-stat strong { font-family: var(--hx-display); font-size: 28px; font-weight: 800; line-height: 1.1; margin-top: 10px; }
.hx-stat small { font-size: 13px; color: var(--hx-gray-7); }
.hx-stat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--hx-black); color: #fff; font-size: 20px; }
.hx-stat-ico.is-accent { background: #f59e0b; }
.hx-stat-ico.is-ok { background: #16a34a; }

.hx-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hx-account-content .hx-card { padding: 20px; border: 1px solid var(--hx-gray-3); border-radius: 16px; gap: 12px; }
.hx-account-content .hx-card:hover { transform: none; box-shadow: none; }
.hx-account-content .hx-card h3 { font-size: 17px; font-weight: 700; margin: 0; }
.hx-dl { margin: 0; display: grid; gap: 10px; }
.hx-dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 14px; }
.hx-dl dt { color: var(--hx-gray-5); font-weight: 500; }
.hx-dl dd { margin: 0; color: var(--hx-ink); font-weight: 600; word-break: break-word; }

/* corridas */
.hx-rides { display: grid; gap: 10px; }
.hx-ride { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--hx-gray-3); border-radius: 16px; color: var(--hx-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hx-ride:hover { border-color: var(--hx-black); box-shadow: 0 8px 24px rgba(0,0,0,.06); color: var(--hx-ink); }
.hx-ride-main { display: grid; gap: 10px; min-width: 0; }
.hx-ride-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hx-ride-num { font-family: var(--hx-display); font-weight: 800; font-size: 15px; }
.hx-ride-driver { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hx-ride-driver div { display: grid; min-width: 0; }
.hx-ride-driver strong { font-size: 14px; font-weight: 700; }
.hx-ride-driver small { font-size: 13px; color: var(--hx-gray-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-ride-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--hx-gray-1); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.hx-ride-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hx-ride-side { display: grid; justify-items: end; gap: 6px; flex: none; }
.hx-ride-side strong { font-family: var(--hx-display); font-size: 18px; font-weight: 800; }
.hx-ride-go { font-size: 13px; font-weight: 700; color: var(--hx-gray-7); display: inline-flex; align-items: center; gap: 4px; }
.hx-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--hx-gray-1); color: var(--hx-gray-7); }
.hx-st-completed { background: #dcfce7; color: #166534; }
.hx-st-cancelled, .hx-st-rejected { background: #fee2e2; color: #991b1b; }
.hx-st-accepted, .hx-st-arrived { background: #dbeafe; color: #1e40af; }
.hx-st-started { background: #fef3c7; color: #92400e; }
.hx-st-scheduled, .hx-st-requested { background: #ede9fe; color: #5b21b6; }

/* carteira */
.hx-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; border-radius: 18px; background: var(--hx-black); color: #fff; margin-bottom: 18px; }
.hx-balance small { display: block; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.hx-balance strong { font-family: var(--hx-display); font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.hx-moves, .hx-notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hx-moves li, .hx-notifs li { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--hx-gray-1); }
.hx-moves li:last-child, .hx-notifs li:last-child { border-bottom: 0; }
.hx-move-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--hx-gray-1); font-size: 18px; flex: none; }
.hx-move-ico.is-in { background: #dcfce7; color: #166534; }
.hx-move-ico.is-out { background: #fee2e2; color: #991b1b; }
.hx-move-txt { flex: 1; min-width: 0; display: grid; }
.hx-move-txt strong { font-size: 14px; font-weight: 600; }
.hx-move-txt small { font-size: 12px; color: var(--hx-gray-5); }
.hx-move-amt { font-weight: 800; font-family: var(--hx-display); white-space: nowrap; }
.hx-move-amt.is-in { color: #166534; }
.hx-move-amt.is-out { color: #991b1b; }
.hx-notifs li.unread { background: #fafaf7; border-radius: 12px; }
.hx-notifs .notification-content { flex: 1; min-width: 0; }
.hx-notifs .notification-content p { margin: 0; font-size: 14px; color: var(--hx-ink); }
.hx-notifs .notification-content small { font-size: 12px; color: var(--hx-gray-5); }

/* vazio */
.hx-empty { list-style: none; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 44px 16px !important; border: 1px dashed var(--hx-gray-3) !important; border-radius: 16px; color: var(--hx-gray-5); background: transparent !important; }
.hx-empty > i { font-size: 30px; width: 64px; height: 64px; border-radius: 50%; background: var(--hx-gray-1); display: grid; place-items: center; color: var(--hx-gray-7); }
.hx-empty h3 { font-size: 16px; font-weight: 600; color: var(--hx-gray-7); margin: 0; }

/* enderecos */
.hx-account-content .address-list { list-style: none; padding: 0; margin: 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hx-account-content .address-box { border: 1px solid var(--hx-gray-3) !important; border-radius: 16px !important; padding: 16px !important; background: #fff !important; display: flex; flex-direction: column; gap: 10px; width: auto !important; margin: 0 !important; }
.hx-account-content .address-top { display: flex; align-items: center; justify-content: space-between; }
.hx-account-content .address-bottom p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--hx-ink); }
.hx-account-content .edit-delete { display: flex; gap: 4px; }
.hx-account-content .edit-delete .btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--hx-gray-1); border: 0; color: var(--hx-gray-7); font-size: 15px; }
.hx-account-content .edit-delete .btn.delete:hover { background: #fee2e2; color: #991b1b; }
.hx-loc-type { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.hx-loc-type i { width: 30px; height: 30px; border-radius: 50%; background: var(--hx-black); color: #fff; display: grid; place-items: center; font-size: 15px; }

/* chat */
.hx-account-content .chatting-main-box { border: 1px solid var(--hx-gray-3); border-radius: 16px; overflow: hidden; }
.hx-account-content .msger-chat, .hx-account-content .chat-history { max-height: 52vh; min-height: 280px; background: #fafaf7 !important; background-image: none !important; }

/* detalhe da corrida */
.hx-ride-page { background: var(--hx-gray-1); padding: 28px 0 60px !important; }
.hx-ride-page .container { max-width: var(--hx-max); }
.hx-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--hx-ink); margin-bottom: 16px; text-decoration: none; }
.hx-back:hover { color: var(--hx-black); text-decoration: underline; }
.hx-ride-page .right-details-box { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.hx-ride-page .left-map-box { position: sticky; top: 90px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.hx-ride-page .map-view { min-height: 360px; }
.hx-ride-page .dashboard-title h3 { font-family: var(--hx-display); font-size: 24px; font-weight: 800; margin: 0; }
.hx-ride-page .general-details-box { border: 1px solid var(--hx-gray-3) !important; border-radius: 16px !important; box-shadow: none !important; background: #fff !important; }
.hx-ride-page .badge { border-radius: 999px; font-weight: 700; padding: 5px 10px; }
.hx-ride-page .badge-primary { background: var(--hx-black) !important; color: #fff !important; }
.hx-ride-page .accordion-button { font-weight: 700; box-shadow: none !important; }

@media (max-width: 767px) {
  .hx-stats-grid { grid-template-columns: 1fr; }
  .hx-info-grid { grid-template-columns: 1fr; }
  .hx-page-head h1 { font-size: 23px; }
  .hx-ride { flex-direction: column; align-items: stretch; }
  .hx-ride-side { grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .hx-balance strong { font-size: 30px; }
  .hx-ride-page .left-map-box { position: static; }
  .hx-ride-page .right-details-box { padding: 16px; }
}

/* ===== Mapas Leaflet (OpenStreetMap) ===== */
.hx-book-map #map { z-index: 1; }
.hx-map-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(10,10,10,.82); color: #fff; font-size: 13px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.hx-pin { background: transparent; border: 0; }
.hx-pin span { display: block; width: 28px; height: 28px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.hx-pin-pickup span { background: #0a0a0a; }
.hx-pin-destination span { background: #f59e0b; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.hx-body .leaflet-container { font-family: var(--hx-body); }
.hx-body .leaflet-control-zoom a { color: var(--hx-ink); }
.hx-body .leaflet-control-attribution { font-size: 10px; }
.hx-route-field .hx-ac { top: calc(100% + 4px); }
.hx-loc-map { position: relative; height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--hx-gray-3); margin-top: 12px; }
.hx-loc-map > div { position: absolute; inset: 0; }

/* tipo de endereco como chips + mapa do detalhe sem painel de instrucoes */
.hx-account-content .radio-group-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.hx-account-content .radio-group-list li { position: relative; }
.hx-account-content .radio-group-list .form-check-input { position: absolute; opacity: 0; pointer-events: none; }
.hx-account-content .radio-group-list .form-check-label { display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid var(--hx-gray-3); border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; background: #fff; }
.hx-account-content .radio-group-list .form-check-label .circle { display: none; }
.hx-account-content .radio-group-list .form-check-input:checked + .form-check-label { background: var(--hx-black); border-color: var(--hx-black); color: #fff; }
.hx-account-content .map-warper { border-radius: 16px !important; }
.hx-account-content .map-location-list { list-style: none; padding: 6px; margin: 6px 0 0; background: #fff; border-radius: 14px; box-shadow: 0 16px 32px rgba(0,0,0,.14); position: absolute; left: 0; right: 0; z-index: 1000; }
.hx-account-content .map-location-list:empty { display: none; }
.hx-account-content .map-location-list li { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; }
.hx-account-content .map-location-list li:hover { background: var(--hx-gray-1); }
.hx-account-content .map-location-list li b { display: block; font-size: 14px; }
.hx-account-content .map-location-list li small { display: block; font-size: 12px; color: var(--hx-gray-5); }
.hx-ride-page .leaflet-routing-container { display: none !important; }
.hx-ride-page .custom-marker { background: var(--hx-black) !important; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); line-height: 24px !important; }

/* ===== Vehiculos: tarjeta y ficha de detalle (v2) ===== */
.hx-vehicles .vehicles-box { grid-template-columns: 72px 1fr; }
.hx-vehicles .vehicles-image { width: 72px; height: 52px; border-radius: 12px; background: var(--hx-gray-1); display: grid; place-items: center; overflow: hidden; padding: 4px; }
.hx-vehicles .vehicles-image img { width: 100% !important; height: 100% !important; max-width: 64px; max-height: 44px; object-fit: contain; }
.hx-vehicles .vehicles-box.is-selected .vehicles-image, .hx-vehicles .vehicles-box:has(input:checked) .vehicles-image { background: #fff3e8; }
.hx-vehicles .vehicles-name { grid-template-columns: 1fr auto; }
.hx-veh-meta { grid-column: 1 / 2; font-size: 12px; color: var(--hx-gray-5); display: inline-flex; align-items: center; gap: 4px; }
.hx-vehicles .vehicles-name .btn { grid-column: 2 / 3; grid-row: 2; justify-self: end; font-weight: 600; }

.hx-veh-modal .modal-dialog { max-width: 420px; }
.hx-veh-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.hx-veh-modal .modal-body { padding: 22px; position: relative; }
.hx-veh-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--hx-gray-1); display: grid; place-items: center; font-size: 18px; color: var(--hx-ink); }
.hx-veh-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; margin-bottom: 16px; }
.hx-veh-img { width: 92px; height: 68px; flex: none; border-radius: 14px; background: var(--hx-gray-1); display: grid; place-items: center; padding: 6px; }
.hx-veh-img img { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; object-fit: contain; }
.hx-veh-head h4 { font-family: var(--hx-display); font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.hx-veh-head p { font-size: 13px; color: var(--hx-gray-7); margin: 0 0 4px; }
.hx-veh-head small { font-size: 12px; color: var(--hx-gray-5); display: inline-flex; gap: 4px; align-items: center; }
.hx-veh-list { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--hx-gray-1); }
.hx-veh-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hx-gray-1); font-size: 14px; color: var(--hx-gray-7); }
.hx-veh-list li b { color: var(--hx-ink); font-weight: 700; white-space: nowrap; }
.hx-veh-list li small { color: var(--hx-gray-5); font-size: 12px; }
.hx-veh-list li.is-total { border-bottom: 0; font-size: 16px; color: var(--hx-ink); font-weight: 700; }
.hx-veh-list li.is-total b { font-family: var(--hx-display); font-size: 20px; font-weight: 800; }
.hx-veh-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--hx-gray-5); margin: 0 0 6px; }
.hx-veh-choose { margin-top: 10px; }
.hx-vehicles .vehicles-box.is-selected, .hx-vehicles .vehicles-box:has(input:checked) { border: 2px solid var(--hx-black); padding: 11.5px 13.5px; }

/* ===== Selectores de servicio/tipo con miniatura (select2) ===== */
.hx-book-field .select2-selection__rendered { display: flex !important; align-items: center; min-width: 0; padding-left: 4px !important; padding-right: 22px !important; line-height: 1.2 !important; }
.hx-book-field .select2-selection__placeholder { color: var(--hx-gray-5) !important; font-weight: 500; }
.hx-s2-opt { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; }
.hx-s2-opt img { width: 30px !important; height: 30px !important; max-width: 30px !important; flex: none; border-radius: 8px; object-fit: contain; background: var(--hx-gray-1); padding: 2px; }
.hx-s2-txt { display: grid; min-width: 0; }
.hx-s2-txt b { font-size: 14px; font-weight: 700; color: var(--hx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-s2-txt small { font-size: 12px; color: var(--hx-gray-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.select2-dropdown.hx-s2-drop { border: 1px solid var(--hx-gray-3) !important; border-radius: 14px !important; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,.14); padding: 6px; min-width: 220px; }
.hx-s2-drop .select2-results__option { padding: 8px 10px !important; border-radius: 10px; background: #fff !important; color: var(--hx-ink) !important; margin: 0 !important; }
.hx-s2-drop .select2-results__option--highlighted, .hx-s2-drop .select2-results__option[aria-selected="true"], .hx-s2-drop .select2-results__option--selected { background: var(--hx-gray-1) !important; color: var(--hx-ink) !important; }
.hx-s2-drop .select2-results__option .hx-s2-opt img { width: 40px !important; height: 40px !important; max-width: 40px !important; }

/* ===== Seguimiento en vivo (Leaflet) ===== */
#tracking-map.leaflet-container { z-index: 1; }
.hx-trk-pin { background: transparent; border: 0; }
.hx-trk-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0a0a0a; color: #fff; font-weight: 800; font-size: 13px; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.hx-trk-pin.is-to span { background: #f59e0b; }
.hx-trk-car { background: transparent; border: 0; }
.hx-trk-car img { width: 46px; height: 46px; object-fit: contain; transition: transform .4s ease; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.hx-ride-page .hx-track-btn { padding: 9px 16px; font-size: 13px; margin-left: auto; }
.hx-ride-page .hx-track-btn i { color: #ef4444; }

/* ===== Corrida: detalle y seguimiento (v2) ===== */
.hx-ride { background: var(--hx-gray-1); padding: 24px 0 64px !important; }
.hx-ride-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hx-ride .hx-back { margin-bottom: 14px; }

.hx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; display: inline-block; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: hxPulse 1.6s infinite; }
@keyframes hxPulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

.hx-ride-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; background: var(--hx-black); color: #fff; border-radius: 22px; padding: 26px 28px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hx-ride-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,106,27,.35), transparent 70%); pointer-events: none; }
.hx-ride-hero h1 { font-size: 30px; font-weight: 800; margin: 10px 0 4px; color: #fff; }
.hx-ride-hero p { margin: 0 0 12px; color: rgba(255,255,255,.75); font-size: 15px; }
.hx-ride-meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.8); }
.hx-ride-meta li { display: inline-flex; gap: 6px; align-items: center; }
.hx-ride-hero-side { display: grid; justify-items: end; gap: 10px; position: relative; z-index: 1; }
.hx-ride-total { font-family: var(--hx-display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hx-ride .hx-track-btn { margin: 0; padding: 10px 18px; font-size: 14px; }
.hx-ride-hero .hx-pill { font-size: 12px; }

/* barra de pasos */
.hx-steps-bar { list-style: none; margin: 0 0 16px; padding: 18px 22px; background: #fff; border-radius: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.hx-steps-bar li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.hx-steps-bar li span { width: 22px; height: 22px; border-radius: 50%; background: var(--hx-gray-3); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--hx-gray-3); position: relative; z-index: 1; }
.hx-steps-bar li::before { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 3px; background: var(--hx-gray-3); }
.hx-steps-bar li:first-child::before { display: none; }
.hx-steps-bar li em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--hx-gray-5); }
.hx-steps-bar li.is-done span { background: var(--hx-black); box-shadow: 0 0 0 2px var(--hx-black); }
.hx-steps-bar li.is-done::before, .hx-steps-bar li.is-current::before { background: var(--hx-black); }
.hx-steps-bar li.is-current span { background: #f26a1b; box-shadow: 0 0 0 2px #f26a1b, 0 0 0 7px rgba(242,106,27,.18); }
.hx-steps-bar li.is-done em, .hx-steps-bar li.is-current em { color: var(--hx-ink); }
.hx-steps-bar.is-compact { padding: 14px 0 0; background: transparent; margin: 0; }
.hx-steps-bar.is-compact li em { font-size: 10.5px; }

.hx-ride-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.hx-ride-col { display: grid; gap: 16px; }
.hx-rcard { background: #fff; border-radius: 18px; padding: 20px; }
.hx-rcard h3, .hx-trk-sec h3 { font-size: 15px; font-weight: 800; margin: 0 0 14px; color: var(--hx-ink); text-transform: none; }
.hx-rcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hx-rcard-head h3 { margin: 0; }
.hx-rcard-map { padding: 0; overflow: hidden; }
.hx-rcard-map .map-view { height: 320px; width: 100%; background: var(--hx-gray-1); z-index: 1; }
.hx-rcard-map .hx-route-list { padding: 16px 20px 18px; }
.hx-muted { color: var(--hx-gray-5); margin: 0; font-size: 14px; }

/* codigo */
.hx-otp-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #fff3e8; border: 1.5px dashed #f26a1b; }
.hx-otp-card small { display: block; font-weight: 800; font-size: 13px; color: #9a3d06; text-transform: uppercase; letter-spacing: .06em; }
.hx-otp-card p { margin: 4px 0 0; font-size: 13px; color: #7c3a10; }
.hx-otp-card strong { font-family: var(--hx-display); font-size: 34px; font-weight: 800; letter-spacing: .18em; color: var(--hx-ink); }

/* trajeto */
.hx-route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.hx-route-list li { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 14px; }
.hx-route-list li:last-child { padding-bottom: 0; }
.hx-route-list li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; border-left: 2px dashed var(--hx-gray-3); }
.hx-route-pin { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--hx-black); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.hx-route-list li.is-to .hx-route-pin { background: #f26a1b; }
.hx-route-list p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--hx-ink); }

/* motorista */
.hx-driver { display: flex; align-items: center; gap: 12px; }
.hx-driver-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--hx-black); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; overflow: hidden; position: relative; }
.hx-driver-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-driver-info { flex: 1; min-width: 0; display: grid; }
.hx-driver-info strong { font-size: 16px; font-weight: 800; }
.hx-driver-info small { font-size: 13px; color: var(--hx-gray-5); }
.hx-driver-info small i { color: #f59e0b; }
.hx-icon-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--hx-black); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.hx-icon-btn:hover { color: #fff; background: #262626; }
.hx-vehicle-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--hx-gray-1); }
.hx-vehicle-row img { width: 64px; height: 44px; object-fit: contain; flex: none; }
.hx-vehicle-row > div { flex: 1; min-width: 0; display: grid; }
.hx-vehicle-row strong { font-size: 14px; }
.hx-vehicle-row small { font-size: 12px; color: var(--hx-gray-5); }
.hx-plate { font-family: ui-monospace, "SFMono-Regular", monospace; font-weight: 800; font-size: 13px; letter-spacing: .08em; padding: 5px 10px; border-radius: 8px; background: #fff; border: 2px solid var(--hx-ink); white-space: nowrap; }
.hx-cargo { display: flex; gap: 14px; align-items: flex-start; }
.hx-cargo img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; }

/* pagamento e valores */
.hx-pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--hx-gray-1); margin-bottom: 10px; }
.hx-pay-method { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.hx-pay-method i { font-size: 20px; }
.hx-ps-completed { background: #dcfce7; color: #166534; }
.hx-ps-pending, .hx-ps-processing { background: #fef3c7; color: #92400e; }
.hx-ps-failed { background: #fee2e2; color: #991b1b; }
.hx-ps-refunded { background: #dbeafe; color: #1e40af; }
.hx-price-list { list-style: none; margin: 0; padding: 0; }
.hx-price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hx-gray-1); font-size: 14px; color: var(--hx-gray-7); }
.hx-price-list li b { color: var(--hx-ink); font-weight: 700; white-space: nowrap; }
.hx-price-list li.is-total { border-bottom: 0; padding-top: 12px; color: var(--hx-ink); font-weight: 800; font-size: 16px; }
.hx-price-list li.is-total b { font-family: var(--hx-display); font-size: 22px; font-weight: 800; }

/* pills de estado en fondo oscuro */
.hx-ride-hero .hx-pill { background: rgba(255,255,255,.14); color: #fff; }
.hx-ride-hero .hx-pill.hx-st-completed { background: #16a34a; }
.hx-ride-hero .hx-pill.hx-st-cancelled, .hx-ride-hero .hx-pill.hx-st-rejected { background: #dc2626; }
.hx-ride-hero .hx-pill.hx-st-started, .hx-ride-hero .hx-pill.hx-st-accepted, .hx-ride-hero .hx-pill.hx-st-arrived { background: #f26a1b; }
.hx-ride .custom-marker { background: var(--hx-black) !important; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); line-height: 24px !important; }
.hx-ride .leaflet-routing-container { display: none !important; }

@media (max-width: 900px) {
  .hx-ride-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .hx-ride-wrap { padding: 0 14px; }
  .hx-ride-hero { padding: 20px; border-radius: 18px; }
  .hx-ride-hero h1 { font-size: 24px; }
  .hx-ride-hero-side { justify-items: start; width: 100%; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .hx-ride-total { font-size: 26px; }
  .hx-steps-bar { padding: 14px 10px; }
  .hx-steps-bar li em { font-size: 10px; }
  .hx-otp-card strong { font-size: 28px; }
}

/* ===== Seguimiento en vivo ===== */
body.hx-inner:has(.hx-trk) .hx-footer, body.hx-inner:has(.hx-trk) footer { display: none; }
.hx-trk.tracking-container { position: relative; display: block !important; height: calc(100vh - 64px); min-height: 520px; overflow: hidden; background: var(--hx-gray-1); padding: 0 !important; margin: 0 !important; max-width: none !important; }
.hx-trk .hx-trk-map.map-section { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; }
.hx-trk #tracking-map { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.hx-trk-controls.map-controls { position: absolute !important; top: 16px !important; right: 436px !important; left: auto !important; bottom: auto !important; z-index: 500; display: grid; gap: 8px; }
.hx-trk .map-control-btn { width: 44px; height: 44px; border-radius: 12px !important; background: #fff !important; border: 0 !important; box-shadow: 0 6px 18px rgba(0,0,0,.16) !important; display: grid; place-items: center; font-size: 20px; color: var(--hx-ink) !important; cursor: pointer; }
.hx-trk-back { position: absolute; top: 16px; left: 16px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--hx-ink); border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.hx-trk-back:hover { color: var(--hx-ink); }
.hx-trk-panel.details-sidebar { position: absolute !important; top: 16px !important; right: 16px !important; bottom: 16px !important; left: auto !important; width: 404px !important; max-width: none !important; height: auto !important; transform: none !important; z-index: 600; background: #fff !important; border-radius: 22px !important; box-shadow: 0 20px 50px rgba(0,0,0,.18) !important; overflow-y: auto; padding: 0 !important; border: 0 !important; }
.hx-trk-handle { display: none; }
.hx-trk-head.ride-header { background: var(--hx-black) !important; color: #fff; padding: 20px 22px 18px !important; border-radius: 22px 22px 0 0; text-align: left !important; margin: 0 !important; }
.hx-trk-head-top { display: flex; justify-content: space-between; align-items: center; }
.hx-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.hx-trk-num { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); }
.hx-trk-head h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 12px 0 2px; }
.hx-trk-head p { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.hx-trk-head .hx-steps-bar li span { border-color: var(--hx-black); background: #3a3a3a; box-shadow: 0 0 0 2px #3a3a3a; }
.hx-trk-head .hx-steps-bar li::before { background: #3a3a3a; }
.hx-trk-head .hx-steps-bar li.is-done span { background: #fff; box-shadow: 0 0 0 2px #fff; }
.hx-trk-head .hx-steps-bar li.is-done::before, .hx-trk-head .hx-steps-bar li.is-current::before { background: #fff; }
.hx-trk-head .hx-steps-bar li em { color: rgba(255,255,255,.5); }
.hx-trk-head .hx-steps-bar li.is-done em, .hx-trk-head .hx-steps-bar li.is-current em { color: #fff; }
.hx-trk-head[data-status="completed"] { background: #166534 !important; }
.hx-trk-head[data-status="cancelled"] { background: #991b1b !important; }
.hx-trk-panel .hx-otp-card { margin: 14px 16px 0; }
.hx-trk-sec { padding: 16px 20px; border-bottom: 1px solid var(--hx-gray-1); }
.hx-trk-sec:last-child { border-bottom: 0; }
.hx-trk-pos { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hx-gray-5); }
.hx-trk-pos.is-live { color: #166534; font-weight: 600; }
.hx-trk-facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--hx-gray-7); }
.hx-trk-facts li { display: inline-flex; gap: 6px; align-items: center; }
.hx-trk-start { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #f0fdf4; font-size: 13px; }
.hx-trk-start:empty { display: none; }
.hx-trk-start i { color: #16a34a; font-size: 18px; }
.hx-trk-start small { display: block; font-weight: 700; color: #166534; }
.hx-trk-start p { margin: 2px 0 0; color: var(--hx-ink); }
.hx-trk-details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 800; font-size: 15px; padding: 4px 0; }
.hx-trk-details summary::-webkit-details-marker { display: none; }
.hx-trk-details summary b { font-family: var(--hx-display); font-size: 18px; }
.hx-trk-details[open] summary i { transform: rotate(180deg); }
.hx-trk-details .hx-price-list { margin-top: 8px; }
.hx-timeline { margin-top: 10px; display: grid; gap: 0; }
.hx-timeline .timeline-item { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.hx-timeline .timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--hx-gray-3); }
.hx-timeline .timeline-marker { width: 12px; height: 12px; border-radius: 50%; background: var(--hx-black); margin-top: 4px; flex: none; }
.hx-timeline .timeline-content { flex: 1; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.hx-timeline .timeline-status { font-weight: 700; color: var(--hx-ink); }
.hx-timeline .timeline-description { display: none; }
.hx-timeline .timeline-time { color: var(--hx-gray-5); white-space: nowrap; }
#toast-container { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; display: grid; gap: 8px; }
#toast-container .toast { display: flex !important; opacity: 1 !important; align-items: center; gap: 8px; background: var(--hx-black); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); width: auto; max-width: 90vw; border: 0; }

@media (max-width: 767px) {
  .hx-trk.tracking-container { height: calc(100vh - 56px); }
  .hx-trk-controls.map-controls { right: 12px !important; top: 12px !important; }
  .hx-trk-back { top: 12px; left: 12px; padding: 8px 14px; font-size: 13px; }
  .hx-trk-panel.details-sidebar { top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; max-height: 48vh; border-radius: 22px 22px 0 0 !important; transition: max-height .3s ease; }
  .hx-trk-panel.details-sidebar.open { max-height: 88vh; }
  .hx-trk-handle { display: block; width: 100%; background: var(--hx-black); border: 0; padding: 8px 0 0; border-radius: 22px 22px 0 0; }
  .hx-trk-handle span { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); margin: 0 auto; }
  .hx-trk-head.ride-header { border-radius: 0; padding-top: 10px !important; }
  .hx-trk-head h2 { font-size: 22px; margin-top: 8px; }
}
.hx-trk-controls.map-controls { z-index: 550 !important; display: grid !important; }
.hx-trk-start p, .hx-trk-start small { font-size: 13px !important; line-height: 1.4 !important; }
.hx-trk .leaflet-bottom.leaflet-left { margin-bottom: 8px; }
@media (max-width: 767px) { .hx-trk .leaflet-bottom.leaflet-left { bottom: 50vh; } }

/* ===== Minhas corridas (v3) ===== */
.hx-hist-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.hx-hist-stats > div { background: var(--hx-gray-1); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.hx-hist-stats small { font-size: 12px; color: var(--hx-gray-5); font-weight: 600; }
.hx-hist-stats strong { font-family: var(--hx-display); font-size: 24px; font-weight: 800; color: var(--hx-ink); }
.hx-hist-stats > div.is-dark { background: var(--hx-black); }
.hx-hist-stats > div.is-dark small { color: rgba(255,255,255,.65); }
.hx-hist-stats > div.is-dark strong { color: #fff; }
.hx-hist-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; padding: 4px; background: var(--hx-gray-1); border-radius: 999px; width: fit-content; max-width: 100%; }
.hx-hist-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--hx-gray-7); text-decoration: none; white-space: nowrap; }
.hx-hist-tabs a span { font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; display: inline-grid; place-items: center; color: var(--hx-gray-7); }
.hx-hist-tabs a.is-active { background: var(--hx-black); color: #fff; }
.hx-hist-tabs a.is-active span { background: rgba(255,255,255,.18); color: #fff; }
.hx-hist-list { display: grid; gap: 12px; }
.hx-hist-item { position: relative; border: 1px solid var(--hx-gray-3); border-radius: 18px; padding: 16px 18px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.hx-hist-item:hover { border-color: var(--hx-black); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.hx-hist-link { position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.hx-hist-item .hx-btn { position: relative; z-index: 2; }
.hx-hist-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.hx-hist-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.hx-hist-vehicle { width: 58px; height: 44px; border-radius: 12px; background: var(--hx-gray-1); display: grid; place-items: center; flex: none; padding: 4px; font-size: 22px; }
.hx-hist-vehicle img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hx-hist-id strong { display: block; font-size: 15px; font-weight: 800; color: var(--hx-ink); }
.hx-hist-id strong em { font-style: normal; font-weight: 600; color: var(--hx-gray-5); font-size: 13px; }
.hx-hist-id small { display: block; font-size: 12px; color: var(--hx-gray-5); }
.hx-hist-price { display: grid; justify-items: end; gap: 6px; flex: none; }
.hx-hist-price strong { font-family: var(--hx-display); font-size: 20px; font-weight: 800; color: var(--hx-ink); }
.hx-hist-route { list-style: none; margin: 14px 0 0; padding: 0; }
.hx-hist-route li { display: flex; gap: 10px; align-items: flex-start; position: relative; padding-bottom: 8px; }
.hx-hist-route li:last-child { padding-bottom: 0; }
.hx-hist-route li span { width: 10px; height: 10px; border-radius: 50%; background: var(--hx-black); margin-top: 5px; flex: none; }
.hx-hist-route li.is-to span { background: #f26a1b; border-radius: 2px; }
.hx-hist-route li.is-from::after { content: ""; position: absolute; left: 4px; top: 17px; bottom: 0; border-left: 2px dotted var(--hx-gray-3); }
.hx-hist-route p { margin: 0; font-size: 13px; color: var(--hx-gray-7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-hist-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hx-gray-1); flex-wrap: wrap; }
.hx-hist-driver { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--hx-ink); min-width: 0; }
.hx-hist-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--hx-black); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; overflow: hidden; position: relative; flex: none; }
.hx-hist-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-hist-plate { font-style: normal; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; border: 1.5px solid var(--hx-ink); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.hx-hist-actions { display: flex; align-items: center; gap: 14px; }
.hx-hist-pay { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--hx-gray-7); }
.hx-hist-go { font-size: 13px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; color: var(--hx-ink); }
.hx-hist-track { padding: 8px 14px !important; font-size: 13px !important; }
.hx-hist-pages { margin-top: 16px; }
.hx-hist-pages nav { display: flex; justify-content: center; }
@media (max-width: 767px) {
  .hx-hist-stats { grid-template-columns: repeat(2, 1fr); }
  .hx-hist-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .hx-hist-price strong { font-size: 17px; }
}

/* ===== Arreglo de desbordes (v1) ===== */
.hx-account-grid { grid-template-columns: 280px minmax(0, 1fr); }
.hx-account-grid > * { min-width: 0; }
.hx-account-content, .hx-side { min-width: 0; max-width: 100%; }
@media (max-width: 991px) {
  .hx-account-grid { grid-template-columns: minmax(0, 1fr); }
}
.hx-hist-list, .hx-rides { grid-template-columns: minmax(0, 1fr); }
.hx-hist-item, .hx-hist-top, .hx-hist-id, .hx-hist-route li, .hx-hist-driver { min-width: 0; }
.hx-hist-id > div { min-width: 0; }
.hx-hist-id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-hist-route p { flex: 1; min-width: 0; }
.hx-hist-driver > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .hx-hist-item { padding: 14px; }
  .hx-hist-vehicle { width: 48px; height: 38px; }
  .hx-hist-foot { gap: 8px; }
  .hx-hist-pay { display: none; }
}
.hx-hist-tabs { scrollbar-width: none; }
.hx-hist-tabs::-webkit-scrollbar { display: none; }

/* ===== Ventanas de la reserva (buscando motorista / solicitada) ===== */
.hx-body .find-driver-modal .modal-dialog, .hx-body .book-ride-modal .modal-dialog { max-width: 380px; }
.hx-body .find-driver-modal .modal-content, .hx-body .book-ride-modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.hx-finding { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 12px 6px 4px; }
.hx-finding h3 { font-size: 20px; font-weight: 800; margin: 8px 0 0; }
.hx-finding p { font-size: 14px; color: var(--hx-gray-7); margin: 0; max-width: 280px; }
.hx-radar { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.hx-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #f26a1b; opacity: 0; animation: hxRadar 2.4s infinite; }
.hx-radar span:nth-child(2) { animation-delay: .8s; }
.hx-radar span:nth-child(3) { animation-delay: 1.6s; }
.hx-radar i { width: 60px; height: 60px; border-radius: 50%; background: var(--hx-black); color: #fff; display: grid; place-items: center; font-size: 28px; position: relative; z-index: 1; }
@keyframes hxRadar { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.hx-body .find-driver-modal .set-timer { font-family: var(--hx-display); font-size: 30px; font-weight: 800; margin-top: 4px; min-height: 36px; }
.hx-body .find-driver-modal .modal-footer, .hx-body .book-ride-modal .modal-footer { border: 0; padding: 0 22px 22px; }
.hx-cancel-btn { border: 1px solid var(--hx-gray-3) !important; color: #b91c1c !important; }
.hx-cancel-btn:hover { background: #fee2e2 !important; }
.hx-body .book-ride-modal .modal-header { border: 0; padding: 20px 22px 0; }
.hx-body .book-ride-modal .btn-close { background: var(--hx-gray-1); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; opacity: 1; }
.hx-body .ride-success-box { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 8px 0; }
.hx-body .ride-success-box p { font-size: 14px; color: var(--hx-gray-7); margin: 0; }
.hx-success-ico { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 38px; animation: hxPop .4s ease; }
@keyframes hxPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.hx-map-hint { transition: opacity .3s ease; }
.hx-map-hint.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 991px) {
  .hx-map-hint { left: 8px; right: 8px; bottom: 8px; padding: 7px 10px; font-size: 12px; }
}
.hx-success-ico i { font-size: 38px !important; line-height: 1 !important; color: #16a34a !important; }
.hx-finding .set-timer { margin: 4px 0 0 !important; height: auto !important; min-height: 0 !important; padding: 0 !important; }
.hx-body .find-driver-modal .modal-body { padding: 22px 22px 14px !important; }
.hx-body .find-driver-modal .cancel-ride-box { height: auto !important; min-height: 0 !important; }

/* Encabezado: que entre sin desbordar entre 992 y 1440 px */
.hx-header .hx-bar { min-width: 0; }
.hx-nav { min-width: 0; }
.hx-right { flex: none; }
@media (max-width: 1440px) and (min-width: 992px) {
  .hx-header .hx-bar { gap: 18px; }
  .hx-nav { gap: 16px; }
  .hx-nav a { font-size: 13px; }
  .hx-right { gap: 8px; }
  .hx-right .header-search span, .hx-right .search-box span { display: none; }
}
@media (max-width: 1250px) and (min-width: 992px) {
  .hx-nav { gap: 12px; }
  .hx-nav a { font-size: 12.5px; }
  .hx-right .language-btn span { display: none; }
}
@media (max-width: 1440px) and (min-width: 992px) { .hx-right .hcy-search-toggle span { display: none !important; } }
@media (max-width: 380px) { .hx-hist-stats { gap: 8px; } .hx-hist-stats > div { padding: 12px; } .hx-hist-stats strong { font-size: 19px; } .hx-hist-id strong em { display: none; } }
.hx-trk-panel:has(.hx-trk-head[data-status="completed"]) .hx-trk-handle { background: #166534; }
.hx-trk-panel:has(.hx-trk-head[data-status="cancelled"]) .hx-trk-handle { background: #991b1b; }

/* ===== Cotizacion publica ===== */
.hx-quote { background: var(--hx-gray-1); padding: 22px 0 60px !important; }
.hx-quote-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hx-quote-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 16px; }
.hx-quote-route { list-style: none; margin: 0; padding: 0; flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.hx-quote-route li { display: flex; gap: 10px; align-items: center; min-width: 0; }
.hx-quote-route li span { width: 10px; height: 10px; border-radius: 50%; background: var(--hx-black); flex: none; }
.hx-quote-route li.is-to span { background: #f26a1b; border-radius: 2px; }
.hx-quote-route p { margin: 0; font-size: 14px; font-weight: 600; color: var(--hx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-quote-meta { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--hx-gray-7); }
.hx-quote-meta li { display: inline-flex; gap: 5px; align-items: center; }
.hx-quote-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 16px; align-items: start; }
.hx-quote-list { background: #fff; border-radius: 20px; padding: 22px; }
.hx-quote-list h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.hx-quote-list > .hx-muted { margin-bottom: 16px; }
.hx-quote-cards { display: grid; gap: 10px; }
.hx-quote-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--hx-gray-3); border-radius: 16px; margin: 0; transition: border-color .15s, box-shadow .15s; }
.hx-quote-card:hover { border-color: var(--hx-black); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.hx-quote-card.is-best { border-color: var(--hx-black); }
.hx-quote-img { width: 76px; height: 54px; border-radius: 12px; background: var(--hx-gray-1); display: grid; place-items: center; padding: 4px; }
.hx-quote-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hx-quote-info { display: grid; min-width: 0; }
.hx-quote-info strong { font-size: 15px; font-weight: 800; }
.hx-quote-info small { font-size: 12px; color: var(--hx-gray-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-quote-info em { font-style: normal; font-size: 12px; color: var(--hx-gray-7); display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
.hx-quote-price { display: grid; justify-items: end; gap: 6px; }
.hx-quote-price strong { font-family: var(--hx-display); font-size: 19px; font-weight: 800; white-space: nowrap; }
.hx-quote-price .hx-btn { padding: 7px 14px; font-size: 13px; }
.hx-quote-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 12.5px; color: var(--hx-gray-5); }
.hx-quote-map { position: sticky; top: 90px; height: calc(100vh - 140px); min-height: 420px; border-radius: 20px; overflow: hidden; background: #e9ecef; }
.hx-quote-map #hx-quote-map { position: absolute; inset: 0; }
@media (max-width: 991px) {
  .hx-quote-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-quote-map { position: relative; top: 0; height: 260px; min-height: 0; order: -1; }
}
@media (max-width: 480px) {
  .hx-quote-wrap { padding: 0 12px; }
  .hx-quote-list { padding: 16px; }
  .hx-quote-card { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .hx-quote-img { width: 58px; height: 44px; }
  .hx-quote-price strong { font-size: 16px; }
}
.hx-quote-wrap, .hx-ride-wrap { width: 100%; box-sizing: border-box; }

/* ===== Avaliacao, atalhos de endereco e pedir de novo ===== */
.hx-review { border: 1.5px solid #f26a1b; }
.hx-review-form { display: grid; gap: 10px; margin-top: 10px; }
.hx-review-form textarea { border: 1px solid var(--hx-gray-3) !important; border-radius: 12px !important; font-size: 14px; resize: vertical; box-shadow: none !important; }
.hx-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.hx-stars input { position: absolute; opacity: 0; pointer-events: none; }
.hx-stars label { cursor: pointer; font-size: 32px; line-height: 1; color: var(--hx-gray-3); transition: transform .1s, color .1s; }
.hx-stars label:hover, .hx-stars label:hover ~ label, .hx-stars input:checked ~ label { color: #f59e0b; }
.hx-stars label:active { transform: scale(.9); }
.hx-stars.is-static { flex-direction: row; font-size: 26px; color: #f59e0b; }
.hx-stars.is-static .ri-star-line { color: var(--hx-gray-3); }
.hx-review-msg { margin: 8px 0 0; font-size: 14px; color: var(--hx-gray-7); font-style: italic; }
.hx-ride-hero-side { grid-auto-flow: row; }
.hx-ride-hero-side .hx-track-btn + .hx-track-btn { margin-top: 0; }
.hx-hist-repeat { background: #fff !important; border: 1px solid var(--hx-gray-3) !important; color: var(--hx-ink) !important; }
.hx-hist-repeat:hover { border-color: var(--hx-black) !important; }
.hx-saved { display: grid; gap: 6px; margin-top: -4px; }
.hx-saved small { font-size: 12px; font-weight: 700; color: var(--hx-gray-5); }
.hx-saved-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hx-saved-list::-webkit-scrollbar { display: none; }
.hx-saved-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--hx-gray-3); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--hx-ink); cursor: pointer; flex: none; }
.hx-saved-chip:hover { border-color: var(--hx-black); background: var(--hx-gray-1); }
.hx-saved-chip i { font-size: 15px; }
@media (max-width: 575px) { .hx-hist-repeat { display: none !important; } }
.hx-stars label i, .hx-stars.is-static i { font-size: 32px !important; line-height: 1 !important; }
.hx-stars.is-static i { font-size: 26px !important; }
.hx-stars label { color: var(--hx-gray-3) !important; }
.hx-stars label:hover, .hx-stars label:hover ~ label, .hx-stars input:checked ~ label { color: #f59e0b !important; }
.hx-trk-car img { transition: transform .6s ease-out !important; transform-origin: 50% 50%; }
