/* ============================================================
   despegar — PRODUCT MOCKUP (la app rediseñada)
   Componentes reales de alta fidelidad usados en Solución
   y en el Before/After.
   ============================================================ */

/* browser frame -------------------------------------------------- */
.frame {
  position: relative;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sh-xl);
  border: 1px solid var(--line);
  overflow: hidden;
}
.frame-bar {
  height: 46px; display: flex; align-items: center; gap: 8px;
  padding: 0 18px; background: #fbfcfe; border-bottom: 1px solid var(--line-soft);
}
.frame-bar .dots { display: flex; gap: 7px; margin-right: 8px; }
.frame-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.frame-bar .dots i:nth-child(1){ background: #ff6058; }
.frame-bar .dots i:nth-child(2){ background: #ffbd2e; }
.frame-bar .dots i:nth-child(3){ background: #28c840; }
.frame-bar .url {
  flex: 1; height: 26px; border-radius: 8px; background: #eef2f7;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--slate-500);
  max-width: 420px;
}
.frame-bar .url svg { width: 12px; height: 12px; opacity: .6; }
.frame-body { background: #fff; }

/* floating screen label ----------------------------------------- */
.screen-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--slate-500); margin-bottom: 16px;
}
.screen-label .lnum {
  background: var(--tw-primary); color: #fff; font-weight: 600;
  border-radius: 7px; padding: 3px 9px; font-size: 11.5px;
}
.screen-label .lname { font-weight: 600; color: var(--ink); font-family: var(--font-sans); font-size: 14px; }
.screen-label .lhint { color: var(--slate-400); }

/* ---------------------------------------------------------------
   APP NAV
   --------------------------------------------------------------- */
.app { font-size: 14px; color: var(--ink); }
.app-nav {
  display: flex; align-items: center; gap: 30px;
  padding: 18px 32px; border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.app-nav .verticals { display: flex; gap: 4px; margin-left: 8px; }
.app-nav .verticals a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--slate-500);
  text-decoration: none; padding: 9px 14px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.app-nav .verticals a svg { width: 17px; height: 17px; }
.app-nav .verticals a.on { color: var(--tw-primary); background: var(--blue-50); }
.app-nav .verticals a:hover:not(.on) { color: var(--slate-700); background: #f6f8fb; }
.app-nav .spacer { flex: 1; }
.app-nav .nav-right { display: flex; align-items: center; gap: 18px; }
.app-nav .nav-link { font-size: 13.5px; font-weight: 600; color: var(--slate-600); text-decoration: none; }
.app-nav .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(140deg, var(--tw-celeste), var(--tw-primary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ---------------------------------------------------------------
   HERO + DOMINANT SEARCH
   --------------------------------------------------------------- */
.app-hero {
  position: relative;
  background:
    radial-gradient(120% 130% at 85% -10%, rgba(108,184,240,.42), transparent 55%),
    radial-gradient(90% 120% at 8% 120%, rgba(11,78,168,.30), transparent 60%),
    linear-gradient(160deg, var(--tw-primary), var(--blue-800) 90%);
  padding: 54px 44px 64px;
  color: #fff; overflow: hidden;
}
.app-hero::after {
  content: ""; position: absolute; right: -60px; top: -40px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.16);
}
.hero-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue-100); margin-bottom: 14px;
}
.hero-q {
  font-size: 34px; line-height: 1.08; letter-spacing: -0.03em;
  font-weight: 700; max-width: 19ch;
}
.hero-q .accent { color: #ffd9c9; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.78); margin-top: 14px; max-width: 46ch; }

/* greeting (usuario recurrente) */
.hero-greet { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.hero-greet .av {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
}
.hero-greet .gt { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero-greet .gs { font-size: 13px; color: rgba(255,255,255,.72); }

/* the searcher --------------------------------------------------- */
.searcher {
  margin-top: 30px; background: #fff; border-radius: 18px;
  box-shadow: var(--sh-lg); padding: 12px 12px 14px; color: var(--ink);
  position: relative; z-index: 2;
}
.search-verticals { display: flex; gap: 2px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line-soft); }
.search-verticals button {
  font-family: inherit; border: none; background: none; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--slate-500);
  padding: 8px 15px; border-radius: 9px; display: flex; align-items: center; gap: 8px;
  transition: background .15s, color .15s;
}
.search-verticals button svg { width: 16px; height: 16px; }
.search-verticals button.on { color: var(--tw-primary); background: var(--blue-50); }

.trip-types { display: flex; gap: 22px; padding: 16px 8px 4px; }
.trip-types label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--slate-500);
}
.trip-types label.on { color: var(--ink); }
.trip-types .rad {
  width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--slate-300);
  display: inline-block; position: relative;
}
.trip-types label.on .rad { border-color: var(--tw-primary); }
.trip-types label.on .rad::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--tw-primary);
}

