/* ViajeClaro — tema agencia de viajes (inspirado en Horizonte Viajes / travel-saas) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0b1f36;
  --navy-2: #143456;
  --navy-3: #1e4a7a;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-soft: rgba(14, 165, 233, 0.12);
  --coral: #f97316;
  --coral-dark: #ea580c;
  --coral-soft: rgba(249, 115, 22, 0.12);
  --sand: #f0f4f8;
  --sand-2: #e2e8f0;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --muted2: #64748b;
  --line: #dbe3ee;
  --ok: #0d9488;
  --ok-bg: #ccfbf1;
  --ok-soft: rgba(13, 148, 136, 0.12);
  --warn: #d97706;
  --warn-bg: #fef3c7;
  --danger: #e11d48;
  --danger-bg: #ffe4e6;
  --hostel: #0d9488;
  --depto: #7c3aed;
  --hotel: #f59e0b;
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(11, 31, 54, 0.1);
  --shadow-sm: 0 4px 14px rgba(11, 31, 54, 0.07);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 68px;
  --bottom-nav-h: 68px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  font-family: var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 165, 233, 0.14), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(249, 115, 22, 0.1), transparent 50%),
    var(--sand);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + 12px); }

a { color: var(--sky); text-decoration: none; transition: color .15s; }
a:hover { color: var(--sky-dark); text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.main { padding: 28px 20px 64px; min-height: calc(100vh - 160px); }
.muted { color: var(--muted); }
.muted2 { color: var(--muted2); font-size: .9rem; }

/* ——— Header agencia ——— */
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  box-shadow: 0 2px 16px rgba(12, 35, 64, .2);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: var(--nav-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: #fff !important;
  text-decoration: none !important; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none !important; color: #fff !important; }
.brand em { font-style: normal; color: #7dd3fc; font-weight: 500; }
/* “us” del logo Viajerus (no “Rus”) */
.brand .brand-us {
  font-style: normal;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -.02em;
}
.brand:hover .brand-us { color: #7dd3fc; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sky), #38bdf8);
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 12px rgba(26, 143, 227, .4);
}
.nav-desktop { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-desktop a.nav-link,
.nav-desktop button.nav-link {
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .9rem;
  padding: 8px 12px; border-radius: 8px; text-decoration: none !important;
  transition: .15s;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.nav-desktop a.nav-link:hover,
.nav-desktop button.nav-link:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.nav-desktop a.nav-link.active,
.nav-desktop button.nav-link.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-desktop a.nav-cta {
  background: var(--coral) !important; color: #fff !important;
  font-weight: 700 !important; padding: 9px 16px !important; border-radius: 10px !important;
  margin-left: 6px;
}
.nav-desktop a.nav-cta:hover { background: var(--coral-dark) !important; }
.nav-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 4px 10px 4px 4px; margin-left: 6px;
  font-size: .82rem; color: rgba(255,255,255,.85);
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--coral));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .72rem;
}
.btn-menu {
  display: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 10px; width: 42px; height: 42px;
  font-size: 1.2rem; cursor: pointer;
}
.topbar-right-mobile {
  display: none; align-items: center; gap: 8px;
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 3px; margin-left: 8px;
}
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 28px; padding: 0 8px;
  border-radius: 999px; font-size: .7rem; font-weight: 800;
  letter-spacing: .04em; color: rgba(255,255,255,.7) !important;
  text-decoration: none !important;
}
.lang-btn:hover { color: #fff !important; background: rgba(255,255,255,.1); }
.lang-btn.is-active {
  background: #fff; color: var(--navy) !important;
}

/* Actividades: reglas + plan del día */
.act-rules-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(249, 115, 22, 0.06));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 16px;
  font-size: .92rem;
}
.act-gap-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-soft);
  color: var(--navy);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
}
.act-day-plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
.act-day-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.act-day-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.act-day-plan-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: .9rem;
  padding: 6px 8px;
  background: var(--sand);
  border-radius: 8px;
}
.act-day-h {
  font-weight: 700;
  color: var(--sky-dark);
  font-variant-numeric: tabular-nums;
  min-width: 5.5rem;
}
.act-day-t { color: var(--ink); }

