:root {
  --azul: #2C5EAD;
  --azul-medio: #1591DC;
  --celeste: #4BB8FA;
  --celeste-claro: #C4E2F5;
  --texto: #1d2633;
  --gris: #5b6675;
  --borde: #e3e8ef;
  --suave: #f4f8fc;
  --verde-wa: #25D366;
  --radio: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* que .field, .result, etc. no le ganen al atributo hidden */
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Raleway", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* HEADER */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--borde); }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 28px; color: var(--azul); text-decoration: none; }
.logo-w { color: #fff; }
.nav { display: flex; gap: 22px; margin: 0 auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--texto); }
.nav a:hover { color: var(--azul-medio); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.pill { border: 1.5px solid var(--azul); color: var(--azul); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 14px "Open Sans", sans-serif; cursor: pointer; }
.lang { position: relative; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 150px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; box-shadow: 0 10px 30px rgba(10,30,70,.15); z-index: 70; animation: aparecer .15s ease-out; }
.lang-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font: 600 14px "Open Sans", sans-serif; color: var(--texto); cursor: pointer; }
.lang-menu button:hover { background: var(--suave); }
.lang-menu button.on { color: var(--azul-medio); }
.btn-wa { background: var(--verde-wa); color: #fff; text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--azul); cursor: pointer; }

/* HERO */
.hero { background: var(--azul); color: #fff; padding: 56px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.badge { display: inline-block; background: var(--azul-medio); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.cnt { font-variant-numeric: tabular-nums; }   /* que el texto no salte mientras cuenta */
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--celeste-claro); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--celeste); font-weight: 800; }
.stats { display: flex; gap: 32px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: "Raleway", sans-serif; font-size: 30px; font-weight: 800; }
.stats strong small { font-size: 18px; font-weight: 700; color: var(--celeste-claro); margin-left: 2px; }
.stats > div > span { color: var(--celeste-claro); font-size: 14px; }

