/* =============================================================
   Panama VIP Transfers — mobile first.
   Colores del logo (provisorio): sol naranja, negro, crema de la Hiace.
   ============================================================= */
:root {
  --sun: #F29A18;        /* sol del logo — fondos y acentos, SIEMPRE con texto --ink encima */
  --sun-deep: #B45309;   /* mismo tono que el widget de TripManager */
  --ink: #1C1C1C;
  --sand: #EDEBE0;       /* crema de la Hiace del logo */
  --paper: #FFFFFF;
  --muted: #5E5A52;
  --line: #DDD8CA;
  --wa: #25D366;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 18px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
/* :not([class*="tm-"]) → los títulos del widget de TripManager conservan su propio estilo */
h1, h2:not([class*="tm-"]), h3:not([class*="tm-"]) { font-family: var(--display); font-weight: 800; font-stretch: 125%; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
h2:not([class*="tm-"]) { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h3:not([class*="tm-"]) { font-size: 1.15rem; letter-spacing: -0.01em; }
:where(main, footer) p:where(:not([class*="tm-"])) { margin: 0; }  /* especificidad 0: no pisa .lead ni .hero__sub */
.route__line, .fleet, .private__list, .dest, .strip { margin: 0; padding: 0; list-style: none; }  /* las reglas propias de cada una van más abajo y ganan */
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; }
.lead { color: var(--muted); margin-top: 10px; max-width: 34em; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--sun  { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #F5A938; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--ink  { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #333; }
.btn--block { width: 100%; }

/* ── Header ─────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 64px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span { font: 800 0.95rem/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; }
.brand b { color: var(--sun-deep); }

.menu-btn {
  width: 48px; height: 48px; border: 0; background: none; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
}
.menu-btn i, .menu-btn i::before, .menu-btn i::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease; content: '';
}
.menu-btn i { position: relative; }
.menu-btn i::before { position: absolute; top: -7px; }
.menu-btn i::after  { position: absolute; top: 7px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after  { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: 64px 0 auto 0;
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
}
.nav.is-open { display: flex; }
.nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav__cta { margin-top: 10px; }

/* Botón "Book a seat" del encabezado en celular */
.top__book { min-height: 40px; padding: 0 16px; font-size: .9rem; margin-left: auto; margin-right: 6px; }
@media (max-width: 429px) { .top .brand span { display: none; } }  /* en pantallas angostas queda el logo solo */

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding-top: 28px; overflow: hidden; }
.hero__grid { display: grid; gap: 28px; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun-deep);
}
.hero h1 { font-size: clamp(2.35rem, 10.5vw, 4.6rem); margin-top: 12px; max-width: 11ch; }
.hero__sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; max-width: 30em; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* El sol del logo con la Hiace adelante */
.hero__art { position: relative; width: min(86vw, 440px); aspect-ratio: 1 / .9; margin: 0 auto; }
.sun {
  position: absolute; inset: -4% -10% 10% 12%;
  border-radius: 50%; background: var(--sun);
}
.hero__van {
  position: relative; width: 86%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 6px solid var(--paper);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,.45);
}

/* Línea de ruta: las paradas reales de los compartidos */
.route { margin-top: 28px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.route::-webkit-scrollbar { display: none; }
.route__line { display: flex; gap: 0; padding-top: 22px; padding-bottom: 26px; min-width: max-content; }
.route__line li {
  position: relative; padding: 18px 26px 0 0;
  font: 800 .78rem/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap;
}
.route__line li::before {      /* tramo de ruta */
  content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 3px; background: var(--ink);
}
.route__line li:last-child::before { right: auto; width: 12px; }
.route__line li::after {       /* parada */
  content: ''; position: absolute; top: 0; left: 0; width: 13px; height: 13px;
  border-radius: 50%; background: var(--sun); border: 3px solid var(--ink);
}

/* ── Secciones ─────────────────────────────────────────── */
.band { padding: 64px 0; }
.band--tight { padding-bottom: 48px; }
.band--sand { background: var(--sand); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .lead { color: #BDB8AC; }

.widget-slot { margin-top: 26px; min-height: 420px; }

/* Reservar: foto de un viaje compartido real + widget */
.book__media { display: block; margin-top: 22px; }
.book__photo { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; }

/* Flota: carrusel en celular, 3 columnas en escritorio */
.fleet {
  display: flex; gap: 14px; margin: 26px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.fleet::-webkit-scrollbar { display: none; }
.car {
  flex: 0 0 84%; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper);
  display: flex; flex-direction: column;
}
.car img { aspect-ratio: 4 / 3; object-fit: cover; }
.car__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car__cap { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; flex: 1; }
.car__cap .ico { color: var(--sun-deep); }

/* Privados */
.private { display: grid; gap: 26px; }
.private h2 { color: var(--paper); }
.private__list li {
  position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid #3A3A3A; font-size: 1.05rem;
}
.private__list li::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--sun);
}
.private .btn { justify-self: start; }

/* Destinos */
.dest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.dest__card { position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.dest__card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
/* Tarjeta ancha: 2 columnas con proporción 8:5 → mismo alto exacto que una fila de tarjetas 4:5 */
.dest__card--wide { grid-column: span 2; }
.dest__card--wide img { aspect-ratio: 8 / 5; height: 100%; }
.dest__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: var(--paper); display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.dest__cap h3 { font-size: 1rem; }
.tag {
  font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--sun); color: var(--ink);
}
.tag--private { background: var(--paper); }

/* Pasajeros */
.strip {
  display: flex; gap: 12px; margin-top: 22px; padding: 0 var(--gutter) 6px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 62%; scroll-snap-align: start; }
.strip img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* FAQ */
.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: 16px 40px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 800 1.5rem/1 var(--display); color: var(--sun-deep); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ── Páginas de ruta ─────────────────────────────────────── */
.rhero { padding: 26px 0 48px; }
.rhero__grid { display: grid; gap: 28px; }
.rhero h1 { font-size: clamp(2rem, 8.5vw, 3.6rem); margin-top: 10px; max-width: 14ch; }
.rhero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--sun-deep); font-weight: 600; text-decoration: none; }

