:root {
  --ink: #0F2539;
  --ink-2: #1B3550;
  --sun: #F0D05C;
  --sun-2: #F6E08A;
  --paper: #FFFFFF;
  --mist: #EEF2F6;
  --line: #D5DDE5;
  --edge: #7D90A4;
  --mute: #52667A;
  --pale: #B4C4D4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}
::selection { background: var(--sun); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.quote :focus-visible { outline-color: var(--sun); }

/* Encabezado y logo */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.logo { display: inline-flex; align-items: flex-start; text-decoration: none; color: var(--ink); }
.logo-mark { position: relative; width: 26px; height: 26px; margin: 2px 5px 0 0; flex: none; }
.logo-mark .dash { position: absolute; left: 0; bottom: 3px; width: 20px; height: 7px; border-radius: 4px; background: var(--sun); }
.logo-mark .dot { position: absolute; left: 17px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.logo-word { display: block; font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -0.04em; }
.logo-word small {
  display: block;
  margin-top: 4px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.46em;
  text-align: right;
  padding-right: 0;
}
.wa-link { font-size: 0.875rem; font-weight: 700; text-underline-offset: 4px; }

/* Estructura de la página */
.page { max-width: 1080px; margin: 0 auto; padding: 36px 20px 56px; }
.lead h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 1.5rem + 3vw, 3.3rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lead p { margin: 0; max-width: 32em; color: var(--mute); }
.work { margin-top: 30px; }

/* Campos: solo una línea inferior */
.field { position: relative; margin: 0 0 16px; }
.field label { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--mute); }
.field input, .field select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.5rem 0;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background-color: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--edge);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #8396A9; font-weight: 500; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.field select {
  padding-right: 1.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230F2539' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
}
.field input[type="date"] { min-height: 46px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.row2 .field[hidden] { display: none; }

.swap {
  position: absolute;
  right: 0;
  top: -3px;
  padding: 4px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Tipo de viaje: la marca amarilla del logo indica la opción activa */
.trip { display: flex; gap: 28px; margin: 0 0 20px; }
.trip button {
  position: relative;
  padding: 6px 0 12px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--mute);
  cursor: pointer;
}
.trip button[aria-pressed="true"] { color: var(--ink); }
.trip button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  border-radius: 3px;
  background: var(--sun);
}

/* Lista de sugerencias */
.opts {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  max-height: 264px;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 37, 57, 0.14);
}
.opts[hidden] { display: none; }
.opts li { display: flex; align-items: baseline; gap: 10px; padding: 11px 14px; cursor: pointer; }
.opts li span { flex: 1; font-weight: 600; }
.opts li strong { font-weight: 800; }
.opts li small { color: var(--mute); font-size: 0.8125rem; }
.opts li.on { background: var(--mist); }

/* Botones: píldora, como la marca amarilla del logo */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink-2); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sun:hover { background: var(--sun-2); }

