/* ==========================================================================
   Black Versions: componentes
   Mobile-first. Puntos de quiebre: 48rem (768), 52rem (832, anuncio 728),
   64rem (1024), 75rem (1200).
   ========================================================================== */

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  --bg: var(--black);
  border-bottom: 1px solid var(--rule-soft);
  transition: transform var(--dur-slow) var(--ease);
}

.site-header.is-hidden { transform: translateY(-101%); }

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo actions"
    "nav nav";
  align-items: center;
  column-gap: var(--s-4);
}

.site-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 56px;
}

.site-logo__full { width: 92px; height: 40px; }
.site-logo__mark { display: none; width: 36px; height: 36px; }

.site-header.is-scrolled .site-logo__full { display: none; }
.site-header.is-scrolled .site-logo__mark { display: block; }

.site-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transition: color var(--dur) var(--ease);
}

.icon-btn:hover { color: var(--orange); }
.icon-btn svg { width: 24px; height: 24px; }

/* El ícono muestra el modo al que se va a cambiar */
.theme-icon--sun,
[data-state="dark"] .theme-icon--moon { display: none; }
[data-state="dark"] .theme-icon--sun { display: block; }

.site-nav {
  grid-area: nav;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav__list {
  display: flex;
  gap: var(--s-1);
  width: max-content;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 44px;
  padding-inline: var(--s-3);
  font-size: 1.0625rem;
  font-stretch: 82%;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 -4px 0 transparent;
  transition: box-shadow var(--dur) var(--ease);
}

.site-nav__link:hover { box-shadow: inset 0 -4px 0 var(--cat, var(--orange)); }

.site-nav__link[aria-current] { box-shadow: inset 0 -4px 0 var(--cat, var(--orange)); }

.site-nav__link svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.site-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__link[aria-expanded="true"] { box-shadow: inset 0 -4px 0 var(--cat); }

.site-search {
  display: none;
  grid-column: 1 / -1;
  padding-block: var(--s-2) var(--s-3);
}

.site-search.is-open { display: flex; }

.site-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding-inline: var(--s-3);
  background: var(--white);
  color: var(--black);
  border: 0;
  border-radius: 0;
}

.site-search__input::placeholder { color: #55595e; opacity: 1; }

.site-search__btn {
  height: 44px;
  padding-inline: var(--s-4);
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
}

.menu-panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding-block: var(--s-5);
  background: var(--black);
  border-block: 4px solid var(--cat-horoscopo);
}

.menu-panel__title {
  margin-bottom: var(--s-3);
  color: var(--cat-horoscopo);
  font-size: 1.75rem;
  font-family: var(--font-headline);
  font-stretch: 66%;
  font-weight: 800;
  line-height: 1;
}

.menu-panel__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-1) var(--s-3);
}

.menu-panel__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-stretch: 80%;
  font-weight: 700;
}

.menu-panel__link:hover { color: var(--cat-horoscopo); }

.menu-panel .text-link { margin-top: var(--s-3); }

@media (min-width: 64rem) {
  .site-header__bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav actions";
    column-gap: var(--s-5);
    min-height: 72px;
  }

  .site-logo__full { width: 120px; height: 52px; }
  .site-logo__mark { width: 44px; height: 44px; }

  .site-nav { margin: 0; padding: 0; overflow: visible; }
  .site-nav__link { min-height: 72px; font-size: 1.125rem; }

  .site-search { justify-self: end; width: min(100%, 28rem); }

  .menu-panel__list { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Barra de progreso de lectura ---------- */

.read-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Etiquetas, chips y metadatos ---------- */

.tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 3px var(--s-2) 2px;
  background: var(--cat, var(--orange));
  color: var(--black);
  font-size: var(--fs-meta);
  font-stretch: 88%;
  font-weight: 700;
  line-height: 1.3;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px var(--s-2) 2px;
  background: var(--black);
  color: var(--white);
  font-size: var(--fs-meta);
  font-stretch: 88%;
  font-weight: 800;
  line-height: 1.3;
}

.chip--live { background: #e0002d; }

.chip--live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: chip-pulse 1.6s ease-in-out infinite;
}

.chip--urgent { background: var(--orange); color: var(--black); }

@keyframes chip-pulse {
  50% { opacity: 0.35; }
}

.time {
  display: block;
  color: var(--muted);
  font-size: var(--fs-meta);
  font-weight: 500;
}

/* ---------- Hero: 1 principal y 2 secundarias en un solo bloque negro ---------- */

.hero-block { margin-inline: calc(-1 * var(--gutter)); }

.hero-main {
  position: relative;
  display: grid;
}

