/* RangeCal — calendario de rango (Booking / Hertz). Usa los tokens del sitio. */
.rc { position: relative; }
.rc-ms { display: grid; gap: 28px; }
.rc-ms.rc-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-t { text-align: center; font-size: 15px; font-weight: 800; letter-spacing: -.01em; height: 36px; line-height: 36px; margin-bottom: 6px; }
.rc-nav { position: absolute; top: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); z-index: 1; }
.rc-nav:hover:not(:disabled) { background: var(--bg); }
.rc-nav:disabled { color: #CBD5E1; cursor: default; }
.rc-nav.prev { left: 0; } .rc-nav.next { right: 0; }
.rc-w, .rc-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rc-w span { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding-bottom: 6px; }
.rc-g { row-gap: 4px; }
.rc-d { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-d span { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.rc-d:hover:not(:disabled):not(.s):not(.e) span { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rc-d:disabled { color: #CBD5E1; cursor: default; }
.rc-d.today span { box-shadow: inset 0 0 0 1px var(--line); }
.rc-d.today span::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--s); }
/* franja del rango */
.rc-d.rg::before, .rc-d.rs::before, .rc-d.e::before { content: ''; position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; background: var(--p-soft); }
.rc-d.rs::before { left: 50%; }
.rc-d.e::before { right: 50%; }
.rc-d.rg span { color: var(--p-ink); font-weight: 700; }
.rc-g > :nth-child(7n+1).rg::before { border-radius: 22px 0 0 22px; }
.rc-g > :nth-child(7n).rg::before { border-radius: 0 22px 22px 0; }
.rc-d.s span, .rc-d.e span { background: var(--p); color: #fff; font-weight: 800; box-shadow: none; }
.rc-d.e.pv span { background: color-mix(in srgb, var(--p) 55%, #fff); }
.rc-d.s.e::before { display: none; }

/* tarjetas entrega / devolución (en el panel de reserva) */
.dt { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 6px; margin-top: 6px; }
.dt-t { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.dt-t.on { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.dt-k { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dt-v { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dt-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--muted); min-width: 36px; }
.dt-mid b { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1; }
.cal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px 10px; }
.tsel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tsel { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.tsel:focus-within { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 14%, transparent); }
.tsel > .i { color: var(--muted); }
.tsel > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tsel small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tsel select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; font: 800 16px var(--f); color: var(--ink); padding: 2px 18px 0 0; outline: 0; cursor: pointer; width: 100%; font-variant-numeric: tabular-nums; }
.hint.h-ok, .hint.h-warn { display: flex; align-items: center; gap: 8px; text-align: left; border-style: solid; margin-top: 8px; }
.hint.h-ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.hint.h-warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.hint .i { width: 16px; height: 16px; }

/* buscador del hero: campo de fechas + popover */
.search { position: relative; }
.search .f .f-btn { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.search .f .f-btn .n { font-size: 11px; color: #fff; letter-spacing: 0; }
.f-btn { text-align: left; font: 700 15px var(--f); color: var(--ink); padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.f-btn .n { font-size: 11px; font-weight: 800; color: #fff; background: var(--s); padding: 2px 8px; border-radius: 999px; }
.f-dates { cursor: pointer; }
.f-dates.on { box-shadow: inset 0 0 0 1.5px var(--p); background: var(--surface) !important; }
.pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(680px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px 20px 16px; }
.pop[hidden] { display: none; }
.pop-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pop-h b { font-size: 16px; font-weight: 800; }
.pop-h span { font-size: 13px; color: var(--muted); }
.pop-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.pop-f .sel { font-size: 13.5px; font-weight: 700; }
.pop-f .sel span { color: var(--muted); font-weight: 600; }
.pop-scrim { display: none; }
@media (max-width: 719px) {
  .pop { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 24px 24px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow-y: auto; }
  .pop-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(15,23,42,.45); }
  .pop-scrim.on { display: block; }
}

body.modal-open .wa-fab { display: none; }
