/* ================================================================
   RESERVA-BUILDER.CSS — Motor de reserva TaxiGuazú
   -----------------------------------------------------------------
   Paleta de marca: verde profundo #085041, verde medio #1D9E75,
   dorado #C8A45A, base oscura #03201A (footer).
   Layout del formulario (referencia modelo):
   · Columna IZQUIERDA: comboboxes (origen → destinos) en cadena
     vertical, con línea de trayectoria + nodos.
   · Guía central imaginaria; columna DERECHA de igual peso: por tramo
     inversor vertical ⇅ + hora + ida y vuelta (en la misma línea).
   · Tira de pasos (breadcrumb) en capa cromática + resumen por día.
   ================================================================ */

.gt-builder,
.gt-entry,
[data-gt-builder] {
  --gt-bg:      #03201A;
  --gt-deep:    #052E24;
  --gt-card:    #0A3B2E;
  --gt-card2:   #0E4A3A;
  --gt-card3:   #14583F;
  --gt-card-h:  #1C6A4C;
  --gt-brd:     rgba(225, 245, 238, 0.10);
  --gt-brd2:    rgba(225, 245, 238, 0.20);
  --gt-txt:     #F4FBF7;
  --gt-txt2:    #BFD8CC;
  --gt-txt3:    #9DBDB0;
  --gt-grn:     #1D9E75;
  --gt-grn-h:   #2FBD8C;
  --gt-grn-dk:  #085041;
  --gt-grn-line: rgba(29, 158, 117, 0.55);
  --gt-gold:    #C8A45A;
  --gt-gold-line: rgba(200, 164, 90, 0.5);
  --gt-vc:      #E1F5EE;
  --gt-danger:  #E06A5A;
  --gt-wa:      #25D366;
  --gt-r:       12px;   /* tarjetas — alineado al sistema del sitio */
  --gt-rs:      8px;    /* inputs/controles — alineado al sistema del sitio */
  /* relieve sobre fondo oscuro: light-top-edge + sombra suave (no sombra gigante) */
  --gt-sh:      0 1px 0 rgba(225, 245, 238, 0.07) inset, 0 14px 34px rgba(0, 0, 0, 0.24);
  color-scheme: dark;
}

/* ============ sección full-width con fondo de marca ============ */
.sec-reservas {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(200, 164, 90, 0.14), transparent 60%),
    radial-gradient(900px 620px at 0% 115%, rgba(29, 158, 117, 0.18), transparent 55%),
    linear-gradient(180deg, #053D2E 0%, #063927 100%);
  border-top: 1px solid rgba(225, 245, 238, 0.07);
  border-bottom: 1px solid rgba(225, 245, 238, 0.06);
}
.sec-reservas .sec-header h2,
.sec-reservas h2 { color: #F4FBF7; }
.sec-reservas .sec-pretitle { color: #C8A45A; }
.sec-reservas p { color: rgba(244, 251, 247, 0.78); }
.sec-reservas .sec-header::after { background: #C8A45A; }

/* ============ base ============ */
.gt-builder *,
.gt-entry * { box-sizing: border-box; }
.gt-builder [hidden],
.gt-entry [hidden] { display: none !important; }
.gt-builder,
.gt-entry {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gt-txt);
}
.gt-builder input,
.gt-builder select,
.gt-builder textarea,
.gt-entry input,
.gt-entry select,
.gt-entry textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--gt-txt);
}
.gt-builder button,
.gt-entry button { font-family: inherit; }
.gt-builder input::placeholder,
.gt-entry input::placeholder,
.gt-builder textarea::placeholder,
.gt-entry textarea::placeholder { color: var(--gt-txt3); }

/* ============ contenedores ============ */
.gt-builder {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px), var(--gt-bg);
  border: 1px solid var(--gt-brd);
  border-radius: var(--gt-r);
  box-shadow: var(--gt-sh);
  padding: clamp(16px, 3vw, 30px);
}
.gt-entry {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px), var(--gt-bg);
  border: 1px solid var(--gt-brd);
  border-radius: var(--gt-r);
  box-shadow: var(--gt-sh);
  padding: clamp(14px, 2.6vw, 26px);
}