.hero-main__media {
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.hero-main__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main__text { padding: var(--s-4) var(--gutter) 0; }

.hero-main__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.hero-main__title {
  font-family: var(--font-headline);
  font-size: var(--fs-hero);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.hero-main__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-main:hover .hero-main__title a {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.hero-main__title a:focus-visible { outline: none; }
.hero-main__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }

.hero-main__dek {
  padding: var(--s-3) var(--gutter) var(--s-5);
  font-family: var(--font-read);
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-side {
  display: grid;
  gap: var(--s-4);
  padding: 0 var(--gutter) var(--s-5);
}

.hero-side > .story {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
}

@media (min-width: 48rem) {
  .hero { padding-top: var(--s-5); }
  .hero-block { margin-inline: 0; }
  .hero-main__text { padding: var(--s-5) var(--s-5) 0; }
  .hero-main__dek { padding: var(--s-3) var(--s-5) var(--s-5); }

  .hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
    padding: var(--s-5);
    border-top: 1px solid var(--rule-soft);
  }

  .hero-side > .story { padding-top: 0; border-top: 0; }
}

/* Titular a la izquierda; a la derecha la foto completa y su bajada */
@media (min-width: 64rem) {
  .hero-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "text media"
      "text dek";
  }

  .hero-main__media { grid-area: media; }
  .hero-main__dek { grid-area: dek; padding: var(--s-3) var(--s-5) var(--s-4) var(--s-4); }

  .hero-main__text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-5);
  }
}

@media (min-width: 75rem) {
  .hero-block {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .hero-side {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0 var(--s-5);
    border-top: 0;
    border-left: 1px solid var(--rule-soft);
  }

  .hero-side > .story { align-content: center; padding-block: var(--s-4); }
  .hero-side > .story + .story { border-top: 1px solid var(--rule-soft); }
}

/* ---------- Lo último: el único bloque naranja de la portada ---------- */

.latest__box {
  --text: #000000;
  --muted: #000000;
  --rule-soft: rgb(0 0 0 / 0.35);
  --focus: #000000;
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--s-4) var(--gutter) var(--s-3);
  background: var(--orange);
  color: var(--text);
}

.latest__title {
  margin-bottom: var(--s-3);
  font-family: var(--font-headline);
  font-size: clamp(2.25rem, 1.9rem + 1.6vw, 3.25rem);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
}

.latest__item {
  position: relative;
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule-soft);
}

.latest__item .time { font-size: 0.9375rem; font-weight: 700; }

.latest__link {
  display: block;
  margin-top: 2px;
  font-size: 1.3125rem;
  font-stretch: 76%;
  font-weight: 800;
  line-height: 1.12;
  text-wrap: pretty;
}

.latest__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.latest__item:hover .latest__link {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.latest__link:focus-visible { outline: none; }
.latest__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 1px; }

@media (min-width: 48rem) {
  .latest__box { margin-inline: 0; padding: var(--s-4) var(--s-5) var(--s-3); }
  .latest__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
}

@media (min-width: 75rem) {
  .latest__box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-6);
    padding-block: var(--s-5);
  }

  .latest__title { margin: 0; max-width: 3em; }

  .latest__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }

  .latest__item {
    padding: 0 var(--s-4);
    border-top: 0;
    border-left: 2px solid var(--black);
  }
}

/* ---------- Nota en listados ---------- */

.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: var(--s-3);
  align-items: start;
  align-content: start;
}

.story__media {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__body {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.story__title {
  margin-block: var(--s-2) var(--s-1);
  font-size: var(--fs-row);
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.14;
  text-wrap: pretty;
}

.story__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.story__link {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  transition: background-size var(--dur-slow) var(--ease);
}

.story:hover .story__link { background-size: 100% 3px; }
.story__link:focus-visible { outline: none; }
.story__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }

.story__dek {
  display: none;
  color: var(--muted);
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.5;
}

/* Portada grande, siempre apilada */
.story--lead { grid-template-columns: minmax(0, 1fr); }
.story--lead .story__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
.story--lead .story__body { grid-column: 1; grid-row: 2; }
.story--lead .story__title { font-size: var(--fs-lead); font-family: var(--font-headline); font-stretch: 68%; font-weight: 800; line-height: 1.02; }
.story--lead .story__dek { display: block; margin-bottom: var(--s-2); }

@media (min-width: 48rem) {
  .story:not(.story--compact) { grid-template-columns: minmax(0, 1fr); }
  .story:not(.story--compact) .story__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
  .story:not(.story--compact) .story__body { grid-column: 1; grid-row: 2; }
  .story:not(.story--lead):not(.story--compact) .story__title { font-size: var(--fs-card); }
}

/* ---------- Portada tipográfica: nota sin imagen ---------- */

.poster {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: var(--cat, var(--orange));
  background-image: linear-gradient(150deg, transparent 0 62%, rgb(0 0 0 / 0.1) 62% 74%, transparent 74%);
  color: var(--black);
}

.poster__top {
  padding: var(--s-4) var(--s-4) 0;
  font-size: 1.0625rem;
  font-stretch: 80%;
  font-weight: 800;
}

.poster__title {
  flex: 1;
  padding: var(--s-3) var(--s-4) var(--s-5);
  font-size: clamp(2.25rem, 15cqi, 4rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.98;
  text-wrap: pretty;
}

.poster__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.poster:hover .poster__link { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.poster__link:focus-visible { outline: none; }
.poster__link:focus-visible::after { outline: 3px solid var(--black); outline-offset: -6px; }

.poster__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: var(--band);
  color: var(--white);
  font-size: var(--fs-meta);
  font-weight: 600;
}

.poster__foot img { width: 26px; height: 26px; }

/* Versión miniatura para listas */
.poster-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--cat, var(--orange));
}