.err { min-height: 1.3em; margin: 0 0 10px; color: #B3261E; font-size: 0.875rem; font-weight: 600; }

/* Cotización */
.quote { margin-top: 34px; padding: 28px 24px 26px; background: var(--ink); color: #fff; }
.quote[hidden] { display: none; }
.q-kind { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--pale); }
.path { display: flex; align-items: center; gap: 14px; margin: 14px 0 8px; }
.path .code { font-size: 2.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.path .line { position: relative; flex: 1; height: 10px; }
.path .dash { position: absolute; left: 0; right: 12px; top: 2px; height: 6px; border-radius: 3px; background: var(--sun); transform-origin: left center; }
.path .dot { position: absolute; right: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.quote:not([hidden]) .path .dash { animation: draw 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.quote:not([hidden]) .path .dot { animation: show 0.2s 0.7s both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
.q-cities { margin: 0; font-size: 0.875rem; color: var(--pale); }
.q-price { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 0; line-height: 1; }
.q-price small { font-size: 1rem; font-weight: 600; color: var(--pale); }
.q-price strong { font-size: clamp(2.8rem, 11vw, 3.7rem); font-weight: 800; letter-spacing: -0.04em; }
.q-ars { margin: 10px 0 0; color: #D6E0EA; font-size: 0.9375rem; }
.q-note { margin: 16px 0 0; max-width: 36em; color: var(--pale); font-size: 0.875rem; }

.lead-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid #2C4560; }
.lead-form h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.lead-form > p { margin: 0 0 24px; color: var(--pale); font-size: 0.9375rem; }
.quote .field label { color: var(--pale); }
.quote .field input { color: #fff; border-bottom-color: #6F86A0; }
.quote .field input::placeholder { color: #7F96AE; }
.quote .field input:focus { border-bottom-color: #fff; box-shadow: 0 1.5px 0 #fff; }
.quote .err { color: #FFC2B8; }
.lead-form .alt { margin: 14px 0 0; text-align: center; font-size: 0.875rem; }
.lead-form .alt a { text-underline-offset: 4px; }
.lead-form .ok { margin: 12px 0 0; color: #fff; font-size: 0.9375rem; font-weight: 600; }
.lead-form .ok:empty { display: none; }
.lead-form .privacy { margin: 14px 0 0; color: var(--pale); font-size: 0.8125rem; }

/* Rutas frecuentes */
.routes { margin-top: 52px; }
.routes h2, .pay h2 { margin: 0 0 6px; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.fine { margin: 0; max-width: 40em; color: var(--mute); font-size: 0.875rem; }
.routes h3 { margin: 26px 0 0; font-size: 0.9375rem; font-weight: 800; }
.routes ul { margin: 4px 0 0; padding: 0; list-style: none; }
.routes li { border-bottom: 1px solid var(--line); }
.routes li button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 16px;
  width: 100%;
  padding: 15px 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.r-name { font-weight: 700; }
.r-price { font-weight: 800; text-align: right; }
.r-price small { margin-right: 5px; font-size: 0.8125rem; font-weight: 600; color: var(--mute); }
.r-note { grid-column: 1; font-size: 0.8125rem; font-weight: 500; color: var(--mute); }
.r-note:empty { display: none; }
.routes li button:hover .r-name { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.pay { margin-top: 44px; }
.pay p { margin: 0; max-width: 34em; color: var(--mute); }

.foot { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 44px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.8125rem; }
.foot p { margin: 0 0 8px; max-width: 52em; }

/* Pantallas grandes: rutas a la izquierda, formulario y cotización a la derecha */
@media (min-width: 920px) {
  .top { padding: 30px 56px 0; }
  .foot { width: min(968px, calc(100% - 112px)); padding: 28px 0 56px; }
  .page {
    padding: 64px 56px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-rows: auto auto 1fr;
    column-gap: 96px;
    grid-template-areas: "lead work" "routes work" "pay work";
    align-items: start;
  }
  .lead { grid-area: lead; }
  .work { grid-area: work; margin-top: 8px; }
  .routes { grid-area: routes; margin-top: 52px; }
  .pay { grid-area: pay; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* PAVANA TRAVEL - Solo ajuste de identidad visual del cotizador */
:root {
 --ink: #112c42;
 --ink-2: #233e54;
 --sun: #ef803b;
 --sun-2: #ffa466;
 --paper: #ffffff;
 --mist: #f4f7f9;
 --line: #dce5eb;
 --edge: #8496a5;
 --mute: #506779;
 --pale: #c4d3de;
}
html { background: #0f1a2a; }
body { background: #0f1a2a; color: var(--ink); }
::selection { background: #ef803b; color: #112c42; }
:focus-visible { outline-color: #ef803b; }
.top { max-width: 1080px; padding-top: 28px; padding-bottom: 18px; }
.logo { align-items:center; min-height: 58px; }
.logo img { display:block; width:184px; max-width:100%; height:auto; object-fit:contain; }
.wa-link { color:#ffffff; text-decoration-color:#ef803b; text-underline-offset:5px; }
.wa-link:hover { color:#ffa466; }
.page { background:#ffffff; border-radius:14px; box-shadow:0 22px 58px rgba(0,0,0,.16); overflow:visible; }
.lead h1 { color:#112c42; }
.lead p,.fine,.pay p { color:#506779; }
.trip button[aria-pressed='true']::after { background:#ef803b; }
.swap:hover,.routes li button:hover { color:#e9732b; }
.btn { background:#112c42; }
.btn:hover { background:#233e54; }
.btn.sun { background:#ef803b; color:#112c42; }
.btn.sun:hover { background:#ffa466; }
.quote { background:#112c42; border-top:4px solid #ef803b; border-radius:10px; }
.path .dash { background:#ef803b; }
.quote .field input:focus { border-bottom-color:#ef803b; box-shadow:0 1.5px 0 #ef803b; }
.routes li button:hover .r-name { text-decoration-color:#ef803b; }
.foot { border-top:1px solid rgba(255,255,255,.15); color:#b7c8d5; }
.foot a { color:#ffffff; }
.foot a:hover { color:#ffa466; }
@media (min-width: 920px) {
 .top { padding-top:30px; padding-bottom:22px; }
 .page { margin-top:10px; margin-bottom:36px; }
}
@media (max-width: 919px) {
 .top { padding:18px 18px 12px; }
 .page { width:calc(100% - 24px); margin:8px 12px 24px; padding:30px 24px 46px; }
 .foot { width:calc(100% - 38px); padding-bottom:32px; }
}
@media (max-width: 540px) {
 .top { gap:8px; }
 .logo img { width:146px; }
 .wa-link { font-size:.72rem; max-width:125px; text-align:right; }
 .page { padding:25px 18px 38px; border-radius:10px; }
 .row2 { grid-template-columns:minmax(0,1fr); gap:0; }
 .trip { gap:22px; }
 .quote { padding:23px 17px; }
 .q-price strong { font-size:clamp(2.2rem,10vw,3.5rem); }
}

/* Pavana Travel - cabecera unificada del cotizador (v2) */
.top {
 display:grid;
 grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 align-items:center;
 gap:14px;
 padding-top:22px;
 padding-bottom:19px;
}
.back-link {
 justify-self:start;
 display:inline-flex;
 align-items:center;
 gap:8px;
 padding:9px 13px;
 border:1px solid rgba(255,255,255,.21);
 border-radius:999px;
 background:rgba(255,255,255,.065);
 color:#f1f5f8;
 font:700 .78rem/1.25 'Manrope',Arial,sans-serif;
 text-decoration:none;
 white-space:nowrap;
 transition:background .2s,border-color .2s,transform .2s;
}
.back-link span:first-child { color:#ef803b; font-size:1.13rem; line-height:1; }
.back-link:hover { background:rgba(239,128,59,.13); border-color:#ef803b; transform:translateX(-2px); }
.back-link:focus-visible { outline:2px solid #ef803b; outline-offset:3px; }
.top .logo { justify-self:center; min-height:0; }
.top .logo img { width:166px; max-width:100%; height:auto; }
.top .wa-link { justify-self:end; text-align:right; white-space:nowrap; font-size:.8rem; }
.wa-compact { display:none; }
@media (max-width:919px) {
 .top { gap:9px; padding:17px 18px 13px; }
 .top .logo img { width:142px; }
 .top .wa-link { font-size:.72rem; }
}
@media (max-width:540px) {
 .top { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:6px; padding:13px 12px 14px; }
 .top .logo img { width:clamp(106px,29vw,128px); }
 .back-link { padding:8px 10px; gap:5px; font-size:.72rem; }
 .top .wa-link { font-size:.72rem; max-width:none; white-space:nowrap; }
 .wa-full { display:none; }
 .wa-compact { display:inline; }
}
@media (max-width:350px) {
 .top .logo img { width:102px; }
 .back-link { padding:7px 8px; font-size:.69rem; }
 .top .wa-link { font-size:.68rem; }
}
@media (prefers-reduced-motion:reduce) { .back-link { transition:none; } }