/* ============ cabeceras ============ */
.gt-builder__head,
.gt-entry__head { padding-bottom: 14px; border-bottom: 1px solid var(--gt-brd); margin-bottom: 16px; }
.gt-builder__head h1,
.gt-entry__head h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--gt-txt);
}
.gt-builder__sub { margin: 6px 0 0; color: var(--gt-txt2); font-size: 0.9rem; max-width: 64ch; }

/* ============ meta (pasajeros / equipaje + total + confirmar) ============ */
.gt-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--gt-card); border: 1px solid var(--gt-brd); border-radius: var(--gt-rs);
  padding: 10px 14px; margin-bottom: 14px;
}
.gt-meta--sticky { position: sticky; top: var(--hh, 72px); z-index: 900; }
.gt-meta--entry { margin-bottom: 12px; }
.gt-meta__fields { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; min-width: 0; }
.gt-meta__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gt-meta__label {
  font-size: 0.66rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--gt-txt3);
}
.gt-meta__rail { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
.gt-meta select {
  width: 100%; appearance: none; -webkit-appearance: none; position: relative;
  background: var(--gt-card3) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238FB3A4' d='M5 6 0 0h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--gt-brd2); border-radius: var(--gt-rs);
  padding: 9px 34px 9px 12px; cursor: pointer; color: var(--gt-txt);
}
.gt-meta select:focus { outline: none; border-color: var(--gt-grn); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18); }
.gt-qty { display: inline-flex; align-items: center; border: 1px solid var(--gt-brd2); border-radius: var(--gt-rs); overflow: hidden; width: fit-content; }
.gt-qty__btn { width: 30px; height: 34px; border: none; background: var(--gt-card3); color: var(--gt-txt); font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.gt-qty__btn:hover { background: var(--gt-card-h); color: var(--gt-gold); }
.gt-qty__val { min-width: 30px; text-align: center; font-weight: 600; font-size: 0.92rem; }
.gt-meta__veh { font-size: 0.72rem; color: var(--gt-txt2); }
.gt-meta__veh--row { flex: 1 1 100%; margin-top: 4px; }
.gt-meta__veh--up { color: var(--gt-grn); }
.gt-meta__veh--warn { color: var(--gt-gold); }
.gt-meta__note { font-size: 0.7rem; color: var(--gt-txt3); }
.gt-meta__pref { font-size: 0.72rem; color: var(--gt-gold); }

.gt-datebox {
  position: relative; display: inline-flex; align-items: center;
  background: var(--gt-card3); border: 1px solid var(--gt-brd2); border-radius: var(--gt-rs);
  padding: 9px 34px 9px 12px; min-height: 40px; color: var(--gt-txt);
}
.gt-datebox--wide { width: 100%; }
.gt-datebox__txt { pointer-events: none; white-space: nowrap; font-size: 0.92rem; }
.gt-datebox--empty .gt-datebox__txt { color: var(--gt-txt3); }
.gt-datebox__in {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: none; background: transparent; border-radius: inherit; color: transparent;
}
.gt-datebox__in:focus { outline: none; }
.gt-datebox:focus-within { border-color: var(--gt-grn); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18); }
.gt-datebox__ic { position: absolute; right: 12px; color: var(--gt-txt3); font-size: 0.85rem; pointer-events: none; }
.gt-datebox__in::-webkit-calendar-picker-indicator,
.gt-time::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.gt-datebox__in::-webkit-datetime-edit,
.gt-time::-webkit-datetime-edit { pointer-events: none; }
.gt-datebox__in::-moz-calendar-picker-indicator,
.gt-time::-moz-calendar-picker-indicator { position: absolute; inset: 0; opacity: 0; }

