/* Constructor de Circuitos — legibilidad WCAG-friendly sobre fondos claros */
.ib-page {
  --ib-primary: #171717;
  --ib-primary-hover: #000000;
  --ib-text: #0f172a;
  --ib-text-body: #1e293b;
  --ib-muted: #475569;
  --ib-label: #334155;
  --ib-hint: #475569;
  --ib-border: #cbd5e1;
  --ib-surface: #ffffff;
  --ib-surface-alt: #f1f5f9;
  --ib-accent: #334155;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--ib-text-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow: visible;
}

/* Contraste: anular grises muy claros de Tailwind dentro del constructor */
.ib-page .text-slate-400 { color: var(--ib-muted) !important; }
.ib-page .text-slate-500 { color: var(--ib-label) !important; }
.ib-page .text-slate-600 { color: var(--ib-text-body) !important; }
.ib-page label,
.ib-page .ib-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ib-label);
  letter-spacing: 0.01em;
}
.ib-page .text-xs {
  font-size: 0.8125rem !important;
  line-height: 1.45;
}
.ib-page .text-sm { font-size: 0.9rem !important; line-height: 1.45; }

.ib-page .ib-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ib-page .ib-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.ib-page .ib-subtitle {
  color: var(--ib-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.15rem 0 0;
}

.ib-layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 1rem;
  flex: 0 0 auto;
  min-height: 0;
  align-items: start;
}
@media (max-width: 900px) { .ib-layout { grid-template-columns: 1fr; } }

.ib-page .ib-sidebar {
  padding: 1rem;
  overflow: visible;
  max-height: none;
}

