/* ================================================================
   HEROES — Voluntariat Esportiu de València · Brand Book 2026
   page.php / archive.php / single.php
   ================================================================ */

/* ================================================================
   PAGE HERO — fons fosc, "V" filigrana, motiu diagonal dreta
   ================================================================ */
.ph {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 5rem clamp(1.5rem, 8vw, 7rem) 4.5rem;
  color: white;
}

/* Filigrana "V" de fons */
.ph__wm {
  position: absolute;
  right: -4vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16rem, 32vw, 40rem);
  line-height: 0.85;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}

/* Capa de diagonals (cobreix tota la secció) */
.ph__diag {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  pointer-events: none;
  z-index: 0;
}
.ph__d {
  position: absolute;
  top: 0;
  height: 100%;
  transform: rotate(14deg);
  transform-origin: center;
}
.ph__d--r { right: -5%;  width: 28%; background: var(--brand);  opacity: 0.10; }
.ph__d--o { right: 16%;  width: 12%; background: var(--orange); opacity: 0.07; }
.ph__d--b { right: 24%;  width:  7%; background: var(--blue);   opacity: 0.06; }

/* Franja tricolor al peu */
.ph__stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  display: flex;
  z-index: 1;
}
.ph__stripe span:nth-child(1) { flex: 3; background: var(--brand); }
.ph__stripe span:nth-child(2) { flex: 3; background: var(--blue); }
.ph__stripe span:nth-child(3) { flex: 2; background: var(--orange); }

/* Contingut */
.ph__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.ph__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.ph__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.ph__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.25rem;
  -webkit-font-smoothing: auto;
}

.ph__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  max-width: 55ch;
  line-height: 1.7;
}

/* ================================================================
   ARCHIVE HERO — fons navy, accent vertical, info funcional
   ================================================================ */
.ah {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  color: white;
}

/* Barra d'accent vertical esquerra */
.ah__accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.ah__accent-r { flex: 3; background: var(--brand); }
.ah__accent-b { flex: 3; background: var(--blue); }
.ah__accent-o { flex: 2; background: var(--orange); }

/* Diagonals decoratives */
.ah__diag {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 160%;
  pointer-events: none;
  z-index: 0;
}
.ah__d {
  position: absolute;
  top: 0;
  height: 100%;
  transform: rotate(14deg);
  transform-origin: center;
}
.ah__d--r { right: -4%;  width: 38%; background: var(--brand);  opacity: 0.07; }
.ah__d--o { right: 20%;  width: 16%; background: var(--orange); opacity: 0.05; }

/* Àrea de contingut */
.ah__body {
  padding: 5rem clamp(1.5rem, 8vw, 7rem) 4.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}

.ah__left { max-width: 700px; }

.ah__type {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.ah__type::before {
  content: '';
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.28);
  flex-shrink: 0;
}

.ah__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.25rem;
  -webkit-font-smoothing: auto;
}
.ah__title em { font-style: normal; color: var(--brand); }

.ah__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  max-width: 55ch;
  line-height: 1.7;
}

/* Bloc de xifra (dreta) */
.ah__stat {
  text-align: right;
  flex-shrink: 0;
}
.ah__stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--orange);
  display: block;
  letter-spacing: -0.02em;
}
.ah__stat-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  display: block;
  margin-top: 0.3rem;
}

/* Franja de filtres */
.ah__filters {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.875rem clamp(1.5rem, 8vw, 7rem);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ah__filters-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.ah__filters-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.ah__filter-cat {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.45);
  transition: color 150ms, border-color 150ms, background 150ms;
}
.ah__filter-cat:hover {
  color: white;
  border-color: rgba(255,255,255,0.35);
}
.ah__filter-cat--active {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(201,35,29,0.12);
}

/* Filtros standalone — fuera del hero (Noticias: categorías) */
.ah__filters--standalone {
  background: var(--navy);
  border-top: none;
  border-bottom: 2px solid rgba(255,255,255,0.06);
}

/* Franja tricolor al peu */
.ah__stripe {
  display: flex;
  height: 3px;
  position: relative;
  z-index: 1;
}
.ah__stripe span:nth-child(1) { flex: 3; background: var(--brand); }
.ah__stripe span:nth-child(2) { flex: 3; background: var(--blue); }
.ah__stripe span:nth-child(3) { flex: 2; background: var(--orange); }

/* ================================================================
   SINGLE / NOTÍCIA HERO — fosc, títol gran, metadades, imatge
   ================================================================ */
.sh {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  color: white;
  padding: 4rem clamp(1.5rem, 8vw, 7rem) 3.5rem;
}