.poster-thumb img { width: 58%; height: auto; }

/* ---------- Encabezado de sección: compacto y con cuatro tratamientos ---------- */

.section-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.section-head__title {
  font-size: var(--fs-section);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.section-head__more {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px;
  font-stretch: 85%;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--cat, var(--orange));
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Filete: título en el color del texto bajo una línea de la categoría */
.section-head--rule { padding-top: var(--s-6); }

.section-head--rule .section-head__inner {
  padding-top: var(--s-2);
  border-top: 6px solid var(--cat, var(--orange));
}

/* Banda: relleno con el color de la categoría */
.section-head--fill {
  --focus: #000000;
  background: var(--cat, var(--orange));
  color: var(--black);
}

.section-head--fill .section-head__more { text-decoration-color: var(--black); }

/* Pestaña: el título cuelga de una línea de la categoría */
.section-head--tab { padding-top: var(--s-6); }

.section-head--tab .section-head__inner {
  align-items: flex-end;
  border-bottom: 4px solid var(--cat, var(--orange));
}

.section-head--tab .section-head__title {
  padding: var(--s-2) var(--s-3) var(--s-1);
  background: var(--band);
  color: var(--cat, var(--orange));
}

/* Dentro de un bloque negro: solo el título en color */
.section-head--plain { color: var(--text); }
.section-head--plain .section-head__inner { padding-top: var(--s-5); }
.section-head--plain .section-head__title { color: var(--cat, var(--orange)); }

.section__body { padding-block: var(--s-5) var(--s-7); }

/* ---------- Grillas de portada ---------- */

.news-layout { display: grid; gap: var(--s-6); }

/* En el celular el anuncio va antes de Lo más leído: así no queda pegado al siguiente */
.news-layout__aside { display: grid; gap: var(--s-5); align-content: start; }
.news-layout__aside .ad-slot { order: -1; }

.bento { display: grid; gap: var(--s-5); }

.bento > .story:not(.story--lead) {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
}

.split { display: grid; gap: var(--s-5); }

.split__list { display: grid; gap: var(--s-4); align-content: start; }

.split__list > .story + .story {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
}

.trio { display: grid; gap: var(--s-5); }

.trio > .story + .story {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
}

@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .bento > * { grid-column: span 4; }
  .bento > .story--lead { grid-column: span 7; }
  .bento > .bento__poster { grid-column: span 5; }
  .bento > .story:not(.story--lead) { padding-top: 0; border-top: 0; }

  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio > .story + .story { padding-top: 0; border-top: 0; }
  .trio > .ad-slot { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .news-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-7); }
  .news-layout__aside .ad-slot { order: 0; }

  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); }

  /* La lista reparte el alto de la nota principal: las dos columnas terminan juntas */
  .split > .split__list {
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    gap: 0;
  }

  .split__list > .story {
    grid-template-columns: minmax(0, 1fr) 11rem;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    align-content: stretch;
    padding-block: var(--s-4);
  }

  .split__list > .story:first-child { padding-top: 0; }
  .split__list > .story:last-child { padding-bottom: 0; }

  .split__list .story__media {
    position: relative;
    aspect-ratio: auto;
    min-height: 7rem;
  }

  .split__list .story__media > img { position: absolute; inset: 0; }
  .split__list .story__title { font-size: var(--fs-card); }
}

@media (min-width: 75rem) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)) 20rem; gap: var(--s-5); }
  .trio > .ad-slot { grid-column: auto; }
}

/* ---------- Lo más leído ---------- */

.most-read { padding: var(--s-4); }

.most-read__title {
  margin-bottom: var(--s-3);
  color: var(--orange);
  font-size: 2.25rem;
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.most-read__list { counter-reset: rank; }

.most-read__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: start;
  padding-block: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  counter-increment: rank;
}

.most-read__item::before {
  content: counter(rank);
  color: var(--orange);
  font-size: 2.25rem;
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
}

.most-read__link {
  font-size: 1.0625rem;
  font-stretch: 82%;
  font-weight: 600;
  line-height: 1.2;
}

.most-read__link:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ---------- Publicidad ---------- */

.ad-slot {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  padding: var(--s-2);
  background: var(--surface);
  contain: layout;
}

.ad-slot__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.ad-slot__box {
  display: grid;
  place-items: center;
  width: var(--ad-w);
  height: var(--ad-h);
  max-width: 100%;
  border: 1px dashed var(--ad-line);
  color: var(--muted);
  font-size: var(--fs-meta);
  font-weight: 500;
}