/* field row */
.fields {
  display: grid; grid-template-columns: 1fr 1fr 1.15fr auto;
  gap: 10px; padding: 12px 8px 0; align-items: stretch; position: relative;
}
.field {
  border: 1.5px solid var(--line); border-radius: 13px;
  padding: 11px 16px; position: relative; background: #fff;
  transition: border-color .18s, box-shadow .18s;
  min-height: 64px; display: flex; flex-direction: column; justify-content: center;
}
.field:hover { border-color: var(--blue-200); }
.field.focus { border-color: var(--tw-primary); box-shadow: 0 0 0 4px var(--blue-50); }
.field .lab {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--slate-400); display: flex; align-items: center; gap: 6px; margin-bottom: 3px;
}
.field .lab svg { width: 13px; height: 13px; }
.field .val { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.field .sub { font-size: 12px; color: var(--slate-500); font-weight: 500; margin-top: 1px; }
.field.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.field.split > div { padding: 11px 16px; display: flex; flex-direction: column; justify-content: center; }
.field.split > div + div { border-left: 1.5px solid var(--line); }

.swap-btn {
  position: absolute; left: calc(50% / 4 * 2); top: 50%;
  transform: translate(-50%,-50%); z-index: 3;
}
.swap-circle {
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  border: 1.5px solid var(--line); box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--tw-primary); transition: transform .25s;
}
.swap-circle:hover { transform: rotate(180deg); border-color: var(--blue-200); }
.swap-circle svg { width: 16px; height: 16px; }

.search-cta {
  background: var(--tw-accent); color: #fff; border: none; cursor: pointer;
  border-radius: 13px; font-family: inherit; font-weight: 700; font-size: 16px;
  padding: 0 30px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 20px rgba(232,67,31,.32); transition: box-shadow .2s, transform .15s;
}
.search-cta:hover { box-shadow: 0 12px 28px rgba(232,67,31,.42); }
.search-cta:active { transform: translateY(1px); }
.search-cta svg { width: 18px; height: 18px; }

/* progressive disclosure: advanced row (hidden by default) */
.adv-row {
  display: grid; grid-template-columns: repeat(3, auto) 1fr;
  gap: 14px; align-items: center;
  padding: 0 8px; margin-top: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .42s cubic-bezier(.4,0,.2,1), opacity .3s, margin-top .3s;
}
.searcher.expanded .adv-row { max-height: 90px; opacity: 1; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.adv-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 14px;
  font-size: 13px; font-weight: 600; color: var(--slate-600); cursor: pointer; background: #fff;
}
.adv-chip:hover { border-color: var(--blue-200); }
.adv-chip svg { width: 15px; height: 15px; color: var(--tw-primary); }
.adv-chip .mini { font-size: 11px; color: var(--slate-400); font-weight: 500; }
.adv-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--slate-600); justify-self: end; }
.switch { width: 40px; height: 23px; border-radius: 999px; background: var(--slate-300); position: relative; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: left .2s; }
.switch.on { background: var(--tw-primary); }
.switch.on::after { left: 19.5px; }

/* disclosure hint chip below search */
.disclosure-hint {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  margin: 16px 8px 2px; font-size: 12.5px; font-weight: 600; color: var(--slate-500);
}
.disclosure-hint svg { width: 14px; height: 14px; transition: transform .3s; }
.searcher.expanded .disclosure-hint svg { transform: rotate(180deg); }
.disclosure-hint:hover { color: var(--tw-primary); }