/* Gastos: pagado vs estimado */
.badge-nat {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
}
.badge-nat-pagado {
  background: var(--ok-soft);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.25);
}
.badge-nat-estimado {
  background: var(--warn-bg);
  color: #b45309;
  border: 1px dashed rgba(217, 119, 6, 0.45);
}
.gasto-row-estimado td { background: rgba(254, 243, 199, 0.25); }
.gasto-card-estimado {
  border: 1px dashed rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, #fffbeb 0%, #fff 50%);
}
.stat-estimado {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(160deg, #fffbeb, #fff);
}
.stat-estimado .value { color: #b45309; }
.gasto-card-title .badge-nat { margin-left: 6px; }
.nav-desktop .lang-switch { margin-left: 10px; }

/* Dropdown "Más" en topbar */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-caret {
  font-size: .7rem;
  opacity: .85;
  transition: transform .15s;
}
.nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(11, 31, 54, 0.18);
  border: 1px solid var(--line);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu[hidden] { display: none !important; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy) !important;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none !important;
}
.nav-dropdown-item:hover {
  background: var(--sky-soft);
  color: var(--navy) !important;
}
.nav-dropdown-item.active {
  background: rgba(14, 165, 233, 0.16);
}
.nav-dd-ico { width: 1.25rem; text-align: center; }
.footer-meta { text-align: right; }
.footer-version { opacity: .7; font-size: .85rem; }
@media (max-width: 640px) {
  .footer-meta { text-align: left; margin-top: 10px; }
}
.nav-drawer {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 45;
  background: var(--navy); padding: 16px 18px; flex-direction: column; gap: 8px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: #fff; font-weight: 600; padding: 14px 16px;
  border-radius: 12px; text-decoration: none !important;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}

/* Bottom nav */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(12,35,64,.08);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items: center;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted2); font-size: .65rem; font-weight: 700;
  text-decoration: none !important; padding: 6px 2px; border-radius: 12px;
}
.bottom-nav a .ico { font-size: 1.2rem; line-height: 1; }
.bottom-nav a.active { color: var(--sky-dark); background: var(--sky-soft); }
.bottom-nav a:active { transform: scale(.96); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none !important; transition: .18s var(--ease);
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(180deg, #2a9aef, var(--sky));
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(26, 143, 227, .35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-coral {
  background: var(--coral); color: #fff !important;
  box-shadow: 0 6px 18px rgba(255, 107, 74, .3);
}
.btn-coral:hover { background: var(--coral-dark); }
.btn-ghost {
  background: var(--white); color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--sand-2); border-color: #cbd5e1; }
.btn-navy {
  background: var(--navy); color: #fff !important;
}
.btn-navy:hover { background: var(--navy-2); }
.btn-danger {
  background: var(--danger-bg); color: #b91c1c !important;
  border: 1px solid #fecaca;
}
.btn-ok {
  background: linear-gradient(180deg, #14b8a6, var(--ok));
  color: #fff !important;
  border: 0;
  box-shadow: 0 4px 14px rgba(13, 148, 136, .3);
}
.btn-ok:hover { filter: brightness(1.05); }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn-block { width: 100%; }

/* Hero agency */
.hero-agency {
  position: relative; background: var(--navy); color: #fff;
  border-radius: 0 0 28px 28px; margin: -28px -20px 28px; padding: 40px 20px 48px;
  overflow: hidden;
}
.hero-agency .wrap { position: relative; z-index: 1; }
.hero-agency-bg {
  position: absolute; inset: 0; opacity: .45;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.img-cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.img-rounded { border-radius: var(--radius); overflow: hidden; }
.img-card {
  border-radius: 14px; overflow: hidden; margin: 0 0 14px;
  aspect-ratio: 16/9; background: var(--sand-2);
}
.img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-side {
  border-radius: 18px; overflow: hidden; min-height: 220px;
  box-shadow: var(--shadow); background: var(--sand-2);
}
.img-side img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.accom-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0;
}
@media (max-width: 800px) { .accom-cards { grid-template-columns: 1fr; } }
.accom-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s var(--ease);
}
.accom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.accom-card .thumb { height: 140px; overflow: hidden; }
.accom-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.accom-card .body { padding: 14px 16px 16px; }
.accom-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.empty-state .empty-img {
  width: min(200px, 60vw); height: auto; margin: 0 auto 16px; display: block;
  border-radius: 16px;
}
.auth-visual {
  display: none;
}
@media (min-width: 900px) {
  .auth-page {
    display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: center;
    max-width: 960px; margin: 24px auto;
  }
  .auth-visual {
    display: block; border-radius: 20px; overflow: hidden; min-height: 420px;
    box-shadow: var(--shadow);
  }
  .auth-visual img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
  .auth-wrap { margin: 0; max-width: none; }
}
.promo-banner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--white); box-shadow: var(--shadow-sm); margin: 18px 0;
}
.promo-banner .promo-copy { padding: 24px; }
.promo-banner .promo-photo { min-height: 200px; }
.promo-banner .promo-photo img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
@media (max-width: 720px) {
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner .promo-photo { min-height: 160px; max-height: 180px; }
}
.hero-agency-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(12,35,64,.92) 0%, rgba(12,35,64,.7) 55%, rgba(26,143,227,.35) 100%);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: #bae6fd;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700;
  margin-bottom: 14px;
}
.hero-agency h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.55rem); line-height: 1.15;
  margin: 0 0 12px; letter-spacing: -.03em; font-weight: 800; max-width: 18em;
}
.hero-agency .lead {
  color: rgba(255,255,255,.88); font-size: 1.08rem; margin: 0 0 22px; max-width: 40em; line-height: 1.5;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 22px;
  font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 600;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* Home grid (no hero-agency) */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
  padding: 12px 0 8px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.12;
  margin: 0 0 12px; letter-spacing: -.03em; color: var(--navy);
}
.hero h1 em {
  font-style: normal; color: var(--sky);
}
.hero p { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.hero-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 1rem; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .95rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
}

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--sky-soft); color: var(--sky-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Cards & stats */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.card h1, .card h2 { margin-top: 0; color: var(--navy); letter-spacing: -.02em; }
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.card-head h2 { margin: 0; font-size: 1.15rem; }

.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); transition: .2s var(--ease);
}
.stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat .label {
  color: var(--muted); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700;
}
.stat .value { font-size: 1.4rem; font-weight: 800; margin-top: 6px; color: var(--navy); letter-spacing: -.02em; }
.stat .sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.stat.highlight {
  background: linear-gradient(145deg, #e8f4fd, var(--white));
  border-color: #bae6fd;
}
.stat.ok-border { border-color: #99f6e4; }
.stat.warn-border { border-color: #fcd34d; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  border: 1px solid var(--line); background: var(--sand-2); color: var(--muted);
}
.badge.hostel { color: #0f766e; border-color: #99f6e4; background: var(--ok-bg); }
.badge.depto { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
.badge.hotel { color: #c2410c; border-color: #fed7aa; background: #fff7ed; }
.badge.estado-planificando { color: var(--sky-dark); border-color: #bae6fd; background: #e0f2fe; }
.badge.estado-en_viaje { color: #b45309; border-color: #fcd34d; background: var(--warn-bg); }
.badge.estado-finalizado { color: #0f766e; border-color: #99f6e4; background: var(--ok-bg); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th {
  color: var(--muted2); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700; background: var(--sand);
}
td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
tbody tr:hover td { background: #fafaf9; }
tr.total td { font-weight: 800; background: var(--sand); border-top: 2px solid var(--line); }

.gasto-cards { display: none; }
@media (max-width: 720px) {
  .table-desktop { display: none; }
  .gasto-cards { display: grid; gap: 10px; }
  .gasto-card {
    background: var(--sand); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px;
  }
  .gasto-card-top { display: flex; justify-content: space-between; gap: 10px; }
  .gasto-card-title { font-weight: 700; margin: 0 0 4px; color: var(--navy); }
  .gasto-card-meta { color: var(--muted); font-size: .82rem; }
  .gasto-card-usd { font-weight: 800; color: var(--navy); white-space: nowrap; }
  .gasto-card-actions { display: flex; gap: 8px; margin-top: 12px; }
  .gasto-card-actions .btn { flex: 1; }
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label {
  display: block; font-size: .78rem; color: var(--muted); font-weight: 700;
  margin-bottom: 6px;
}
.field-hint { font-size: .78rem; color: var(--muted2); margin-top: 4px; }
input, select, textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 11px 13px; font: inherit; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #cbd5e1; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(26, 143, 227, .18);
}
textarea { min-height: 96px; resize: vertical; }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; background: var(--sand); border-radius: 12px; border: 1px solid var(--line);
}
.checkbox-row input { width: auto; min-height: 0; margin-top: 3px; accent-color: var(--sky); }
.checkbox-row label { margin: 0; color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; }

/* Auth */
.auth-wrap { max-width: 420px; margin: 32px auto; animation: rise .4s var(--ease); }
.auth-wrap .card { padding: 28px; }
.auth-wrap h1 { margin: 0 0 6px; font-size: 1.5rem; color: var(--navy); }
.auth-wrap .lead { color: var(--muted); margin: 0 0 20px; }

/* Flash & toast */
.flash {
  padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; animation: rise .35s var(--ease);
}
.flash-ok { background: var(--ok-bg); border: 1px solid #99f6e4; color: #115e59; }
.flash-error { background: var(--danger-bg); border: 1px solid #fecaca; color: #991b1b; }
.toast-host {
  position: fixed; bottom: 24px; right: 18px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
body.has-bottom-nav .toast-host { bottom: calc(var(--bottom-nav-h) + 16px); }
.toast {
  pointer-events: auto; padding: 12px 16px; border-radius: 12px; font-weight: 600;
  background: #134e4a; color: #ccfbf1; border: 1px solid #14b8a6;
  box-shadow: var(--shadow); animation: toast-in .3s var(--ease); max-width: 320px;
}
.toast.error { background: #7f1d1d; color: #fecaca; border-color: #ef4444; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Page head & trips */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}
.page-head h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.03em; color: var(--navy); }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.trip-list { display: grid; gap: 12px; }
.trip-item,
.trip-item-card {
  display: flex; flex-direction: column; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; transition: .2s var(--ease); color: inherit;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.trip-item-card:hover {
  border-color: #7dd3fc; transform: translateY(-2px); box-shadow: var(--shadow);
}
.trip-item-main {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 18px; text-decoration: none !important; color: inherit;
}
.trip-item-main:hover { text-decoration: none !important; }
.trip-item h3,
.trip-item-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.trip-meta {
  display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center;
  color: var(--muted); font-size: .88rem;
}
.trip-stats { text-align: right; }
.trip-stats .big { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.trip-stats .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.trip-item-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end;
  padding: 0 14px 12px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
  padding-top: 10px;
}
.trip-action-form { display: inline; margin: 0; }
@media (max-width: 640px) {
  .trip-item-main { grid-template-columns: 1fr; }
  .trip-stats { text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .trip-item-actions { justify-content: flex-start; }
}

.empty-state {
  text-align: center; padding: 48px 24px;
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state .emoji { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 8px; color: var(--navy); }
.empty-state p { color: var(--muted); margin: 0 auto 18px; max-width: 28em; }

/* Viaje detail */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 8px;
}
.breadcrumb a { color: var(--muted); text-decoration: none !important; }
.breadcrumb a:hover { color: var(--sky); }
.viaje-head {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  align-items: flex-start; margin-bottom: 18px;
}
.viaje-head h1 { margin: 0 0 8px; font-size: 1.6rem; color: var(--navy); letter-spacing: -.03em; }
.sticky-stats {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 15;
  background: rgba(246, 243, 238, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; margin-bottom: 16px;
}
.sticky-stats .grid-3 { margin: 0; gap: 8px; }
.sticky-stats .stat { padding: 12px 14px; }
.sticky-stats .stat .value { font-size: 1.2rem; }

.progress {
  height: 8px; background: var(--sand-2); border-radius: 999px; overflow: hidden; margin-top: 10px;
}
.progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--ok));
  transition: width .4s var(--ease);
}
.progress.warn > span { background: linear-gradient(90deg, var(--warn), var(--coral)); }

.cat-bars { display: grid; gap: 10px; }
.cat-bar-row {
  display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-size: .9rem;
}
@media (max-width: 520px) { .cat-bar-row { grid-template-columns: 90px 1fr 60px; font-size: .82rem; } }
.cat-bar-track { height: 8px; background: var(--sand-2); border-radius: 999px; overflow: hidden; }
.cat-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), #38bdf8);
}
.cat-bar-row:nth-child(2) .cat-bar-fill { background: linear-gradient(90deg, var(--coral), #fb923c); }
.cat-bar-row:nth-child(3) .cat-bar-fill { background: linear-gradient(90deg, var(--ok), #2dd4bf); }
.cat-bar-row:nth-child(4) .cat-bar-fill { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.cat-bar-row:nth-child(5) .cat-bar-fill { background: linear-gradient(90deg, #94a3b8, #64748b); }

.share-box {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.share-box input { flex: 1; min-width: 180px; border: 0; background: transparent; min-height: 36px; }
.share-box input:focus { box-shadow: none; }

.fab {
  display: none; position: fixed; right: 18px; bottom: calc(var(--bottom-nav-h) + 16px);
  z-index: 40; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(180deg, #2a9aef, var(--sky));
  color: #fff !important; border: 0; font-size: 1.6rem;
  box-shadow: 0 8px 28px rgba(26, 143, 227, .45); cursor: pointer;
  align-items: center; justify-content: center;
}

/* Search / reservar */
.search-card {
  background: var(--white); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.search-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.search-tabs button {
  border: 1px solid var(--line); background: var(--sand); color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.search-tabs button.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.search-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end;
}
@media (max-width: 800px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .search-grid { grid-template-columns: 1fr; } }
.search-grid .field.full { grid-column: 1 / -1; }
.offer-list { display: grid; gap: 12px; margin-top: 16px; }
.offer-card {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow-sm);
}
.offer-card:hover { border-color: #7dd3fc; }
.offer-card .price { font-size: 1.25rem; font-weight: 800; color: var(--navy); text-align: right; }
.offer-card .meta { color: var(--muted); font-size: .88rem; }
.monetize-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 800px) { .monetize-grid { grid-template-columns: 1fr; } }
.monetize-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.monetize-card h3 { margin: 0 0 8px; color: var(--navy); }
.monetize-card .pct {
  font-size: 1.6rem; font-weight: 800; color: var(--coral); margin: 8px 0;
}

/* Dest cards */
.dest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 800px) { .dest-grid { grid-template-columns: 1fr; } }
.dest-card {
  position: relative; border-radius: 16px; overflow: hidden; min-height: 180px;
  border: 0; padding: 0; cursor: pointer; text-align: left; display: block; width: 100%;
  box-shadow: var(--shadow-sm); transition: .2s var(--ease);
  text-decoration: none !important; color: inherit; background: var(--navy);
}
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dest-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.dest-overlay {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: linear-gradient(transparent, rgba(12,35,64,.88));
  color: #fff;
}
.dest-overlay strong { display: block; font-size: 1.15rem; }
.dest-overlay span { font-size: .85rem; opacity: .9; }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(12, 35, 64, .55);
  display: none; align-items: flex-end; justify-content: center; z-index: 60;
}
@media (min-width: 640px) {
  .modal-bg { align-items: center; padding: 20px; }
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px 20px 0 0; width: 100%; max-width: 560px;
  max-height: min(92vh, 900px); overflow: auto; box-shadow: var(--shadow);
  animation: sheet .3s var(--ease);
}
@media (min-width: 640px) {
  .modal { border-radius: 18px; animation: rise .3s var(--ease); }
}
@keyframes sheet {
  from { transform: translateY(40px); opacity: .6; }
  to { transform: none; opacity: 1; }
}
.modal header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--white); z-index: 2;
}
.modal header h3 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.modal .body { padding: 18px; }
.modal footer {
  display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line);
  position: sticky; bottom: 0; background: var(--white);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line); padding: 32px 0 48px;
  background: var(--navy); color: rgba(255,255,255,.7); font-size: .88rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer strong { color: #fff; }
.footer a { color: #7dd3fc; }
.footer a:hover { color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.section-gap { margin-top: 16px; }
.note {
  background: #e0f2fe; border: 1px solid #bae6fd;
  border-radius: 14px; padding: 14px 16px; margin: 14px 0; font-size: .92rem; color: var(--navy-2);
}
code {
  background: var(--sand-2); padding: 2px 7px; border-radius: 6px;
  font-size: .88em; border: 1px solid var(--line); color: var(--navy);
}

/* —— Tabs del viaje (pills) —— */
.viaje-tabs-wrap { margin-top: 12px; }
.viaje-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: transparent; border: 0; padding: 0 2px 12px;
  box-shadow: none;
}
.viaje-tab {
  border: 1px solid var(--line); background: var(--white); font-family: inherit;
  font-weight: 700; font-size: .9rem; color: var(--muted);
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: .18s var(--ease);
}
.viaje-tab:hover { color: var(--navy); border-color: #c5d4e8; transform: translateY(-1px); }
.viaje-tab.active {
  color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-color: transparent; box-shadow: 0 8px 20px rgba(11, 31, 54, 0.22);
}
.viaje-tab.active .tab-count {
  background: rgba(255,255,255,.2); color: #fff;
}
.tab-count {
  display: inline-block; font-size: .72rem; font-weight: 700;
  background: var(--sky-soft); color: var(--sky-dark);
  padding: 2px 8px; border-radius: 999px; margin-left: 4px;
}
.viaje-tab-panel { display: none; }
.viaje-tab-panel.active { display: block; animation: fadeUp .28s var(--ease); }

/* Sub-tabs dentro de Ruta (Traslados / Ciudades / Actividades / Mapa) */
.ruta-subtabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 12px;
  margin: 4px 0 8px;
  scrollbar-width: thin;
}
.ruta-subtab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-family: inherit;
  font-weight: 700;
  font-size: .82rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s var(--ease);
}
.ruta-subtab:hover { color: var(--navy); border-color: #c5d4e8; background: #fff; }
.ruta-subtab.active {
  color: #fff;
  background: linear-gradient(135deg, #1a8fe3, #0c5a9e);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(26, 143, 227, 0.28);
}
.ruta-subtab .tab-count {
  background: rgba(255,255,255,.22);
  color: inherit;
}
.ruta-subtab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }
.ruta-subpanel { display: none; }
.ruta-subpanel.active { display: block; animation: fadeUp .22s var(--ease); }
.ruta-sub-tip {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: var(--navy);
  font-size: .88rem;
  line-height: 1.45;
}
.ruta-sub-tip.tip-amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}
.ruta-hotels-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #99f6e4;
}
.ruta-hotels-summary .rhs-label { font-weight: 800; color: #0f766e; font-size: .9rem; }
.ruta-hotels-summary .rhs-val { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.ruta-hotels-summary .rhs-hint { font-size: .8rem; color: var(--muted); flex: 1 1 180px; }
.ruta-legs-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.ruta-leg-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.ruta-leg-card .rlc-route { font-weight: 800; color: var(--navy); }
.ruta-leg-card .rlc-meta { font-size: .85rem; color: var(--muted); }
.ruta-leg-card .rlc-mode {
  align-self: start;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--sky-dark);
}
.ruta-leg-card .rlc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.ruta-leg-card.is-pre .rlc-mode { background: #fef3c7; color: #92400e; }
.ruta-leg-card.is-home .rlc-mode { background: #d1fae5; color: #065f46; }
.ruta-leg-card.is-omitted { opacity: .72; background: #f8fafc; }
.ruta-aero-hidden summary { cursor: pointer; font-weight: 600; }
@media (max-width: 720px) {
  .ruta-leg-card { grid-template-columns: 1fr; }
}
/* Actividades embebidas en sub-tab Ruta */
.ruta-act-embed.card {
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.ruta-act-embed .card-head { padding-left: 0; padding-right: 0; }

/* Hoteles (sub-tab) */
.ruta-hotels-list { display: flex; flex-direction: column; gap: 12px; }
.ruta-hotels-empty {
  padding: 18px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ruta-hotel-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.ruta-hotel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}
.ruta-hotel-city {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--navy);
}
.ruta-hotel-meta { margin: 0; font-size: .86rem; }
.ruta-hotel-price { text-align: right; }
.rhp-total { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.rhp-night { font-size: .82rem; }
.ruta-hotel-bands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 12px;
}
.rh-band {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
}
.rh-band.rh-mid { background: #ecfeff; color: #0e7490; }
.ruta-hotel-actions { margin-top: 4px; flex-wrap: wrap; }
.ruta-hotel-actions .aff-btn-row { margin: 0; }

/* Tips del viajero */
.tips-page { max-width: 960px; margin: 0 auto; }
.tips-hero { margin-bottom: 20px; padding: 20px 22px; }
.tips-lead { margin: 8px 0 0; color: var(--muted); line-height: 1.5; max-width: 52rem; }
.tips-section { margin: 28px 0; }
.tips-section h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.25rem; }
.tips-sec-lead { margin: 0 0 14px; }
.tips-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.tips-app-card { padding: 14px 16px; margin: 0; }
.tips-app-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.tips-app-ico {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.tips-app-card h3 { margin: 0 0 2px; font-size: 1.05rem; color: var(--navy); }
.tips-app-for { margin: 0; font-size: .88rem; }
.tips-app-how { margin: 0 0 8px; font-size: .9rem; line-height: 1.45; color: var(--text); }
.tips-app-tip {
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: .85rem;
  color: #0c4a6e;
  line-height: 1.4;
}
.tips-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tips-check-card { padding: 14px 16px; margin: 0; }
.tips-check-card h3 { margin: 0 0 10px; font-size: 1rem; color: var(--navy); }
.tips-ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.45;
}
.tips-ul li { margin: 0 0 6px; }
.tips-disclaimer {
  margin: 24px 0 8px;
  font-size: .82rem;
  line-height: 1.4;
}

/* Regreso compacto + modal */
.add-regreso-compact {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.add-regreso-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.add-regreso-bar .add-regreso-text { flex: 1 1 160px; }
.add-regreso-bar .add-regreso-text strong { display: block; color: var(--navy); }
.add-regreso-bar .add-regreso-text .muted2 { font-size: .85rem; }

/* Tab Gastos */
.gastos-workspace .gastos-summary { margin-bottom: 16px; }
.gastos-subh {
  margin: 0 0 10px;
  font-size: .95rem;
  color: var(--navy);
}
.gastos-cat-block {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.cat-bars-compact .cat-bar-row { font-size: .88rem; }
.gastos-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin: 0 0 14px;
}
.gastos-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .72rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
}
.gastos-filter select,
.gastos-search {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  text-transform: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}
.gastos-search { flex: 1 1 180px; min-width: 160px; }
.gastos-table .badge-cat {
  font-size: .72rem;
  background: #e2e8f0;
  color: var(--navy-2);
}
.badge-cat-vuelos { background: #dbeafe !important; color: #1d4ed8 !important; }
.badge-cat-transporte { background: #e0e7ff !important; color: #3730a3 !important; }
.badge-cat-alojamiento { background: #ffedd5 !important; color: #c2410c !important; }
.badge-cat-alimentos { background: #dcfce7 !important; color: #15803d !important; }
.badge-cat-excursiones { background: #fce7f3 !important; color: #be185d !important; }
.badge-cat-entradas { background: #f3e8ff !important; color: #7e22ce !important; }
.badge-cat-compras { background: #fef3c7 !important; color: #b45309 !important; }
.badge-cat-varios { background: #f1f5f9 !important; color: #475569 !important; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.tab-card {
  border-radius: var(--radius);
  border: 0; margin-top: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.panel-kicker {
  margin: 0 0 4px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sky-dark);
}
.ruta-workspace-head {
  background: linear-gradient(135deg, #0b1f36 0%, #164a7a 55%, #0ea5e9 140%);
  color: #fff; border-radius: var(--radius); padding: 18px 20px;
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.ruta-workspace-head h2 { color: #fff !important; margin: 0; }
.ruta-workspace-head .panel-kicker { color: #7dd3fc; }
.ruta-workspace-head .btn-ghost {
  background: rgba(255,255,255,.12) !important; color: #fff !important;
  border-color: rgba(255,255,255,.2) !important;
}
.ruta-workspace-head .btn-ghost:hover { background: rgba(255,255,255,.2) !important; }
.ruta-workspace-head .btn-primary {
  background: linear-gradient(180deg, #fb923c, var(--coral)) !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, .4);
}

/* Paneles numerados (pasos 1–4) */
.ruta-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ruta-panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
}
.ruta-panel-timeline::before { background: linear-gradient(180deg, var(--sky), #38bdf8); }
.ruta-panel-add::before { background: linear-gradient(180deg, var(--coral), #fdba74); }
.ruta-panel-map::before { background: linear-gradient(180deg, var(--violet), #c4b5fd); }
.ruta-panel-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.ruta-panel-num {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  background: var(--sky-soft); color: var(--sky-dark);
}
.ruta-panel-num.num-ok { background: var(--ok-soft); color: var(--ok); }
.ruta-panel-num.num-map { background: var(--violet-soft); color: var(--violet); }
.ruta-panel-title { margin: 0; font-size: 1.05rem; color: var(--navy); font-weight: 800; }
.ruta-panel-sub { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.ruta-panel-add {
  background: linear-gradient(165deg, #fff7ed 0%, #fff 40%);
  border-color: #fed7aa;
}
.ruta-panel-map {
  background: linear-gradient(165deg, #f5f3ff 0%, #fff 45%);
  border-color: #ddd6fe;
}

/* Precios al costado de cada destino */
.ruta-node-row {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px);
  gap: 12px;
  align-items: start;
}
.ruta-node-prices {
  display: flex; flex-direction: column; gap: 8px;
}
.price-pill {
  background: var(--sand); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.price-pill.flight { border-left: 3px solid var(--sky); background: var(--sky-soft); }
.price-pill.hotel { border-left: 3px solid var(--hotel); background: rgba(234, 88, 12, 0.08); }
.price-pill-k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.price-pill strong { font-size: .95rem; color: var(--navy); }
.price-pill-src { font-size: .72rem; color: var(--muted2); }
.price-pill-link {
  margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--sky-dark); text-decoration: none;
}
.price-pill-link:hover { text-decoration: underline; }

.ruta-map-title { margin: 0 0 10px; font-size: 1.05rem; color: var(--navy); }
.tramo-list-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px;
}
.check-list-wide .check-item { padding: 10px 8px; }

@media (max-width: 720px) {
  .ruta-node-row { grid-template-columns: 1fr; }
  .ruta-node-prices { flex-direction: row; flex-wrap: wrap; }
  .price-pill { flex: 1 1 140px; }
  .viaje-tab { font-size: .85rem; padding: 10px 12px; }
}

/* —— Ruta del viaje (nodos + mapa) —— */
.ruta-map-wrap {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #dbeafe;
}
.ruta-map { height: 320px; width: 100%; z-index: 0; }
.ruta-map-caption { margin: 0; padding: 8px 12px; background: var(--white); font-size: .8rem; border-top: 1px solid var(--line); }
.ruta-map-empty {
  margin-bottom: 14px; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--sand);
}
.map-num-tip {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: #fff !important; font-weight: 800 !important; font-size: 11px !important;
  margin-top: -2px !important;
}
.map-num-tip::before { display: none !important; }

/* Acordeones (tramos + nodos) */
.acc-toggle {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border: 0; background: transparent; font-family: inherit; text-align: left;
  cursor: pointer; padding: 0; color: inherit;
}
.acc-chevron {
  margin-left: auto; font-size: .85rem; color: var(--muted2);
  transition: transform .2s var(--ease); flex-shrink: 0;
}
.acc-toggle.is-open .acc-chevron,
.acc-item.open > .acc-toggle .acc-chevron,
.nodo-summary .acc-toggle.is-open .acc-chevron { transform: rotate(180deg); }
.acc-body { padding-top: 10px; }

/* Tramo entre ciudades — gris muy claro (se diferencia de las paradas) */
.ruta-leg {
  margin: 2px 0 2px 18px;
  position: relative;
}
.ruta-leg::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  pointer-events: none;
}
.leg-toggle {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 7px 12px !important;
  font-size: .82rem;
  box-shadow: none;
  color: #4b5563;
}
.leg-toggle:hover {
  border-color: #d1d5db !important;
  background: #eceef1 !important;
}
.leg-toggle-ico {
  font-size: .95rem;
  opacity: .85;
  filter: grayscale(0.15);
}
.leg-toggle-route {
  font-weight: 650;
  color: #374151;
}
.leg-toggle-meta {
  font-size: .76rem;
  color: #6b7280 !important;
}
.ruta-leg-arrow {
  color: #9ca3af;
  margin: 0 3px;
  font-weight: 600;
}
.ruta-leg .tramo-price {
  background: #e5e7eb;
  color: #4b5563;
}
.ruta-leg .acc-chevron {
  color: #9ca3af;
}
.ruta-leg-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
}
.ruta-leg-form { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ruta-leg-select {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: .82rem;
  background: #fff;
  color: var(--navy);
  max-width: 100%;
}
.ruta-leg-links { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link {
  font-size: .78rem; font-weight: 600; color: var(--sky-dark);
  background: var(--white); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; text-decoration: none;
}
.chip-link:hover { border-color: var(--sky); background: #fff; }

/* Nodo ciudad — fila compacta */
.nodo-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  width: 100%;
}
.nodo-toggle {
  flex: 1 1 180px; min-width: 0;
  gap: 6px !important;
}
.nodo-mini-chip {
  font-size: .75rem; font-weight: 800; color: var(--coral-dark);
  background: var(--coral-soft); padding: 2px 8px; border-radius: 999px;
}
.nodo-mini-dates {
  font-size: .78rem; font-weight: 700; color: var(--navy-2);
  background: #e0f2fe; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.nodo-mini-hours {
  font-size: .72rem; font-weight: 650; color: var(--ok);
  background: var(--ok-soft); padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.nodo-hours-start {
  color: var(--navy) !important;
  background: #e2e8f0 !important;
  font-weight: 800 !important;
}
.nodo-hours-pre {
  color: #b45309 !important;
  background: #fef3c7 !important;
}
.nodo-hours-escala {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
  font-weight: 750 !important;
}
/* Pre-viaje sigue en ámbar suave; tramo normal = gris */
.ruta-leg.leg-previaje {
  margin-left: 18px;
}
.ruta-leg.leg-previaje::before {
  background: #fde68a;
}
.ruta-leg.leg-previaje .leg-toggle {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}
.ruta-leg.leg-previaje .leg-toggle-route {
  color: #92400e;
  font-weight: 700;
}
.ruta-leg.leg-previaje .leg-toggle-meta {
  color: #b45309 !important;
}

/* Escala: parada de conexión sin hotel */
.tipo-escala {
  border-color: #93c5fd !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 55%) !important;
}
.tipo-escala .ruta-node-badge {
  background: #dbeafe !important;
  color: #1e40af !important;
}
.tipo-escala .nodo-mini-dates {
  background: #e0f2fe;
  color: #0c4a6e;
}
.escala-toggle-form {
  margin: 0;
  flex-shrink: 0;
}
.btn-escala {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .72rem;
  font-weight: 750;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s var(--ease);
}
.btn-escala:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}
.btn-escala.is-on {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.add-escala-field .add-escala-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e40af;
  font-size: .85rem;
  font-weight: 650;
  white-space: nowrap;
}
.add-escala-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1d4ed8;
}
.add-escala-hint {
  margin: 8px 0 0;
  font-size: .8rem;
}
.add-city-bar.is-escala #add-noches-wrap {
  opacity: .35;
  pointer-events: none;
}
.escala-check-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  cursor: pointer;
}
.escala-check-label input { width: 16px; height: 16px; accent-color: #1d4ed8; }
.escala-edit-row { grid-column: 1 / -1; }
.it-preview-table tr.row-escala td { background: #f0f9ff; }
.it-preview-table tr.row-escala .tipo-mini {
  background: #dbeafe;
  color: #1e40af;
}
.previaje-bar {
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border: 1px solid #fde68a;
  border-radius: 14px;
}
.ruta-panel-num.num-pre {
  background: #fef3c7; color: #b45309;
}
.previaje-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-pre {
  border-color: #fcd34d !important;
  background: #fffbeb !important;
}
.chip-pre:hover {
  border-color: #f59e0b !important;
  background: #fef3c7 !important;
  color: #92400e !important;
}
.previaje-form-custom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.previaje-input {
  flex: 1 1 180px; min-width: 140px;
  border: 1px solid #fcd34d; border-radius: 8px;
  padding: 8px 10px; font-family: inherit; font-size: .9rem;
  background: #fff;
}
.previaje-select,
.previaje-form-custom input[type="time"] {
  border: 1px solid #fcd34d; border-radius: 8px;
  padding: 7px 8px; font-family: inherit; font-size: .85rem;
  background: #fff;
}
.nodo-mini-price {
  font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis;
}
.nodo-mini-price.hotel { background: rgba(234, 88, 12, 0.1); color: var(--hotel); }
.nodo-mini-price.flight { background: var(--sky-soft); color: var(--sky-dark); }
.dias-live-compact { flex-shrink: 0; }
.ruta-node { padding: 11px 14px !important; }
.ruta-node .nodo-body {
  border-top: 1px solid #eef2f7; margin-top: 12px; padding-top: 14px;
  background: rgba(248, 250, 252, 0.7); border-radius: 0 0 10px 10px;
  margin-left: -6px; margin-right: -6px; padding-left: 12px; padding-right: 12px;
}

.ruta-drag {
  cursor: grab; color: var(--muted2); font-size: 1rem; user-select: none; line-height: 1;
  padding: 2px 4px; flex-shrink: 0;
}
.ruta-node.dragging { opacity: .55; }
.ruta-node.drag-over { outline: 2px dashed var(--sky); outline-offset: 2px; }

.add-toggle {
  margin-top: 0; padding: 10px 12px !important;
  background: rgba(255,255,255,.8) !important; border: 1px dashed #fdba74 !important;
  border-radius: 10px; font-weight: 600; color: var(--navy); font-size: .9rem;
}
.add-toggle:hover { border-color: var(--coral) !important; background: #fff !important; }

.regreso-bar {
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border: 1px solid #99f6e4;
  border-radius: 14px;
}
.regreso-form-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.regreso-lab { font-weight: 700; color: var(--navy); font-size: .9rem; }
.regreso-input {
  flex: 1 1 140px; min-width: 120px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-family: inherit; font-size: .95rem;
}
.regreso-ok {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; font-size: .95rem; color: var(--navy);
}

/* Agregar ciudad libre */
.add-city-bar { margin-bottom: 4px; }
.add-city-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
}
.add-city-field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
}
.add-city-field.grow { flex: 1 1 180px; }
.add-city-field input,
.add-city-field select {
  font-family: inherit; font-size: .95rem; font-weight: 500; text-transform: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink);
  min-width: 0; background: var(--white);
}
/* —— Secciones principales en acordeón —— */
.sec-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sec-acc {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sec-acc-toggle {
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px !important;
  padding: 14px 16px !important;
  border: 0 !important;
  background: var(--white) !important;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  transition: background .15s;
}
.sec-acc-toggle:hover { background: #f8fafc !important; }
.sec-acc.open > .sec-acc-toggle,
.sec-acc-toggle.is-open {
  background: linear-gradient(90deg, #f8fafc, #fff) !important;
  border-bottom: 1px solid var(--line) !important;
}
.sec-acc-badge {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; flex-shrink: 0;
}
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-green { background: #ccfbf1; color: #0f766e; }
.badge-violet { background: #ede9fe; color: #6d28d9; }
.sec-acc-text { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sec-acc-title { font-weight: 800; font-size: 1rem; color: var(--navy); }
.sec-acc-desc { font-size: .8rem; color: var(--muted); font-weight: 500; }
.sec-acc-stats { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sec-pill {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  background: var(--sand); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.sec-pill-on {
  background: var(--ok-soft); color: var(--ok); border-color: #99f6e4;
}
.sec-acc-body {
  padding: 14px 16px 16px;
  background: #fff;
  border-top: 0;
}
.sec-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: .82rem;
  color: var(--navy-2);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}
.sec-itinerario { border-color: #bae6fd; }
.sec-itinerario > .sec-acc-toggle.is-open { background: linear-gradient(90deg, #e0f2fe, #fff) !important; }
.sec-add { border-color: #fed7aa; }
.sec-add > .sec-acc-toggle.is-open { background: linear-gradient(90deg, #fff7ed, #fff) !important; }
.sec-previaje { border-color: #fde68a; }
.sec-previaje > .sec-acc-toggle.is-open { background: linear-gradient(90deg, #fffbeb, #fff) !important; }
.sec-regreso { border-color: #99f6e4; }
.sec-regreso > .sec-acc-toggle.is-open { background: linear-gradient(90deg, #ecfdf5, #fff) !important; }
.sec-mapa { border-color: #ddd6fe; }
.sec-mapa > .sec-acc-toggle.is-open { background: linear-gradient(90deg, #f5f3ff, #fff) !important; }
.sec-acc .previaje-presets { margin-top: 4px; }
.sec-acc .regreso-form-quick,
.sec-acc .regreso-ok { margin: 0; }
.sec-acc .ruta-flow { margin-bottom: 0; }

/* Form agregar ciudad dentro del itinerario */
.add-city-box {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff7ed 0%, #ffedd5 45%, #fff 100%);
  border: 1px dashed #fb923c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.add-city-box-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 8px; margin-bottom: 12px;
}
.add-city-box-title {
  font-weight: 800; font-size: .95rem; color: #c2410c;
}
.add-city-box .catalog-acc {
  margin-top: 10px;
  border-color: #fdba74;
}

/* Regreso dentro del itinerario */
.add-regreso-box {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid #99f6e4;
  background: linear-gradient(160deg, #ecfdf5 0%, #f0fdfa 40%, #fff 100%);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.08);
}
.add-regreso-toggle {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.add-regreso-toggle:hover {
  background: rgba(255, 255, 255, 0.55) !important;
}
.add-regreso-ico {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.add-regreso-text {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.add-regreso-text strong {
  font-size: .95rem;
  color: #0f766e;
  font-weight: 800;
}
.add-regreso-badge {
  font-size: .72rem;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #99f6e4;
  color: #0f766e;
  white-space: nowrap;
}
.add-regreso-badge.is-on {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.add-regreso-body {
  border-top: 1px solid #99f6e4;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.65);
}
.add-regreso-tip {
  margin: 0 0 12px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.4;
}
.add-regreso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 12px;
  margin-bottom: 14px;
}
.add-regreso-grid .full {
  grid-column: 1 / -1;
}
.add-regreso-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.add-regreso-del {
  margin: 10px 0 0;
}

/* Autocomplete ciudades (3 letras) */
.ac-wrap { position: relative; }
.ac-wrap input#add-ciudad-libre {
  width: 100%;
}
.ac-city-list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 40;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #fdba74;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 31, 54, 0.14);
  max-height: 260px;
  overflow-y: auto;
}
.ac-city-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s;
}
.ac-city-item:hover,
.ac-city-item.is-active {
  background: #fff7ed;
}
.ac-city-name {
  font-weight: 800;
  font-size: .95rem;
  color: var(--navy);
}
.ac-city-country {
  font-weight: 600;
  font-size: .85rem;
  color: #c2410c;
}
.ac-city-iata {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted2);
  background: var(--sand);
  padding: 2px 7px;
  border-radius: 6px;
}
.ac-city-empty {
  padding: 12px;
  font-size: .85rem;
  color: var(--muted);
}
.ac-city-hint {
  display: block;
  margin-top: 4px;
  font-size: .75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.previaje-box {
  display: flex; flex-direction: column; gap: 12px;
}
.previaje-where {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: #b45309;
}
.previaje-select-before {
  font-family: inherit; font-size: .95rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
  border: 1px solid #fcd34d; border-radius: 10px;
  padding: 10px 12px; background: #fff; color: var(--navy);
  width: 100%; max-width: 420px;
}
.sec-tip-amber {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #92400e !important;
}

/* Catálogo en acordeón + tabs de región */
.catalog-acc {
  margin-top: 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
  overflow: hidden;
}
.catalog-acc-toggle {
  width: 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px !important;
  padding: 12px 14px !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.catalog-acc-toggle:hover { background: rgba(255, 237, 213, 0.5) !important; }
.catalog-acc-ico { font-size: 1.1rem; }
.catalog-acc-title { font-size: .95rem; }
.catalog-acc-meta { font-size: .78rem; font-weight: 600; }
.catalog-acc.open .catalog-acc-toggle,
.catalog-acc-toggle.is-open {
  border-bottom: 1px solid #fed7aa !important;
  background: #fff7ed !important;
}
.catalog-acc-body {
  padding: 12px 12px 14px;
  background: #fff;
}
.catalog-region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.catalog-region-tab {
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--muted);
  font-family: inherit;
  font-weight: 700;
  font-size: .8rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s var(--ease);
}
.catalog-region-tab:hover {
  border-color: #fdba74;
  color: var(--coral-dark);
  background: #fff7ed;
}
.catalog-region-tab.active {
  background: linear-gradient(135deg, var(--coral), #fb923c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
.catalog-region-tab.active .tab-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.catalog-region-panel { display: none; }
.catalog-region-panel.active { display: block; animation: fadeUp .2s var(--ease); }
.catalog-chips {
  max-height: 200px;
  overflow-y: auto;
  padding: 2px 2px 6px;
}
.catalog-chips .chip-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 11px;
  line-height: 1.2;
}
.chip-country {
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted2);
  text-transform: none;
}
.catalog-region-tab.active ~ .catalog-chips .chip-country,
.catalog-chips .chip-btn:hover .chip-country {
  color: inherit;
  opacity: .75;
}
.catalog-hint {
  margin: 10px 0 0;
  font-size: .78rem;
}

/* Fechas entrada/salida */
.fechas-quick {
  margin: 10px 0 12px; padding: 12px;
  background: var(--sand); border-radius: 12px; border: 1px solid var(--line);
}
.fechas-quick-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 10px;
}
.fechas-quick label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
}
.fechas-quick input {
  font-family: inherit; font-size: .9rem; font-weight: 500; text-transform: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; background: var(--white);
}
.fq-hint { display: inline-block; margin-left: 8px; font-size: .82rem; }

/* Modal itinerario ancho */
.modal-wide { max-width: 820px; width: 100%; }
.it-preview-table-wrap { overflow-x: auto; }
.it-preview-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.it-preview-table th,
.it-preview-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.it-preview-table th { background: var(--sand); color: var(--navy); font-size: .75rem; text-transform: uppercase; }
.tipo-mini {
  display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  color: var(--muted2); margin-bottom: 2px;
}

.tramo-list { display: flex; flex-direction: column; gap: 10px; }
.tramo-block {
  padding: 10px; background: var(--sand); border-radius: 10px; border: 1px solid var(--line);
}
.tramo-title { font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.tramo-price { font-weight: 700; font-size: .78rem; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.tramo-price-big { font-weight: 800; font-size: 1.15rem; color: var(--ok); margin: 2px 0 2px; }
.tramo-ref { font-size: .75rem; color: var(--muted2); margin-bottom: 8px; }
.tp-status-ok {
  margin: 0 0 8px; font-size: .82rem; font-weight: 700; color: var(--ok);
  background: var(--ok-soft); padding: 8px 10px; border-radius: 8px;
}
.ruta-leg-ref { margin: 0 0 8px; font-size: .75rem; color: var(--muted2); }
.tramo-links { display: flex; flex-direction: column; gap: 4px; }
.tramo-links a {
  font-size: .82rem; color: var(--sky-dark); text-decoration: none; font-weight: 500;
}
.tramo-links a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.ruta-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: transparent; border: 0; padding: 0;
  box-shadow: none;
}
.rsb-item {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; padding: 12px 14px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--sky);
}
.rsb-item.rsb-ruta { border-top-color: var(--sky); }
.rsb-item.rsb-gastos { border-top-color: var(--coral); }
.rsb-item.rsb-check { border-top-color: var(--violet); }
.rsb-item.rsb-noches { border-top-color: var(--hotel); }
.rsb-item.rsb-tp { border-top-color: var(--ok); }
.rsb-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted2); font-weight: 800; }
.rsb-val { font-weight: 700; color: var(--navy); font-size: .92rem; line-height: 1.25; }
.rsb-tp .rsb-val { color: var(--ok); }

.ruta-flow {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0; padding: 4px 0 4px 8px;
  border-left: 3px solid #e0f2fe;
  margin-left: 14px;
}
.ruta-connector {
  display: flex; flex-direction: column; align-items: center;
  padding: 2px 0; color: var(--muted2); font-size: .78rem; font-weight: 600;
}
.ruta-line {
  width: 2px; height: 10px; background: linear-gradient(var(--sky), var(--sky-dark));
  opacity: .45; border-radius: 2px;
}
.ruta-arrow { padding: 2px 0; color: var(--sky-dark); }

.ruta-node {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  border-left: 5px solid var(--sky);
  box-shadow: 0 2px 10px rgba(11, 31, 54, 0.05);
  transition: box-shadow .2s var(--ease), transform .15s var(--ease), border-color .15s;
  margin-left: -2px;
}
.ruta-node:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); }
.ruta-node.tipo-origen {
  border-left-color: var(--navy);
  background: linear-gradient(100deg, rgba(11, 31, 54, 0.06), #fff 50%);
}
.ruta-node.tipo-ciudad {
  border-left-color: var(--coral);
  background: linear-gradient(100deg, rgba(249, 115, 22, 0.07), #fff 48%);
}
.ruta-node.tipo-pre_viaje {
  border-left-color: var(--warn);
  background: linear-gradient(100deg, rgba(217, 119, 6, 0.08), #fff 48%);
}
.ruta-node.tipo-regreso {
  border-left-color: var(--ok);
  background: linear-gradient(100deg, rgba(13, 148, 136, 0.1), #fff 48%);
}
.ruta-node.open,
.ruta-node.is-editing {
  box-shadow: 0 10px 28px rgba(11, 31, 54, 0.12);
  border-color: #c7d7ea;
}
.ruta-node.is-editing { box-shadow: 0 0 0 3px var(--sky-soft), 0 10px 28px rgba(11, 31, 54, 0.1); }
.ruta-node-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ruta-node-badge {
  font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: #e2e8f0; color: var(--navy-2); padding: 4px 9px; border-radius: 999px;
}
.tipo-origen .ruta-node-badge { background: #e2e8f0; color: var(--navy); }
.tipo-ciudad .ruta-node-badge { background: #ffedd5; color: #c2410c; }
.tipo-pre_viaje .ruta-node-badge { background: #fef3c7; color: #b45309; }
.tipo-regreso .ruta-node-badge { background: #ccfbf1; color: #0f766e; }
.ruta-node-city { font-size: 1.12rem; color: var(--navy); font-weight: 800; }
.ruta-node-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; align-items: center; font-size: .9rem; }
.ruta-chip {
  display: inline-flex; align-items: center;
  background: var(--coral-soft); color: var(--coral-dark);
  font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px;
}
.dias-live-wrap {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--coral-soft); border-radius: 999px;
  padding: 3px 6px 3px 10px; font-weight: 700; color: var(--coral-dark);
}
.dias-live-lab { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.dias-live {
  width: 48px; border: 0; background: var(--white); border-radius: 8px;
  text-align: center; font-weight: 800; font-size: .95rem; color: var(--navy);
  padding: 4px 2px; font-family: inherit;
  -moz-appearance: textfield;
}
.dias-live::-webkit-outer-spin-button,
.dias-live::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dias-btn {
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: var(--white); color: var(--navy); font-weight: 800;
  font-size: 1.1rem; line-height: 1; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.dias-btn:hover { background: var(--navy); color: #fff; }
.dias-live-wrap:focus-within { outline: 2px solid var(--sky); outline-offset: 2px; }
.price-pill.hotel.is-updating { opacity: .7; }
.ruta-node-notes { margin: 6px 0 0; font-size: .88rem; }
.ruta-node-actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ruta-edit-form { margin-top: 12px; }
.ruta-add { margin-top: 8px; }
.card-soft {
  background: var(--sand); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.ruta-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn {
  border: 1px solid #e2e8f0; background: var(--white); color: var(--navy-2);
  border-radius: 999px; padding: 7px 12px; font-size: .82rem; font-weight: 650;
  cursor: pointer; font-family: inherit; transition: .15s var(--ease);
  box-shadow: 0 1px 2px rgba(11,31,54,.04);
}
.chip-btn:hover {
  border-color: #fdba74; background: #fff7ed; color: var(--coral-dark);
  transform: translateY(-1px); box-shadow: 0 4px 10px rgba(249, 115, 22, .12);
}


/* Checklist lateral */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.check-item {
  display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 4px;
  padding: 6px 4px; border-radius: 8px;
}
.check-item:hover { background: var(--sand); }
.check-item.done .check-title { text-decoration: line-through; color: var(--muted2); }
.check-toggle {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; font-size: 1rem; line-height: 1;
  color: var(--ok); font-weight: 700;
}
.check-item.done .check-toggle { background: var(--ok-bg); border-color: #99f6e4; }
.check-title { font-size: .9rem; color: var(--ink); }
.check-form, .check-del { margin: 0; }
.btn-x {
  border: 0; background: transparent; color: var(--muted2); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.btn-x:hover { color: var(--danger); background: var(--danger-bg); }
.check-add-form {
  display: flex; gap: 6px; margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.check-add-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-family: inherit; font-size: .9rem;
}

/* —— Actividades del día —— */
.itinerario-timeline { display: flex; flex-direction: column; gap: 18px; }
.it-day-label {
  font-weight: 700; color: var(--navy); font-size: .95rem;
  padding: 6px 12px; background: var(--sky-soft); border-radius: 999px;
  display: inline-block; margin-bottom: 10px;
}
.it-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.it-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px;
  padding: 12px 14px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); border-left: 4px solid var(--sky);
  box-shadow: var(--shadow-sm);
}
.it-item.tipo-vuelo { border-left-color: var(--sky); }
.it-item.tipo-traslado { border-left-color: #6366f1; }
.it-item.tipo-alojamiento { border-left-color: var(--hotel); }
.it-item.tipo-comida { border-left-color: var(--ok); }
.it-item.tipo-actividad { border-left-color: var(--coral); }
.it-item.tipo-recordatorio { border-left-color: var(--warn); }
.it-item.tipo-nota { border-left-color: var(--muted2); }
.it-time { font-size: .85rem; color: var(--navy-2); padding-top: 2px; }
.it-title { font-weight: 600; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.it-ico { font-size: 1rem; }
.it-tipo { font-size: .72rem; font-weight: 600; }
.it-meta { font-size: .88rem; margin-top: 4px; }
.it-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.itinerario-form-wrap {
  margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.it-day-city {
  display: inline-block;
  margin-left: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--coral-dark);
  background: var(--coral-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.badge.it-parada {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-size: .72rem;
  font-weight: 700;
}
.act-estancias-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.act-estancia-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 120px;
  max-width: 220px;
}
.act-estancia-chip strong {
  font-size: .9rem;
  color: var(--navy);
}
.act-estancia-chip > span {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.3;
}
.act-estancia-dias {
  font-size: .72rem !important;
  font-weight: 750 !important;
  color: var(--coral-dark) !important;
}
.act-estancia-chip.is-escala {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.act-parada-field select {
  font-weight: 600;
}
.act-dia-ctx {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  font-size: .88rem;
  color: var(--navy);
}
.act-dia-ctx strong {
  font-size: .9rem;
  color: #0369a1;
}
#act-fecha {
  font-weight: 600;
  min-height: 42px;
}
.act-ideas {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fdba74;
}
.act-ideas-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.act-ideas-head strong { color: #9a3412; font-size: .92rem; }
.act-ideas-tip { margin: 0 0 10px; font-size: .8rem; }
.act-ideas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.act-idea-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border: 1px solid #fdba74;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  transition: .15s ease;
}
.act-idea-chip:hover {
  background: #ffedd5;
  border-color: #fb923c;
  transform: translateY(-1px);
}
.act-idea-chip.is-civi {
  border-color: #f97316;
  background: linear-gradient(180deg, #fff7ed, #fff);
}
.act-idea-t { font-weight: 700; }
.act-idea-d {
  font-size: .72rem;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 1px 6px;
  border-radius: 999px;
}
.act-idea-tag {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: #ea580c;
  padding: 2px 6px;
  border-radius: 999px;
}
#act-fecha option:disabled {
  color: #94a3b8;
}

/* Tramo: duración y horarios manuales */
.ruta-leg-form-full { display: block; width: 100%; }
.ruta-leg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.ruta-leg-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .72rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
}
.ruta-leg-row label > span:first-child { letter-spacing: .03em; }
.ruta-leg-row input[type="time"],
.ruta-leg-row input[type="number"],
.ruta-leg-row select {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-transform: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--ink);
  background: #fff;
  min-width: 0;
}
.ruta-leg-dur {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: none;
  font-weight: 500;
}
.it-ev-traslado .it-ev-title { color: #0369a1; }

/* Día a día en itinerario */
.it-dayplan {
  margin: 0 0 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 50%);
  overflow: hidden;
}
.it-dayplan-toggle {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.it-dayplan-title {
  flex: 1 1 160px;
  font-weight: 800;
  color: var(--navy);
  font-size: .95rem;
}
.it-dayplan-body {
  border-top: 1px solid #dbeafe;
  padding: 10px 12px 14px;
}
.it-dayplan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.it-dayplan-day {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}
.it-dayplan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}
.it-dayplan-head strong { color: var(--navy); font-size: .95rem; }
.it-dayplan-city {
  font-size: .78rem;
  font-weight: 750;
  color: #c2410c;
  background: #ffedd5;
  padding: 2px 8px;
  border-radius: 999px;
}
.it-dayplan-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.it-ev {
  display: grid;
  grid-template-columns: 22px 48px 1fr auto;
  gap: 6px 8px;
  align-items: start;
  font-size: .88rem;
}
.it-ev-ico { text-align: center; line-height: 1.3; }
.it-ev-time {
  font-weight: 750;
  color: var(--navy-2);
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
}
.it-ev-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.it-ev-title { font-weight: 650; color: var(--ink); }
.it-ev-det { font-size: .78rem; }
.it-ev-edit {
  font-size: .8rem;
  color: var(--sky-dark);
  text-decoration: none;
  padding: 2px 4px;
}
.it-ev-hotel_checkin .it-ev-title,
.it-ev-hotel_checkout .it-ev-title { color: #c2410c; }
.it-ev-actividad .it-ev-title { color: var(--navy); }
.it-ev-escala .it-ev-title { color: #1d4ed8; }
.it-dayplan-foot { margin: 12px 0 0; font-size: .82rem; }

/* Hotel card en cada parada */
.nodo-hotel-card {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
}
.nodo-hotel-card.is-escala {
  background: #eff6ff;
  border-color: #93c5fd;
}
.nodo-hotel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.nodo-hotel-head strong { color: #9a3412; font-size: .92rem; }
.nodo-hotel-card.is-escala .nodo-hotel-head strong { color: #1e40af; }
.nodo-hotel-nights {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 800;
  color: #c2410c;
  background: #fff;
  border: 1px solid #fdba74;
  padding: 2px 8px;
  border-radius: 999px;
}
.nodo-hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.nodo-hotel-k {
  display: block;
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9a3412;
  opacity: .85;
}
.nodo-hotel-v {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}
.nodo-hotel-link {
  display: inline-block;
  margin-top: 8px;
  font-size: .82rem;
  font-weight: 650;
  color: #c2410c;
}

/* Actividades dentro de cada parada */
.nodo-acts {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.nodo-acts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.nodo-acts-head strong { color: var(--navy); font-size: .9rem; }
.nodo-acts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nodo-act-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  font-size: .86rem;
}
.nodo-act-when { font-weight: 750; color: var(--navy-2); font-size: .8rem; }
.nodo-act-title { flex: 1 1 120px; font-weight: 600; color: var(--ink); }
.nodo-act-edit { font-size: .78rem; color: var(--sky-dark); }
.nodo-acts-empty { margin: 0; font-size: .84rem; }

/* Modal preview día a día */
.it-preview-subh {
  margin: 16px 0 8px;
  font-size: .95rem;
  color: var(--navy);
}
.it-preview-dayplan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.it-preview-day {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
}
.it-preview-day-h {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: .9rem;
}
.it-preview-day-h span {
  font-size: .78rem;
  font-weight: 700;
  color: #c2410c;
}
.it-preview-day ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.it-pev {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px;
  font-size: .84rem;
  padding: 3px 0;
  border-top: 1px solid #eef2f7;
}
.it-pev-t { font-weight: 750; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.it-pev-hotel_checkin,
.it-pev-hotel_checkout { color: #9a3412; }
.it-prev-act { font-size: .78rem; margin: 2px 0; }
@media (max-width: 520px) {
  .it-item { grid-template-columns: 1fr; gap: 4px; }
  .it-time { order: -1; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .topbar-right-mobile { display: flex; }
  .btn-menu { display: grid; place-items: center; }
  .bottom-nav { display: flex; }
  .fab { display: flex; }
  .viaje-actions-desktop { display: none !important; }
  .hero-agency { margin-left: -20px; margin-right: -20px; border-radius: 0 0 22px 22px; }
}
@media (min-width: 861px) {
  .bottom-nav, .fab, .btn-menu, .nav-drawer, .topbar-right-mobile { display: none !important; }
  body.has-bottom-nav { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* —— Personas / colaboración —— */
.people-card .people-section-title {
  margin: 18px 0 10px;
  font-size: .95rem;
  color: var(--navy, #0c2340);
}
.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.people-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface, #f4f6f9);
  border: 1px solid rgba(12, 35, 64, 0.06);
}
.people-item.people-admin {
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
  border-color: rgba(12, 35, 64, 0.12);
}
.people-info strong { margin-right: 6px; }
.people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.people-invite-form {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.badge-role,
.badge-admin,
.badge-collab,
.badge-creator {
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
}
.badge-admin { background: #0c2340; color: #fff; }
.badge-collab { background: #e0f2fe; color: #0369a1; }
.badge-creator { background: #fef3c7; color: #92400e; }

/* —— Vista pública compartir —— */
.share-public-hero h1 { font-size: 1.55rem; }
.share-route-list {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-day { margin-bottom: 16px; }
.share-day-title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--navy, #0c2340);
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}
.share-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.share-events li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  padding: 4px 0;
  font-size: .92rem;
}
.share-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
  color: var(--navy-2, #1e3a5f);
}
.share-footer { text-align: center; }
.invite-card h1 { font-size: 1.35rem; }
.people-leave-box,
.people-danger-zone {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.people-danger-zone {
  border-top-color: #fecaca;
  background: #fff7f7;
  margin-left: -4px;
  margin-right: -4px;
  padding: 14px 16px 16px;
  border-radius: 12px;
}

/* Perfil + descubrir + afiliados */
.profile-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.profile-avatar-edit {
  display: flex;
  gap: 16px;
  align-items: center;
}
.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.profile-socials a { color: var(--navy, #0c2340); }
.adsense-wrap {
  margin: 16px 0;
  min-height: 0;
  text-align: center;
}

/* ——— Cuenta / hub ——— */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.account-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: inherit !important;
  transition: .2s var(--ease);
  min-height: 120px;
}
.account-tile:hover {
  border-color: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none !important;
}
.account-tile-muted { opacity: .92; }
.account-ico { font-size: 1.4rem; line-height: 1; }
.account-tile strong { color: var(--navy); font-size: 1.02rem; }
.tools-card h2 { margin-top: 0; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Productos creador */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.product-price { font-weight: 800; color: var(--navy); font-size: 1.1rem; }

/* Plan / pago */
.plan-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f9ff, #fff7ed);
  border: 1px solid #e0f2fe;
  border-radius: var(--radius-sm);
}
.pay-result {
  max-width: 440px;
  margin: 40px auto;
  text-align: center;
  padding: 32px 24px;
}
.pay-result h1 { font-size: 1.4rem; margin: 12px 0 8px; color: var(--navy); }
.pay-icon {
  width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800;
}
.pay-ok .pay-icon { background: var(--ok-bg); color: var(--ok); }
.pay-pending .pay-icon { background: var(--warn-bg); color: var(--warn); }

/* Nav user chip clickable */
a.nav-user-chip {
  text-decoration: none !important;
  color: #fff !important;
  cursor: pointer;
}
a.nav-user-chip:hover { opacity: .92; }
.nav-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cards unificadas */
.card.section-gap, .section-gap.card { margin-top: 18px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { letter-spacing: -.02em; }

/* Mejoras botones en filas */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Destino search */
.dest-search-card {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

/* Dashboard trip actions siempre visibles en mobile */
.trip-item-actions .btn-sm { font-size: .8rem; }

@media (max-width: 640px) {
  .account-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .nav-user-name { display: none; }
}

/* Home how + who */
.how-section {
  padding: 40px 20px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.how-head { text-align: center; margin-bottom: 22px; }
.how-head h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.45rem; }
.how-cta { text-align: center; margin: 22px 0 8px; }
.steps-clear .step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.steps-clear .step h3 { margin: 10px 0 8px; color: var(--navy); }
.steps-clear .step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step-extra {
  display: inline-block;
  margin-top: 12px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--sky-dark);
  background: var(--sky-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.book-home-block { padding: 8px 20px 28px; max-width: 1120px; margin: 0 auto; }
.book-home-inner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa;
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.book-home-inner h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.15rem; }
.book-home-inner p { margin: 0; max-width: 36em; }
.mobile-home-block { padding: 0 20px 40px; max-width: 1120px; margin: 0 auto; }
.mobile-home-inner {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.mobile-home-ico { font-size: 2rem; line-height: 1; }
.mobile-home-inner h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.15rem; }
.mobile-home-inner p { margin: 0 0 12px; }

/* Buscador individual */
.book-mode-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.book-mode-tab {
  padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  background: var(--sand); color: var(--navy); text-decoration: none !important; border: 1px solid var(--line);
}
.book-mode-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.book-results { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.book-result-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fafbfc;
  text-decoration: none !important; color: inherit !important;
}
.book-result-card:hover { border-color: #7dd3fc; background: #f0f9ff; }
.book-result-ico { font-size: 1.4rem; }
.book-result-card strong { display: block; color: var(--navy); }
.book-partner-status { margin: 10px 0 0; font-size: .88rem; }
.adm-pill-inline.ok { color: #0f766e; font-weight: 700; }
.adm-pill-inline.warn { color: #b45309; font-weight: 700; }

.offline-banner {
  position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h, 0px) + 8px);
  z-index: 90; margin: 0 auto; max-width: 420px;
  background: #0f172a; color: #fff; text-align: center;
  padding: 10px 14px; border-radius: 12px; font-size: .85rem; font-weight: 700;
  box-shadow: var(--shadow);
}
body:not(.has-bottom-nav) .offline-banner { bottom: 16px; }
.who-section { padding: 12px 20px 40px; max-width: 1120px; margin: 0 auto; }
.who-title { text-align: center; color: var(--navy); margin: 0 0 18px; font-size: 1.35rem; }
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.who-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.who-ico { font-size: 1.5rem; }
.who-card h3 { margin: 8px 0 6px; color: var(--navy); font-size: 1.05rem; }
.who-card p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* Onboarding dashboard + viaje */
.onboard-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 20px;
  margin-bottom: 18px;
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, #f0f9ff, #fff);
}
.onboard-visual { text-align: center; }
.onboard-body h2 { margin: 0 0 8px; color: var(--navy); }
.onboard-steps-title {
  margin: 16px 0 10px;
  font-size: .95rem;
  color: var(--navy);
}
.onboard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onboard-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink);
}
.onboard-n {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.onboard-tip { margin: 12px 0 0; }
.onboard-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ecfeff, #f0f9ff);
  border: 1px solid #a5f3fc;
}
.onboard-banner strong { color: var(--navy); display: block; margin-bottom: 6px; }
.onboard-banner-steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .9rem;
}

/* Viaje con fechas ya pasadas: solo gastos / notas manuales */
.past-trip-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fcd34d;
  color: var(--text);
}
.past-trip-banner-ico {
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.past-trip-banner strong {
  color: #92400e;
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}
.past-trip-banner p {
  margin: 0 0 8px;
  color: #78350f;
  font-size: .92rem;
  line-height: 1.45;
}
.past-trip-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #78350f;
  font-size: .88rem;
  line-height: 1.5;
}
.past-trip-list li { margin: 2px 0; }
.past-trip-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: .9rem;
}
.badge.estado-pasado,
.badge-past {
  color: #92400e;
  border-color: #fcd34d;
  background: #fef3c7;
}
@media (max-width: 720px) {
  .onboard-panel { grid-template-columns: 1fr; text-align: center; }
  .onboard-steps li { text-align: left; }
}

/* Planes agencia */
.plans-compare {
  margin-bottom: 20px;
}
.plans-compare-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.25rem;
  text-align: center;
}
.plans-compare-sub {
  text-align: center;
  margin: 0 0 16px;
}
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-card-paid {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed, #fff);
}
.plan-card-current {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35), var(--shadow-sm);
}
.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-card-head h3 { margin: 0; color: var(--navy); }
.plan-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.plan-price-note {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .92rem;
}
.plan-features li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 800;
}
.plan-features li.plan-feat-no {
  color: var(--muted2);
}
.plan-features li.plan-feat-no::before {
  content: "– ";
  color: var(--muted2);
}
@media (max-width: 720px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.profile-avatar-ph {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0c2340;
  background: linear-gradient(135deg, #e0f2fe, #f1f5f9);
}
.aff-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aff-btn-wrap { margin-top: 4px; }
.dest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.partners-grid { margin-top: 12px; }
.monetize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.monetize-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.06);
  border: 1px solid #eef2f7;
}
.monetize-card h3 { margin: 0 0 8px; font-size: 1.05rem; }