.ib-sidebar-title {
  color: var(--ib-label);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.ib-timeline-empty { color: var(--ib-muted); font-size: 0.875rem; padding: 1rem 0; }

/* Itinerario día a día (estilo resumen de viaje) */
.ib-program { margin-top: 0.25rem; }
.ib-program-summary {
  padding: 0.65rem 0.75rem;
  background: var(--ib-surface-alt);
  border: 1px solid var(--ib-border);
  border-radius: 0.65rem;
  margin-bottom: 0.85rem;
}
.ib-program-dates {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ib-text);
  line-height: 1.35;
}
.ib-program-meta {
  font-size: 0.75rem;
  color: var(--ib-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}
.ib-program-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ib-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
}
.ib-program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ib-day-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.55rem;
  align-items: start;
  position: relative;
}
.ib-day-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 48px;
  bottom: -0.65rem;
  width: 2px;
  background: var(--ib-border);
  z-index: 0;
}
.ib-day-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0.3rem 0.2rem;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  z-index: 1;
}
/* Inicio / fin — negro */
.ib-day-badge-dark {
  background: linear-gradient(145deg, #0a0a0a 0%, #262626 100%);
}
.ib-day-badge-ink {
  background: linear-gradient(145deg, #171717 0%, #404040 100%);
}
/* Traslados — naranja */
.ib-day-badge-orange {
  background: linear-gradient(145deg, #c2410c 0%, #f97316 55%, #fb923c 100%);
}
/* Estadías — verdes (rotan por destino) */
.ib-day-badge-green {
  background: linear-gradient(145deg, #047857 0%, #10b981 100%);
}
.ib-day-badge-teal {
  background: linear-gradient(145deg, #0f766e 0%, #14b8a6 100%);
}
.ib-day-badge-forest {
  background: linear-gradient(145deg, #166534 0%, #22c55e 100%);
}
.ib-day-badge-lime {
  background: linear-gradient(145deg, #3f6212 0%, #65a30d 100%);
}
.ib-day-badge .ib-day-num,
.ib-day-badge .ib-day-mon {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.ib-day-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}
.ib-day-mon {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.92);
}
.ib-day-card {
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: 0.65rem;
  padding: 0.6rem 0.7rem;
  min-width: 0;
}
.ib-day-loc {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ib-text);
  line-height: 1.3;
}
.ib-day-sub {
  font-size: 0.75rem;
  color: var(--ib-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}
.ib-day-sub strong { color: var(--ib-label); }
.ib-day-edit-fecha { margin-top: 0.35rem; }
.ib-day-card-transport { padding: 0; overflow: hidden; }
.ib-day-transport-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.7rem;
  background: #fff;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.ib-day-transport-btn:hover { background: var(--ib-surface-alt); }
.ib-trans-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.ib-trans-icon-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.ib-trans-icon-badge--pendiente {
  font-size: 1rem;
  font-weight: 800;
  color: #94a3b8;
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
}
.ib-trans-icon-badge--vuelo { background: #eff6ff; border-color: #93c5fd; }
.ib-trans-icon-badge--tren { background: #f0fdf4; border-color: #86efac; }
.ib-trans-icon-badge--bus { background: #fefce8; border-color: #fde047; }
.ib-trans-icon-badge--ferry { background: #ecfeff; border-color: #67e8f9; }
.ib-trans-icon-badge--transfer { background: #f5f5f5; border-color: #a3a3a3; }
.ib-trans-icon-badge--rentcar { background: #fff7ed; border-color: #fb923c; }
.ib-trans-icon-badge--coche { background: #f5f5f5; border-color: #a3a3a3; }
.ib-day-transport-empty {
  border: 1px dashed #94a3b8;
  border-radius: 0.65rem;
  background: #fafbfc;
}
.ib-day-transport-empty.ib-day-transport-btn,
button.ib-day-transport-empty {
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
button.ib-day-transport-empty:hover { background: #f1f5f9; }
.ib-trans-route {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--ib-text);
}
.ib-trans-carrier {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ib-label);
  margin-top: 0.2rem;
}
.ib-trans-detail {
  display: block;
  font-size: 0.7rem;
  color: var(--ib-muted);
  margin-top: 0.1rem;
}
.ib-trans-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: var(--ib-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}
.ib-trans-time { font-weight: 600; color: var(--ib-label); }
.ib-trans-dur { font-weight: 500; }
.ib-trans-price { font-weight: 700; color: var(--ib-primary); }
.ib-trans-pick {
  display: block;
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 600;
  margin-top: 0.2rem;
}
.ib-trans-est { font-weight: 500; color: #b45309; }
.ib-badge-vuelo-ida {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 0.2rem;
  background: #dbeafe;
  color: #1d4ed8;
  margin-bottom: 0.2rem;
}
.ib-badge-regreso {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  margin-bottom: 0.25rem;
}
.ib-day-stay { cursor: default; }
.ib-day-stay.ib-dragging { opacity: 0.55; }
.ib-day-stay.ib-drag-ghost { opacity: 0.35; }
.ib-day-stay.ib-drag-over {
  background: transparent;
}
.ib-day-stay.ib-drag-over .ib-day-card {
  background: #f0f9ff;
  box-shadow: inset 0 0 0 2px #93c5fd;
}
.ib-day-stay.ib-drag-over-top .ib-day-card { box-shadow: inset 0 3px 0 0 #2563eb; }
.ib-day-stay.ib-drag-over-bottom .ib-day-card { box-shadow: inset 0 -3px 0 0 #2563eb; }
.ib-stay-header {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.ib-stay-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ib-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ib-stay-info { flex: 1; min-width: 0; }
.ib-stay-city {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ib-text);
}
.ib-stay-range,
.ib-stay-dates {
  margin-top: 0.2rem;
}
.ib-stay-dates {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ib-fecha-mov {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  font-size: 0.7rem;
  color: var(--ib-muted);
  font-weight: 500;
  line-height: 1.35;
}
.ib-fecha-mov-label {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  flex-shrink: 0;
}
.ib-fecha-mov--llegada .ib-fecha-mov-label {
  background: #dcfce7;
  color: #166534;
}
.ib-fecha-mov--salida .ib-fecha-mov-label,
.ib-fecha-mov-label--salida {
  background: #e0e7ff;
  color: #3730a3;
}
.ib-fecha-mov-label--llegada {
  background: #dcfce7;
  color: #166534;
}
.ib-fecha-mov-ciudad strong {
  color: var(--ib-label);
  font-weight: 700;
}
.ib-fecha-mov-fecha {
  color: var(--ib-text);
  font-weight: 600;
}
.ib-fecha-mov-hora {
  font-weight: 600;
  color: var(--ib-label);
}
.ib-day-mov {
  margin-top: 0.15rem;
}
.ib-trans-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.25rem;
}
.ib-trans-schedule .ib-trans-dur {
  font-size: 0.68rem;
  color: var(--ib-muted);
  margin-top: 0.1rem;
}
.ib-program-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.ib-program-date-sep {
  color: var(--ib-muted);
  font-weight: 600;
}
.ib-program-date-part {
  font-weight: 600;
  font-size: 0.82rem;
}
.ib-program-date-part .ib-fecha-mov-label {
  margin-right: 0.25rem;
  vertical-align: middle;
}
.ib-stay-actions {
  display: flex;
  gap: 0.1rem;
  flex-shrink: 0;
}
.ib-stay-nights {
  font-size: 0.75rem;
  color: var(--ib-muted);
  font-weight: 500;
  margin-top: 0.35rem;
  padding-left: 1.65rem;
}
.ib-stay-hotel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
  margin-left: 1.65rem;
  padding: 0.4rem 0.5rem;
  background: var(--ib-surface-alt);
  border-radius: 0.4rem;
  font-size: 0.75rem;
}
.ib-hotel-name { font-weight: 600; color: var(--ib-text); }
.ib-hotel-price { font-weight: 700; color: var(--ib-primary); margin-left: auto; }
.ib-day-card-end { background: var(--ib-surface-alt); }
.ib-day-hint {
  font-size: 0.7rem;
  color: var(--ib-muted);
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.ib-timeline-list { list-style: none; margin: 0; padding: 0; }
.ib-timeline-item { display: flex; gap: 0.65rem; margin-bottom: 0.85rem; position: relative; align-items: flex-start; }
.ib-timeline-destino { cursor: default; transition: background 0.15s, box-shadow 0.15s; border-radius: 0.5rem; padding: 0.25rem 0.35rem 0.25rem 0; margin-left: -0.35rem; }
.ib-drag-handle {
  flex-shrink: 0; width: 20px; padding-top: 0.15rem;
  color: #94a3b8; font-size: 1rem; line-height: 1;
  cursor: grab; user-select: none; touch-action: none;
}
.ib-drag-handle:active { cursor: grabbing; color: #334155; }
.ib-timeline-destino.ib-dragging { opacity: 0.55; }
.ib-timeline-destino.ib-drag-ghost { opacity: 0.35; }
.ib-timeline-destino.ib-drag-over {
  background: #f0f9ff;
  box-shadow: inset 0 0 0 2px #93c5fd;
}
.ib-timeline-destino.ib-drag-over-top { box-shadow: inset 0 3px 0 0 #2563eb; }
.ib-timeline-destino.ib-drag-over-bottom { box-shadow: inset 0 -3px 0 0 #2563eb; }
.ib-timeline-drag-hint {
  font-size: 0.8125rem; color: var(--ib-hint); margin-top: 0.5rem; text-align: center; font-weight: 500;
}
.ib-timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: 11px; top: 28px; bottom: -8px; width: 2px;
  background: var(--ib-border);
}
.ib-timeline-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ib-primary); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1;
}
.ib-timeline-city { font-weight: 600; color: #0f172a; }
.ib-timeline-meta, .ib-timeline-tramo { font-size: 0.8125rem; color: var(--ib-muted); font-weight: 500; }
.ib-timeline-body { position: relative; flex: 1; padding-right: 5rem; }
.ib-timeline-actions {
  position: absolute; right: 0; top: 0;
  display: flex; gap: 0.15rem; align-items: center;
}
.ib-timeline-action {
  background: #f1f5f9; border: 1px solid #e2e8f0;
  color: #334155; font-size: 0.72rem; font-weight: 700;
  width: 22px; height: 22px; border-radius: 0.3rem;
  cursor: pointer; line-height: 1; padding: 0;
}
.ib-timeline-action:hover { background: #e2e8f0; color: #0f172a; }
.ib-timeline-remove {
  background: none; border: none;
  color: var(--ib-muted); font-size: 1.1rem; cursor: pointer;
  width: 22px; height: 22px; padding: 0;
}
.ib-timeline-remove:hover { color: #ef4444; }
.ib-fecha-inline { max-width: 140px; padding: 0.2rem 0.4rem !important; }
.ib-save-bar { border: 1px solid var(--ib-border); background: var(--ib-surface-alt); }
.ib-save-bar .input { color: var(--ib-text); font-weight: 500; }
.ib-save-status { color: var(--ib-muted) !important; font-weight: 500; }
.ib-save-ok { color: #14532d !important; font-weight: 700; }
/* Encabezados simétricos — paneles inicio */
.ib-panel-hero {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.25rem;
  min-height: 92px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ib-panel-hero-bg {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
}
.ib-panel-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
}
.ib-panel-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.ib-svg-circuito,
.ib-svg-brujula {
  width: 24px;
  height: 24px;
  display: block;
}
.ib-panel-hero-text { min-width: 0; flex: 1; }
.ib-panel-hero-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ib-panel-hero-sub {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  line-height: 1.4;
}

/* Panel y tarjetas de circuitos guardados */
.ib-circuitos-panel {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--ib-border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.ib-circuitos-body {
  flex: 1;
  padding: 1rem;
  overflow: visible;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.ib-circuitos-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ib-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.ib-circuitos-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ib-modal-circuitos { max-width: 680px; }
.ib-modal-body-circuitos { padding: 0 !important; }
.ib-circuitos-modal-head.ib-panel-hero {
  background: #0a0a0a;
  border-radius: 0;
}
.ib-circuitos-modal-title {
  font-size: 1.125rem;
}
.ib-circuitos-modal-sub {
  margin: 0.3rem 0 0;
}
.ib-modal-body-circuitos .ib-circuitos-grid {
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-height: 60vh;
  overflow-y: auto;
}
@media (min-width: 560px) {
  .ib-modal-body-circuitos .ib-circuitos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ib-modal-body-circuitos .ib-circuitos-empty {
  padding: 2rem 1.5rem 2.5rem;
}

.ib-circuit-card {
  position: relative;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}
.ib-circuit-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: #9ca3af;
}
.ib-circuit-accent-ocean,
.ib-circuit-accent-sunset,
.ib-circuit-accent-forest,
.ib-circuit-accent-violet { /* acento reservado para futuras variantes */ }
.ib-circuit-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.15rem;
}
.ib-circuit-id {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-transform: uppercase;
}
.ib-circuit-estado {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 0.35rem;
  white-space: nowrap;
  display: inline-block;
}
.ib-circuit-estado-foot {
  margin-bottom: 0.35rem;
}
.ib-estado-revision {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.ib-estado-reservado {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.ib-circuit-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.ib-circuit-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.2rem;
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}
.ib-route-chip {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  background: #0a0a0a;
  color: #ffffff;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.ib-route-arrow {
  font-size: 0.72rem;
  color: #0f172a;
  font-weight: 800;
  opacity: 0.85;
}
.ib-route-more {
  font-size: 0.7rem;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #0a0a0a;
  border-radius: 0.4rem;
  padding: 0.24rem 0.5rem;
}
.ib-circuit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.65rem;
}
.ib-circuit-meta-item {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.ib-circuit-meta-item + .ib-circuit-meta-item::before {
  content: '· ';
  color: #cbd5e1;
  font-weight: 400;
}
.ib-circuit-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid #e5e7eb;
}
.ib-circuit-foot-info {
  flex: 1;
  min-width: 0;
}
.ib-circuit-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.ib-circuit-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ib-circuit-price-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ib-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ib-circuit-price-pending {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
}
.ib-circuit-updated {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}
.ib-circuit-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid #0a0a0a;
  border-radius: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.ib-circuit-cta:hover {
  background: #171717;
  transform: translateY(-1px);
}
.ib-circuit-card-compact .ib-circuit-title { font-size: 0.95rem; }
.ib-circuit-card-compact .ib-circuit-price { font-size: 0.95rem; }

.ib-circuitos-empty {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
}
.ib-circuitos-empty-visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}
.ib-circuitos-empty-globe {
  font-size: 3.5rem;
  line-height: 1;
  display: block;
  filter: grayscale(0.1);
}
.ib-circuitos-empty-plane {
  position: absolute;
  right: -4px;
  bottom: 8px;
  font-size: 1.5rem;
  transform: rotate(-12deg);
  animation: ib-plane-float 3s ease-in-out infinite;
}
@keyframes ib-plane-float {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-4px); }
}
.ib-circuitos-empty-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ib-text);
}
.ib-circuitos-empty-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ib-muted);
  line-height: 1.5;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.ib-map-wrap {
  background: var(--ib-surface);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.ib-map { flex: 1; min-height: 400px; z-index: 0; }
.ib-map-hint {
  margin: 0; padding: 0.6rem 1rem; font-size: 0.8125rem;
  color: var(--ib-hint); background: var(--ib-surface-alt);
  border-top: 1px solid var(--ib-border); font-weight: 500;
}
.ib-map-search {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ib-border);
  background: var(--ib-surface);
}

.ib-marker-wrap { background: none !important; border: none !important; }
.ib-marker {
  width: 16px; height: 16px;
  background: var(--ib-primary, #171717);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  position: relative;
}
.ib-marker-origen { background: #fff; border-color: var(--ib-primary, #171717); border-width: 3px; }
.ib-marker-llegada { background: #dbeafe; border-color: #2563eb; border-width: 3px; color: #1d4ed8; }
.ib-vuelos-fijos {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ib-vuelos-fijos-title {
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--ib-label);
}
.ib-vuelo-fijo-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}
.ib-vuelo-fijo-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  font-size: 0.58rem;
}
.ib-vuelo-fijo-ruta { color: var(--ib-text); font-weight: 600; }
.ib-vuelo-fijo-est { color: var(--ib-muted); }
.ib-vuelo-pend { color: #b45309; font-weight: 600; }
.ib-vuelos-fijos-nota {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  color: var(--ib-muted);
  line-height: 1.35;
}
.ib-marker-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; font-weight: 700; color: var(--ib-primary, #171717); white-space: nowrap;
}
.leaflet-tooltip.ib-tooltip {
  background: #fff; border: 1px solid var(--ib-border);
  color: #0f172a; font-weight: 600; font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ib-tramo-wrap { background: none !important; border: none !important; }
.ib-tramo-icon {
  width: 30px; height: 30px;
  background: #fff; border: 2px solid var(--ib-primary, #171717);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--ib-primary, #171717);
  cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.ib-tramo-icon:hover, .ib-tramo-sel {
  background: var(--ib-primary, #171717); color: #fff;
}

/* Modales */
.ib-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ib-modal {
  background: #fff;
  border: 1px solid var(--ib-border);
  border-radius: 1rem;
  max-width: 400px; width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  color: #1e293b;
}
.ib-modal-close {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  background: #fff; border: 1px solid var(--ib-border);
  color: var(--ib-muted);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.25rem; cursor: pointer;
}
.ib-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.ib-modal-img { height: 160px; background-size: cover; background-position: center; background-color: #f1f5f9; }
.ib-modal-body { padding: 1.25rem; }
.ib-modal-body h3 { margin: 0; color: #0f172a; font-size: 1.15rem; font-weight: 700; }
.ib-modal-pais { margin: 0.25rem 0 1rem; color: var(--ib-muted); font-size: 0.9rem; font-weight: 500; }
.ib-modal-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ib-label); margin-bottom: 0.35rem; }
.ib-modal-select, .ib-page select.input {
  width: 100%;
  margin-bottom: 1rem;
}
.ib-modal-btn {
  width: 100%; padding: 0.65rem;
  background: #171717; color: #fff;
  border: none; border-radius: 0.5rem;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.ib-modal-btn:hover { background: #000000; }
.ib-modal-wide { max-width: 520px; }

.ib-transporte-opciones { display: flex; flex-direction: column; gap: 0.5rem; }
.ib-transporte-opt {
  display: grid; grid-template-columns: 2rem 1fr auto;
  grid-template-rows: auto auto; gap: 0 0.75rem; align-items: center;
  text-align: left; padding: 0.75rem;
  border: 1px solid var(--ib-border); border-radius: 0.5rem;
  background: #fff; cursor: pointer; color: #1e293b;
}
.ib-transporte-opt:hover { border-color: #94a3b8; background: var(--ib-surface-alt); }
.ib-transporte-label { font-weight: 600; color: #0f172a; }
.ib-transporte-precio { font-weight: 700; color: var(--ib-primary); }
.ib-transporte-dur { grid-column: 2; font-size: 0.8125rem; color: var(--ib-muted); }

.ib-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.ib-tab {
  padding: 0.45rem 0.9rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  background: #e8ecf1; color: var(--ib-label);
  border: 1px solid var(--ib-border); cursor: pointer;
}
.ib-tab:hover { background: #dde3ea; color: var(--ib-text); }
.ib-tab-active {
  background: var(--ib-primary); color: #fff;
  border-color: var(--ib-primary);
}

.ib-modo-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 1rem 0; }
.ib-modo-tab {
  padding: 0.4rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
  background: #e8ecf1; color: var(--ib-label); border: 1px solid var(--ib-border); cursor: pointer;
}
.ib-modo-tab:hover { background: #dde3ea; color: var(--ib-text); }
.ib-modo-active {
  background: var(--ib-primary); color: #fff;
  border-color: var(--ib-primary);
}

/* Buscador */
.ib-card-origen, .ib-map-search, .ib-page .card { overflow: visible !important; }
.ib-places-wrap { position: relative; z-index: 50; }
.ib-places-input { width: 100%; }
.ib-places-hint { font-size: 0.8125rem; color: var(--ib-hint); margin-top: 0.35rem; font-weight: 500; }
.ib-places-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5000;
  background: #fff; border: 1px solid var(--ib-border);
  border-radius: 0.5rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 280px; overflow: auto;
}
.ib-places-dropdown[hidden] { display: none !important; }
.ib-places-item {
  display: block; width: 100%; text-align: left; padding: 0.55rem 0.75rem;
  border: none; background: transparent; cursor: pointer;
  border-bottom: 1px solid #f1f5f9; color: #1e293b;
}
.ib-places-item:hover, .ib-places-active { background: #f8fafc; }
.ib-places-item--airport { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem; }
.ib-iata-badge {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem; border-radius: 0.25rem;
  background: #e2e8f0; color: #1e293b; border: 1px solid #94a3b8;
}
.ib-places-main { display: block; font-weight: 600; color: var(--ib-text); font-size: 0.9rem; }
.ib-places-item--airport .ib-places-main { display: inline; flex: 1 1 auto; }
.ib-places-item--airport .ib-places-sub { flex: 1 1 100%; }
.ib-places-sub { display: block; font-size: 0.8125rem; color: var(--ib-muted); font-weight: 500; }
.ib-places-empty { padding: 0.75rem; color: var(--ib-muted); font-size: 0.875rem; }
.ib-places-loading { color: var(--ib-muted); font-style: italic; font-size: 0.875rem; }

/* Paso inicio — origen */
.ib-page-inicio .ib-inicio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 900px) {
  .ib-page-inicio .ib-inicio-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}
.ib-header-inicio { align-items: flex-start; }
.ib-step-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}
.ib-step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ib-step-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.ib-step-pill-active {
  background: linear-gradient(135deg, #171717, #334155);
  color: #fff;
  border-color: #171717;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.ib-origen-panel {
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--ib-border);
  border-radius: 1rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.ib-origen-body {
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ib-field-block { display: flex; flex-direction: column; gap: 0.45rem; }
.ib-field-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.01em;
}
.ib-req { color: #dc2626; font-weight: 800; }

.ib-fecha-unified {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d1d5db;
  border-radius: 0.65rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ib-fecha-unified:focus-within {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
.ib-origen-panel .ib-fecha-unified .ib-fecha-input {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  padding: 0.65rem 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.ib-origen-panel .ib-fecha-unified .ib-fecha-input:focus {
  outline: none;
  box-shadow: none;
}
.ib-fecha-unified .ib-fecha-preview {
  flex-shrink: 0;
  width: 52px !important;
  min-height: auto !important;
  height: auto;
  align-self: stretch;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid #e5e7eb !important;
  box-shadow: none !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ib-fecha-preview .ib-day-num { font-size: 1.05rem; }
.ib-fecha-preview .ib-day-mon { font-size: 0.55rem; }

.ib-origen-panel .ib-places-input {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1.5px solid #d1d5db;
  border-radius: 0.65rem;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 0.75rem center no-repeat;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ib-origen-panel .ib-places-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.ib-origen-panel .ib-places-input:focus {
  outline: none;
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}
.ib-tipo-circuito {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
}
.ib-tipo-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ib-label);
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--ib-border, #e2e8f0);
  background: #fff;
}
.ib-tipo-opt:has(input:checked) {
  border-color: var(--ib-primary, #171717);
  background: #f8fafc;
}
.ib-tipo-opt input { accent-color: var(--ib-primary, #171717); }
.ib-fin-auto {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
}
.ib-fin-auto-icon { font-size: 1.25rem; flex-shrink: 0; }
.ib-fin-auto strong { display: block; font-size: 0.85rem; color: var(--ib-text); }
.ib-fin-auto-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--ib-muted);
  line-height: 1.4;
}
.ib-fin-auto-empty { font-size: 0.8rem; color: var(--ib-muted); }
.ib-regreso-panel {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
}
.ib-regreso-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--ib-label);
}
.ib-regreso-tipo {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  margin: 0 0 0.35rem;
}
.ib-regreso-ruta {
  font-size: 0.78rem;
  color: var(--ib-text);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.ib-regreso-estado { margin-bottom: 0.5rem; font-size: 0.8rem; }
.ib-regreso-vuelo-ok { font-weight: 700; color: #166534; }
.ib-regreso-vuelo-pend { font-weight: 600; color: #b45309; }
.ib-regreso-btn { font-size: 0.8rem; padding: 0.45rem 0.75rem; }
.ib-regreso-nota {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: var(--ib-muted);
  line-height: 1.35;
}
.ib-fin-mapa-wrap .ib-places-input { font-size: 0.8rem; }
.ib-origen-panel .ib-places-hint:empty { display: none; }
.ib-origen-panel .ib-places-dropdown {
  border: 2px solid #e2e8f0;
  border-radius: 0.65rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.ib-origen-panel .ib-places-item:hover,
.ib-origen-panel .ib-places-active {
  background: linear-gradient(90deg, #f0f9ff 0%, #fff 100%);
}
.ib-origen-panel .ib-iata-badge {
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.ib-origen-picked {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #6ee7b7;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
  animation: ib-origen-pop 0.35s ease;
}
@keyframes ib-origen-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ib-origen-picked-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ib-origen-picked-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.ib-origen-picked-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ib-origen-picked-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
}
.ib-origen-picked-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  display: block;
}
.ib-origen-picked-pais {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
}
.ib-origen-picked-iata {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, #047857, #10b981);
  color: #fff;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.35);
}

.ib-inicio-checklist-wrap { margin-top: 0.5rem; }
.ib-inicio-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ib-inicio-check-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}
.ib-inicio-check-item.is-ok { color: #166534; }
.ib-inicio-check-icon {
  width: 1.1rem;
  text-align: center;
  font-weight: 800;
}
.ib-inicio-falta {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
}
.ib-comenzar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.ib-comenzar-alt {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}
.ib-comenzar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #94a3b8;
  background: #e2e8f0;
  cursor: not-allowed;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.ib-comenzar-btn--ready {
  color: #fff;
  cursor: pointer;
  background: #0a0a0a;
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.25);
}
.ib-comenzar-btn--ready:hover {
  transform: translateY(-2px);
  background: #171717;
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.3);
}
.ib-comenzar-arrow {
  font-size: 1.1rem;
  margin-left: auto;
  opacity: 0.9;
}

.ib-origen-ok {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.ib-prod-card, .ib-prod-row {
  border: 1px solid var(--ib-border); border-radius: 0.5rem; padding: 0.65rem;
  background: #fff; cursor: pointer; color: #1e293b;
}
.ib-prod-card:hover, .ib-prod-row:hover { background: var(--ib-surface-alt); }
.ib-prod-active { border-color: var(--ib-primary); background: #f8fafc; }


button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Modal destino — portada + noches */
.ib-destino-overlay { z-index: 4000; }
.ib-destino-modal { max-width: 440px; padding: 0; overflow: hidden; }
.ib-destino-hero { position: relative; height: 220px; overflow: hidden; }
.ib-destino-hero-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #334155 0%, #64748b 50%, #94a3b8 100%);
  z-index: 0;
}
.ib-destino-hero-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ib-destino-hero-img.is-loaded { opacity: 1; }
.ib-destino-hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
  pointer-events: none;
}
.ib-destino-hero-img,
.ib-destino-hero-placeholder { pointer-events: none; }
.ib-destino-modal .ib-destino-close {
  z-index: 100;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
}
.ib-destino-modal .ib-destino-close:hover {
  background: #fff;
  color: #0f172a;
}
.ib-destino-titulo {
  margin: 0; color: #fff; font-size: 1.5rem; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.ib-destino-pais { margin: 0.2rem 0 0; color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.ib-destino-body { padding: 1.25rem 1.5rem 1.5rem !important; }
.ib-destino-lead {
  text-align: center; color: var(--ib-label); font-size: 1rem; font-weight: 500;
  margin: 0 0 1rem;
}
.ib-noches-stepper {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.ib-noches-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #cbd5e1; background: #f8fafc;
  font-size: 1.4rem; font-weight: 600; color: #171717;
  cursor: pointer; line-height: 1;
}
.ib-noches-btn:hover { background: #e2e8f0; }
.ib-noches-valor { text-align: center; min-width: 90px; }
.ib-noches-valor #ib-noches-num {
  font-size: 2rem; font-weight: 700; color: #0f172a;
}
.ib-noches-label { display: block; font-size: 0.875rem; color: var(--ib-muted); font-weight: 600; }
.ib-destino-agregar {
  margin-top: 0.25rem;
  display: block;
  background: #171717 !important;
  color: #fff !important;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.ib-destino-agregar:hover { background: #000 !important; }

/* Tablas y catálogo dentro del constructor */
.ib-page table.tbl th { color: var(--ib-label); font-size: 0.8125rem; }
.ib-page table.tbl td { color: var(--ib-text-body); }
.ib-page .ib-catalogo-list,
.ib-page .ib-act-list { color: var(--ib-muted) !important; font-size: 0.9rem !important; }
.ib-page .ib-prod-row .text-slate-500,
.ib-page .ib-prod-card .text-slate-500 { color: var(--ib-muted) !important; }
.ib-page #ib-cot-banner { color: var(--ib-muted) !important; font-weight: 500; }
.ib-page .ib-tramo-btn {
  font-size: 0.8125rem; color: var(--ib-label); font-weight: 600;
  background: #e8ecf1; border: 1px solid var(--ib-border);
  border-radius: 0.35rem; padding: 0.2rem 0.45rem; cursor: pointer;
}
.ib-page .ib-tramo-btn:hover { background: #dde3ea; color: var(--ib-text); }
.ib-page .ib-precio-desde { color: var(--ib-label); font-weight: 600; font-size: 0.8125rem; }
.ib-page .ib-timeline-footer {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--ib-muted);
  margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid var(--ib-border);
}

/* ═══════════════════════════════════════════════════════════════
   TEMA PRUEBA: Dorado imperial + negro + escala de grises
   Revertir: quitar clase ib-theme-imperial del HTML y este bloque
   ═══════════════════════════════════════════════════════════════ */
.ib-theme-imperial {
  --imp-gold: #c9a227;
  --imp-gold-light: #e8d48b;
  --imp-gold-dark: #8b6914;
  --imp-gold-glow: rgba(201, 162, 39, 0.22);
  --imp-black: #0a0a0a;
  --imp-gray-900: #1a1a1a;
  --imp-gray-700: #525252;
  --imp-gray-500: #737373;
  --imp-gray-400: #a3a3a3;
  --imp-gray-200: #e5e5e5;
  --imp-gray-100: #f5f5f5;
  --imp-white: #ffffff;
}

/* —— Paso inicio: encabezado de página —— */
.ib-page-inicio.ib-theme-imperial .ib-step-kicker {
  color: var(--imp-gold);
}
.ib-page-inicio.ib-theme-imperial .ib-step-pill {
  background: var(--imp-gray-100);
  color: var(--imp-gray-500);
  border-color: var(--imp-gray-200);
}
.ib-page-inicio.ib-theme-imperial .ib-step-pill-active {
  background: var(--imp-black);
  color: var(--imp-gold-light);
  border-color: var(--imp-gold-dark);
  box-shadow: 0 2px 10px var(--imp-gold-glow);
}

/* —— Encabezados simétricos de paneles —— */
.ib-theme-imperial .ib-panel-hero-bg {
  background: var(--imp-black);
  border-bottom: 2px solid var(--imp-gold-dark);
}
.ib-theme-imperial .ib-panel-hero-icon {
  background: var(--imp-gray-900);
  border: 2px solid var(--imp-gold);
  color: var(--imp-gold-light);
  box-shadow: 0 0 12px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-panel-hero-title {
  color: var(--imp-white);
}
.ib-theme-imperial .ib-panel-hero-sub {
  color: var(--imp-gray-400);
}

/* —— Cuerpo de paneles —— */
.ib-theme-imperial .ib-origen-panel,
.ib-theme-imperial .ib-circuitos-panel {
  border-color: var(--imp-gray-200);
  box-shadow: 0 4px 20px rgba(10, 10, 10, 0.06);
}
.ib-theme-imperial .ib-origen-body {
  background: linear-gradient(180deg, var(--imp-gray-100) 0%, var(--imp-white) 100%);
}
.ib-theme-imperial .ib-circuitos-body {
  background: linear-gradient(180deg, var(--imp-gray-100) 0%, var(--imp-white) 100%);
}
.ib-theme-imperial .ib-field-label {
  color: var(--imp-gray-900);
}

/* —— Inputs —— */
.ib-theme-imperial .ib-fecha-unified {
  border-color: var(--imp-gray-200);
  background: var(--imp-white);
}
.ib-theme-imperial .ib-fecha-unified:focus-within {
  border-color: var(--imp-gold);
  box-shadow: 0 0 0 3px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-fecha-unified .ib-fecha-preview {
  border-left-color: var(--imp-gray-200) !important;
  background: linear-gradient(145deg, var(--imp-black), var(--imp-gray-900)) !important;
}
.ib-theme-imperial .ib-fecha-unified .ib-fecha-preview .ib-day-num,
.ib-theme-imperial .ib-fecha-unified .ib-fecha-preview .ib-day-mon {
  color: var(--imp-gold-light);
}
.ib-theme-imperial .ib-origen-panel .ib-places-input {
  border-color: var(--imp-gray-200);
  background-color: var(--imp-white);
}
.ib-theme-imperial .ib-origen-panel .ib-places-input:focus {
  border-color: var(--imp-gold);
  box-shadow: 0 0 0 3px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-origen-panel .ib-iata-badge {
  background: linear-gradient(135deg, var(--imp-gold-dark), var(--imp-gold));
  color: var(--imp-black);
  font-weight: 800;
}

/* —— Origen confirmado —— */
.ib-theme-imperial .ib-origen-picked {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: var(--imp-gold);
  box-shadow: 0 4px 14px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-origen-picked-label { color: var(--imp-gold-dark); }
.ib-theme-imperial .ib-origen-picked-name { color: var(--imp-black); }
.ib-theme-imperial .ib-origen-picked-pais { color: var(--imp-gray-700); }
.ib-theme-imperial .ib-origen-picked-iata {
  background: linear-gradient(145deg, var(--imp-black), var(--imp-gray-900));
  color: var(--imp-gold-light);
  box-shadow: 0 2px 8px var(--imp-gold-glow);
}

/* —— Botón comenzar —— */
.ib-theme-imperial .ib-comenzar-btn--ready {
  background: linear-gradient(135deg, var(--imp-gold-dark) 0%, var(--imp-gold) 55%, var(--imp-gold-light) 100%);
  color: var(--imp-black);
  box-shadow: 0 4px 16px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-comenzar-btn--ready:hover {
  background: linear-gradient(135deg, var(--imp-gold) 0%, var(--imp-gold-light) 100%);
  box-shadow: 0 8px 24px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-comenzar-btn--ready .ib-comenzar-arrow {
  color: var(--imp-black);
}

/* —— Tarjetas de circuitos —— */
.ib-theme-imperial .ib-circuit-card {
  border-color: var(--imp-gray-200);
  background: var(--imp-white);
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.05);
}
.ib-theme-imperial .ib-circuit-card:hover {
  border-color: var(--imp-gold);
  box-shadow: 0 8px 24px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-circuit-title {
  color: var(--imp-black);
}
.ib-theme-imperial .ib-circuit-route {
  background: var(--imp-gray-100);
  border-color: var(--imp-gray-200);
}
.ib-theme-imperial .ib-route-chip {
  background: linear-gradient(145deg, var(--imp-gold-dark), var(--imp-gold));
  color: var(--imp-black);
  box-shadow: 0 1px 4px var(--imp-gold-glow);
}
.ib-theme-imperial .ib-route-arrow {
  color: var(--imp-gold-dark);
  opacity: 1;
}
.ib-theme-imperial .ib-route-more {
  background: var(--imp-white);
  border-color: var(--imp-gold-dark);
  color: var(--imp-black);
}
.ib-theme-imperial .ib-circuit-meta-item {
  color: var(--imp-gray-500);
}
.ib-theme-imperial .ib-circuit-card-foot {
  border-top-color: var(--imp-gray-200);
}
.ib-theme-imperial .ib-circuit-estado-revision {
  background: var(--imp-gray-100);
  color: var(--imp-gray-700);
  border-color: var(--imp-gray-200);
  border-left: 3px solid var(--imp-gold);
}
.ib-theme-imperial .ib-circuit-price {
  color: var(--imp-gold-dark);
}
.ib-theme-imperial .ib-circuit-price-pending {
  color: var(--imp-gray-500);
}
.ib-theme-imperial .ib-circuit-cta {
  background: var(--imp-black);
  border-color: var(--imp-gold);
  color: var(--imp-gold-light);
}
.ib-theme-imperial .ib-circuit-cta:hover {
  background: var(--imp-gray-900);
  border-color: var(--imp-gold-light);
  color: var(--imp-white);
}

/* —— Modal mis circuitos —— */
.ib-theme-imperial.ib-modal-circuitos {
  border: 1px solid var(--imp-gray-200);
}
.ib-theme-imperial .ib-circuitos-modal-head.ib-panel-hero {
  background: var(--imp-black);
}