/* Datos rápidos: precio · duración · recogida */
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li {
  display: flex; align-items: baseline; gap: 6px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; font-size: .95rem;
}
.facts li span { color: var(--muted); font-size: .8rem; }
.facts li b { font-weight: 600; }

/* Horarios compartidos (vienen de TripManager) */
.times { background: var(--paper); border-radius: var(--r); padding: 20px; align-self: start; }
.book .times { margin-top: 22px; }
.times__h { font-size: 1rem; }
.times__leg { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.times__route { font-weight: 600; }
.times__route span { color: var(--sun-deep); }
.times ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.times li { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; background: var(--sand); border-radius: 10px; }
.times li b { font: 800 1.05rem/1 var(--display); font-stretch: 125%; }
.times li span { color: var(--muted); font-size: .85rem; }
.times li span::before { content: '→ '; }

/* Flota compacta (privado en la ruta) */
.minifleet { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.minifleet li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  background: var(--paper); color: var(--ink); border-radius: var(--r); padding: 10px; }
.minifleet img { width: 112px; height: 100%; min-height: 96px; object-fit: cover; border-radius: 12px; }
.minifleet div { display: flex; flex-direction: column; gap: 6px; }
.minifleet p { color: var(--muted); font-size: .9rem; }
.minifleet .btn { min-height: 44px; font-size: .92rem; }
.band--sand .minifleet li { border: 1px solid var(--line); }

.lead--dark { color: var(--ink); margin-bottom: 20px; }

/* Otras rutas */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none;
}
.chips a:hover { background: var(--ink); color: var(--paper); }

/* Tarjeta de destino entera como link */
.dest__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--r); }
.dest__card img { transition: transform .4s ease; }
.dest__card:hover img { transform: scale(1.04); }

/* ── Página de traslados privados ────────────────────────── */
.ways { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.ways li { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ways li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); }
.ways p { color: var(--muted); }
.ways__link { color: var(--sun-deep); font-weight: 600; text-decoration: none; margin-top: auto; }

