/* Articulos */

.board-header-shell--article {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.editorial-page {
  position: relative;
  isolation: isolate;
}

.editorial-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--editorial-page-bg);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.editorial-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(248, 241, 230, 0.54) 0%, rgba(243, 232, 214, 0.34) 100%);
}

.editorial-page > * {
  position: relative;
  z-index: 1;
}

.editorial-shell {
  width: min(calc(100vw - clamp(36px, 3vw, 96px)), 2200px);
  margin: clamp(24px, 2vw, 34px) auto clamp(44px, 4vw, 66px);
  display: grid;
  gap: clamp(18px, 1.8vw, 30px);
}

.editorial-shell .section-panel {
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid rgba(103, 73, 47, 0.16);
  border-radius: 8px;
  background: rgba(251, 246, 238, 0.72);
  box-shadow: 0 18px 38px rgba(61, 38, 21, 0.12);
  backdrop-filter: blur(4px);
}

.editorial-hero {
  justify-items: center;
  text-align: center;
}

.editorial-hero__brand {
  display: block;
  width: clamp(122px, 9vw, 172px);
  height: auto;
}

.editorial-hero__eyebrow,
.editorial-card__theme,
.editorial-featured__label {
  margin: 0;
  color: #84522b;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editorial-hero h1,
.editorial-featured h2,
.editorial-card h2,
.editorial-card h3,
.editorial-single h1,
.editorial-related h2,
.editorial-cross-link h2,
.editorial-empty-state h2 {
  margin: 0;
  color: #4d2c19;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  line-height: 0.98;
}

.editorial-hero h1 {
  font-size: clamp(3rem, 5vw, 5.1rem);
}

.editorial-hero__summary,
.editorial-featured__subtitle,
.editorial-featured__summary,
.editorial-card__subtitle,
.editorial-card__summary,
.editorial-single__subtitle,
.editorial-single__content,
.editorial-cross-link p,
.editorial-empty-state p {
  margin: 0;
  color: rgba(73, 46, 27, 0.88);
  font-size: clamp(1rem, 0.44vw + 0.94rem, 1.12rem);
  line-height: 1.78;
}

.editorial-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 2.2vw, 38px);
  align-items: center;
}

.editorial-featured__media,
.editorial-card__media {
  display: block;
  text-decoration: none;
}

.editorial-featured__image,
.editorial-card__image,
.editorial-single__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.editorial-featured__copy,
.editorial-card__body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.editorial-featured h2 {
  font-size: clamp(2.5rem, 3.7vw, 4.2rem);
}

.editorial-featured__subtitle,
.editorial-card__subtitle,
.editorial-single__subtitle {
  font-weight: 700;
}

.editorial-featured__meta,
.editorial-card__meta,
.editorial-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editorial-featured__meta span,
.editorial-card__meta span,
.editorial-single__meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  background: rgba(92, 57, 34, 0.1);
  color: #5c3922;
  font-size: 0.92rem;
  font-weight: 700;
}

.editorial-filter-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editorial-filter-chip,
.editorial-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.18rem;
  border: 1px solid rgba(92, 57, 34, 0.22);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.66);
  color: #5c3922;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.editorial-filter-chip:hover,
.editorial-filter-chip:focus-visible,
.editorial-card__button:hover,
.editorial-card__button:focus-visible {
  transform: translateY(-1px);
  background: #5c3922;
  color: #fff6ea;
  outline: none;
}

.editorial-filter-chip.is-active {
  background: #5c3922;
  color: #fff6ea;
}

.editorial-card__button {
  background: #5c3922;
  color: #fff6ea;
}

.editorial-card__button--ghost {
  background: rgba(255, 251, 246, 0.62);
  color: #5c3922;
}

.editorial-card__button--ghost:hover,
.editorial-card__button--ghost:focus-visible {
  background: rgba(255, 248, 237, 0.92);
  color: #4d2c19;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 28px);
  align-items: stretch;
}

.editorial-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid rgba(111, 78, 48, 0.16);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.84);
  overflow: hidden;
}

.editorial-card__seal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: clamp(54px, 4.5vw, 72px);
  z-index: 2;
}

.editorial-card__seal img {
  display: block;
  width: 100%;
  height: auto;
}

.editorial-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.editorial-card__image {
  height: 100%;
}

.editorial-card h2,
.editorial-card h3 {
  font-size: clamp(1.75rem, 2vw, 2.24rem);
}

.editorial-card h2 a,
.editorial-card h3 a {
  color: inherit;
  text-decoration: none;
}

.editorial-card__summary {
  color: rgba(73, 46, 27, 0.76);
  font-size: 0.98rem;
}

.editorial-card__placeholder,
.editorial-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.72), rgba(244, 231, 209, 0.58));
  color: rgba(92, 57, 34, 0.72);
  text-align: center;
}

.editorial-empty-state {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  flex-direction: column;
  gap: 14px;
}

.editorial-empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--editorial-empty-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.14;
}

.editorial-empty-state > * {
  position: relative;
  z-index: 1;
}

.editorial-pagination {
  display: flex;
  justify-content: center;
}

.editorial-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.editorial-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.84);
  color: #5c3922;
  font-weight: 700;
  text-decoration: none;
}

.editorial-pagination .page-numbers.current {
  background: #5c3922;
  color: #fff6ea;
}

.editorial-cross-links,
.editorial-single__links {
  display: grid;
  gap: 16px;
}

.editorial-cross-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-cross-link {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(111, 78, 48, 0.16);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.6);
  color: #4d2c19;
  text-decoration: none;
}

.editorial-single {
  display: grid;
  gap: 24px;
}

.editorial-single__header {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.editorial-single h1 {
  font-size: clamp(2.8rem, 4.4vw, 4.8rem);
  max-width: 18ch;
}

.editorial-single__hero {
  width: min(100%, 920px);
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(61, 38, 21, 0.14);
  background: rgba(255, 251, 246, 0.72);
}

.editorial-single__hero .wp-post-image,
.editorial-single__hero .editorial-single__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-single__content {
  width: min(100%, 820px);
  margin: 0 auto;
  color: rgba(73, 46, 27, 0.92);
  font-size: clamp(1.02rem, 0.46vw + 0.96rem, 1.14rem);
  line-height: 1.9;
}

.editorial-single__content > :first-child {
  margin-top: 0;
}

.editorial-single__content > :last-child {
  margin-bottom: 0;
}

.editorial-single__links,
.editorial-single__actions {
  width: min(100%, 980px);
  margin: 0 auto;
}

.editorial-single__links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-single__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 1200px) {
  .editorial-featured,
  .editorial-cross-links,
  .editorial-single__links {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .board-header-shell--article {
    justify-items: end;
  }

  .board-header-shell--article .board-header-brand {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-filter-bar__links,
  .editorial-featured__meta,
  .editorial-card__meta,
  .editorial-single__meta {
    gap: 8px;
  }

  .editorial-single__actions {
    flex-direction: column;
  }

  .editorial-card__button {
    width: 100%;
  }
}