.sh::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -3%;
  width: 30%;
  height: 150%;
  background: var(--brand);
  transform: rotate(14deg);
  transform-origin: center;
  opacity: 0.09;
  pointer-events: none;
}
.sh::after {
  content: '';
  position: absolute;
  top: -25%;
  right: 14%;
  width: 12%;
  height: 150%;
  background: var(--orange);
  transform: rotate(14deg);
  transform-origin: center;
  opacity: 0.07;
  pointer-events: none;
}

.sh__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.sh__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.sh__category::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}
a.sh__category:hover { opacity: 0.78; }

.sh__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.25vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.75rem;
  -webkit-font-smoothing: auto;
}

/* Tira de metadades */
.sh__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 0;
}
.sh__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding-inline: 1.25rem;
}
.sh__meta-item:first-child { padding-left: 0; }
.sh__meta-item + .sh__meta-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.sh__meta-item i { font-size: 13px; }

/* Imatge destacada a ample complet */
.sh__image {
  display: block;
  width: 100%;
  overflow: hidden;
}
.sh__image img {
  width: 100%;
  height: clamp(280px, 40vw, 520px);
  object-fit: cover;
  display: block;
}

/* Sense imatge: franja tricolor */
.sh__stripe {
  display: flex;
  height: 4px;
}
.sh__stripe span:nth-child(1) { flex: 3; background: var(--brand); }
.sh__stripe span:nth-child(2) { flex: 3; background: var(--blue); }
.sh__stripe span:nth-child(3) { flex: 2; background: var(--orange); }

/* ================================================================
   ARCHIVE LOOP — graella de targetes
   ================================================================ */
.archive-loop {
  padding: 3.5rem clamp(1.5rem, 8vw, 7rem) 4rem;
  max-width: 1200px;
  margin-inline: auto;
}

.archive-loop__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.archive-loop__count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.archive-loop__count strong { color: var(--text); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Targeta d'article */
.arc-card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
  text-decoration: none;
  color: inherit;
}
.arc-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.arc-card__topbar { height: 4px; background: linear-gradient(90deg, var(--brand) 37.5%, var(--blue) 37.5% 75%, var(--orange) 75%); }
.arc-card--externa .arc-card__topbar { background: linear-gradient(90deg, var(--orange) 37.5%, var(--brand) 37.5% 75%, var(--blue) 75%); }

.arc-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.arc-card__img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 2rem;
}

.arc-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.arc-card__cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.arc-card__cat::before {
  content: '';
  width: 12px;
  height: 1.5px;
  background: var(--orange);
  flex-shrink: 0;
}

.arc-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.arc-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.arc-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--border);
  margin-top: auto;
}
.arc-card__date {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.arc-card__read {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 150ms;
}
.arc-card:hover .arc-card__read { gap: 8px; }

/* ── Featured card (primer article) ────────────────────────── */
.arc-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 260px;
}

.arc-card--featured .arc-card__topbar {
  width: 4px;
  height: auto;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    var(--brand)  0%    37.5%,
    var(--blue)  37.5%  75%,
    var(--orange) 75%  100%
  );
}

.arc-card--featured.arc-card--externa .arc-card__topbar {
  background: linear-gradient(
    to bottom,
    var(--orange) 0%    37.5%,
    var(--brand)  37.5%  75%,
    var(--blue)   75%  100%
  );
}

.arc-card--featured .arc-card__img {
  width: clamp(220px, 38%, 460px);
  height: auto;
  min-height: 260px;
  flex-shrink: 0;
  object-fit: cover;
}

.arc-card--featured .arc-card__img-placeholder {
  width: clamp(220px, 38%, 460px);
  min-height: 260px;
  flex-shrink: 0;
  height: auto;
}

.arc-card--featured .arc-card__body {
  padding: 2rem 2.25rem;
  justify-content: center;
}

.arc-card--featured .arc-card__title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.arc-card--featured .arc-card__excerpt {
  -webkit-line-clamp: 4;
  max-width: 60ch;
}

.arc-card__featured-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.625rem;
}
.arc-card__featured-label i { font-size: 11px; }

/* Mensaje sin resultados (estado vacío inline) */
.archive-no-results {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3rem 0;
  text-align: center;
}

/* ── Archive empty state ─────────────────────────────────────── */
.archive-empty {
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 520px;
  margin-inline: auto;
}

.archive-empty__icon {
  width: 72px;
  height: 72px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1.75rem;
}

.archive-empty__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}

.archive-empty__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 38ch;
}

/* Paginació */
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.archive-pagination .page-numbers {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-muted);
  transition: color 150ms, border-color 150ms, background 150ms;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
}
.archive-pagination .page-numbers.dots {
  border: none;
  width: auto;
  padding: 0 4px;
}
.archive-pagination .prev,
.archive-pagination .next {
  width: auto;
  padding: 0 14px;
  letter-spacing: 0.08em;
}