.ad-slot--rect { --ad-w: 300px; --ad-h: 250px; }
.ad-slot--banner { --ad-w: 320px; --ad-h: 100px; }

.ad-slot__size--md { display: none; }

/* Anuncio real de Pauta: sin caja punteada ni alto fijo. La etiqueta la pone el tema. */
.ad-slot--pauta .ad-slot__box {
  display: block;
  width: 100%;
  max-width: var(--ad-w);
  height: auto;
  border: 0;
}

.ad-slot--banner.ad-slot--pauta .ad-slot__box { max-width: 100%; }

/* Los contenedores de Pauta ocupan todo el ancho del espacio. Con "margin: auto" y el
   "overflow: hidden" de Pauta, Chrome les daba ancho 0, así que el <ins> de AdSense
   (data-ad-format="auto") medía 0 y Google no creaba el iframe. El espacio ya está centrado. */
.ad-slot--pauta .pauta-ad {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.ad-slot--pauta .pauta-ad__inner,
.ad-slot--pauta ins.adsbygoogle { width: 100%; }
.ad-slot--pauta .pauta-ad__label { display: none; }
.ad-slot--pauta .pauta-ad__img { width: 100%; }

/* AdSense sin anuncio que mostrar ("unfilled" o "unfill-optimized"): el espacio desaparece, sin hueco */
.ad-slot:has(ins.adsbygoogle[data-ad-status^="unfill"]),
.ad-band:has(ins.adsbygoogle[data-ad-status^="unfill"]) { display: none; }

/* Patrocinio de una nota: en la columna lateral en escritorio, dentro del texto en celular y tableta */
.ad-slot--patrocinio-lateral { display: none; }

@media (min-width: 64rem) {
  .ad-slot--patrocinio-lateral { display: grid; }
  .ad-slot--patrocinio-cuerpo { display: none; }
}

.ad-band { padding-block: var(--s-4); background: var(--surface); }
.ad-band .ad-slot { padding: 0; }

/* 728 px solo cuando cabe entero dentro del contenedor */
@media (min-width: 52rem) {
  .ad-slot--banner { --ad-w: 728px; --ad-h: 90px; }
  .ad-slot__size--sm { display: none; }
  .ad-slot__size--md { display: inline; }
}

/* ---------- Horóscopo ---------- */

.horoscope { padding-block: var(--s-4) var(--s-6); }

.horoscope__grid { display: grid; gap: var(--s-5); }

.sign-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-1);
}

.sign-tab {
  min-height: 48px;
  padding-inline: var(--s-1);
  background: var(--surface);
  color: var(--white);
  font-size: 1.125rem;
  font-stretch: 76%;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease);
}

.sign-tab:hover { background: #333333; }

.sign-tab[aria-selected="true"] {
  background: var(--cat-horoscopo);
  color: var(--black);
}

.sign-panel__name {
  color: var(--cat-horoscopo);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
}

.sign-panel__range {
  margin-block: var(--s-1) var(--s-3);
  color: var(--muted);
  font-size: var(--fs-meta);
  font-weight: 500;
}

.sign-panel__text {
  max-width: var(--measure);
  font-family: var(--font-read);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  margin-top: var(--s-2);
  font-stretch: 85%;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--cat, var(--orange));
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

@media (min-width: 64rem) {
  .horoscope__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-7);
  }

  /* Los signos ocupan todo el alto del texto: no queda negro vacío debajo */
  .sign-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(72px, 1fr); }
  .sign-tab { font-size: 1.375rem; }
}

/* ---------- Íconos ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

/* ---------- Síguenos ---------- */

.follow { padding-block: var(--s-6); }

.follow__inner { display: grid; gap: var(--s-4); }

.follow__title {
  font-size: var(--fs-section);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.follow__text {
  margin-top: var(--s-1);
  color: var(--muted);
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.follow__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}

.follow__list li:last-child { grid-column: 1 / -1; }

.follow__link {
  display: grid;
  row-gap: 2px;
  height: 100%;
  padding: var(--s-3);
  background: var(--surface);
  border-top: 4px solid var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.follow__link .icon { width: 28px; height: 28px; margin-bottom: var(--s-2); }

.follow__name {
  font-size: 1.25rem;
  font-stretch: 76%;
  font-weight: 800;
  line-height: 1.1;
}

.follow__handle {
  color: var(--muted);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.25;
  transition: color var(--dur) var(--ease);
}

.follow__link:hover { background: var(--orange); border-color: var(--black); color: var(--black); }
.follow__link:hover .follow__handle { color: var(--black); }

@media (min-width: 48rem) {
  .follow__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .follow__list li:last-child { grid-column: auto; }
}

@media (min-width: 64rem) {
  .follow__inner { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-6); align-items: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  --bg: var(--black);
  padding-block: var(--s-7) var(--s-5);
  border-top: 1px solid var(--rule-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6) var(--s-4);
}

.site-footer__grid > :first-child,
.site-footer__grid > :last-child { grid-column: 1 / -1; }

.site-footer__logo { width: 168px; height: 73px; margin-bottom: var(--s-4); }

.site-footer__about {
  max-width: 34em;
  color: var(--muted);
  font-family: var(--font-read);
  font-size: 1rem;
  line-height: 1.6;
}

.site-footer__title {
  margin-bottom: var(--s-2);
  color: var(--orange);
  font-size: 1.5rem;
  font-family: var(--font-headline);
  font-stretch: 66%;
  font-weight: 800;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.site-footer__links a:hover { color: var(--orange); }

.site-footer__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: var(--fs-meta);
}

@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1.25fr; gap: var(--s-6); }
  .site-footer__grid > :first-child,
  .site-footer__grid > :last-child { grid-column: auto; }
}

