﻿/* ===========================
   ðŸ“˜ ESTILOS GENERALES
   =========================== */

/* ðŸŽ¨ Variables */
:root {
  --verde-oscuro: #1b5e20;
  --verde-medio: #43a047;
  --verde-claro: #81c784;
  --amarillo: #ffeb3b;
  --amarillo-suave: #fff59d;
  --blanco: #ffffff;
  --gris-texto: #333333;
  --gris-fondo: #f5f5f5;
  --sombra: 0 4px 10px rgba(0, 0, 0, 0.1);
  --radio: 10px;
}

/* âš™ï¸ Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--blanco);
  color: var(--gris-texto);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Medios fluidos y contenedores responsivos */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  height: auto;
}

.container,
.wrapper {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

h1, h2, h3 {
  color: var(--verde-oscuro);
  margin-bottom: 10px;
}

button {
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

/* ===========================
   ðŸž HERO SECTION
   =========================== */
.hero {
  height: 100vh;
  background: url('../img/banner.webp') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco);
  padding-top: 75px; /* Evita que el header lo tape */
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  color: var(--amarillo);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn-hero {
  background: var(--amarillo);
  color: var(--verde-oscuro);
  padding: 12px 30px;
  border-radius: var(--radio);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  background: var(--verde-medio);
  color: var(--blanco);
  transform: translateY(-3px);
}

/* ===========================
   ðŸ“‘ SECCIONES GENERALES
   =========================== */
.section {
  padding: 80px 10%;
  text-align: center;
}

.section.bg-light {
  background: var(--amarillo-suave);
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: var(--verde-oscuro);
}

/* ===========================
   ðŸƒ CARDS
   =========================== */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}

.card {
  width: 300px;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  color: var(--verde-oscuro);
  margin-bottom: 10px;
}

/* ===========================
   ðŸ“± RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .section h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .cards-container { flex-direction: column; align-items: center; }
  .hero p { font-size: 1rem; }
  .hero h1 { font-size: 2.2rem; }
}

/* ===========================
   ðŸ’¬ BOTÃ“N DE WHATSAPP
   =========================== */
.whatsapp-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
}

.whatsapp-btn {
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* ðŸ“± Ventana emergente */
.whatsapp-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: white;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 15px;
  width: 230px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.3s ease forwards;
}

.whatsapp-popup.show {
  display: flex;
}

.whatsapp-popup img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 10px;
}

.whatsapp-link {
  background-color: #25d366;
  color: white;
  padding: 8px 12px;
  border-radius: var(--radio);
  font-weight: 600;
  transition: 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #1ebe5d;
}

.whatsapp-icon {
  width: 57px;
  height: 57px;
  object-fit: contain;
}

/* ===========================
   ðŸ“° NOVEDADES
   =========================== */
.novedades-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  justify-content: center;
}

.novedad {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 20px;
  max-width: 700px;
  text-align: left;
}

/* ===========================
   ðŸš— GALERÃA DE VEHÃCULOS
   =========================== */
.gallery {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.gallery-images img {
  width: 100%;
  display: none;
  object-fit: cover;
  border-radius: var(--radio);
}

#gallery-title {
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--verde-oscuro);
}

/* ===========================
   Pagina Quienes Somos
   =========================== */
.about-page {
  background: var(--blanco);
  color: var(--gris-texto);
}

.about-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  text-align: center;
  background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(27, 94, 32, 0.85));
  color: var(--blanco);
  overflow: hidden;
}

.about-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(27, 94, 32, 0.85), rgba(27, 94, 32, 0.85));
  z-index: 1;
  pointer-events: none;
}

.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 235, 59, 0.22), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.15), transparent 45%);
  opacity: 0.85;
  pointer-events: none;
  animation: heroGlare 12s ease-in-out infinite alternate;
  z-index: 2;
}

.about-hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.about-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 235, 59, 0.9);
  color: var(--verde-oscuro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.about-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--amarillo);
  margin: 0;
}

