/* ==========================================================================
   COOTRANSCAQUETÁ LTDA — Hoja de estilos institucional y operativa
   ========================================================================== */

:root {
  --primary: #0f6b3d;
  --primary-dark: #0a4d2d;
  --primary-darker: #073820;
  --primary-light: #ebf7ef;
  --accent: #d62828;
  --accent-soft: #ffe6e6;
  --yellow: #f4c542;
  --yellow-dark: #d9a81e;
  --yellow-soft: #fff4c9;
  --brand-dark: #0b1d2d;
  --brand-gray: #a3a9b3;
  --text: #1c2430;
  --muted: #556275;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #dfe7f1;
  --success: #0f6b3d;
  --shadow-sm: 0 6px 18px rgba(15, 36, 54, 0.06);
  --shadow: 0 14px 32px rgba(15, 107, 61, 0.12);
  --shadow-lg: 0 20px 44px rgba(11, 29, 45, 0.16);
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Sobrescribir tokens principales de Bootstrap 5 */
  --bs-primary: #0f6b3d;
  --bs-primary-rgb: 15, 107, 61;
  --bs-link-color: #0f6b3d;
  --bs-link-hover-color: #0a4d2d;
  --bs-body-font-family: "Inter", system-ui, -apple-system, sans-serif;
  --bs-body-color: #1c2430;
  --bs-body-bg: #f5f7fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bs-body-font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: 78px;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Accesibilidad: Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   Navbar institucional
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 107, 61, 0.08);
  box-shadow: 0 2px 16px rgba(9, 42, 74, 0.06);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.navbar.scrolled {
  box-shadow: 0 8px 26px rgba(9, 42, 74, 0.12);
  background: rgba(255, 255, 255, 0.99);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--primary-dark);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #0b1d2d;
  box-shadow: 0 0 0 3px rgba(15, 107, 61, 0.16);
  border: 2px solid var(--white);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
}

.brand-subtitle {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav-link {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  padding: 0.5rem 0.75rem !important;
  border-radius: 10px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

/* ==========================================================================
   Botones institucionales
   ========================================================================== */
.btn-primary-custom {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.72rem 1.35rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 107, 61, 0.24);
}

.btn-accent-yellow {
  background: var(--yellow);
  border: 1.5px solid var(--yellow);
  color: #16231c;
  font-weight: 800;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent-yellow:hover,
.btn-accent-yellow:focus {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  color: #101a14;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero-glass {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.78rem 1.45rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-glass:hover,
.btn-hero-glass:focus {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-primary-custom {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.65rem 1.2rem;
  transition: all 0.2s ease;
}

.btn-outline-primary-custom:hover,
.btn-outline-primary-custom:focus {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   Hero principal (index.html)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 3.5rem 0 4.5rem;
  min-height: clamp(36rem, 74vh, 48rem);
  display: flex;
  align-items: center;
}

.hero .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background-color: #111b24;
}

.hero .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(9, 25, 38, 0.9) 0%,
    rgba(9, 25, 38, 0.72) 45%,
    rgba(9, 25, 38, 0.42) 100%
  );
  z-index: 2;
}

.hero .hero-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.hero .hero-track.is-sliding {
  animation: heroSlide 36s linear infinite;
}

.hero:hover .hero-track {
  animation-play-state: paused;
}

.hero .hero-track img {
  width: 100vw;
  min-width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(0.78);
}

@keyframes heroSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(15, 107, 61, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-secondary-link:hover,
.hero-secondary-link:focus {
  color: var(--yellow);
  transform: translateX(3px);
}

/* Buscador rápido de rutas en el Hero */
.route-finder-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.route-finder-card .finder-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.route-finder-card .finder-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.route-finder-card .form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.route-finder-card .form-select,
.route-finder-card .form-control {
  border-radius: 10px;
  border-color: var(--border);
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  font-size: 0.93rem;
}

.route-finder-card .form-select:focus,
.route-finder-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 107, 61, 0.16);
}

.finder-preview {
  background: var(--primary-light);
  border: 1px solid rgba(15, 107, 61, 0.16);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Encabezado de páginas internas
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(125deg, var(--brand-dark) 0%, var(--primary-darker) 55%, var(--primary) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(244, 197, 66, 0.16), transparent 45%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
}

.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .breadcrumb-item a:hover {
  color: var(--yellow);
}

.page-hero .breadcrumb-item.active,
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.65);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 44rem;
  margin-bottom: 0;
  font-size: 1.03rem;
}

/* ==========================================================================
   Secciones, títulos y pills
   ========================================================================== */