/* ---------- Nota: cabecera ---------- */

.article-head { padding-block: var(--s-4) var(--s-6); }

.breadcrumb {
  margin-bottom: var(--s-4);
  color: var(--muted);
  font-size: var(--fs-meta);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--s-2);
  color: var(--muted);
}

.breadcrumb a {
  display: inline-block;
  padding-block: var(--s-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover { color: var(--text); }

.article-head__title {
  margin-block: var(--s-3);
  font-size: var(--fs-article);
  font-family: var(--font-headline);
  font-stretch: 64%;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.article-head__dek {
  max-width: 36em;
  font-family: var(--font-read);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.45;
}

.byline {
  display: grid;
  gap: var(--s-1) var(--s-5);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  font-size: 0.9375rem;
}

.byline__item { color: var(--muted); }
.byline__item strong { color: var(--text); font-weight: 700; }

@media (min-width: 48rem) {
  .byline { display: flex; flex-wrap: wrap; }
}

/* ---------- Compartir ---------- */

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
}

.share__label {
  width: 100%;
  margin-bottom: var(--s-1);
  font-size: 1.125rem;
  font-stretch: 76%;
  font-weight: 800;
}

.share__btn {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding-inline: var(--s-3);
  background: var(--surface);
  color: var(--text);
  font-stretch: 85%;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease);
}

.share__btn:hover { background: var(--rule-soft); }

.share__btn--whatsapp {
  flex: 1 1 100%;
  background: #25d366;
  color: var(--black);
  font-size: 1.125rem;
  font-weight: 800;
}

.share__btn--whatsapp:hover { background: #1fbd5a; }

.share__status {
  width: 100%;
  min-height: 1.4em;
  color: var(--muted);
  font-size: var(--fs-meta);
}

@media (min-width: 48rem) {
  .share__btn { flex: 0 1 auto; padding-inline: var(--s-4); }
  .share__btn--whatsapp { flex: 0 1 auto; }
  .share__label { width: auto; margin: 0 var(--s-2) 0 0; }
  .share__status { width: auto; margin-left: var(--s-2); }
}

/* ---------- Nota: cuerpo ---------- */

.article-layout {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}

.article-main { min-width: 0; }

/* Foto, texto, anuncios y fuente comparten el ancho de .article-main */
.article-figure {
  margin-bottom: var(--s-5);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.article-main > .share { margin-block: var(--s-4); }

.toc {
  margin-bottom: var(--s-5);
  background: var(--surface);
  border-left: 6px solid var(--cat, var(--orange));
}

.toc__summary {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-2) var(--s-4);
  font-size: 1.25rem;
  font-stretch: 76%;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.toc__summary::-webkit-details-marker { display: none; }

.toc__count {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--fs-meta);
  font-stretch: 100%;
  font-weight: 500;
}

.toc__summary svg { flex: none; width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.toc[open] .toc__summary svg { transform: rotate(180deg); }

.toc__list { padding: 0 var(--s-4) var(--s-4); }
.toc__list > li + li { margin-top: var(--s-3); }

.toc__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.toc__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.toc__sub .toc__link { font-weight: 500; }

@media (min-width: 48rem) {
  .toc__sub { columns: 2; column-gap: var(--s-5); }
  .toc__sub li { break-inside: avoid; }
}

.article-body {
  font-family: var(--font-read);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.article-body p { margin-bottom: 1.3em; text-wrap: pretty; }

/* Entrada: el primer párrafo del cuerpo, un poco más grande */
.article-body:not(.article-body--horoscopo) > p:first-of-type:not(.article-body__resalte) {
  font-size: 1.125em;
  line-height: 1.6;
}

/* RPP marca demasiadas palabras: la negrita acompaña, no domina */
.article-body strong,
.article-body b { font-weight: 600; color: inherit; }

.article-body h2,
.article-body h3 {
  clear: both;
  font-family: var(--font-display);
  line-height: 1.05;
  text-wrap: balance;
}

/* h2: filete corto del color de la sección y aire antes; h3: más chico y pegado a su texto */
.article-body h2 {
  margin-block: 2.1em 0.55em;
  font-size: clamp(1.875rem, 1.6rem + 1vw, 2.5rem);
  font-family: var(--font-headline);
  font-stretch: 66%;
  font-weight: 800;
}

.article-body h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 6px;
  margin-bottom: 0.4em;
  background: var(--cat, var(--orange));
}

.article-body h3 {
  margin-block: 1.8em 0.4em;
  font-size: 1.4375rem;
  font-stretch: 75%;
  font-weight: 800;
}

.article-body h2 + h3 { margin-top: 0.9em; }

.article-body a:not(.inline-figure__zoom) {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-body .ad-slot {
  margin-block: var(--s-5) var(--s-6);
  font-family: var(--font-display);
  line-height: 1.2;
}

/* Imagen dentro del texto */
.inline-figure {
  margin-block: var(--s-5) var(--s-6);
  border: 1px solid var(--rule-soft);
}

.inline-figure__zoom {
  position: relative;
  display: block;
  background: var(--white);
  cursor: zoom-in;
}

/* Las fotos verticales no ocupan más de una pantalla: se ven enteras, sobre blanco */
.inline-figure__zoom img {
  width: 100%;
  max-height: min(80vh, 46rem);
  object-fit: contain;
}

.inline-figure { clear: both; }

.inline-figure__hint {
  position: absolute;
  right: var(--s-2);
  bottom: var(--s-2);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--black);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.inline-figure__hint svg { width: 20px; height: 20px; }
.inline-figure__zoom:hover .inline-figure__hint { background: var(--orange); color: var(--black); }

.inline-figure__caption {
  padding: var(--s-2) var(--s-3);
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.35;
}

/* Ampliación */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: var(--s-4);
  background: rgb(0 0 0 / 0.92);
  color: var(--white);
  border: 0;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--s-3);
}

.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }

html:has(.lightbox[open]) { overflow: hidden; }

.lightbox__close {
  display: grid;
  justify-self: end;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--black);
}

