/* ==========================================================================
   COBERTURA.CSS — solo para cobertura.html
   Requiere que base.css esté cargado antes (usa sus componentes de
   formulario: .form-field, .form-row, .btn-submit, .form-status).
   ========================================================================== */

/* --- Rutas destacadas: carrusel horizontal con flechas --- */
.routes {
  background: var(--bg-page);
  padding-block: 8px 64px;
}
.routes h2 {
  color: var(--maroon);
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.routes-subtitle {
  color: var(--navy);
  font-weight: 500;
  margin: 0 0 32px;
}
.routes-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.routes-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.routes-arrow:hover { background: var(--navy-dark); transform: scale(1.06); }
.routes-arrow.is-disabled { opacity: 0.35; }
.routes-arrow svg { width: 20px; height: 20px; }
.routes-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0; /* evita que el flex item se resista a encogerse */
}
.routes-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.route-card {
  /* Ancho fijo en píxeles (no %), así el cálculo nunca depende del
     ancho del propio contenedor y el carrusel funciona siempre. */
  flex: 0 0 300px;
  width: 300px;
  background: var(--bg-white);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 6px 24px rgba(12, 33, 43, 0.08);
  display: flex;
  flex-direction: column;
}
.route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(246, 174, 45, 0.18);
  color: var(--orange);
  margin-bottom: 18px;
}
.route-icon svg { width: 24px; height: 24px; }
.route-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.route-description {
  color: #4B5A66;
  margin: 0 0 16px;
  font-size: 0.92rem;
}
.route-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.route-cities li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--navy);
}

/* La tarjeta "Entre otras" tiene fondo navy, así que estas reglas van
   DESPUÉS de .route-card h3 / .route-description para ganar el empate
   de especificidad y que el texto sea blanco (no navy sobre navy). */
.route-card--more {
  background: var(--navy);
}
.route-card--more h3,
.route-card--more .route-description {
  color: #fff;
}
.route-card--more .route-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.route-card--more .btn { align-self: flex-start; margin-top: 16px; }

/* --- Rastreo de ruta + ingreso de datos --- */
.tracking {
  background: var(--bg-white);
  padding-block: 64px 88px;
}
.tracking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}
.tracking-map {
  background: var(--bg-page);
  border-radius: 20px;
  padding: 36px;
}
.tracking-map h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.tracking-map p {
  color: #4B5A66;
  margin: 0 0 24px;
  max-width: 46ch;
}
.route-map {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.tracking-form-card {
  background: var(--bg-page);
  border-radius: 20px;
  padding: 36px;
}
.tracking-form-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.tracking-form-card > p {
  color: #4B5A66;
  margin: 0 0 24px;
}
.tracking-form .form-field input {
  background: var(--bg-white);
}

/* ==========================================================================
   RESPONSIVE — Cobertura
   ========================================================================== */
@media (max-width: 880px) {
  .tracking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .route-card { flex-basis: 260px; width: 260px; }
  .routes-carousel { gap: 8px; }
  .routes-arrow { width: 38px; height: 38px; }
}