/* ============ tarjeta de día ============ */
.gt-days__list { display: grid; gap: 14px; margin-bottom: 12px; }
.gt-day {
  border: 1px solid var(--gt-brd); border-radius: var(--gt-r);
  background: linear-gradient(180deg, var(--gt-card), var(--gt-bg));
}
.gt-day--open { border-color: var(--gt-brd2); box-shadow: 0 0 0 1px rgba(29, 158, 117, 0.10); }
.gt-day--entry { background: transparent; border: none; box-shadow: none; }
.gt-day__bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: linear-gradient(180deg, var(--gt-card2), transparent);
}
.gt-day--open .gt-day__bar { background: linear-gradient(180deg, rgba(29, 158, 117, 0.16), transparent); }
.gt-day__num { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; color: var(--gt-grn-h); text-transform: uppercase; flex: none; display: inline-flex; align-items: center; gap: 7px; }
.gt-day__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gt-grn); box-shadow: 0 0 0 3px rgba(47, 189, 140, 0.22); flex: none; }
.gt-day__collapse, .gt-day__expand, .gt-day__remove {
  appearance: none; cursor: pointer; background: transparent; color: var(--gt-txt2);
  width: 32px; height: 32px; border: 1px solid var(--gt-brd2); border-radius: var(--gt-rs);
  font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.gt-day__collapse:hover, .gt-day__expand:hover { border-color: var(--gt-brd2); color: var(--gt-txt); background: var(--gt-card-h); }
.gt-day__remove { color: var(--gt-txt3); }
.gt-day__remove:hover { color: var(--gt-danger); border-color: rgba(224, 106, 90, 0.35); }
.gt-day__body { padding: 18px clamp(8px, 1.8vw, 20px) 22px; }

/* ============ cadena vertical (2 columnas de igual peso) ============ */
.gt-route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
/* línea de trayectoria (spine) a la izquierda */
.gt-route::before {
  content: ''; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gt-grn-line), rgba(29, 158, 117, 0.2));
  border-radius: 2px; pointer-events: none; z-index: 0;
}
/* guía central imaginaria */
.gt-route::after {
  content: ''; position: absolute; left: 50%; top: 2%; bottom: 2%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gt-brd2) 12%, var(--gt-brd2) 88%, transparent);
  pointer-events: none; z-index: 0;
}
.gt-route__cell { position: relative; z-index: 1; min-width: 0; }
/* celda con dropdown abierto: por encima de los combos siguientes */
.gt-route__cell--open { z-index: 60; }

/* ============ nodo (label + dot + combo) ============ */
.gt-node { padding: 4px 16px 6px 0; }
.gt-node__k {
  display: flex; align-items: center; gap: 6px;
  padding-left: 46px;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gt-txt3); margin-bottom: 5px;
}
.gt-node--last .gt-node__k { color: var(--gt-gold); }
.gt-node__tag {
  font-style: normal; color: var(--gt-gold); text-transform: none;
  letter-spacing: 0; font-size: 0.76em; background: rgba(200, 164, 90, 0.14);
  border: 1px solid var(--gt-gold-line); border-radius: 999px; padding: 1px 8px; margin-left: 4px;
}
.gt-node__row { position: relative; display: flex; align-items: center; padding-left: 46px; }
.gt-node__dot {
  position: absolute; left: 13px; top: 50%; margin-top: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gt-grn-dk); border: 2px solid var(--gt-grn);
  box-shadow: 0 0 0 2px rgba(29, 158, 117, 0.16);
  z-index: 2; pointer-events: none;
}
.gt-node--origin .gt-node__dot { border-color: var(--gt-grn); }
.gt-node--last .gt-node__dot { border-color: var(--gt-gold); background: rgba(200, 164, 90, 0.25); box-shadow: 0 0 0 2px rgba(200, 164, 90, 0.14); }
/* vuelta personalizada ("otro lugar"): fila dorada punteada que se cotiza aparte */
.gt-node--ret { border-left: 2px dashed var(--gt-gold-line); margin-left: 4px; padding-left: 10px; }
.gt-node--ret .gt-node__k { color: var(--gt-gold); }
.gt-node--ret .gt-node__dot { border-color: var(--gt-gold); border-style: dashed; background: var(--gt-card); box-shadow: 0 0 0 2px rgba(200, 164, 90, 0.14); }
.gt-node__row .gt-loc { flex: 1 1 auto; min-width: 0; }