.route--dark { border-top-color: #3A3A3A; margin: 26px 0 30px; }
.route--dark .route__line li { color: var(--paper); }
.route--dark .route__line li::before { background: var(--paper); }
.route--dark .route__line li::after { border-color: var(--paper); }

/* Pasos: es una secuencia real, por eso numerados */
.steps { display: grid; gap: 22px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.steps li { counter-increment: paso; position: relative; padding-left: 58px; }
.steps li::before {
  content: counter(paso); position: absolute; left: 0; top: -4px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); font: 800 1.1rem/1 var(--display); font-stretch: 125%;
}
.steps p { color: var(--muted); margin-top: 6px; }

.private__ctas { display: flex; flex-direction: column; gap: 12px; }
.private__ctas .btn { justify-self: start; }
.btn--line-light { border-color: var(--paper); color: var(--paper); }
.btn--line-light:hover { background: var(--paper); color: var(--ink); }

/* ── Contacto y 404 ─────────────────────────────────────── */
.btn--wa { background: var(--wa); color: #0B3B1E; }
.btn--wa:hover { background: #3BE07A; }
.contact { margin: 34px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact dt { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-deep); }
.contact dd { margin: 0; font-size: 1.05rem; }
.contact a { font-weight: 600; }
.rhero--404 { padding: 64px 0 96px; }

/* Footer */
.foot { background: var(--ink); color: #D8D3C7; padding: 48px 0 96px; }
.foot__grid { display: grid; gap: 28px; }
.foot p { margin-top: 12px; }
.foot a { color: var(--paper); }
.brand--light span { color: var(--paper); }
.brand--light b { color: var(--sun); }
.brand--light img { background: var(--paper); border-radius: 50%; }
.foot .foot__h { font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.foot__list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot__list a { color: #D8D3C7; text-decoration: none; }
.foot__list a:hover { color: var(--paper); text-decoration: underline; }
.foot__copy { margin-top: 36px; font-size: .85rem; color: #8F8A7F; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float .ico { width: 30px; height: 30px; }

/* ── Tablet 768 ────────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .band { padding: 88px 0; }
  .hero__ctas { flex-direction: row; }
  .fleet { overflow: visible; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .dest { grid-template-columns: repeat(4, 1fr); gap: 16px; }  /* 1 ancha + 6 = 2 filas completas */
  /* La ancha comparte fila: toma el alto que marcan las tarjetas 4:5 de al lado (el gap la haría 10px más alta) */
  .dest__card--wide { position: relative; }
  .dest__card--wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .strip li { flex-basis: 32%; }
  .route__line li { padding-right: 56px; font-size: .85rem; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .rhero__grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .rhero__img { aspect-ratio: 4 / 3; }
  .minifleet { grid-template-columns: repeat(3, 1fr); }
  .minifleet li { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .minifleet img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .minifleet div { padding: 0 16px 16px; }
  .private { grid-template-columns: 1fr 1fr; align-items: start; column-gap: 56px; }
  .private .btn { grid-column: 1; }
  .private__ctas { grid-column: 1; flex-direction: row; flex-wrap: wrap; }
  .ways { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ── Escritorio 1024 ───────────────────────────────────── */
@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .hero__art { width: 100%; max-width: 480px; }
  /* Pasajeros: en escritorio deja de ser carrusel → grilla 4×2 dentro del mismo ancho que el resto */
  .strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    max-width: 1180px; margin: 26px auto 0; padding: 0 var(--gutter); overflow: visible;
  }
  .route__line { justify-content: space-between; }
  .route__line li { padding-right: 0; flex: 1; }

  /* Reservar: título arriba; abajo foto | widget con el MISMO alto.
     La foto sale del flujo (absolute) y se estira a la fila, que la define el widget:
     si el widget crece al pasar de pantalla, la foto crece con él. */
  .book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); column-gap: 40px; }
  .book__head { grid-column: 1 / -1; margin-bottom: 30px; }
  .book__media { position: relative; margin: 0 0 36px; min-height: 360px; }  /* 36px = pastilla "Powered by" bajo la tarjeta del widget */
  .book__photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .book .widget-slot { margin-top: 0; min-height: 0; }
  .book .times { margin-top: 0; }
}

/* ── Menú completo 1280 (mide ~1220px con la barra de scroll): con los botones en español ("Cotizar traslado privado",
   "Reservar asiento compartido") no entra antes; hasta acá queda hamburguesa + "Reservar" ── */
@media (min-width: 1280px) {
  .menu-btn { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 22px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav > * { flex: none; white-space: nowrap; }  /* ningún ítem se parte en 2 líneas: espacios parejos */
  .nav a:not(.btn) { min-height: 0; border: 0; font-size: .95rem; }
  .nav a:not(.btn):hover { color: var(--sun-deep); }
  .nav__cta { margin: 0; min-height: 44px; }
  .top__book { display: none; }
}

/* Entrada del sol: un solo movimiento, al cargar */
@media (prefers-reduced-motion: no-preference) {
  .sun { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { transform: translateY(18%); opacity: 0; } }
}