.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__close:focus-visible { outline-color: var(--orange); }

/* En el celular la imagen conserva su tamaño real y se recorre con el dedo */
.lightbox__frame {
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
}

.lightbox__frame:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.lightbox__img { max-width: none; background: var(--white); }

.lightbox__caption {
  max-width: 44em;
  justify-self: center;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 64rem) {
  .lightbox { padding: var(--s-5); }
  .lightbox__img { width: auto; max-width: 100%; max-height: 100%; }
  .lightbox__frame { height: 100%; }
}

.source {
  margin-block: var(--s-5);
  padding: var(--s-4);
  font-size: var(--fs-body);
  background: var(--surface);
  border-left: 6px solid var(--cat, var(--orange));
}

.source__name {
  font-size: 1.375rem;
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.15;
}

.article-aside { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }

.aside-latest {
  --text: #000000;
  --muted: #000000;
  --rule-soft: rgb(0 0 0 / 0.35);
  --focus: #000000;
  padding: var(--s-4);
  background: var(--orange);
  color: var(--text);
}

.aside-latest__title {
  margin-bottom: var(--s-2);
  font-size: 2.25rem;
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.aside-latest__item {
  position: relative;
  padding-block: var(--s-2);
  border-top: 1px solid var(--rule-soft);
}

.aside-latest__item:last-child { padding-bottom: 0; }

.aside-latest__item .time { font-weight: 700; }

.aside-latest__link {
  display: block;
  font-size: 1.0625rem;
  font-stretch: 80%;
  font-weight: 700;
  line-height: 1.16;
}

.aside-latest__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.aside-latest__item:hover .aside-latest__link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-aside__sticky { display: grid; gap: var(--s-5); }

.article-aside__ad { display: none; }

.related { min-width: 0; }

.related__title {
  margin-bottom: var(--s-4);
  font-size: clamp(2.25rem, 1.9rem + 1.6vw, 3.25rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.related__list { display: grid; gap: var(--s-4); }

.related__list > .story + .story {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
}

@media (min-width: 48rem) {
  .article-figure { margin-inline: 0; }
  .related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .related__list > .story + .story { padding-top: 0; border-top: 0; }
}

@media (min-width: 64rem) {
  .article-head { padding-block: var(--s-5) var(--s-7); }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--s-7) var(--s-8);
    padding-top: var(--s-6);
  }

  .article-main { grid-column: 1; grid-row: 1; }
  .article-aside { grid-column: 2; grid-row: 1; }
  .related { grid-column: 1 / -1; grid-row: 2; }
  .related__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* El aside ocupa todo el alto de la nota. Lo más leído se va con el scroll;
     Lo último y el anuncio quedan fijos para que la columna nunca se vea vacía. */
  .article-aside__ad { display: block; }

  .article-aside__sticky {
    position: sticky;
    top: 6rem;
  }
}

/* Pantallas bajas: Lo último y el anuncio no caben juntos, solo se fija el anuncio */
@media (min-width: 64rem) and (max-height: 47.99rem) {
  .article-aside__sticky { display: contents; }

  .article-aside__ad {
    position: sticky;
    top: 6rem;
  }
}

/* ---------- Cabecera de páginas interiores ---------- */

.page-head {
  --text: #000000;
  --muted: #000000;
  --focus: #000000;
  padding-block: var(--s-3) var(--s-5);
  background: var(--cat, var(--orange));
  color: var(--text);
}

.page-head .breadcrumb { margin-bottom: var(--s-2); }

.page-head__title {
  font-size: var(--fs-page);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
}

.page-head__text {
  max-width: 34em;
  margin-top: var(--s-2);
  font-family: var(--font-read);
  font-size: 1.125rem;
  line-height: 1.4;
}

.page-head--black {
  --text: #ffffff;
  --muted: #b0b4b9;
  --focus: #ff6a00;
  background: var(--band);
}

/* ---------- Listados: categoría, horóscopo y búsqueda ---------- */

.archive {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-5) var(--s-7);
}

