/* Privé Space · landing v5 — módulos vivos: cotizador, tablero de empty legs, advisor,
   precio de referencia, flota (galería + ficha), membresía. Radio 0 · hairlines · sin negritas. */

/* ---------- Cotizador conversacional (panel blanco flotante en el hero) ---------- */
.panel--quote {
  padding: clamp(22px, 2.8vw, 38px);
}
.q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-title {
  font-family: var(--ps-font-display);
  font-weight: 300;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  margin: 10px 0 16px;
}
.q-input {
  width: 100%;
  border: 0;
  border-bottom: var(--ps-hairline);
  background: transparent;
  font-family: var(--ps-font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  padding: 6px 0 12px;
  resize: none;
  transition: border-color var(--ps-dur) var(--ps-ease);
}
.q-input::placeholder {
  color: var(--ps-ink-40);
}
.q-input:focus {
  outline: none;
  border-bottom-color: var(--ps-ink);
}
.q-ex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 22px;
}
.q-chip {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ps-rule);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ps-ink-60);
  padding: 4px 0;
  text-align: left;
  transition:
    color var(--ps-dur) var(--ps-ease),
    border-color var(--ps-dur) var(--ps-ease);
}
.q-chip:hover,
.q-chip:focus-visible {
  color: var(--ps-ink);
  border-bottom-color: var(--ps-ink);
}
.q-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.q-actions .fine {
  flex: 1 1 160px;
}

.q-out {
  border-top: var(--ps-hairline);
  margin-top: 22px;
  padding-top: 16px;
}
@media (min-width: 960px) {
  .q-out {
    max-height: max(300px, calc(100svh - 500px));
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
  }
  .panel--quote.has-out .q-ex,
  .panel--quote.has-out .q-actions .fine {
    display: none;
  }
}
.q-int {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.q-int-i {
  display: grid;
  gap: 1px;
}
.q-int-i small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.q-int-i span {
  font-family: var(--ps-font-display);
  font-size: 19px;
  line-height: 1.1;
}
.q-opt {
  border-top: var(--ps-hairline);
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: start;
}
.q-opt-model {
  font-family: var(--ps-font-display);
  font-size: 23px;
  line-height: 1.05;
}
.q-opt-meta {
  font-size: 12px;
  color: var(--ps-ink-60);
}
.q-opt-price {
  font-family: var(--ps-font-display);
  font-size: 26px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.q-opt-badge {
  grid-column: 2;
  justify-self: end;
}
.q-opt-more {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}
.q-bk {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  padding: 8px 0 2px;
  font-size: 12px;
}
.q-bk div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-top: 1px solid var(--ps-paper);
}
.q-bk div span:last-child {
  font-variant-numeric: tabular-nums;
  font-family: var(--ps-font-display);
  font-size: 15px;
}
.q-note {
  font-size: 13px;
  color: var(--ps-ink-60);
  padding: 6px 0 4px;
  max-width: 46ch;
}
.q-foot {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: var(--ps-hairline);
}
.q-foot .row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.q-out .action--ink {
  align-self: start;
}

/* ---------- Modo estructurado (FLT-956): "o elige aeropuertos" ---------- */
.q-struct-toggle {
  display: block;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ps-rule);
  font-family: var(--ps-font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ps-ink-60);
  text-align: left;
  transition:
    color var(--ps-dur) var(--ps-ease),
    border-color var(--ps-dur) var(--ps-ease);
}
.q-struct-toggle:hover,
.q-struct-toggle:focus-visible {
  color: var(--ps-ink);
  border-bottom-color: var(--ps-ink);
}
.q-struct {
  display: grid;
}
.q-struct .field-l {
  margin-top: 14px;
}
.q-combo:first-child .field-l {
  margin-top: 4px;
}
.field--s {
  font-size: 20px;
  padding: 6px 0 8px;
}
.field--s::placeholder {
  color: var(--ps-ink-40);
}
input[type='date'].field--s {
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
input[type='date'].field--s::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}
input[type='number'].field--s {
  -moz-appearance: textfield;
  appearance: textfield;
}
.q-combo {
  position: relative;
}
.q-sug {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 6;
  background: var(--ps-white);
  border: var(--ps-hairline);
  box-shadow: var(--ps-shadow-float);
  max-height: 232px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.q-sug li[role='option'] {
  display: grid;
  gap: 1px;
  padding: 10px 14px;
  cursor: pointer;
  border-top: 1px solid var(--ps-paper);
  transition: background var(--ps-dur) var(--ps-ease);
}
.q-sug li[role='option']:first-child {
  border-top: 0;
}
.q-sug li[aria-selected='true'],
.q-sug li[role='option']:hover {
  background: var(--ps-paper);
}
.q-sug-main {
  font-family: var(--ps-font-display);
  font-size: 18px;
  line-height: 1.15;
}
.q-sug-sec {
  font-size: 11px;
  color: var(--ps-vicuna);
}
.q-sug-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ps-vicuna);
}
.q-match {
  min-height: 20px;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  align-items: baseline;
}
.q-match .action--xs {
  padding: 3px 0;
  font-size: 9.5px;
}
.q-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.q-struct .q-actions {
  margin-top: 24px;
}
.q-struct-msg {
  margin-top: 10px;
}