/* combobox */
.gt-loc { position: relative; min-width: 0; }
.gt-loc__value, .gt-loc__input {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: var(--gt-card3); border: 1px solid var(--gt-brd2); border-radius: var(--gt-rs);
  padding: 9px 8px 9px 12px; min-height: 44px;
}
.gt-loc__value--sel { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--gt-card2); border-color: var(--gt-brd2); }
.gt-loc__input { cursor: text; }
.gt-loc__input:focus { outline: none; border-color: var(--gt-grn); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18); }
.gt-loc__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; flex: 1 1 auto; min-width: 0; }
.gt-loc__actions { display: inline-flex; gap: 2px; margin-left: auto; flex: none; }
.gt-loc__ic {
  appearance: none; cursor: pointer; flex: none;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--gt-txt3);
  border-radius: 8px; font-size: 0.9rem; transition: all 0.2s;
}
.gt-loc__ic:hover { color: var(--gt-txt); background: rgba(255, 255, 255, 0.08); border-color: var(--gt-brd2); }
.gt-loc__ic--del:hover { color: var(--gt-danger); border-color: rgba(224, 106, 90, 0.4); }
.gt-loc__ic--dead { border-color: var(--gt-brd2); background: rgba(255, 255, 255, 0.03); }
.gt-loc__list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 90;
  background: #0d3227; border: 1px solid var(--gt-brd2); border-radius: var(--gt-rs);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); max-height: 300px; overflow: auto; padding: 6px;
}
.gt-loc__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  text-align: left; padding: 9px 10px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--gt-txt); cursor: pointer; font-size: 0.92rem;
}
.gt-loc__item:hover, .gt-loc__item--active { background: var(--gt-card-h); border-color: var(--gt-grn-line); }
.gt-loc__item-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-loc__item-type { color: var(--gt-txt3); font-size: 0.75rem; flex: none; }
.gt-loc__empty { padding: 12px; color: var(--gt-txt2); font-size: 0.85rem; }