.archive__main { min-width: 0; }

.archive-grid { display: grid; gap: var(--s-4); }

.archive-grid > .story + .story {
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
}

.archive__ad { margin-block: var(--s-5); }

.archive__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
}

@media (min-width: 48rem) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .archive-grid > .story + .story { padding-top: 0; border-top: 0; }
  .archive-grid > .story--lead { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .archive { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-7); }

  .archive__sticky { position: sticky; top: 6rem; }
}

/* Con lateral, la columna no alcanza para 728 px hasta los 1200 */
@media (min-width: 64rem) and (max-width: 74.99rem) {
  .archive__ad .ad-slot--banner { --ad-w: 320px; --ad-h: 100px; }
  .archive__ad .ad-slot__size--sm { display: inline; }
  .archive__ad .ad-slot__size--md { display: none; }
}

@media (min-width: 75rem) {
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-grid > .story--lead { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Ver más (los listados no tienen páginas) ---------- */

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
}

.load-more[hidden] { display: none; }

.load-more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding-inline: var(--s-5);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-stretch: 85%;
  font-weight: 800;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.load-more__btn:hover { background: var(--cat, var(--orange)); color: var(--black); }

.load-more__btn[aria-busy] { cursor: progress; opacity: 0.75; }

.load-more__status { color: var(--muted); text-align: center; }

@media (min-width: 48rem) {
  .load-more__btn { width: auto; min-width: 18rem; }
}

/* ---------- Buscador de página ---------- */

.search-form {
  display: flex;
  max-width: 44rem;
  margin-top: var(--s-3);
}

.search-form__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding-inline: var(--s-4);
  background: var(--white);
  color: var(--black);
  font-size: 1.125rem;
  border: 2px solid var(--black);
  border-right: 0;
  border-radius: 0;
}

.search-form__input::placeholder { color: #55595e; opacity: 1; }

.search-form__btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--s-2);
  height: 52px;
  padding-inline: var(--s-4);
  background: var(--black);
  color: var(--white);
  font-stretch: 85%;
  font-weight: 800;
  border: 2px solid var(--black);
}

.search-form__btn svg { width: 20px; height: 20px; }

.page-head--black .search-form__btn { background: var(--orange); color: var(--black); }

.search-status {
  min-height: 1.5em;
  margin-top: var(--s-3);
  font-weight: 600;
}

.search-results > li { padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--rule-soft); }

.search-help__title {
  font-size: clamp(2rem, 1.7rem + 1.4vw, 3rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
  text-wrap: pretty;
}

.search-help__tips {
  margin-top: var(--s-3);
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.search-help__label {
  margin-block: var(--s-5) var(--s-2);
  font-size: 1.25rem;
  font-stretch: 76%;
  font-weight: 800;
}

.search-help__subtitle {
  margin-block: var(--s-6) var(--s-3);
  padding-top: var(--s-2);
  font-size: var(--fs-section);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
  border-top: 6px solid var(--cat, var(--orange));
}

.link-chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }

.link-chips__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-3);
  background: var(--band);
  color: var(--white);
  font-stretch: 85%;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-chips__item:hover { background: var(--orange); color: var(--black); }

/* ---------- Horóscopo: página de los 12 signos ---------- */

.sign-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-1);
  margin-bottom: var(--s-5);
}

.sign-nav__link {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-1);
  background: var(--band);
  color: var(--white);
  font-size: 1.0625rem;
  font-stretch: 76%;
  font-weight: 700;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.sign-nav__link svg { width: 28px; height: 28px; color: var(--cat-horoscopo); transition: color var(--dur) var(--ease); }
.sign-nav__link:hover { background: var(--cat-horoscopo); color: var(--black); }
.sign-nav__link:hover svg { color: var(--black); }

.sign-grid { display: grid; gap: var(--s-4); }

.sign-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  padding: var(--s-4);
  background: var(--surface);
  border-top: 4px solid var(--cat-horoscopo);
}

.sign-card:target { outline: 3px solid var(--cat-horoscopo); outline-offset: -3px; }

.sign-card__glyph {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--cat-horoscopo);
  color: var(--black);
}