.about-slogan {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0;
  color: var(--amarillo);
}

.about-section {
  position: relative;
}

.about-section:nth-of-type(even) {
  background: var(--gris-fondo);
}

.about-section-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-title {
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-service-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-service-card h3 {
  margin: 0;
  color: var(--verde-oscuro);
}

.about-highlight {
  background: rgba(67, 160, 71, 0.08);
  border-left: 4px solid var(--verde-medio);
  padding: 12px 16px;
  border-radius: var(--radio);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.about-card {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card h2 {
  margin-bottom: 10px;
}

.about-list {
  list-style: disc;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li strong {
  color: var(--verde-oscuro);
}

.about-note {
  background: rgba(255, 235, 59, 0.15);
  border-left: 4px solid var(--amarillo);
  padding: 14px 18px;
  border-radius: var(--radio);
  font-weight: 500;
}

@keyframes heroGlare {
  0% {
    transform: translate3d(-5%, -5%, 0);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(2%, 2%, 0);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(8%, 6%, 0);
    opacity: 0.7;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.animate-on-scroll[data-animate="fade-right"] {
  transform: translate3d(-45px, 0, 0);
}

.animate-on-scroll[data-animate="fade-left"] {
  transform: translate3d(45px, 0, 0);
}

.animate-on-scroll[data-animate="fade-up"] {
  transform: translate3d(0, 45px, 0);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
  .about-hero {
    padding: 120px 16px 60px;
    min-height: 50vh;
  }

  .about-section {
    padding: 60px 7%;
  }

  .about-card {
    padding: 24px;
  }
}

/* ===========================
   BotÃ³n volver arriba
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(27, 94, 32, 0.92);
  color: var(--blanco);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(27, 94, 32, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1000;
}

.back-to-top__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateZ(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 10px 24px rgba(27, 94, 32, 0.4);
  background: rgba(27, 94, 32, 0.98);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--amarillo);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 26px;
    left: 20px;
    width: 42px;
    height: 42px;
  }

  .back-to-top__icon {
    width: 16px;
    height: 16px;
  }
}

/* ===========================
   Pagina Rutas y Tarifas
   =========================== */
.routes-page {
  background: var(--blanco);
  color: var(--gris-texto);
}

.routes-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 80px;
  background: #0f2f1c;
  color: var(--blanco);
  overflow: hidden;
}

.routes-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.routes-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27, 94, 32, 0.92), rgba(27, 94, 32, 0.65));
  z-index: 1;
}

.routes-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.routes-hero__content h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0;
  color: #ffee58;
}

.routes-hero__content p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.routes-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 235, 59, 0.8);
  color: var(--verde-oscuro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.routes-section__header {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.routes-optional {
  max-width: 780px;
  margin: 0 auto 36px;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.routes-optional__text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--verde-oscuro);
  margin: 0;
}

.routes-optional__media {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(27, 94, 32, 0.05);
  border: 1px dashed rgba(27, 94, 32, 0.18);
  display: none;
}

.routes-optional__media img {
  display: block;
  max-width: min(460px, 80vw);
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.routes-optional__text:empty {
  display: none;
}

.routes-optional__media img[src=""],
.routes-optional__media img[src=" "],
.routes-optional__media img:not([src]) {
  display: none;
}

.routes-optional__media img[src]:not([src=""]):not([src=" "]) {
  display: block;
}

.routes-optional__media:has(img[src]:not([src=""]):not([src=" "])) {
  display: block;
}

.routes-section {
  padding: 80px clamp(16px, 6vw, 60px);
}

.routes-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 12px;
  color: var(--verde-oscuro);
}

.routes-description {
  font-size: 1.05rem;
  color: var(--gris-texto);
  margin: 0;
}

.routes-contact-actions {
  margin-top: 24px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.routes-contact-actions__phone {
  font-weight: 600;
  color: var(--verde-oscuro);
  background: rgba(27, 94, 32, 0.1);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.routes-contact-actions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--verde-medio);
  color: var(--blanco);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.routes-contact-actions__button:hover,
.routes-contact-actions__button:focus-visible {
  background: var(--verde-oscuro);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 94, 32, 0.25);
}

.routes-tabs {
  background: var(--blanco);
  border-radius: 18px;
  box-shadow: var(--sombra);
  padding: clamp(18px, 4vw, 28px);
  max-width: 1040px;
  margin: 0 auto;
}

.routes-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 4px;
}