/* chips tipados */
.gt-chip {
  flex: none; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 6px; padding: 2px 8px; border: 1px solid var(--gt-brd2);
  color: var(--gt-txt2); background: rgba(255, 255, 255, 0.05);
}
.gtp-aeropuerto, .gtp-terminal { color: var(--gt-gold); border-color: var(--gt-gold-line); background: rgba(200, 164, 90, 0.1); }
.gtp-hotel, .gtp-resort, .gtp-hostel, .gtp-lodge, .gtp-airbnb, .gtp-comunidad { color: var(--gt-grn); border-color: var(--gt-grn-line); background: rgba(29, 158, 117, 0.1); }
.gtp-atractivo, .gtp-parque { color: #7fb8d8; border-color: rgba(127, 184, 216, 0.4); background: rgba(127, 184, 216, 0.1); }
.gtp-frontera { color: var(--gt-danger); border-color: rgba(224, 106, 90, 0.4); background: rgba(224, 106, 90, 0.1); }
.gtp-compras, .gtp-shopping { color: #d8a3e0; border-color: rgba(216, 163, 224, 0.4); background: rgba(216, 163, 224, 0.1); }

/* ============ propiedades del tramo (columna derecha) ============ */
.gt-route__cell--props {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  flex-wrap: wrap; gap: 6px; padding: 4px 4px; min-height: 0;
}
.gt-legctl {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap;
}
.gt-inv {
  appearance: none; cursor: pointer; flex: none;
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gt-grn-line); background: rgba(29, 158, 117, 0.10);
  color: var(--gt-grn); border-radius: 8px; font-size: 0.8rem; line-height: 1;
  transition: all 0.2s;
}
.gt-inv:hover:not(:disabled) { background: rgba(29, 158, 117, 0.22); color: var(--gt-grn-h); transform: translateY(-1px); }
.gt-inv:disabled { opacity: 0.35; cursor: not-allowed; }
.gt-leg__timewrap { position: relative; z-index: 1; display: inline-flex; }
.gt-temporal { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.gt-time {
  appearance: none; -webkit-appearance: none; position: relative;
  width: 100%; min-width: 96px; text-align: center;
  background: var(--gt-card3); border: 1px solid var(--gt-brd2); border-radius: 999px;
  padding: 6px 18px 6px 6px; color: var(--gt-txt); cursor: pointer;
  font-variant-numeric: tabular-nums; transition: border-color 0.2s, box-shadow 0.2s;
}
.gt-time:hover { border-color: var(--gt-grn-line); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12); }
.gt-time--req { border-color: rgba(200, 164, 90, 0.5); }
.gt-ret {
  appearance: none; cursor: pointer; flex: none;
  border: 1px solid var(--gt-brd2); background: var(--gt-card2); color: var(--gt-txt2);
  border-radius: 999px; padding: 6px 10px; font-size: 0.75rem; font-weight: 500;
  transition: all 0.2s; white-space: nowrap;
}
.gt-ret:hover { border-color: var(--gt-gold-line); color: var(--gt-gold); }
.gt-ret--on { background: rgba(200, 164, 90, 0.16); color: var(--gt-gold); border-color: var(--gt-gold); font-weight: 600; }
.gt-leg__hint {
  font-size: 0.66rem; color: var(--gt-txt3); max-width: 200px; text-align: center; min-height: 1em;
}

/* ============ retorno (ida y vuelta) — un solo combo ============ */
.gt-return {
  margin-top: 4px; padding: 12px 18px 12px 46px;
  border-top: 1px dashed var(--gt-gold-line);
}
.gt-return .gt-node__k { padding-left: 0; color: var(--gt-gold); margin: 0 0 6px; }
.gt-return__from { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 0.78em; color: var(--gt-txt2); }
.gt-return__row { position: relative; display: flex; align-items: center; max-width: 520px; }
.gt-return__row .gt-node__dot--ret {
  position: absolute; left: -33px; top: 50%; margin-top: -6px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--gt-gold); background: rgba(200, 164, 90, 0.2);
  box-shadow: 0 0 0 2px rgba(200, 164, 90, 0.14); pointer-events: none;
}
.gt-return__sel {
  width: 100%; appearance: none; -webkit-appearance: none; position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--gt-card2) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23C8A45A' d='M5 6 0 0h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--gt-gold-line); border-radius: var(--gt-rs);
  padding: 11px 34px 11px 12px; color: var(--gt-txt); cursor: pointer; font-weight: 500;
  min-height: 44px;
}
.gt-return__sel:focus { outline: none; border-color: var(--gt-gold); box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.16); }

/* ============ agregar destino / día ============ */
.gt-addrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; min-width: 0; }
.gt-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; appearance: none; cursor: pointer;
  border: 1px dashed var(--gt-grn-line); background: rgba(29, 158, 117, 0.06); color: var(--gt-grn);
  border-radius: 999px; padding: 9px 18px; font-size: 0.88rem; font-weight: 600;
  transition: background 0.2s, color 0.2s; text-decoration: none; white-space: nowrap;
  min-width: 0; flex: 1 1 auto; max-width: 100%;
}
.gt-add:hover { background: rgba(29, 158, 117, 0.14); color: var(--gt-grn-h); }
.gt-add:disabled, .gt-add[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.gt-add--day { border-color: var(--gt-grn-line); color: var(--gt-grn); background: rgba(29, 158, 117, 0.04); }
.gt-add--day:hover { background: rgba(29, 158, 117, 0.14); color: var(--gt-grn-h); }
.gt-hint { font-size: 0.78rem; color: var(--gt-txt3); }
.gt-hint--min { margin: 10px 0 0; }

/* ============ total + confirmar (rail derecho) ============ */
.gt-meta__total {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-left: 1px dashed var(--gt-gold-line); padding-left: 18px; min-width: 0;
}
.gt-meta__total-l { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gt-gold); }
.gt-meta__total-v { font-size: 1.35rem; font-weight: 700; color: #fff; line-height: 1.15; }
.gt-steps__cta {
  appearance: none; cursor: pointer; margin-top: 8px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--gt-wa), #128C4A); color: #fff; border: none;
  border-radius: 999px; padding: 13px 24px; font-size: 1rem; font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.30); transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.gt-steps__cta:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 211, 102, 0.40); }
.gt-steps__cta:disabled, .gt-steps__cta[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.6); }