/* ================================================================
   SINGLE POST — Contenido, Breadcrumbs, Etiquetas, Nav, Relacionados
   ================================================================ */

/* Contenido del artículo */
.sp-content {
  padding: 3rem clamp(1.5rem, 8vw, 7rem) 2.5rem;
  max-width: calc(720px + 2 * clamp(1.5rem, 8vw, 7rem));
}

/* Breadcrumbs */
.sp-breadcrumb {
  padding: 0.75rem clamp(1.5rem, 8vw, 7rem);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.sp-breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.sp-breadcrumb__item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sp-breadcrumb__item a { color: var(--text-muted); transition: color 150ms; }
.sp-breadcrumb__item a:hover { color: var(--brand); }
.sp-breadcrumb__item--current { color: var(--text); }
.sp-breadcrumb__sep {
  color: var(--border-strong);
  font-size: 10px;
  user-select: none;
}

/* Etiquetas */
.sp-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.5rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
  max-width: calc(720px + 2 * clamp(1.5rem, 8vw, 7rem));
}
.sp-tags__label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-right: 0.25rem;
}
.sp-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text-muted);
  transition: color 150ms, border-color 150ms, background 150ms;
}
.sp-tag:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
}

/* Navegación Anterior / Siguiente */
.sp-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-nav__item {
  background: white;
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
  transition: background 150ms;
}
.sp-nav__item:hover { background: var(--bg-secondary); }
.sp-nav__item--next { text-align: right; }
.sp-nav__item--empty { background: var(--bg-secondary); }
.sp-nav__dir {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-nav__item--next .sp-nav__dir { justify-content: flex-end; }
.sp-nav__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Artículos relacionados */
.sp-related {
  padding: 3.5rem clamp(1.5rem, 8vw, 7rem) 4rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.sp-related__header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.sp-related__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}
.sp-related__title em { font-style: normal; color: var(--brand); }
.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .ah__body {
    grid-template-columns: 1fr;
  }
  .ah__stat { text-align: left; }
  .ah__diag { display: none; }
}

@media (max-width: 768px) {
  .ph { padding: 3rem 1.5rem 3.5rem; }
  .ph__wm { display: none; }
  .ph__diag { display: none; }

  .ah__body { padding: 3rem 1.5rem 3.5rem; }

  /* Filtros: scroll horizontal desde tablet — evita multi-línea en el hero */
  .ah__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
  }
  .ah__filters::-webkit-scrollbar { display: none; }
  .ah__filters-cats { flex-wrap: nowrap; min-width: min-content; }

  .sh { padding: 2.5rem 1.5rem 2rem; }
  .sh::before, .sh::after { opacity: 0.05; }

  .archive-loop { padding: 2.5rem 1.5rem 3rem; }

  .arc-card--featured {
    flex-direction: column;
    min-height: unset;
  }
  .arc-card--featured .arc-card__topbar {
    width: 100%;
    height: 4px;
    align-self: auto;
    background: linear-gradient(90deg, var(--brand) 37.5%, var(--blue) 37.5% 75%, var(--orange) 75%);
  }
  .arc-card--featured.arc-card--externa .arc-card__topbar {
    background: linear-gradient(90deg, var(--orange) 37.5%, var(--brand) 37.5% 75%, var(--blue) 75%);
  }
  .arc-card--featured .arc-card__img,
  .arc-card--featured .arc-card__img-placeholder {
    width: 100%;
    height: 220px;
    min-height: unset;
  }
  .arc-card--featured .arc-card__body {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .sp-nav { grid-template-columns: 1fr; }
  .sp-nav__item--next { text-align: left; }
  .sp-nav__item--next .sp-nav__dir { justify-content: flex-start; }
  .sp-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Ocultar label de filtros y ajustar gap en móvil estrecho */
  .ah__filters-label { display: none; }
  .ah__filters-cats { gap: 6px; }

  /* Featured card apilada: excerpt igual que tarjeta normal */
  .arc-card--featured .arc-card__excerpt { -webkit-line-clamp: 3; }
}

@media (max-width: 480px) {
  .ph__title { font-size: 1.6rem; }

  /* Hero title: evitar solapamiento cuando hace wrap en pantallas pequeñas */
  .ah__title { font-size: 1.5rem; line-height: 1.05; }

  .sh__title { font-size: 1.4rem; }
  .sh__meta { gap: 0.75rem; }
  .sh__meta-item { padding-inline: 0; border-left: none !important; }
  .archive-grid { grid-template-columns: 1fr; }
  .sp-content { padding-inline: 1.5rem; }
  .sp-tags { padding-inline: 1.5rem; }

  /* Featured card: imagen más compacta en móviles pequeños */
  .arc-card--featured .arc-card__img,
  .arc-card--featured .arc-card__img-placeholder {
    height: 185px;
  }
}