/* ---------- Mapa de ruta (FLT-956): monocromo, antes de las opciones; 2:1 en desktop y 16:10 en móvil ---------- */
.q-map {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.q-map-canvas {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--ps-paper);
  border: var(--ps-hairline);
}
@media (max-width: 959px) {
  .q-map-canvas {
    aspect-ratio: 16 / 10;
  }
}
.q-route {
  font-variant-numeric: tabular-nums;
}
/* Control de zoom de Google sin radios (radio 0 en toda la UI). */
.q-map-canvas .gm-style .gm-control-active,
.q-map-canvas .gm-style .gmnoprint > div {
  border-radius: 0 !important;
}

/* ---------- Tablero de empty legs (tabla editorial) ---------- */
.panel--table {
  padding: 0;
  overflow-x: auto;
}
.el-table {
  width: 100%;
  border-collapse: collapse;
}
.el-table th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
  padding: 16px 18px 12px;
  border-bottom: var(--ps-hairline);
  white-space: nowrap;
}
.el-table th:nth-child(1) {
  width: 36%;
}
.el-table th:nth-child(2) {
  width: 17%;
}
.el-table th:nth-child(3) {
  width: 23%;
}
.el-table th:nth-child(4) {
  width: 24%;
}
.el-table td {
  padding: 18px 18px;
  border-bottom: var(--ps-hairline);
  vertical-align: top;
  font-size: 13px;
}
.el-ac span:first-child {
  white-space: nowrap;
}
.el-table tr:last-child td {
  border-bottom: 0;
}
.el-table .ta-r,
.el-table td.el-price {
  text-align: right;
}
.el-route {
  display: block;
  font-family: var(--ps-font-display);
  font-size: 23px;
  line-height: 1.05;
}
.el-codes {
  display: block;
  margin-top: 4px;
}
.el-when {
  white-space: nowrap;
}
.el-when span {
  display: block;
}
.el-ac span {
  display: block;
}
.el-ac .fine,
.el-when .fine {
  margin-top: 2px;
}
.el-price-v {
  display: block;
  font-family: var(--ps-font-display);
  font-size: 23px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.el-price .fine {
  display: block;
  margin-top: 4px;
  max-width: 190px;
  margin-left: auto;
}
.el-price .action {
  margin-top: 10px;
}
.el-loading td,
.el-empty td {
  text-align: center;
  padding: 48px 22px;
  color: var(--ps-vicuna);
  font-size: 13px;
}
.el-empty td {
  color: var(--ps-ink-60);
}
tr.el-row {
  transition: background var(--ps-dur) var(--ps-ease);
}
tr.el-row:hover {
  background: var(--ps-paper-2);
}

@media (max-width: 760px) {
  .el-table thead {
    display: none;
  }
  .el-table,
  .el-table tbody,
  .el-table tr,
  .el-table td {
    display: block;
  }
  .el-table tr.el-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-areas: 'route price' 'when price' 'ac price';
    gap: 6px 16px;
    padding: 18px 20px;
    border-bottom: var(--ps-hairline);
  }
  .el-route,
  .el-ac span:first-child,
  .el-price-v,
  .el-price .fine,
  .el-when {
    white-space: normal;
  }
  .el-price .fine {
    max-width: 150px;
    margin-left: auto;
  }
  .el-price {
    align-self: start;
  }
  .el-table tr.el-row:last-child {
    border-bottom: 0;
  }
  .el-table td {
    padding: 0;
    border: 0;
  }
  .el-table td.el-route-c {
    grid-area: route;
  }
  .el-table td.el-price {
    grid-area: price;
  }
  .el-table td.el-when {
    grid-area: when;
  }
  .el-table td.el-ac {
    grid-area: ac;
  }
  .el-route {
    font-size: 21px;
  }
  .el-loading td,
  .el-empty td {
    display: block;
  }
}