.sign-card__glyph svg { width: 40px; height: 40px; }

.sign-card__name {
  font-size: 2.25rem;
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.sign-card__range { color: var(--muted); font-size: var(--fs-meta); font-weight: 500; }

.sign-card__text {
  grid-column: 1 / -1;
  align-self: start;
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.sign-card__share { grid-column: 1 / -1; justify-self: start; margin-top: 0; }

.aside-list {
  padding: var(--s-4);
  background: var(--surface);
  border-top: 4px solid var(--cat, var(--orange));
}

.aside-list__title {
  margin-bottom: var(--s-2);
  font-size: 2.25rem;
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.aside-list__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-top: 1px solid var(--rule-soft);
  font-stretch: 82%;
  font-weight: 700;
}

.aside-list__link:hover {
  text-decoration: underline;
  text-decoration-color: var(--cat, var(--orange));
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

@media (min-width: 48rem) {
  .sign-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 75rem) {
  .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 404 ---------- */

.not-found {
  --text: #000000;
  --muted: #000000;
  --focus: #000000;
  padding-block: var(--s-5) var(--s-6);
  background: var(--orange);
  color: var(--text);
}

.not-found__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }

.not-found__code {
  font-size: clamp(7rem, 4rem + 16vw, 16rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.82;
}

.not-found__title {
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
}

.not-found__text {
  max-width: 34em;
  margin-top: var(--s-2);
  font-family: var(--font-read);
  font-size: 1.125rem;
  line-height: 1.45;
}

.not-found .link-chips { margin-top: var(--s-3); }
.not-found .link-chips__item:hover { background: var(--white); color: var(--black); }

@media (min-width: 64rem) {
  .not-found__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-7);
    align-items: center;
  }
}

/* ---------- Guía de estilos ---------- */

.guide-intro { padding-block: var(--s-6) var(--s-7); }

.guide-intro__title {
  font-size: clamp(3.25rem, 2rem + 6.5vw, 8rem);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.95;
}

.guide-intro__text {
  max-width: 34em;
  margin-top: var(--s-4);
  font-family: var(--font-read);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.5;
}

.guide-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-3); }

.guide-block + .guide-block { margin-top: var(--s-7); }

.guide-block__title {
  margin-bottom: var(--s-2);
  font-size: 2rem;
  font-family: var(--font-headline);
  font-stretch: 66%;
  font-weight: 800;
  line-height: 1.05;
}

.guide-note {
  max-width: 38em;
  margin-bottom: var(--s-4);
  color: var(--muted);
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.logo-row { display: grid; gap: var(--s-2); }

.logo-tile {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--rule-soft);
}

.logo-tile--black { background: var(--black); border-color: var(--black); }
.logo-tile--orange { background: var(--orange); border-color: var(--orange); }
.logo-tile img { width: min(100%, 12rem); height: auto; }
.logo-tile--mark img { width: 5.5rem; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: var(--s-2);
}

.swatch {
  display: grid;
  align-content: end;
  min-height: 10rem;
  padding: var(--s-3);
  background: var(--swatch);
  color: var(--swatch-text, var(--black));
  border: 1px solid var(--rule-soft);
}

.swatch__name { font-size: 1.375rem; font-stretch: 72%; font-weight: 800; line-height: 1.1; }
.swatch__value { font-size: 0.875rem; font-weight: 600; }

.type-sample { padding-block: var(--s-4); border-top: 1px solid var(--rule-soft); }
.type-sample__meta { margin-bottom: var(--s-2); color: var(--muted); font-size: 0.9375rem; }

.type-sample__display {
  font-size: var(--fs-hero);
  font-family: var(--font-headline);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.98;
}

.type-sample__card { font-size: var(--fs-card); font-stretch: 80%; font-weight: 700; line-height: 1.14; }
.type-sample__read { max-width: var(--measure); font-family: var(--font-read); font-size: var(--fs-body); line-height: 1.65; }

.space-scale { display: grid; gap: var(--s-2); }
.space-scale__row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: var(--s-3); font-size: 0.9375rem; font-weight: 600; }
.space-scale__bar { height: 1rem; width: var(--w); background: var(--orange); }

.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

.guide-demo-search { margin-top: var(--s-4); }

.demo-heads { display: grid; gap: var(--s-3); }
.demo-heads .section-head--rule,
.demo-heads .section-head--tab { padding-top: 0; }
.demo-heads .section-head--plain { padding-bottom: var(--s-3); }
.demo-heads .section-head--plain .section-head__inner { padding-top: var(--s-3); }
.demo-heads .wrap { width: auto; margin-inline: var(--s-3); }

.demo-posters { display: grid; gap: var(--s-4); }
.demo-posters .poster { min-height: 22rem; }

.demo-stories { display: grid; gap: var(--s-5); }

.demo-ads { display: grid; gap: var(--s-3); justify-items: stretch; }

@media (min-width: 48rem) {
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (min-width: 64rem) {
  .demo-posters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
