/* ===== Página de rutas - totalmente aislado (prefijo gr-) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Poppins; */
}
/* Estilos generales */
html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Georgia', serif; /* Tipografía elegante y acogedora */
    background-color: var(--bg-main);
    color: var(--text-main);
    width: 100%;
  }
.gr-page {
  background-color: #f7f2e9;
  padding-bottom: 4rem;
  font-family: inherit; /* usa la fuente que ya tengas en body */
  width: 100%;
  padding-top: 65px;
}

/* ORIENTACIÓN */

.gr-breadcrumb {
  --gr-breadcrumb-space-xs: 0.25rem;
  --gr-breadcrumb-space-sm: 0.5rem;
  --gr-breadcrumb-space-md: 1rem;
  --gr-breadcrumb-space-lg: 1.5rem;
  --gr-breadcrumb-max-width: 1200px;
  --gr-breadcrumb-target-size: 2.75rem;
  --gr-breadcrumb-font-size: 1rem;
  --gr-breadcrumb-focus-width: 0.1875rem;
  --gr-breadcrumb-link-color: #3a6335;
  --gr-breadcrumb-text-color: #3b3b3b;

  max-width: var(--gr-breadcrumb-max-width);
  margin: 0 auto;
  padding: var(--gr-breadcrumb-space-sm) var(--gr-breadcrumb-space-lg) 0;
  background: transparent;
  color: var(--gr-breadcrumb-text-color);
}

.gr-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--gr-breadcrumb-space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gr-breadcrumb li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  font-size: var(--gr-breadcrumb-font-size);
  line-height: 1.4;
}

.gr-breadcrumb a {
  display: inline-flex;
  min-height: var(--gr-breadcrumb-target-size);
  align-items: center;
  padding: 0 var(--gr-breadcrumb-space-xs);
  color: var(--gr-breadcrumb-link-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: var(--gr-breadcrumb-space-xs);
  overflow-wrap: anywhere;
}

.gr-breadcrumb a:hover {
  text-decoration-thickness: var(--gr-breadcrumb-focus-width);
}

.gr-breadcrumb a:focus-visible {
  outline: var(--gr-breadcrumb-focus-width) solid var(--gr-breadcrumb-link-color);
  outline-offset: var(--gr-breadcrumb-space-xs);
}

.gr-breadcrumb [aria-current="page"] {
  padding: var(--gr-breadcrumb-space-sm) var(--gr-breadcrumb-space-xs);
  color: var(--gr-breadcrumb-text-color);
  overflow-wrap: anywhere;
}

.gr-breadcrumb__separator {
  margin: 0 var(--gr-breadcrumb-space-xs);
  color: var(--gr-breadcrumb-text-color);
}

/* HERO */

.gr-hero {
  position: relative;
  padding: 3.5rem 1.5rem 3rem;
}

.gr-hero-bg {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  max-width: 1200px;
  background-image: url('../img/guia/moncayo-hero.jpg'); /* cámbiala por la que quieras */
  background-size: cover;
  background-position: center center;
  filter: brightness(0.6);
  border-radius: 22px;
}

.gr-hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.gr-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-bottom: 0.4rem;
}

.gr-hero h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin-bottom: 0.9rem;
}

.gr-hero-text {
  max-width: 650px;
  margin: 0 auto 1.6rem;
  font-size: 0.95rem;
}

/* FILTROS */

.gr-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.gr-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 150px;
}

.gr-filter--search {
  min-width: 220px;
}

.gr-filter label {
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.9;
}

.gr-filter select,
.gr-filter input {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 0.42rem 0.9rem;
  font-size: 0.9rem;
  color: #333;
}

.gr-filter input::placeholder {
  color: #999;
}

.gr-hero-note {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* SECCIÓN DE RUTAS */

.gr-section {
  padding: 3rem 1.5rem;
}

.gr-section-header {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.gr-section-header h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  margin-bottom: 0.5rem;
  color: #2f3a2f;
}

.gr-section-header p {
  color: #555;
}

/* GRID */

.gr-routes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
}

/* TARJETAS DE RUTA */

.gr-route-card {
  background-color: #fffdf8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

.gr-route-media {
  position: relative;
  max-height: 190px;
  overflow: hidden;
}

.gr-route-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gr-route-card:hover .gr-route-media img {
  transform: scale(1.04);
}

/* PÍLDORAS DE DIFICULTAD */

.gr-pill {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.gr-pill--easy {
  background: linear-gradient(135deg, #2f9c5b, #63c484);
}

.gr-pill--medium {
  background: linear-gradient(135deg, #f39c12, #f6b44b);
}

.gr-pill--hard {
  background: linear-gradient(135deg, #c93131, #f06a6a);
}

/* CUERPO DE LA TARJETA */

.gr-route-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.gr-route-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #2f3a2f;
}

.gr-route-sub {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #777;
}

.gr-route-desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* DATOS RÁPIDOS */

.gr-mini-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.5rem 1rem;
  margin: 0.4rem 0 0.4rem;
}

.gr-mini-data dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8a8a8a;
}

.gr-mini-data dd {
  font-size: 0.9rem;
  color: #444;
  margin-inline-start: 0px;
}

/* TAGS */

.gr-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0 0.4rem;
  padding: 0;
}

.gr-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #f0eadc;
  color: #5a563f;
}

/* BOTONES */

.gr-actions {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.gr-btn--primary {
  background-color: #2f7c45;
  color: #fff;
}

.gr-btn--primary:hover {
  background-color: #29693a;
}

.gr-btn--ghost {
  background-color: transparent;
  color: #2f7c45;
  border: 1px solid #c3ddc8;
}

.gr-btn--ghost:hover {
  background-color: #e6f3ea;
}

.gr-btn--disabled {
  background-color: #ece6d8;
  color: #6b6254;
  cursor: default;
}

.gr-btn:focus-visible {
  outline: 3px solid #d9a066;
  outline-offset: 3px;
}

/* RESULTADOS FILTRO */

.gr-results {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .gr-hero {
    padding: 3rem 1rem 2.5rem;
  }

  .gr-section {
    padding: 2.5rem 1rem;
  }

  .gr-mini-data {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gr-hero-inner {
    text-align: left;
  }

  .gr-filter-bar {
    justify-content: flex-start;
  }

  .gr-hero-text {
    text-align: left;
  }
}
