:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface: #ffffff;
  --border: #e2e6ea;
  --text: #1a2942;
  --text-muted: #5b6b82;
  --navy: #1a2942;
  --navy-dark: #101a2c;
  --accent: #ff6b35;
  --accent-dark: #e8551f;
  --on-accent-text: #ffffff;
  --danger: #d92d20;
  --success: #1a9c6b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--accent-dark);
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px calc(100px + env(safe-area-inset-bottom, 0px));
}

.accent {
  color: var(--accent);
}

/* --- Header de navegación (sticky, en todas las páginas) --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.site-header-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.site-header-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.site-header-nav {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 16px 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.site-header-nav.open {
  max-height: 480px;
}

.site-header-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

.site-header-nav a:last-of-type {
  border-bottom: none;
}

/* Reservar: botón sólido, deliberadamente distinto de los demás enlaces
   (texto plano) para que destaque como acción principal. */
.site-header-cta {
  background: var(--accent) !important;
  color: #ffffff !important;
  text-align: center;
  border-radius: 999px !important;
  padding: 12px 4px !important;
  font-weight: 700 !important;
  margin-top: 6px;
  border-bottom: none !important;
}

.site-header-cta:hover {
  background: var(--accent-dark) !important;
}

.site-header-lang {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: default;
}

/* --- Desplegable "Transfers" ---
   Base (móvil): acordeón dentro del propio menú hamburguesa, controlado
   solo por la clase .open (clic/tap) — sin ningún :hover aquí, para no
   arrastrar el hover "pegado" que a veces deja el tap en táctiles. */
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.caret {
  font-size: 0.7rem;
  transition: transform 0.15s ease;
}

.nav-dropdown.open .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
  max-height: 120px;
}

.nav-dropdown-menu a {
  padding: 10px 4px 10px 18px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

@media (min-width: 720px) {
  .site-header-toggle {
    display: none;
  }

  .site-header-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    background: none;
  }

  .site-header-nav a {
    border-bottom: none;
    padding: 0;
  }

  .site-header-cta {
    padding: 10px 22px !important;
    margin-top: 0;
  }

  .site-header-lang {
    margin-top: 0;
  }

  /* Desplegable: en escritorio flota sobre el resto, con hover como
     añadido encima del clic/tap (que sigue funcionando igual). */
  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-trigger {
    width: auto;
    gap: 4px;
    border-bottom: none;
    padding: 0;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(26, 41, 66, 0.15);
    min-width: 160px;
    padding: 6px;
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown-menu a {
    border-bottom: none;
    border-radius: 6px;
    padding: 8px 10px;
  }

  .nav-dropdown-menu a:hover {
    background: var(--bg-alt);
  }
}

/* --- Hero: foto de fondo + búsqueda breve ---
   El background-image (foto + degradado oscuro) se fija inline desde la
   vista, porque incluye la URL de la foto; aquí solo el resto del look. */

.hero {
  color: #ffffff;
  padding: 40px 16px 36px;
}

.hero-photo {
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 24px;
}

.hero h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitulo {
  color: #eef1f6;
  font-size: 0.9rem;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Tarjeta de búsqueda breve: solo origen/destino/fecha/hora/pax/vuelta —
   el formulario completo vive aparte, en /reservar. */
.hero-search-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 20px 16px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-search-btn {
  width: 100%;
  border-radius: 999px;
  padding: 14px;
  font-size: 1.05rem;
  margin-top: 4px;
}

/* --- Formulario (dentro de la tarjeta del hero) --- */

.form-section {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section h2 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--navy);
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type='text'],
input[type='tel'],
input[type='email'],
input[type='number'],
input[type='date'],
input[type='time'],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-field label {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.direccion-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.direccion-toggle button {
  flex: 1;
  padding: 10px;
  background: #ffffff;
  color: var(--text-muted);
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
}

.direccion-toggle button.active {
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
}

.vehiculo-opciones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.vehiculo-opcion {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
}

@media (min-width: 480px) {
  .vehiculo-opciones {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vehiculo-opcion.active {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.06);
}

.vehiculo-opcion .nombre {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.vehiculo-opcion .detalle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.nino-block {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.nino-block .field {
  margin-bottom: 0;
  flex: 1;
}

.stepper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
}

.stepper-label {
  font-size: 0.82rem;
}

.stepper-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-control button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.stepper-value {
  min-width: 16px;
  text-align: center;
}

/* --- Barra de precio fija --- */

#precio-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}

#precio-valor {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

#precio-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn {
  background: var(--accent);
  color: var(--on-accent-text);
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dark);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.error-message {
  background: rgba(217, 45, 32, 0.08);
  border: 1px solid rgba(217, 45, 32, 0.3);
  color: var(--danger);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* --- Barra de confianza --- */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-icon {
  font-size: 1.15rem;
  line-height: 1;
}

@media (min-width: 560px) {
  .trust-bar {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
  }
}

/* --- Títulos de sección genéricos --- */

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Cómo funciona --- */

.pasos-section {
  margin-bottom: 36px;
}

.pasos-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.paso {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.paso-numero {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.paso h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.paso p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (min-width: 560px) {
  .pasos-grid {
    flex-direction: row;
  }
  .paso {
    flex: 1;
  }
}

/* --- Por qué reservar con nosotros --- */

.beneficios-section {
  margin-bottom: 36px;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.beneficio {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.beneficio-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.beneficio p {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

@media (min-width: 560px) {
  .beneficios-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Flota --- */

.flota-section {
  margin-bottom: 36px;
}

.flota-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .flota-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .flota-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flota-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.flota-imagen-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 3rem;
  background: rgba(255, 107, 53, 0.08);
  color: var(--accent);
}

.flota-info {
  padding: 16px;
}

.flota-info h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--navy);
}

.flota-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Destinos populares --- */

.destinos-section {
  margin-bottom: 36px;
}

.destinos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.destino-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.destino-card:hover {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.06);
}

@media (min-width: 560px) {
  .destinos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- FAQ --- */

.faq-section {
  margin-bottom: 36px;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 10px;
}

.faq-item summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

/* --- Reseñas (placeholder) --- */

.reviews-section {
  margin-bottom: 8px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.review-card {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
}

.review-icon {
  display: block;
  color: var(--border);
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.review-placeholder p {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0;
}

/* --- Footer --- */

.site-footer {
  background: var(--navy);
  color: #c4cede;
  padding: 28px 16px calc(28px + 100px + env(safe-area-inset-bottom, 0px));
  margin-top: -1px;
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-brand .accent {
  color: var(--accent);
}

.footer-contacto,
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-contacto a,
.footer-legal a {
  color: #c4cede;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-contacto a:hover,
.footer-legal a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.75rem;
  color: #7c8aa3;
  margin: 0;
}

/* --- Botón flotante de WhatsApp --- */

#whatsapp-fab {
  position: fixed;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 11;
}

/* --- Confirmación --- */

.confirmacion {
  text-align: center;
  padding: 40px 16px;
}

.confirmacion .icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.confirmacion h1 {
  color: var(--navy);
}

/* --- Legal (placeholder) --- */

.legal-section {
  padding: 20px 0 40px;
}

.legal-section h1 {
  color: var(--navy);
  font-size: 1.4rem;
}

.legal-section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contacto-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.contacto-item:hover {
  border-color: var(--accent);
}

.contacto-icon {
  font-size: 1.3rem;
}