/* ============ día comprimido ============ */
.gt-day__sum { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.gt-day__marcas { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.gt-day__date { color: var(--gt-txt2); font-size: 0.82rem; }
.gt-day__time { font-size: 0.72rem; color: var(--gt-txt2); font-variant-numeric: tabular-nums; }
.gt-day__route {
  font-size: 0.85rem; color: var(--gt-vc); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.gt-day__price { font-size: 0.9rem; font-weight: 600; color: var(--gt-gold); white-space: nowrap; }
.gt-day__acts { display: inline-flex; align-items: center; gap: 8px; }
.gt-day__confirm {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #1F7A5B, #145A42); color: #DFF3EA;
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 600;
  border: none; box-shadow: 0 5px 12px rgba(20, 90, 66, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; white-space: nowrap;
}
.gt-day__confirm:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 7px 16px rgba(20, 90, 66, 0.45); }
.gt-day__confirm i { font-size: 0.95rem; color: var(--gt-wa); }

/* ============ pestañas (preferencias / beneficios / observaciones) ============ */
/* Cada panel se despliega justo debajo de SU pestaña (grid de 3 columnas). */
.gt-tabs { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.gt-tab {
  appearance: none; cursor: pointer; grid-row: 1; align-self: end; text-align: left;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid transparent; border-radius: 10px 10px 0 0;
  background: transparent; color: var(--gt-txt2); font-size: 0.86rem;
  transition: all 0.2s; min-width: 0;
}
.gt-tab:hover { color: var(--gt-txt); background: rgba(255, 255, 255, 0.03); }
.gt-tab.is-active {
  color: #fff; background: rgba(29, 158, 117, 0.16); border-color: var(--gt-grn-line);
  border-bottom-color: var(--gt-card2); font-weight: 600;
}
.gt-tab__lbl { display: inline-flex; align-items: center; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-tab__lbl i { color: var(--gt-grn); width: 14px; text-align: center; flex: none; }
.gt-tab.is-active .gt-tab__lbl i { color: var(--gt-grn-h); }
.gt-tab:focus-visible { outline: 2px solid var(--gt-grn); outline-offset: -2px; }
.gt-tab__sum { font-size: 0.72rem; color: var(--gt-txt3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; text-align: right; min-width: 0; }
.gt-tabs__panel {
  grid-row: 2; display: none; padding: 12px 14px;
  background: var(--gt-card2); border: 1px solid var(--gt-brd2); border-top: none;
  border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.30);
}
.gt-tabs__panel.is-open { display: grid; gap: 12px; }

.gt-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.92rem; }
.gt-opt input[type="checkbox"], .gt-ben input[type="checkbox"] { accent-color: var(--gt-grn); width: 17px; height: 17px; }
.gt-opt__sub { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 27px; }
.gt-opt__group { display: grid; gap: 8px; }
.gt-opt__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gt-txt3); }
.gt-opt em { font-style: normal; color: var(--gt-txt3); font-size: 0.82em; }
.gt-pill { display: inline-flex; }
.gt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.gt-pill span {
  border: 1px solid var(--gt-brd2); border-radius: 999px; padding: 7px 14px;
  font-size: 0.85rem; cursor: pointer; color: var(--gt-txt2); transition: all 0.2s;
}
.gt-pill input:checked + span { border-color: var(--gt-grn); background: rgba(29, 158, 117, 0.16); color: var(--gt-txt); font-weight: 600; }
.gt-pill input:focus-visible + span { outline: 2px solid var(--gt-grn); outline-offset: 2px; }
.gt-ben {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--gt-brd); border-radius: var(--gt-rs);
  background: var(--gt-card2); transition: border-color 0.2s;
}
.gt-ben:hover { border-color: var(--gt-grn-line); }
.gt-ben input { margin-top: 3px; }
.gt-ben__box { display: grid; gap: 3px; min-width: 0; }
.gt-ben__title { font-weight: 600; font-size: 0.92rem; }
.gt-ben__desc { color: var(--gt-txt2); font-size: 0.82rem; }
.gt-note, .gt-empty { color: var(--gt-txt3); font-size: 0.8rem; margin: 2px 0 0; }

/* ============ observaciones (dentro de pestaña) ============ */
.gt-obs { position: relative; display: grid; gap: 8px; }
.gt-obs__lbl {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gt-txt3);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.gt-obs textarea {
  width: 100%; background: var(--gt-card3); border: 1px solid var(--gt-brd2);
  border-radius: var(--gt-rs); padding: 10px 12px; resize: vertical; color: var(--gt-txt);
}
.gt-obs textarea:focus { outline: none; border-color: var(--gt-grn); box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.14); }
.gt-obs__count { font-size: 0.72rem; color: var(--gt-txt3); }

