/* Calendario: una sola superficie fotográfica, con nueve fechas en tres columnas. */
.schedule-board {
  min-height: 1380px;
  background:
    linear-gradient(180deg, rgba(7, 8, 6, 0.22), rgba(7, 8, 6, 0.34)),
    url("../../recursos/calendario-01.png") center center / cover no-repeat var(--ink);
  color: var(--paper);
  padding: 1.25rem var(--side) 110px;
  text-align: center;
}
.schedule-mark { width: clamp(300px, 44vw, 600px); max-width: 100%; height: auto; margin: 0 auto 115px; }
.schedule-subscription { margin: 0 0 clamp(3rem, 6vw, 5rem); }
.schedule-subscription .btn { max-width: 100%; }
.schedule-dates { position: relative; width: 100%; max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 100px 55px; }
.has-js .schedule-dates[aria-busy="false"] > * {
  animation: calendar-enter 380ms cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: var(--calendar-delay, 0ms);
}
@keyframes calendar-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.schedule-year-divider {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(1rem, 1fr) auto minmax(1rem, 1fr);
  align-items: center;
  gap: 1rem;
  margin: -2.25rem 0;
  color: var(--paper);
  font: 900 clamp(1.6rem, 3vw, 2.25rem)/1 Impact, 'Arial Black', sans-serif;
  letter-spacing: 0.04em;
}
.schedule-year-divider span { padding: .45rem .9rem; background: rgba(7, 8, 6, .52); }
.schedule-year-divider em { color: var(--gold); font-style: normal; }
.schedule-year-divider::before,
.schedule-year-divider::after {
  content: "";
  height: 1px;
  background: rgba(225, 178, 35, .8);
}
.date-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 3.75rem auto minmax(4.25rem, auto) auto;
  align-items: center;
  justify-items: center;
  row-gap: 1.5rem;
}
.date-card h2 { font: 900 clamp(2.6875rem,5.5vw,4.5rem)/1 Impact,'Arial Black',sans-serif; letter-spacing: .08em; margin: 0; white-space: nowrap; }
.date-weekday {
  display: block;
  margin-bottom: .2rem;
  opacity: .88;
  font: 700 clamp(.875rem, 1.1vw, 1rem)/1.2 Sometype, monospace;
  letter-spacing: .12em;
}
.date-route { min-height: 0; margin: 0; align-self: center; color: var(--gold); font-family: Sometype, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", monospace; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; overflow-wrap: break-word; text-transform: uppercase; }
.date-card .date-route {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.date-route.is-empty { visibility: hidden; }
.date-meta {
  width: max-content;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem 1.4rem;
  color: var(--paper);
  font-size: clamp(0.65rem, 0.78vw, 0.75rem);
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.date-meta.is-empty { visibility: hidden; }
.date-meta span {
  display: grid;
  grid-template-rows: auto auto;
  min-width: 0;
  align-items: start;
  justify-items: center;
  align-self: start;
  gap: 0.25rem;
  white-space: nowrap;
}
.date-meta strong {
  color: var(--gold);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.08em;
}
.date-place {
  min-height: 0;
  color: #efc5b4;
  text-shadow: 0 1px 2px #111b;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: break-word;
  transition: color 180ms ease, transform 220ms var(--ease-soft);
}
a.date-place {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: 100%;
  min-height: 44px;
  padding: 0.2rem 0.35rem;
}
.date-place-label {
  color: var(--gold);
  font: 700 0.65rem/1.2 Sometype, monospace;
  letter-spacing: 0.08em;
}
.date-place-location { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-width: 0; }
.date-place-pin {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  color: var(--gold);
}
.date-place-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.date-place-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}
.date-place-external { flex: none; color: var(--gold); font-size: 0.9em; text-decoration: none; }
a.date-place:hover,
a.date-place:focus-visible {
  color: var(--paper);
  transform: translateY(-0.1rem);
}
.date-details {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 254, 245, 0.72);
  background: rgba(13, 13, 10, 0.68);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: background-color 180ms ease, color 180ms ease, transform 220ms var(--ease-soft);
}
.date-details:hover,
.date-details:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-0.1rem);
}
.ride-checklist {
  width: min(100%, 82rem);
  margin: clamp(4.5rem, 8vw, 7rem) auto 0;
  padding: clamp(1rem, 2vw, 1.375rem) clamp(1rem, 2.4vw, 2rem);
  border-block: 1px solid rgba(255, 254, 245, 0.48);
  background: rgba(23, 22, 17, 0.76);
  backdrop-filter: blur(2px);
}
.ride-checklist ul {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1.15fr 0.85fr;
  align-items: center;
  gap: 0.75rem clamp(1rem, 2.4vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ride-checklist li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: clamp(0.75rem, 1vw, 0.9375rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.ride-checklist li span {
  flex: none;
  color: var(--gold);
  font-size: 1.1em;
  font-style: normal;
}
@media (max-width: 980px) {
  .schedule-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem 2rem;
  }
  .date-card { min-width: 0; }
  .date-route { max-width: min(100%, 24ch); }
  .ride-checklist ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ride-checklist li { justify-content: flex-start; }
}
@media (max-width: 640px) {
  /* Esta variante aparece después del fondo base para impedir la descarga del PNG grande. */
  .schedule-board {
    min-height: 0;
    padding-bottom: 65px;
    background-image:
      linear-gradient(180deg, rgba(7, 8, 6, 0.22), rgba(7, 8, 6, 0.34)),
      url("../../recursos/variantes/calendario-01-640.jpg");
    background-position: center;
  }
  .schedule-mark { margin-bottom: 60px; }
  .schedule-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 12px; }
  .schedule-year-divider { margin-block: -0.75rem; }
  .date-card {
    grid-template-rows: auto 3.75rem auto minmax(4.25rem, auto) auto;
    row-gap: 1.5rem;
  }
  .date-card h2 { font-size: clamp(1.75rem,9vw,3.25rem); margin: 0; }
  .date-card p, .date-card a { font-size: 0.75rem; }
  .date-card .date-details { width: 100%; font-size: 0.625rem; }
  .date-card .date-route { font-size: 1.5rem; }
  .date-card .date-meta {
    min-height: 0;
    margin: 0;
    grid-template-columns: repeat(2, max-content);
    gap: 0.55rem 0.35rem;
    font-size: 0.6875rem;
  }
  .date-card .date-meta span {
    width: auto;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    white-space: normal;
  }
  .date-meta strong { font-size: 0.6rem; }
  .ride-checklist {
    margin-top: 4rem;
    padding: 1.125rem 1rem;
  }
  .ride-checklist ul {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .ride-checklist li { font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .schedule-board { padding-inline: max(var(--side), env(safe-area-inset-left)); }
  .schedule-dates {
    width: min(100%, 25rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 4.75rem;
  }
  .date-card {
    grid-template-rows: auto 4.2rem auto minmax(4.25rem, auto) auto;
    row-gap: 1.5rem;
  }
  .date-card h2 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .date-card .date-route {
    max-width: min(100%, 22ch);
    font-size: clamp(1.4rem, 6.2vw, 1.75rem);
  }
  .date-card .date-meta { width: min(100%, 19rem); }
  .date-card .date-place { max-width: 100%; }
  .date-card .date-details { width: min(100%, 19rem); }
}
@media (max-width: 370px) { .date-card h2 { font-size: 8vw; } }


.schedule-empty { grid-column: 1 / -1; }
.schedule-empty a { text-decoration: underline; }

/* Breadcrumb alineado con las demás subpáginas, sobre el mismo fondo. */
.schedule-board > .routes-context {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  color: var(--paper);
  text-align: left;
}

/* Destacado editorial: la tarjeta conserva su lugar y las filas compartidas. */
.date-card.is-next {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 16, 12, .5), rgba(17, 16, 12, .26));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}
.date-card.is-next::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(225, 178, 35, .2);
  pointer-events: none;
}
.date-card.is-next::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(225, 178, 35, .35);
  pointer-events: none;
  animation: next-route-signal 4.2s ease-out infinite;
}
@keyframes next-route-signal {
  0%, 15% { opacity: 0; transform: scale(1); }
  32% { opacity: .9; transform: scale(1.008); }
  70%, 100% { opacity: 0; transform: scale(1.04); }
}
.date-next-label {
  position: absolute;
  top: -1.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  padding: .3rem .65rem;
  background: var(--gold);
  color: var(--ink);
  font: 700 .6875rem/1.25 Sometype, monospace;
  letter-spacing: .06em;
}
.date-card.is-next .date-details { border-color: var(--gold); }
.date-card.is-next .date-route {
  font-size: clamp(1.55rem, 1.45rem + .32vw, 1.65rem);
  letter-spacing: .025em;
}
.date-card.is-past > :is(h2, .date-route, .date-place) {
  color: rgba(255, 254, 245, .66);
  transition: color 180ms ease;
}
.date-card.is-past > .date-route {
  filter: saturate(.35) brightness(.9);
  transition: color 180ms ease, filter 180ms ease;
}
.date-card.is-past .date-place :is(.date-place-label, .date-place-pin, .date-place-external) { color: rgba(255, 254, 245, .66); }
.date-card.is-past .date-meta strong { color: var(--paper); transition: color 180ms ease; }
.date-card.is-past > :is(.date-meta, .date-details) {
  opacity: .72;
  transition: opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .date-card.is-past:is(:hover, :focus-within) > h2 { color: var(--paper); }
  .date-card.is-past:is(:hover, :focus-within) > :is(.date-route, .date-place) { color: var(--gold); }
  .date-card.is-past:is(:hover, :focus-within) > .date-route { filter: none; }
  .date-card.is-past:is(:hover, :focus-within) .date-place :is(.date-place-label, .date-place-pin, .date-place-external) { color: var(--gold); }
  .date-card.is-past:is(:hover, :focus-within) .date-meta strong { color: var(--gold); }
  .date-card.is-past:is(:hover, :focus-within) > :is(.date-meta, .date-details) { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .date-card.is-past .date-details:is(:hover, :focus-visible) {
    background: rgba(13, 13, 10, .68);
    color: var(--paper);
    opacity: .72;
    transform: none;
    outline: 2px solid var(--paper);
    outline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .has-js .schedule-dates[aria-busy="false"] > * { animation: none; }
  .date-card.is-past > :is(h2, .date-route, .date-meta, .date-place, .date-details) { transition: none; }
  .date-card.is-past > .date-route { transition: none; }
  .date-card.is-past .date-meta strong { transition: none; }
  .date-card.is-next::after { animation: none; display: none; }
}