/* ---------- Tu advisor (conversación real) ---------- */
.panel--chat {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: var(--ps-hairline);
}
.chat-body {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.cb {
  max-width: 84%;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--ps-dur) var(--ps-ease),
    transform var(--ps-dur) var(--ps-ease);
}
.cb.shown {
  opacity: 1;
  transform: none;
}
.cb--a {
  align-self: flex-start;
  background: var(--ps-paper);
  border: var(--ps-hairline);
}
.cb--u {
  align-self: flex-end;
  background: var(--ps-ink);
  color: var(--ps-paper);
}
.cb--typing {
  color: var(--ps-vicuna);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 4px 0;
}
.cb--err {
  color: var(--ps-ink-60);
}
.chat-sug {
  align-self: flex-start;
  margin-top: -4px;
}
.chat-form {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 16px 22px 20px;
  border-top: var(--ps-hairline);
}
.chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: var(--ps-hairline);
  background: transparent;
  font-family: var(--ps-font-text);
  font-weight: 300;
  font-size: 15px;
  padding: 8px 0;
  transition: border-color var(--ps-dur) var(--ps-ease);
}
.chat-input:focus {
  outline: none;
  border-bottom-color: var(--ps-ink);
}
.chat-form .action {
  padding: 12px 18px;
}

/* ---------- El precio (desglose real) ---------- */
.rutas {
  display: grid;
  border-top: var(--ps-hairline);
  margin-top: 28px;
  max-width: 460px;
}
.ruta {
  position: relative;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: var(--ps-hairline);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--ps-ink-60);
  transition: color var(--ps-dur) var(--ps-ease);
}
.ruta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ps-ink);
  transition: width var(--ps-dur) var(--ps-ease);
}
.ruta.active,
.ruta:hover {
  color: var(--ps-ink);
}
.ruta.active::after,
.ruta:hover::after {
  width: 100%;
}
.ruta-n {
  font-family: var(--ps-font-display);
  font-size: 23px;
  line-height: 1.1;
}
.ruta-d {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ps-vicuna);
  white-space: nowrap;
}