/* ============ resumen ============ */
.gt-resumen {
  margin-top: 18px; padding: 16px 18px;
  border: 1px solid var(--gt-brd2); border-left: 3px solid var(--gt-gold);
  border-radius: var(--gt-rs); background: var(--gt-card);
}
.gt-resumen__title { font-size: 1rem; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--gt-txt); }
.gt-resumen__title i { color: var(--gt-gold); }
.gt-resumen__day { margin-bottom: 14px; }
.gt-resumen__day:last-child { margin-bottom: 0; }
.gt-resumen__dhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.gt-resumen__d { font-weight: 700; font-size: 0.85rem; color: var(--gt-grn); text-transform: uppercase; letter-spacing: 0.05em; }
.gt-resumen__price { margin-left: auto; font-size: 0.92rem; font-weight: 700; color: var(--gt-gold); }
.gt-resumen__legs { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.gt-resumen__legs li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--gt-txt2); padding: 5px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}
.gt-resumen__legs .gt-resumen__ret { color: var(--gt-gold); background: rgba(200, 164, 90, 0.06); }
.gt-resumen__legs .gt-resumen__leg--ret { border-left: 2px dashed var(--gt-gold-line); }
.gt-resumen__idx { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gt-card3); color: var(--gt-grn); font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gt-resumen__ret .gt-resumen__idx { color: var(--gt-gold); }
.gt-resumen__time { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gt-vc); min-width: 74px; }
.gt-resumen__txt { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gt-resumen__txt i { color: var(--gt-grn); font-size: 0.7rem; }
.gt-resumen__txt em { font-style: normal; color: var(--gt-gold); }
.gt-resumen__empty { color: var(--gt-txt3); font-size: 0.85rem; margin: 0; }

/* ============ botones ============ */
.gt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  appearance: none; cursor: pointer; border: 1px solid var(--gt-grn-line);
  background: transparent; color: var(--gt-grn); border-radius: 999px;
  padding: 11px 20px; font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
  font-family: inherit;
}
.gt-btn:hover { background: rgba(29, 158, 117, 0.12); }
.gt-btn:disabled, .gt-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.gt-btn--cta {
  background: linear-gradient(135deg, var(--gt-wa), #128C4A); color: #fff;
  border-color: transparent; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}
.gt-btn--cta:hover:not(:disabled):not([aria-disabled="true"]) { transform: translateY(-1px); background: linear-gradient(135deg, #34D46F, #0E7B40); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.32); }

/* campo que falta completar (resaltado) */
@keyframes gtShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.gt-err {
  animation: gtShake 0.4s ease;
  border-color: var(--gt-danger) !important;
  box-shadow: 0 0 0 3px rgba(224, 106, 90, 0.35) !important;
}

/* icono de información con tooltip (precio, horas) */
.gt-ii {
  position: relative; appearance: none; cursor: help; flex: none;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); color: var(--gt-txt3);
  border: 1px solid var(--gt-brd2); border-radius: 50%; font-size: 0.72rem;
  transition: all 0.2s; padding: 0;
}
.gt-ii:hover, .gt-ii:focus-visible, .gt-ii--open { color: var(--gt-gold); border-color: var(--gt-gold-line); background: rgba(200, 164, 90, 0.12); outline: none; }
.gt-ii__tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: min(70vw, 220px); padding: 8px 12px;
  background: #0d3227; border: 1px solid var(--gt-gold-line); color: var(--gt-txt);
  border-radius: 9px; font-size: 0.76rem; font-weight: 400; line-height: 1.35; text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
}
.gt-ii__tip::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--gt-gold-line);
}
.gt-ii:hover .gt-ii__tip, .gt-ii:focus-visible .gt-ii__tip, .gt-ii--open .gt-ii__tip {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.gt-meta__total-v { display: flex; align-items: center; gap: 8px; }
.gt-meta__total-v .gt-ii i { font-size: 0.9rem; }

/* toast de ayuda */
.gt-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 200; max-width: min(90vw, 460px);
  background: #10231d; border: 1px solid var(--gt-gold-line); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.gt-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ entrada básica (index-2) ============ */
.gt-entry__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.gt-entry__opts { margin-top: 4px; }
.gt-entry__confirm {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gt-brd);
}
.gt-entry__price { display: flex; flex-direction: column; gap: 1px; margin: 0; }
.gt-entry__price-l { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gt-gold); }
.gt-entry__price-v { font-size: 1.35rem; font-weight: 700; color: #fff; }
.gt-entry__price small { font-size: 0.7rem; color: var(--gt-txt3); }
.gt-btn--confirm { flex: none; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .gt-meta__rail {
    flex: 1 1 100%; margin-left: 0; justify-content: space-between;
    border-top: 1px dashed var(--gt-gold-line); padding-top: 10px;
  }
  .gt-meta__total { border-left: none; padding-left: 0; }
}

@media (max-width: 760px) {
  .gt-route { grid-template-columns: minmax(0, 1fr); }
  .gt-route .gt-route__cell { grid-column: 1 !important; }
  .gt-route::before { left: 20px; }
  .gt-route::after { display: none; }
  .gt-route__cell--props {
    flex-direction: row; justify-content: flex-start; gap: 6px;
    padding: 0 0 8px; margin-left: 34px; min-height: 0;
  }
  .gt-leg__hint { text-align: left; }
  .gt-return { padding-left: 46px; }
  .gt-return__row { max-width: none; }

  /* mini-barra fija: solo Total + Confirmar; el resto scrollea */
  .gt-meta--sticky { position: static; }
  .gt-meta__rail {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 950;
    margin-left: 0; padding: 10px 12px; border-top: 1px solid var(--gt-brd2);
    background: rgba(13, 50, 39, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.40); border-radius: 14px;
  }
  .gt-builder, .gt-entry { padding-bottom: 92px; }
  .gt-meta .gt-steps__cta, .gt-meta .gt-btn--confirm { padding: 11px 18px; font-size: 0.92rem; }
  .gt-toast { bottom: 78px; }

  /* fecha (cuando hay) + equipaje grande / de mano en una línea */
  .gt-meta__fields { flex-wrap: nowrap; align-items: center; }
  .gt-meta__field { min-width: 0; }
  .gt-qty__btn { width: 26px; height: 30px; }
  .gt-qty__val { min-width: 24px; font-size: 0.85rem; }
  .gt-datebox { min-height: 34px; padding: 6px 26px 6px 10px; }

  .gt-tabs { display: flex; flex-direction: column; }
  .gt-tab { flex-basis: auto; width: 100%; border-radius: 8px; align-self: auto; }
  .gt-tabs__panel { border-radius: 8px; width: 100%; }
  .gt-entry__confirm { flex-direction: column; align-items: stretch; text-align: center; }
  .gt-entry__price { align-items: center; }
  .gt-btn--confirm { justify-content: center; width: 100%; }
  .gt-time { max-width: none; }
  .gt-day__bar { flex-wrap: wrap; }
  .gt-day__acts { width: 100%; justify-content: flex-end; }
  .gt-day__price { align-self: flex-start; }
  .gt-day__marcas { flex-wrap: wrap; }
}

@media (max-width: 460px) {
  .gt-meta__fields { gap: 6px; }
  .gt-meta__label { font-size: 0.6rem; }
  .gt-meta__rail { flex-wrap: wrap; }
  .gt-meta .gt-steps__cta,
  .gt-meta .gt-btn--confirm { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gt-builder *, .gt-entry * { transition: none !important; animation: none !important; }
}