.routes-tab {
  background: rgba(27, 94, 32, 0.08);
  color: var(--verde-oscuro);
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.routes-tab:hover,
.routes-tab:focus-visible {
  background: rgba(27, 94, 32, 0.15);
  transform: translateY(-2px);
}

.routes-tab.is-active {
  background: var(--verde-oscuro);
  color: var(--blanco);
}

.routes-panels {
  position: relative;
}

.routes-panel {
  display: none;
}

.routes-panel.is-active {
  display: block;
}

.routes-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.routes-panel__title {
  display: none;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  margin: 0 0 18px;
}

.route-card {
  background: var(--blanco);
  border-radius: var(--radio);
  border: 1px solid rgba(27, 94, 32, 0.12);
  box-shadow: 0 12px 25px rgba(17, 43, 31, 0.08);
  padding: clamp(16px, 3vw, 22px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(17, 43, 31, 0.12);
}

.route-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27, 94, 32, 0.12);
  color: var(--verde-oscuro);
  position: relative;
}

.route-icon::before {
  content: '\2192';
  font-size: 1.3rem;
  line-height: 1;
}

.route-price {
  font-weight: 700;
  color: var(--verde-oscuro);
  font-size: 1.1rem;
}

.route-card h3 {
  margin: 0 0 8px;
  color: var(--gris-texto);
  font-size: 1.05rem;
}

.route-card__price {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--verde-medio);
  display: none;
  order: 3;
}

.route-card__price[data-visual-highlight] {
  display: block;
}

.route-card__media {
  margin: 0;
  display: block;
  position: relative;
  order: 4;
  min-height: 110px;
  background: rgba(27, 94, 32, 0.03);
  border: 1px dashed rgba(27, 94, 32, 0.18);
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.route-card__media img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  min-height: 120px;
  background: rgba(27, 94, 32, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(27, 94, 32, 0.12);
}

.route-card__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.route-card__remove:hover,
.route-card__remove:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  outline: 2px solid var(--amarillo);
  outline-offset: 2px;
}

.route-card__price:not(:empty) {
  display: block;
}

.route-card__media img[src]:not([src=""]):not([src=" "]) {
  opacity: 1;
}

.route-card__media img[src=""],
.route-card__media img:not([src]) {
  opacity: 0;
}

.route-card__media:has(img[src]:not([src=""]):not([src=" "])) {
  display: block;
}

.route-card__media:has(img[src]:not([src=""]):not([src=" "])) .route-card__remove,
.route-card__media:hover .route-card__remove,
.route-card__media:has(img[data-visual-highlight]) .route-card__remove,
.route-card__media[data-visual-highlight] .route-card__remove {
  display: inline-flex;
}

.route-card__media img[data-visual-highlight] {
  opacity: 1;
}

.route-card__media:has(img[data-visual-highlight]) {
  display: block;
}

.route-card__media[data-visual-highlight] {
  display: block;
}

.route-tag {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(27, 94, 32, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tarifario-section {
  background: var(--gris-fondo);
}

.tarifario-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tarifa-card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(17, 43, 31, 0.08);
  border: 1px solid rgba(27, 94, 32, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tarifa-card--highlight {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.08), rgba(255, 235, 59, 0.15));
  border-color: rgba(27, 94, 32, 0.18);
}

.tarifa-card--list .tarifa-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tarifa-card--outline {
  background: rgba(255, 255, 255, 0.95);
}

.tarifa-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.tarifa-duo__item {
  background: rgba(27, 94, 32, 0.06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.tarifa-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--verde-oscuro);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.tarifa-badge__label {
  display: inline-block;
}

.tarifa-badge__time {
  display: inline-block;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(27, 94, 32, 0.75);
}

.tarifa-badge small {
  display: block;
}

.tarifa-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--verde-oscuro);
}

