/**
 * Reportero H — Bloques Gutenberg
 *
 * Estilos para bloques custom (rh/*) y overrides de bloques core.
 * Este archivo se carga tanto en el editor como en el frontend.
 *
 * REGLA: components.css es la fuente de diseño. Antes de añadir estilos aquí,
 * buscar en components.css si existe el componente (p. ej. live-updates-section,
 * stats-dark-box, pull-quote). Los bloques deben emitir las clases del prototipo
 * para que coincidan visualmente. Ver WP-ROADMAP.md § "Regla: bloques vs components.css".
 *
 * @package Reportero_H
 */

/* =====================================================
   1. BLOQUES CUSTOM — rh/*
   ===================================================== */

/* ── rh/paragraph-dropcap ── */
.rh-dropcap {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--rh-gray-texto, #4A4A4A);
}

.rh-dropcap::first-letter {
  float: left;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 60px;
  line-height: 48px;
  font-weight: 900;
  color: var(--rh-black-editorial, #1A1A1A);
  padding-right: 8px;
  padding-top: 4px;
}

/* ── rh/pullquote ── */
.rh-pullquote {
  border-left: 6px solid var(--rh-green-official, #01972C);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--font-accent, 'Libre Baskerville', serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--rh-black-editorial, #1A1A1A);
}

.rh-pullquote p {
  margin: 0 0 8px;
}

.rh-pullquote cite {
  display: block;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--rh-gray-texto, #4A4A4A);
  margin-top: 8px;
}

/* ── rh/pullquote-featured ── (alineado izq como prototipo .testimony-quote) */
.rh-pullquote-featured {
  background: var(--rh-cream-sonora, #F9F5EF);
  padding: 24px;
  text-align: left;
  border-radius: 8px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .rh-pullquote-featured {
    padding: 40px;
  }
}

.rh-pullquote-featured__icon {
  margin: 0 0 12px;
  display: block;
}

.rh-pullquote-featured blockquote {
  border: none;
  padding: 0;
  margin: 0;
}

.rh-pullquote-featured blockquote p {
  font-family: var(--font-accent, 'Libre Baskerville', serif);
  font-size: 1.375rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--rh-black-editorial, #1A1A1A);
  margin: 0 0 24px;
}

@media (min-width: 768px) {
  .rh-pullquote-featured blockquote p {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .rh-pullquote-featured blockquote p {
    font-size: 1.25rem;
  }

  .rh-pullquote-featured {
    padding: 32px 20px;
  }
}

.rh-pullquote-featured__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rh-pullquote-featured__author>div {
  border-left: 3px solid var(--rh-orange-official, #F87C03);
  padding-left: 12px;
}

.rh-pullquote-featured__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.rh-pullquote-featured__name {
  display: block;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--rh-black-editorial, #1A1A1A);
}

.rh-pullquote-featured__role {
  display: block;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.8125rem;
  color: var(--rh-gray-texto, #4A4A4A);
}

/* ── rh/stat-single ── */
.rh-stat-single {
  padding: 40px;
  width: 100%;
  text-align: center;
  margin: 32px 0;
  border-radius: 8px;
}

/* Base: dark (default) */
.rh-stat-single--dark,
.rh-stat-single:not([class*="--"]) {
  background: var(--rh-black-editorial, #1A1A1A);
}

.rh-stat-single__number {
  display: block;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
}

.rh-stat-single--dark .rh-stat-single__number,
.rh-stat-single:not([class*="--"]) .rh-stat-single__number {
  color: var(--rh-orange-official, #F87C03);
}

.rh-stat-single__label {
  display: block;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 1rem;
}

.rh-stat-single--dark .rh-stat-single__label,
.rh-stat-single:not([class*="--"]) .rh-stat-single__label {
  color: #ffffff;
}

.rh-stat-single__source {
  display: block;
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  margin-top: 12px;
}

.rh-stat-single--dark .rh-stat-single__source,
.rh-stat-single:not([class*="--"]) .rh-stat-single__source {
  color: #9CA3AF;
}

/* Variant: cream */
.rh-stat-single--cream {
  background: var(--rh-cream-sonora);
  border: 1px solid #e5e0d8;
}

.rh-stat-single--cream .rh-stat-single__number {
  color: var(--rh-orange-official);
}

.rh-stat-single--cream .rh-stat-single__label {
  color: var(--rh-black-editorial);
}

.rh-stat-single--cream .rh-stat-single__source {
  color: var(--rh-gray-texto);
}

/* Variant: green */
.rh-stat-single--green {
  background: var(--rh-green-official);
}

.rh-stat-single--green .rh-stat-single__number {
  color: #ffffff;
}

.rh-stat-single--green .rh-stat-single__label {
  color: #ffffff;
}

.rh-stat-single--green .rh-stat-single__source {
  color: rgba(255, 255, 255, 0.85);
}

/* Variant: orange */
.rh-stat-single--orange {
  background: var(--rh-orange-official);
}

.rh-stat-single--orange .rh-stat-single__number {
  color: #ffffff;
}

.rh-stat-single--orange .rh-stat-single__label {
  color: #ffffff;
}

.rh-stat-single--orange .rh-stat-single__source {
  color: rgba(255, 255, 255, 0.85);
}

/* Variant: red */
.rh-stat-single--red {
  background: var(--rh-red-alerta);
}

.rh-stat-single--red .rh-stat-single__number {
  color: #ffffff;
}

.rh-stat-single--red .rh-stat-single__label {
  color: #ffffff;
}

.rh-stat-single--red .rh-stat-single__source {
  color: rgba(255, 255, 255, 0.85);
}

/* Variant: light */
.rh-stat-single--light {
  background: var(--rh-gray-claro);
  border: 1px solid #e5e7eb;
}

.rh-stat-single--light .rh-stat-single__number {
  color: var(--rh-orange-official);
}

.rh-stat-single--light .rh-stat-single__label {
  color: var(--rh-black-editorial);
}

.rh-stat-single--light .rh-stat-single__source {
  color: var(--rh-gray-texto);
}

/* ── rh/stat-grid ── */
.rh-stat-grid {
  margin: 32px 0;
}

.rh-stat-grid__items {
  display: grid;
  gap: 16px;
}

.rh-stat-grid--cols-2 .rh-stat-grid__items {
  grid-template-columns: repeat(2, 1fr);
}

.rh-stat-grid--cols-3 .rh-stat-grid__items {
  grid-template-columns: repeat(3, 1fr);
}

.rh-stat-grid--cols-4 .rh-stat-grid__items {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {

  .rh-stat-grid--cols-3 .rh-stat-grid__items,
  .rh-stat-grid--cols-4 .rh-stat-grid__items {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rh-stat-grid .stat-item {
  background: var(--rh-gray-claro, #F2F2F2);
  border: none;
  border-radius: 8px;
  padding: 20px;
}

.rh-stat-grid .stat-number {
  display: block;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--rh-orange-official, #F87C03);
  line-height: 1.2;
}

.rh-stat-grid .stat-label {
  display: block;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  color: var(--rh-gray-texto, #4A4A4A);
  margin-top: 4px;
}

.rh-stat-grid .stat-source {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 12px;
  text-align: right;
}

/* Dark variant */
.rh-stat-grid--dark {
  background: var(--rh-black-editorial, #1A1A1A);
  padding: 32px;
  border-radius: 8px;
}

.rh-stat-grid--dark .stat-item {
  border-color: #374151;
}

.rh-stat-grid--dark .stat-number {
  color: #ffffff;
}

.rh-stat-grid--dark .stat-label {
  color: #9CA3AF;
}

.rh-stat-grid--dark .stat-source {
  color: #6B7280;
}

/* ── rh/stat-hero ── */
.rh-stat-hero {
  background: var(--rh-black-editorial, #1A1A1A);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
}

.rh-stat-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 767px) {
  .rh-stat-hero__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rh-stat-hero__item .stat-number {
  display: block;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.rh-stat-hero__item .stat-label {
  display: block;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.8125rem;
  color: var(--rh-orange-official, #F87C03);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rh-stat-hero .stat-source {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 16px;
  text-align: right;
}

/* ── rh/cta-inline ── */
.rh-cta-inline {
  background: var(--rh-cream-sonora, #F9F5EF);
  padding: 32px;
  border-radius: 8px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 767px) {
  .rh-cta-inline {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

.rh-cta-inline__text {
  flex: 1;
}

.rh-cta-inline__steps {
  flex-shrink: 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .rh-cta-inline__steps {
    width: 100%;
  }
}

.rh-cta-inline__heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rh-black-editorial, #1A1A1A);
  margin: 0 0 4px;
}

.rh-cta-inline__desc {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  color: var(--rh-gray-texto, #4A4A4A);
  margin: 0;
}

.rh-cta-inline__form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .rh-cta-inline__form {
    width: 100%;
    flex-direction: column;
  }

  .rh-cta-inline__input {
    min-width: 0;
  }
}

.rh-cta-inline__input {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  padding: 10px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  outline: none;
  min-width: 200px;
}

.rh-cta-inline__input:focus {
  border-color: var(--rh-green-official, #01972C);
  box-shadow: 0 0 0 2px rgba(1, 151, 44, 0.15);
}

.rh-cta-inline__btn {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 24px;
  background: var(--rh-orange-official, #F87C03);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.rh-cta-inline__btn:hover {
  background: #e06d00;
}

.rh-cta-inline__success {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rh-green-official, #0A6847);
  margin: 0;
  padding: 10px 0;
}

/* ── rh/accordion ── */
.rh-accordion {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  margin: 32px 0;
}

.rh-accordion__title {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--rh-gray-texto, #4A4A4A);
  padding: 16px 20px 8px;
  margin: 0;
}

.rh-accordion__item {
  border-top: 1px solid #E5E7EB;
}

.rh-accordion__item:first-of-type {
  border-top: none;
}

.rh-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--rh-black-editorial, #1A1A1A);
  list-style: none;
  transition: background-color 0.15s;
}

.rh-accordion__header:hover {
  background-color: #F9FAFB;
}

.rh-accordion__header::-webkit-details-marker {
  display: none;
}

.rh-accordion__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.rh-accordion__item[open] .rh-accordion__chevron {
  transform: rotate(180deg);
}

.rh-accordion__panel {
  padding: 0 20px 16px;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--rh-gray-texto, #4A4A4A);
}

/* ── rh/timeline ── */
.rh-timeline {
  position: relative;
  padding-left: 32px;
  margin: 32px 0;
}

.rh-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rh-green-official, #01972C);
}

.rh-timeline__entry {
  position: relative;
  padding-bottom: 24px;
}

.rh-timeline__entry:last-child {
  padding-bottom: 0;
}

.rh-timeline__dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rh-green-official, #01972C);
  border: 2px solid #ffffff;
  z-index: 1;
}

.rh-timeline__date {
  display: block;
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rh-timeline__title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rh-black-editorial, #1A1A1A);
  margin: 0 0 4px;
}

.rh-timeline__content p {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--rh-gray-texto, #4A4A4A);
  margin: 0;
}

/* ── rh/callout-box ── */
.rh-callout-box {
  background: var(--rh-gray-claro, #F2F2F2);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.rh-callout-box--warning {
  border-left: 4px solid var(--rh-orange-official, #F87C03);
}

/* Metodología: sin borde izquierdo (caja gris como prototipo) */
.rh-callout-box--source {
  border-left: none;
}

/* Metodología: mismo aspecto que .methodology-box del prototipo */
.rh-callout-box--source .rh-callout-box__heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-style: normal;
}

.rh-callout-box--source .rh-callout-box__content {
  font-size: 14px;
  line-height: 24px;
}

.rh-callout-box--info {
  border-left: 4px solid var(--rh-gray-texto, #4A4A4A);
}

.rh-callout-box__heading {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--rh-black-editorial, #1A1A1A);
  margin: 0 0 8px;
}

.rh-callout-box__content {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--rh-gray-texto, #4A4A4A);
}

.rh-callout-box__content p {
  margin: 0;
}

/* ── rh/image-fullbleed ── */
.rh-image-fullbleed {
  margin: 40px -16px;
}

@media (min-width: 832px) {
  .rh-image-fullbleed {
    margin-left: calc((100vw - 800px) / -2);
    margin-right: calc((100vw - 800px) / -2);
  }
}

.rh-image-fullbleed img {
  width: 100%;
  height: auto;
  display: block;
}

.rh-image-fullbleed__caption {
  max-width: 800px;
  margin: 12px auto 0;
  padding: 0 16px;
  border-left: 4px solid var(--rh-orange-official, #F87C03);
  padding-left: 12px;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--rh-gray-texto, #4A4A4A);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.rh-image-fullbleed__credit {
  font-style: normal;
  color: #9CA3AF;
  white-space: nowrap;
}

/* ── rh/heading-numbered ── */
.rh-heading-numbered {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 48px 0 16px;
  scroll-margin-top: 80px;
}

.rh-heading-numbered__number {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rh-orange-official, #F87C03);
  flex-shrink: 0;
}

.rh-heading-numbered__text {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--rh-black-headline, #111111);
  line-height: 1.3;
}

@media (max-width: 767px) {
  .rh-heading-numbered__text {
    font-size: 1.5rem;
  }
}

/* ── Layouts Magazine (H.11) — Hero+Sidebar, Feed+Sidebar, Cita+Artículos ── */
.rh-magazine-hero-sidebar.wp-block-columns,
.rh-magazine-feed-sidebar.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}
.rh-magazine-hero-sidebar .wp-block-column,
.rh-magazine-feed-sidebar .wp-block-column {
  flex: 1 1 100%;
}
@media (min-width: 768px) {
  .rh-magazine-hero-sidebar .wp-block-column:first-child { flex: 1 1 66%; }
  .rh-magazine-hero-sidebar .wp-block-column:last-child { flex: 1 1 calc(33% - 2rem); }
  .rh-magazine-feed-sidebar .wp-block-column:first-child { flex: 1 1 66%; }
  .rh-magazine-feed-sidebar .wp-block-column:last-child { flex: 1 1 calc(33% - 2rem); }
}
.rh-magazine-cita-articulos.wp-block-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .rh-magazine-cita-articulos.wp-block-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ── rh/feed-grid ── */
.rh-feed-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}
.rh-feed-grid-cols-1,
.rh-feed-grid-cols-2 {
  grid-template-columns: 1fr;
}
.rh-feed-grid-cols-3,
.rh-feed-grid-cols-4 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .rh-feed-grid-cols-1 {
    grid-template-columns: 1fr;
  }
  .rh-feed-grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .rh-feed-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .rh-feed-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ── rh/ad-placeholder ── */
.rh-ad-placeholder {
  margin: 2rem 0;
}
.rh-ad-placeholder__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  border: 2px dashed #9CA3AF;
  border-radius: 8px;
}
.rh-ad-placeholder__label {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  color: #6B7280;
}
.rh-ad-placeholder--narrow .rh-ad-placeholder__inner {
  max-width: 300px;
  margin: 0 auto;
}

/* ── rh/carousel-placeholder ── */
.rh-carousel-placeholder {
  margin: 2rem 0;
}
.rh-carousel-placeholder__inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  border: 2px dashed #9CA3AF;
  border-radius: 8px;
}
.rh-carousel-placeholder__label {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  color: #6B7280;
}

/* ── rh/sidebar-ultimas ──
 * Usa clases del widget: .rh-recent-posts-list, .rh-recent-post-item, etc.
 * Estilos en components.css (SIDEBAR WIDGETS). */

/* ── rh/feed-live ──
 * Usa clases del prototipo: .live-updates-section, .live-updates-header, etc.
 * Estilos en components.css (Live updates timeline). */

/* ── rh/card-featured ── */
.rh-card-featured {
  background: var(--rh-cream-sonora, #F9F5EF);
  border-top: 4px solid var(--rh-orange-official, #F87C03);
  border-radius: 8px;
  margin: 32px 0;
  overflow: hidden;
}

.rh-card-featured__inner {
  padding: 24px;
}

.rh-card-featured__badge {
  display: inline-block;
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--rh-orange-official, #F87C03);
  margin-bottom: 8px;
}

.rh-card-featured__heading {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rh-black-editorial, #1A1A1A);
  line-height: 1.3;
  margin: 0 0 8px;
}

.rh-card-featured__excerpt {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.9375rem;
  color: var(--rh-gray-texto, #4A4A4A);
  line-height: 1.5;
  margin: 0 0 12px;
}

.rh-card-featured__link {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rh-orange-official, #F87C03);
  text-decoration: none;
}

.rh-card-featured__link:hover {
  text-decoration: underline;
}


/* =====================================================
   2. CORE BLOCK OVERRIDES
   ===================================================== */

/* ── core/quote — Editorial RH style ── */
.is-style-rh-editorial.wp-block-quote {
  border-left: 6px solid var(--rh-green-official, #01972C);
  padding-left: 24px;
  font-family: var(--font-accent, 'Libre Baskerville', serif);
  font-style: italic;
  font-size: 1.25rem;
}

.is-style-rh-editorial.wp-block-quote cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--rh-gray-texto, #4A4A4A);
}

/* ── core/image — Frame style ── */
.is-style-rh-frame.wp-block-image img {
  border: 6px solid var(--rh-black-editorial, #1A1A1A);
}

.is-style-rh-frame.wp-block-image figcaption {
  border-left: 4px solid var(--rh-orange-official, #F87C03);
  padding-left: 12px;
  font-style: italic;
  font-size: 0.8125rem;
}

/* ── core/button — Primary (Naranja) ── */
.is-style-rh-primary .wp-block-button__link {
  background-color: var(--rh-orange-official, #F87C03);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s;
}

.is-style-rh-primary .wp-block-button__link:hover {
  background-color: #e06d00;
}

/* ── core/button — Secondary (Verde) ── */
.is-style-rh-secondary .wp-block-button__link {
  background-color: var(--rh-green-official, #01972C);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s;
}

.is-style-rh-secondary .wp-block-button__link:hover {
  background-color: #017a23;
}

/* ── core/button — Outline ── */
.is-style-rh-outline .wp-block-button__link {
  background: transparent;
  color: var(--rh-black-editorial, #1A1A1A);
  border: 2px solid var(--rh-black-editorial, #1A1A1A);
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.is-style-rh-outline .wp-block-button__link:hover {
  background: var(--rh-black-editorial, #1A1A1A);
  color: #ffffff;
}

/* ── core/separator — Editorial ── */
.is-style-rh-editorial.wp-block-separator {
  border-top: 1px solid #D1D5DB;
  width: 273px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── core/list — Green bullets ── */
.is-style-rh-green-bullets.wp-block-list {
  list-style: none;
  padding-left: 24px;
}

.is-style-rh-green-bullets.wp-block-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 8px;
}

.is-style-rh-green-bullets.wp-block-list li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rh-green-official, #01972C);
}

/* ── core/embed — Responsive wrapper ── */
.wp-block-embed .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.wp-block-embed .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Legacy compat: rh-stat-box from migrate-articles.php ── */
.rh-stat-box {
  background: var(--rh-black-editorial, #1A1A1A);
  border-radius: 8px;
  padding: 32px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 767px) {
  .rh-stat-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rh-stat-box .stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rh-stat-box .stat-number {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.rh-stat-box .stat-label {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.8125rem;
  color: var(--rh-orange-official, #F87C03);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rh-stat-box .stat-source {
  font-family: var(--font-mono, 'Roboto Mono', monospace);
  font-size: 0.6875rem;
  color: #6B7280;
  margin-top: 4px;
}

/* ── Legacy compat: rh-documents from migrate-articles.php ── */
.rh-documents {
  background: var(--rh-gray-claro, #F2F2F2);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
}

.rh-documents h3 {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.rh-documents ul {
  padding-left: 20px;
  margin: 0;
}

.rh-documents li {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ── Legacy compat: rh-methodology from migrate-articles.php ── */
.rh-methodology {
  background: var(--rh-cream-sonora, #F9F5EF);
  border-left: 4px solid var(--rh-green-official, #01972C);
  padding: 24px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
}

.rh-methodology p {
  font-family: var(--font-sans-body, 'Source Sans 3', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--rh-gray-texto, #4A4A4A);
  margin: 0;
}