@font-face {
  font-family: 'Bebas';
  src: url('../fonts/Bebas-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* mejora la carga de la tipografía */
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  /* mejora la carga de la tipografía */
}

@font-face {
  font-family: 'InterNormal';
  src: url('../fonts/inter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* mejora la carga de la tipografía */
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.titulo-ruta {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 2.5rem;
}

.titulo-ruta-azul {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 2.5rem;
  color: #083a5a;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: left;
  padding-right: 1rem!important;
  padding-left: 1rem!important;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.titulo-punto-azul {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 2rem;
  color: #083a5a;
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: left;
}


@media (max-width: 600px) {
  .titulo-punto-azul {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 30px;
    text-align: left;
  }
}

#map {
  width: 100%;
  height: 55vh;
  min-height: 360px;
}

.info-panel {
  position: relative;
  padding: 1.5rem !important;
}

.info-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: .5rem;
}

.info-description {
  white-space: pre-line;
}

.swiper {
  width: 100%;
  height: 500px;
}

.swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .75rem;
}

@media (max-width: 576px) {
  .swiper {
    height: 220px;
  }

  .swiper .swiper-slide img {
    height: 220px;
  }
}

/* Header hero common */
.header-hero {
  background: #083a5a;
  min-height: 120px;
  position: relative;
  z-index: 1000;
}

.header-hero .brand {
  color: #fff;
}

/* IMPORTANTE: el contenedor del header como referencia para el menú */
.header-hero .container {
  position: relative;
}

/* ===== BOTÓN MENÚ HAMBURGUESA ===== */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 20px;
  margin-right: 0.7rem !important;
}

.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Cuando el menú está activo, las barras se ponen gris claro */
.menu-toggle.active .bar {
  background-color: #cccccc !important;
  /* gris claro */
}

/* ======== MENÚ DESPLEGABLE ======== */
.menu {
  position: absolute;
  top: 100%;
  /* justo debajo del header */
  right: 1rem;
  /* alineado al lado del icono de hamburguesa dentro del container */

  background-color: #083a5a;
  border: 1px solid #ffffff;
  border-radius: 10px;

  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;

  /* Slide desde la derecha */
  opacity: 0;
  transform: translateX(40px);
  /* arranca desplazado a la derecha */
  pointer-events: none;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

/* Mostrar menú (activo) */
.menu.active {
  opacity: 1;
  transform: translateX(0);
  /* se desliza hacia su posición */
  pointer-events: auto;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  text-align: right;
}

.menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: white;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.menu a:hover {
  background: #0b507f;
  color: #eeeeee;
}

@media (max-width: 576px) {
  .titulo-ruta {
    font-size: 2rem;
  }
}

/* ==== BOTONES DE UBICACIÓN ==== */
.btn-ubicacion {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 48%;
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #083a5a;
  font-family: 'InterNormal', sans-serif;
  transition: all 0.3s ease;
}

/* BOTÓN AZUL (CENTRAR UBICACIÓN) */
.btn-centrar {
  background: #083a5a;
  color: white;
}

.btn-centrar:hover {
  background: white;
  color: #083a5a;
}

/* BOTÓN BORDE AZUL (REINTENTAR UBICACIÓN) */
.btn-reintentar {
  background: white;
  color: #083a5a;
}

.btn-reintentar:hover {
  background: #083a5a;
  color: white;
}

/* SLIDER GALERÍA: Espaciado horizontal entre bullets */
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 10px);
}

/* SLIDER GALERÍA: bullets inactivos */
.swiper-pagination-bullet {
  width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 16px));
  height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 16px));
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); /* blanco 50 % */
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); /* borde sutil */
  transition: background-color 0.25s ease;
}

/* SLIDER GALERÍA: Estado activo: color */
.swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 1);
}