.section-title {
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.pill {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.36rem 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
}

.pill-yellow {
  background: var(--yellow-soft);
  color: #7c5c00;
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   Tarjetas institucionales (Misión / Visión / Comunicados / General)
   ========================================================================== */
.purpose-card {
  position: relative;
  height: 100%;
  padding: 2rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.purpose-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
}

.purpose-mark {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.35rem;
}

.purpose-card h3 {
  color: var(--primary-dark);
  font-weight: 800;
}

.purpose-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 107, 61, 0.24);
}

/* ==========================================================================
   Carrusel horizontal continuo de rutas
   ========================================================================== */
.routes-carousel-wrapper {
  background: #edf6ee;
  border: 1px solid rgba(15, 107, 61, 0.1);
  border-radius: 22px;
  padding: 1.15rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.routes-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  padding: 0.45rem 0;
  animation: routesScrollLeft 42s linear infinite;
  will-change: transform;
}

.routes-carousel-wrapper:hover .routes-carousel-track,
.routes-carousel-track.is-paused {
  animation-play-state: paused;
}

.routes-carousel-card {
  flex: 0 0 295px;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid rgba(15, 107, 61, 0.12);
  border-radius: 18px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.routes-carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15, 107, 61, 0.12);
}

.routes-carousel-card .route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.routes-carousel-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.routes-carousel-card .route-meta {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.routes-carousel-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.routes-carousel-card .route-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.58rem 0.95rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.routes-carousel-card .route-link:hover,
.routes-carousel-card .route-link:focus {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

@keyframes routesScrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.625rem));
  }
}

/* ==========================================================================
   Estadísticas
   ========================================================================== */
.stats-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 1rem 0.75rem;
}

.stat-value {
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Modalidades de servicio (Grilla 3x2)
   ========================================================================== */
.modalidades-wrap {
  background: linear-gradient(180deg, #f2f7f4 0%, #eaf4ed 100%);
  border-radius: 26px;
  padding: 1.75rem;
  border: 1px solid rgba(15, 107, 61, 0.1);
}

.modalidad-card {
  background: var(--white);
  border: 1px solid rgba(13, 59, 102, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modalidad-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.modalidad-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}

/* Ajuste específico para las fotos verticales de flota (el vehículo está en el tercio medio/inferior) */
.img-focus-vehicle {
  object-position: center 62% !important;
}

.modalidad-content {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modalidad-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.modalidad-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.modalidad-card p {
  color: var(--muted);
  line-height: 1.58;
  margin-bottom: 1.1rem;
  font-size: 0.91rem;
  flex: 1;
}

.modalidad-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modalidad-link:hover,
.modalidad-link:focus {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ==========================================================================
   Servicios complementarios (Encomiendas, DESTINOS, Urbano)
   ========================================================================== */
.service-highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon-badge {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Confianza y Normativa del Transporte
   ========================================================================== */
.trust-strip {
  background: linear-gradient(135deg, #0b1d2d 0%, #10324a 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 2rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(244, 197, 66, 0.16);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Galería y Lightbox
   ========================================================================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  height: 235px;
  background: #121c26;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem 0.85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 25, 38, 0.88) 100%);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ==========================================================================
   Tarjetas de Rutas, Taquillas y Circulares (Subpáginas)
   ========================================================================== */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.route-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.route-spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  background: #f7faf8;
  border-radius: 12px;
  padding: 0.85rem;
  margin: 0.85rem 0 1rem;
  font-size: 0.84rem;
}

.route-spec-list span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.route-spec-list strong {
  color: var(--text);
  font-weight: 700;
}

.circular-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.circular-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  border-radius: 22px;
  color: var(--white);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.86);
}

/* ==========================================================================
   Footer institucional
   ========================================================================== */
.footer {
  background: var(--brand-dark);
  color: #dfeaf7;
  padding: 3.5rem 0 1.25rem;
}

.footer a {
  color: #cfe0f2;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus {
  color: var(--yellow);
}

.footer-list li {
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 1.05rem;
  color: var(--white) !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover,
.social-icon:focus {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1020;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #198754;
  color: var(--white);
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(15, 107, 61, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

.whatsapp-float i {
  font-size: 1.25rem;
}

/* ==========================================================================
   Responsivo y Preferencias de movimiento reducido
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero {
    padding: 2.5rem 0 3rem;
    min-height: auto;
  }

  .modalidades-wrap {
    padding: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 72px;
  }

  .hero .hero-track img {
    object-fit: cover;
  }

  .routes-carousel-card {
    flex-basis: 265px;
    min-height: 230px;
  }

  .modalidad-card img {
    height: 210px;
  }

  .cta-banner {
    padding: 1.6rem;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.8rem;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero .hero-track.is-sliding,
  .routes-carousel-track {
    animation: none !important;
  }

  .routes-carousel-wrapper {
    overflow-x: auto;
  }
}
