/* =========================
   NOTAS - BASE
   ========================= */

.article-hero {
  padding: 48px 0 30px;
}

.article-hero h1 {
  max-width: 980px;
  margin: 16px 0 24px;
  font-family: "Anton", sans-serif;
  font-size: clamp(2.8rem, 4.6vw, 4.7rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.article-lead {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.article-section {
  padding: 24px 0 46px;
}

.article-content {
  max-width: 900px;
}

.article-content p,
.article-content li {
  font-size: 1rem;
  line-height: 1.75;
}

.article-content p {
  margin: 0 0 22px;
}

.article-content h2 {
  margin: 46px 0 18px;
  color: var(--blue-dark);
  font-size: 1.8rem;
  line-height: 1.25;
}

/* DESTACADO INICIAL */

.article-intro {
  margin: 0 0 38px;
  padding: 26px 28px;
  background: var(--blue-soft);
  border-radius: 18px;
}

.article-intro p {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.65;
}

/* TARJETAS */

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin: 26px 0 38px;
}

.article-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.article-content code {
  font-size: 0.9em;
  word-break: break-all;
}

.article-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* DESTACADOS */

.article-highlight {
  margin: 38px 0;
  padding: 24px 28px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 18px 18px 0;
}

.article-highlight p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 700;
}

.article-highlight-final {
  margin-bottom: 0;
}

.article-back {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* LINK DENTRO DE TARJETA */

.article-card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

/* LLAMADO A LA ACCIÓN */

.article-cta {
  margin: 0 0 38px;
  padding: 26px 28px;
  background: var(--blue-soft);
  border: 1px solid rgba(var(--blue-rgb), 0.18);
  border-radius: 18px;
  scroll-margin-top: 100px;
}

.article-content .article-cta h2 {
  margin-top: 0;
}

.article-cta p {
  margin: 0 0 18px;
  color: var(--blue-dark);
  line-height: 1.65;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 620px) {
  .article-cta {
    padding: 22px 20px;
  }

  .article-cta .btn {
    width: 100%;
  }
}

/* AGENDA POR FECHAS */

.schedule-month {
  margin-top: 48px;
}

.schedule-month-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-soft);
}

.article-content .schedule-month-heading h2 {
  margin: 0;
}

.schedule-month-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.schedule-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 42, 81, 0.06);
}

.schedule-card-header {
  padding: 20px 22px 18px;
  background: var(--blue-soft);
}

.schedule-round {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.08rem;
  line-height: 1.35;
}

.schedule-assignments {
  margin: 0;
  padding: 8px 22px 12px;
  list-style: none;
}

.article-content .schedule-assignments li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.4;
}

.schedule-assignments li:last-child {
  border-bottom: 0;
}

.schedule-assignments span {
  color: var(--muted);
}

.schedule-assignments strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.88rem;
  white-space: nowrap;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 700px) {
  .article-hero {
    padding: 30px 0 20px;
  }

  .article-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
    line-height: 1.08;
  }

  .article-lead {
    font-size: 1rem;
  }

  .article-section {
    padding: 16px 0 34px;
  }

  .article-content h2 {
    margin-top: 36px;
    font-size: 1.45rem;
  }

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

  .schedule-month {
    margin-top: 38px;
  }

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

  .schedule-card-header,
  .schedule-assignments {
    padding-right: 18px;
    padding-left: 18px;
  }

  .article-intro {
    padding: 22px;
  }

  .article-highlight {
    padding: 20px;
  }

  .article-back .btn {
    width: 100%;
  }
}
/* El listado de referentes lo arma referentes.js: alto mínimo de una pantalla para que el recuadro final no salte al cargar (CLS). */
#referentes-lista {
  min-height: 100vh;
}