.tarifa-note {
  font-size: 0.95rem;
  color: rgba(15, 50, 30, 0.72);
  margin: 0;
  line-height: 1.6;
}

.tarifa-list li {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(27, 94, 32, 0.06);
  font-weight: 600;
  color: var(--verde-oscuro);
}

.routes-cta {
  margin-top: 60px;
  padding: 60px 18px;
  background: transparent;
}

.routes-cta__content {
  background: linear-gradient(120deg, rgba(27, 94, 32, 0.92), rgba(27, 94, 32, 0.8));
  color: var(--blanco);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 18px 35px rgba(17, 43, 31, 0.18);
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.routes-cta__content h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0;
}

.routes-cta__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.routes-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Evita que el contenido de rutas quede oculto si falla la animación */
.routes-page .animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.routes-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  background: var(--amarillo);
  color: var(--verde-oscuro);
}

.routes-cta__button:hover {
  transform: translateY(-2px);
  background: #ffd84d;
}

.routes-cta__button--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--blanco);
}

.routes-cta__button--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
  .routes-tabs {
    padding: 22px;
  }
}

@media (max-width: 768px) {
  .routes-hero {
    padding: 120px 16px 60px;
    min-height: 320px;
  }

  .routes-section {
    padding: 70px 5%;
  }

  .routes-section.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .routes-tabs__list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-wrap: nowrap;
  }

  .routes-tabs__list::-webkit-scrollbar {
    display: none;
  }

  .routes-tab {
    flex: 0 0 auto;
  }

  .routes-cta__content {
    padding: 42px 24px;
  }

  .tarifa-duo {
    grid-template-columns: 1fr;
  }

  .tarifa-card {
    padding: 24px;
  }

  .routes-cta__button {
    width: 100%;
    max-width: 320px;
  }

  .routes-section .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  /* Evita que las tarjetas queden ocultas por la animación en breakpoints intermedios */
  .routes-section .animate-on-scroll,
  .routes-grid .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .routes-tabs__list {
    gap: 10px;
  }

  .routes-tab {
    min-width: 220px;
    text-align: center;
  }

  .routes-panels {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .routes-panel {
    display: block !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(27, 94, 32, 0.12);
  }

  .routes-contact-actions {
    display: grid;
    gap: 12px;
  }

  .routes-contact-actions__phone,
  .routes-contact-actions__button {
    width: 100%;
    text-align: center;
  }

  .routes-panel:last-of-type {
    border-bottom: none;
  }

  .routes-panel__title {
    display: block;
  }

  .routes-grid {
    grid-template-columns: 1fr;
  }

  .routes-tabs__list {
    display: none;
  }
}

@media (max-width: 480px) {
  .routes-hero {
    padding: 110px 12px 50px;
    min-height: 280px;
  }

  .routes-hero__content h1 {
    font-size: 2.1rem;
  }

  .routes-hero__content p {
    font-size: 1rem;
  }

  .routes-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .route-price {
    font-size: 1rem;
  }

  .route-card h3 {
    font-size: 0.98rem;
  }

  .routes-cta__content {
    border-radius: 20px;
    padding: 36px 20px;
  }
}
/* Evitar cambio de color del navbar al hacer scroll */
.navbar.fixed {
  background-color: transparent !important;
}

/* Lightbox para imagenes de novedades */
.news-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.news-lightbox.is-open {
  display: flex;
}

.news-lightbox__inner {
  position: relative;
  max-width: 96vw;
  max-height: 96vh;
}

.news-lightbox__img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.news-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.news-lightbox__close:hover,
.news-lightbox__close:focus-visible {
  background: #ffffff;
}