.precio-card {
  padding: clamp(24px, 3vw, 40px);
}
.precio-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: var(--ps-hairline);
}
.precio-ruta {
  display: block;
  font-family: var(--ps-font-display);
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.05;
}
.precio-top .fine {
  display: block;
  margin-top: 6px;
}
.bk {
  margin: 0;
}
.bk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: var(--ps-hairline);
  font-size: 13px;
}
.bk dd {
  font-family: var(--ps-font-display);
  font-size: 19px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bk-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 6px;
}
.bk-total dt {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.bk-big {
  font-size: clamp(32px, 3.2vw, 46px);
}
.precio-foot {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: var(--ps-hairline);
}
.precio-foot .action {
  justify-self: start;
}
.precio-card.is-loading dd {
  color: var(--ps-ink-40);
  transition: color var(--ps-dur) var(--ps-ease);
}

/* ---------- La flota: galería horizontal con scroll-snap ---------- */
.flota-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad);
  padding: 4px var(--pad) 26px;
  scrollbar-width: none;
}
.flota-track::-webkit-scrollbar {
  display: none;
}
.fcard {
  flex: 0 0 min(78vw, 330px);
  scroll-snap-align: start;
  background: var(--ps-white);
  border: var(--ps-hairline);
  padding: 18px 18px 20px;
  text-align: left;
  display: grid;
  gap: 6px;
  align-content: start;
  transition: border-color var(--ps-dur) var(--ps-ease);
}
.fcard:hover,
.fcard:focus-visible {
  border-color: var(--ps-ink);
}
.fcard-img {
  background: var(--ps-paper);
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 14px;
  margin-bottom: 8px;
}
.fcard-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.fcard-badge {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.fcard-badge.own {
  color: var(--ps-ink);
}
.fcard-name {
  font-family: var(--ps-font-display);
  font-size: 25px;
  line-height: 1.05;
}
.fcard-cat {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.fcard-mini {
  font-size: 12.5px;
  color: var(--ps-ink-60);
  font-variant-numeric: tabular-nums;
}
.fcard-cta {
  justify-self: start;
  margin-top: 8px;
}

/* Ficha técnica (capa flotante) */
.ficha-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ps-photo-veil);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--ps-dur) var(--ps-ease);
}
.ficha-backdrop.show {
  opacity: 1;
}
.ficha-panel {
  position: relative;
  background: var(--ps-white);
  box-shadow: var(--ps-shadow-float);
  width: min(1000px, 100%);
  max-height: 90svh;
  overflow: auto;
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .ficha-panel {
    grid-template-columns: 1.05fr 1fr;
  }
}
.ficha-close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  font-family: var(--ps-font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--ps-vicuna);
  padding: 8px;
  transition: color var(--ps-dur) var(--ps-ease);
}
.ficha-close:hover {
  color: var(--ps-ink);
}
.ficha-media {
  display: grid;
  gap: 16px;
  align-content: start;
}
.ficha-hero {
  border: var(--ps-hairline);
  background: var(--ps-paper);
  padding: 22px;
  display: grid;
  place-items: center;
}
.ficha-hero img {
  max-height: 260px;
  width: auto;
}
.ficha-int {
  margin: 0;
  display: grid;
  gap: 8px;
}
.ficha-int img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.ficha-int figcaption {
  font-size: 11px;
  color: var(--ps-vicuna);
}
.ficha-info {
  display: grid;
  gap: 18px;
  align-content: start;
}
.ficha-kicker {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.ficha-kicker em {
  font-style: normal;
  color: var(--ps-ink);
}
.ficha-info h3 {
  font-family: var(--ps-font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.02;
}
.ficha-meta {
  font-size: 12px;
  color: var(--ps-vicuna);
  letter-spacing: 0.04em;
}
.ficha-specs {
  border-top: var(--ps-hairline);
}
.ficha-specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: var(--ps-hairline);
  font-size: 12.5px;
  color: var(--ps-ink-60);
}
.ficha-specs strong {
  font-family: var(--ps-font-display);
  font-size: 18px;
  color: var(--ps-ink);
  font-variant-numeric: tabular-nums;
}
.ficha-range p,
.ficha-ideal p {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
  margin-bottom: 10px;
}
.ficha-bar {
  position: relative;
  height: 1px;
  background: var(--ps-rule);
  margin: 14px 0 10px;
}
.ficha-bar span {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  background: var(--ps-ink);
  transition: width var(--ps-dur) var(--ps-ease);
}
.ficha-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 12.5px;
  color: var(--ps-ink-60);
}
.ficha-routes span + span::before {
  content: '·';
  margin: 0 8px;
  color: var(--ps-vicuna);
}
.ficha-ideal ul li {
  border-top: var(--ps-hairline);
  padding: 8px 0;
  font-size: 13px;
}
.ficha-info .action {
  justify-self: start;
}

/* ---------- Membresía (tarjeta blanca) ---------- */
.wl-form {
  display: grid;
}
.wl-form .action {
  margin-top: 28px;
}
.wl-ok {
  border-top: var(--ps-hairline);
  padding-top: 20px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ps-ink-60);
}
.wl-ok-t {
  font-family: var(--ps-font-display);
  font-size: 32px;
  line-height: 1.05;
  color: var(--ps-ink);
  margin-bottom: 8px;
}

/* ============ WhatsApp de la casa (FLT-974) ============
   Acción persistente y discreta: el canal donde la casa conversa. Tinta sobre
   marfil, sin colores de terceros — la marca manda sobre el logotipo ajeno. */
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.wa-ico {
  flex: none;
}

.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--ps-ink);
  background: var(--ps-ink);
  color: var(--ps-paper);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--ps-shadow-float);
  transition: transform var(--ps-dur) var(--ps-ease);
}
.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  /* En móvil el pulgar manda: cuadro compacto, sin texto. */
  .wa-float {
    padding: 13px;
    gap: 0;
  }
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }
}