/* COTIZADOR */
.quote { background: #fff; color: var(--texto); border-radius: var(--radio); padding: 28px; box-shadow: 0 20px 50px rgba(10, 30, 70, .25); }
.quote h2 { font-size: 22px; color: var(--azul); }
.dir { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--suave); border: 1.5px solid var(--borde); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.dir-btn { border: 0; background: none; padding: 10px 8px; border-radius: 8px; font: 600 14px "Open Sans", sans-serif; color: #8a94a3; cursor: pointer; transition: background .2s ease-out, color .2s ease-out, box-shadow .2s ease-out; }
.dir-btn:hover:not(.on) { color: var(--azul); background: rgba(21,145,220,.08); }
.dir-btn.on { background: var(--azul-medio); color: #fff; box-shadow: 0 2px 8px rgba(21,145,220,.35); }
.dir-btn.on::before { content: "✓ "; font-weight: 800; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field small { display: block; color: var(--gris); font-size: 12.5px; margin-top: 4px; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--borde); border-radius: 10px; font: 15px "Open Sans", sans-serif; background: #fff; color: var(--texto); }
.field input:focus, .field select:focus { outline: none; border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(75,184,250,.2); }
.check { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--azul-medio); cursor: pointer; }
#backField:not([hidden]) { animation: aparecer .2s ease-out; }
.res-legs { list-style: none; padding: 0; margin: 4px 0 0; font-size: 14px; color: var(--gris); }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.btn-primary { display: inline-block; width: 100%; background: var(--azul-medio); color: #fff; border: 0; border-radius: 10px; padding: 13px 20px; font: 700 16px "Open Sans", sans-serif; cursor: pointer; text-align: center; text-decoration: none; transition: background .2s ease-out, transform .15s ease-out; }
.btn-primary:hover { background: var(--azul); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: wait; }

.result { margin-top: 16px; border: 1.5px solid var(--celeste-claro); background: var(--suave); border-radius: 12px; padding: 18px; animation: aparecer .25s ease-out; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.res-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.res-price { font-family: "Raleway", sans-serif; font-size: 34px; font-weight: 800; color: var(--azul); }
.res-alt { color: var(--gris); font-size: 14px; }
.res-veh { display: inline-block; background: var(--celeste-claro); color: var(--azul); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin: 8px 0 14px; }
/* Avisos del cotizador: alerta en ROJO (pedido 04-10-2026) */
.res-err { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; background: #FDECEC; border: 1px solid #F3A6A6; border-radius: 10px; color: #A21C1C; font-weight: 600; line-height: 1.45; }
.res-err::before { content: "⚠️"; flex: none; }
.btn-wa-full { display: block; text-align: center; background: var(--verde-wa); color: #fff; text-decoration: none; font-weight: 700; padding: 12px; border-radius: 10px; }
/* Reserva desde la web (05-10-2026) */
.book { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--celeste-claro); animation: aparecer .2s ease-out; }
.book-title { font-family: "Raleway", sans-serif; font-weight: 800; font-size: 18px; color: var(--azul); margin: 0 0 12px; }
.tel { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.book-note { display: block; color: var(--gris); font-size: 12.5px; margin: 8px 0 12px; text-align: center; }
.book-wa { display: block; text-align: center; color: var(--azul-medio); font-weight: 600; font-size: 14px; }
.res-ok { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; background: #E8F7EE; border: 1px solid #9BD9B4; border-radius: 10px; color: #17663A; font-weight: 600; line-height: 1.45; }
.res-ok::before { content: "✅"; flex: none; }
.res-warn { margin: 0 0 14px; padding: 12px 14px; background: #FFF6E0; border: 1px solid #F2C46B; border-radius: 10px; color: #6B4A00; line-height: 1.5; }
#goPay { display: block; text-align: center; text-decoration: none; }

/* SECCIONES */
.sec { padding: 72px 0; }
.sec-soft { background: var(--suave); }
.sec-blue { background: var(--azul); color: #fff; }
.sec-title { font-size: clamp(26px, 3vw, 34px); color: var(--azul); text-align: center; margin-bottom: 36px; }
.sec-blue .sec-title { color: #fff; }
.sec-sub { text-align: center; color: var(--gris); margin: -24px 0 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.route { display: block; position: relative; color: inherit; text-decoration: none; cursor: pointer; }
.route::after { content: "→"; position: absolute; right: 20px; bottom: 22px; color: var(--azul-medio); font-weight: 700; transition: transform .2s ease-out; }
.route:hover::after { transform: translateX(3px); }
.route { border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; transition: border-color .2s ease-out, transform .2s ease-out; }
.route:hover { border-color: var(--celeste); transform: translateY(-2px); }
.route h3 { color: var(--azul); font-size: 18px; }
.route p { color: var(--gris); font-size: 14px; margin: 0 0 14px; }
.price { font-weight: 700; color: var(--azul-medio); }
.route .price { font-size: 20px; }
.route .price small { display: block; font-size: 12.5px; font-weight: 600; color: var(--gris); }

.step { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 26px; }
.step .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--azul-medio); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { color: var(--gris); margin: 0; }

.tour { background: rgba(255,255,255,.08); border: 1px solid rgba(196,226,245,.3); border-radius: var(--radio); padding: 22px; }
.tour h3 { font-size: 18px; }
.tour p { color: var(--celeste-claro); font-size: 14px; }
.tour .price { color: var(--celeste); }
.tour-meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: #fff; }
.tour-meta li { display: flex; align-items: center; gap: 6px; }
.tour-meta svg { width: 16px; height: 16px; fill: none; stroke: var(--celeste); stroke-width: 2; stroke-linecap: round; }
.tour .price { font-size: 18px; }
.tour .price small { font-size: 13px; font-weight: 600; color: var(--celeste-claro); }
/* Tarjeta "Más opciones": centrada, borde punteado, sin precio */
.tour-more { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; color: #fff; text-decoration: none; background: transparent; border: 1.5px dashed rgba(196,226,245,.5); transition: background .2s ease-out, border-color .2s ease-out; }
.tour-more:hover { background: rgba(255,255,255,.1); border-color: var(--celeste); border-style: solid; }
.tour-more h3 { margin: 10px 0 2px; }
.tour-more p { margin: 0; }
.tour-more-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--celeste); transition: background .2s ease-out, transform .2s ease-out; }
.tour-more-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--celeste); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease-out; }
.tour-more:hover .tour-more-icon { background: var(--celeste); transform: translateX(3px); }
.tour-more:hover .tour-more-icon svg { stroke: var(--azul); }
.tour-link { display: block; position: relative; color: #fff; text-decoration: none; transition: background .2s ease-out, border-color .2s ease-out, transform .2s ease-out; }
.tour-link:hover { background: rgba(255,255,255,.14); border-color: var(--celeste); transform: translateY(-2px); }
.tour-go { position: absolute; right: 20px; bottom: 20px; color: var(--celeste); font-weight: 700; transition: transform .2s ease-out; }
.tour-link:hover .tour-go { transform: translateX(3px); }

.review { border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px; display: flex; flex-direction: column; }
.stars { color: var(--azul-medio); letter-spacing: 2px; margin-bottom: 10px; }
.rev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--celeste-claro); }
.rev-initial { display: grid; place-items: center; color: var(--azul); font: 700 18px "Raleway", sans-serif; }
.rev-name { display: block; font-weight: 600; color: var(--texto); text-decoration: none; line-height: 1.3; }
a.rev-name:hover { color: var(--azul-medio); }
.rev-when { display: block; color: var(--gris); font-size: 13px; }
.review .stars { margin-bottom: 8px; }
#reviews { align-items: start; }   /* abrir una reseña no estira las otras */
.review.open .review-text { -webkit-line-clamp: unset; overflow: visible; }
.rev-more { align-self: flex-start; background: none; border: 0; padding: 0; margin: -4px 0 14px; color: var(--azul-medio); font: 600 14px "Open Sans", sans-serif; cursor: pointer; }
.rev-more:hover { text-decoration: underline; }
.rev-src { color: var(--gris); font-size: 13px; margin-top: auto; }
.review-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; }
.who { color: var(--gris); font-size: 14px; margin-top: auto; }

.also { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.also-lbl { color: var(--gris); font-size: 14px; }
.also-card { width: 100%; max-width: 320px; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; background: #fff; padding: 6px 14px 0; }
.also-card iframe { display: block; width: 100%; height: 96px; border: 0; pointer-events: none; }   /* sólo se ve la nota: no lleva a Civitatis */
.also-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
.also-row .also-card { flex: 1 1 280px; }
.also-logo { display: grid; place-items: center; padding: 0 24px; min-height: 102px; }
.also-logo img { width: 180px; max-width: 100%; height: auto; }

details { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; color: var(--azul-medio); transition: transform .2s ease-out; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--gris); }

.cta { background: var(--azul); color: #fff; padding: 64px 0; text-align: center; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { width: auto; padding: 13px 28px; }
.btn-ghost { border: 1.5px solid var(--celeste-claro); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.footer { background: #173a70; color: var(--celeste-claro); padding: 48px 0; font-size: 14px; }
.footer h4 { color: #fff; font-size: 15px; }
.footer a, .footer span { display: block; text-decoration: none; margin-bottom: 6px; }
.footer a:hover { color: #fff; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--verde-wa); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 60; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--borde); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--borde); }
  .menu-btn { display: block; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  /* En el celular queda el idioma (el turista lo necesita); WhatsApp sigue en el botón flotante */
  .header-tools .btn-wa { display: none; }
  .header-tools { gap: 6px; }
  .pill { padding: 5px 10px; font-size: 13px; }
  .logo { font-size: 24px; }
  .quote { padding: 20px; }
  .stats { gap: 22px; }
  .sec { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.turnstile:empty { display: none; }
.turnstile { margin: 4px 0 14px; }

/* Selector de terminal con íconos (avión / barco) */
.picker { position: relative; }
.picker-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--borde); border-radius: 10px; background: #fff; color: var(--texto); font: 15px "Open Sans", sans-serif; text-align: left; cursor: pointer; }
.picker-btn:focus-visible, .picker-btn[aria-expanded="true"] { outline: none; border-color: var(--celeste); box-shadow: 0 0 0 3px rgba(75,184,250,.2); }
.picker-btn span { flex: 1; min-width: 0; }
.picker svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #8a94a3; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.picker .chev { width: 18px; height: 18px; stroke: var(--gris); transition: transform .2s ease-out; }
.picker-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.picker-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--borde); border-radius: 12px; box-shadow: 0 12px 32px rgba(10,30,70,.18); max-height: 280px; overflow-y: auto; outline: none; animation: aparecer .15s ease-out; }
.picker-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--texto); }
.picker-list li:hover, .picker-list li.act { background: var(--suave); }
.picker-list li.on { color: var(--azul); font-weight: 600; }
.picker-list li.on svg { stroke: var(--azul-medio); }

/* Origen siempre arriba: con "Hacia el aeropuerto" la dirección (origen) sube y la terminal (destino) baja */
.route-fields { display: flex; flex-direction: column; }
.route-fields.to { flex-direction: column-reverse; }
#flight { text-transform: uppercase; letter-spacing: .5px; }
#flight::placeholder { text-transform: none; letter-spacing: 0; }

/* Autocompletado de direcciones: misma lista que el selector de terminal */
.ac { position: relative; }
.ac-list li svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #8a94a3; stroke-width: 1.6; }
.ac-list li span { line-height: 1.35; }
.ac-list li.ac-google { justify-content: flex-end; padding: 6px 12px 4px; font-size: 11.5px; color: var(--gris); cursor: default; }
.ac-list li.ac-google:hover { background: none; }

/* Pasajeros y valijas: dos columnas iguales (también en el celular, entran bien) */
.row2.row2-eq { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row2.row2-eq { grid-template-columns: 1fr 1fr; } }

/* Fecha con menos de 12 horas de anticipación: el campo en rojo */
.field input.bad { border-color: #D93636; color: #A21C1C; background: #FDECEC; }
.field input.bad:focus { box-shadow: 0 0 0 3px rgba(217,54,54,.2); }