/* ==== BOTONES ICONOGRÁFICOS CUADRADOS ==== */
.action-btn {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Relleno azul */
.btn-primary-square {
  background: #083a5a;
  border: 2px solid #083a5a;
  color: #fff;
}

.btn-primary-square:hover {
  background: white;
  color: #083a5a;
}

/* Sólo borde azul */
.btn-outline-square {
  background: white;
  border: 2px solid #083a5a;
  color: #083a5a;
}

.btn-outline-square:hover {
  background: #083a5a;
  color: white;
}

.action-btn i {
  font-size: 28px;
}

.info-description {
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.app-footer {
  margin-top: 1.5rem!important;
  background-color: #083a5a;
  color: #ffffff;
}

.app-footer>.container {
  padding-left: 1.8rem;
  padding-right: 1.8rem;
}

.app-footer .footer-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.app-footer .footer-text {
  font-family: 'InterNormal', Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.app-footer .footer-links {
  padding-left: 0;
}

.app-footer .footer-link {
  display: inline-block;
  font-family: 'InterNormal', Arial, sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
  text-decoration: none;
}

/* Hover gris claro en los enlaces del footer */
.app-footer .footer-link:hover {
  color: #eeeeee;
}

/* En móviles, un poco más de separación entre bloques */
@media (max-width: 576px) {
  .app-footer .footer-title {
    font-size: 1.15rem;
  }

  .app-footer {
    padding-bottom: 0.5rem;
  }
}


/* ==== BUSCADOR RUTAS / PUNTOS ==== */
.search-wrapper {
  margin-top: 1rem!important;
  margin-bottom: 1rem!important;
  padding-left: 1rem!important;
  padding-right: 1rem!important;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #083a5a;
  border-radius: 999px;
  background-color: #ffffff;
  padding: 0.25rem 1rem;
}

.search-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
/*   border-radius: 50%;
  border: 2px solid #083a5a;
 */  margin-right: 0.75rem;
  font-size: 1.3rem;
  color: #083a5a;
}

.search-icon i {
  line-height: 1;
}

#route-point-search {
  border: none !important;
  box-shadow: none !important;
  font-size: 1rem;
}

#route-point-search:focus {
  outline: none;
  box-shadow: none !important;
}

/* Caja de resultados */
.search-results {
  margin-top: 0.5rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #083a5a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1050;
}

.search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results li a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #083a5a;
}

.search-results li a:hover {
  background-color: #f1f5f9;
}

.search-results .result-main {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-results .result-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  opacity: 0.8;
}

.search-results .result-label {
  font-weight: 600;
  font-family: 'InterNormal', Arial, sans-serif;
}

.search-results .result-meta {
  display: block;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 1.5rem;
}

/* Diferenciar tipo visualmente (opcional) */
.search-results li.result-type-route .result-icon {
  /* icono rutas */
}

.search-results li.result-type-point .result-icon {
  /* icono puntos */
}

/* Aviso legal y politica de privacidad
   Aumenta el margen lateral solo en dispositivos moviles
   para mejorar la legibilidad del texto.
   No afecta al resto de la web */


.map-label {
  position: absolute;
  transform: translate(-50%, -300%);
  background: rgb(255, 255, 255);
  color: #000;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none; /* no bloquea clicks */
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: opacity 120ms ease;
}


.padding-l-0 {
  padding-left: 0!important;
}

/* --------------------------------------------------------------------------
   Cookie banner + preferences modal
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0,0,0,0.08);
}

.cookie-banner__inner {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.25rem;
  color: #1b1b1b;
}

.cookie-banner__text a {
  color: #0d6294;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.cookie-btn--primary {
  background: #083a5a;
  border-color: #083a5a;
  color: #fff;
}

.cookie-btn--ghost {
  background: transparent;
}

.cookie-btn:focus {
  outline: 3px solid rgba(13,98,148,0.35);
  outline-offset: 2px;
}

.cookie-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: none;
  padding: 1rem;
}

.cookie-modal__backdrop.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
}

.cookie-modal__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #083a5a;
}

.cookie-modal__body {
  padding: 1rem 1.25rem;
}

.cookie-setting {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cookie-setting:last-child {
  border-bottom: none;
}

.cookie-setting__info {
  flex: 1;
}

.cookie-setting__name {
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.cookie-setting__desc {
  margin: 0;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.25rem;
}

.cookie-toggle {
  min-width: 60px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #f2f2f2;
  position: relative;
  cursor: pointer;
}

.cookie-toggle[aria-checked="true"] {
  background: rgba(8,58,90,0.15);
  border-color: rgba(8,58,90,0.55);
}

.cookie-toggle__knob {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 140ms ease;
}

.cookie-toggle[aria-checked="true"] .cookie-toggle__knob {
  transform: translateX(26px);
}

.cookie-toggle.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cookie-modal__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .cookie-banner__inner {
    flex-direction: column;
  }
  .cookie-banner__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .legal-text {
    margin-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .title-legal-text {
    padding-left: 20px!important;
    padding-right: 20px!important;
  }
}
