/* =============================================================
 * Desk Editorial — sistema de diseño estilo Bloomberg/Reuters/FT
 * Plantilla: desk
 * Versión inicial: 2026-05-08
 *
 * Densa, profesional, sans-serif limpia con monospace para datos.
 * Cards horizontales, etiquetas con BG sólido, timestamps siempre
 * visibles, "BREAKING" badge cuando aplica.
 * ============================================================= */

html.template-desk {
  /* Tinta — frío azulado, no negro puro */
  --desk-paper: #FFFFFF;
  --desk-paper-soft: #F6F7F9;
  --desk-paper-deep: #ECEEF3;
  --desk-rule: #E1E4EB;
  --desk-rule-strong: #B7BCC8;
  --desk-ink: #14181F;
  --desk-ink-soft: #525968;
  --desk-ink-mute: #8A92A6;
  --desk-accent: #FF8000;        /* Rojo Reuters — naranja vivo */
  --desk-accent-deep: #D96900;
  --desk-accent-soft: #FFF4E5;
  --desk-success: #1F8F4E;
  --desk-danger: #D32F2F;
  --desk-link: var(--desk-ink);
  --desk-link-hover: var(--desk-accent-deep);

  /* Tipografía — sans-serif geométrica + monospace para datos */
  --desk-font-display: 'Inter', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --desk-font-text: 'Inter', 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --desk-font-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  /* Espaciado (8px) */
  --desk-space-1: 4px;
  --desk-space-2: 8px;
  --desk-space-3: 12px;
  --desk-space-4: 16px;
  --desk-space-5: 24px;
  --desk-space-6: 32px;
  --desk-space-7: 40px;
  --desk-space-8: 48px;
  --desk-space-9: 64px;
  --desk-space-10: 80px;

  /* Anchos */
  --desk-reading-width: 720px;
  --desk-feature-width: 920px;
  --desk-shell-width: 1320px;

  background: var(--desk-paper);
  color: var(--desk-ink);
  font-family: var(--desk-font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.template-desk body {
  background: var(--desk-paper) !important;
  color: var(--desk-ink);
  font-family: var(--desk-font-text);
  margin: 0;
  padding: 0;
}

/* Headings — sans-serif tracking apretado */
html.template-desk h1,
html.template-desk h2,
html.template-desk h3,
html.template-desk h4,
html.template-desk h5,
html.template-desk h6 {
  font-family: var(--desk-font-display);
  color: var(--desk-ink);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0;
}

html.template-desk a {
  color: var(--desk-link);
  text-decoration: none;
  transition: color 0.12s ease;
}
html.template-desk a:hover,
html.template-desk a:focus {
  color: var(--desk-link-hover);
}

html.template-desk img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Skip link ---------- */
.desk-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.desk-skip-link:focus {
  position: fixed; left: var(--desk-space-3); top: var(--desk-space-3);
  width: auto; height: auto;
  background: var(--desk-ink); color: var(--desk-paper);
  padding: var(--desk-space-3) var(--desk-space-4);
  z-index: 1000;
}

/* ---------- Layout shell ---------- */
.desk-shell {
  max-width: var(--desk-shell-width);
  margin: 0 auto;
  padding: 0 var(--desk-space-4);
}
@media (min-width: 768px) {
  .desk-shell { padding: 0 var(--desk-space-5); }
}
@media (min-width: 1200px) {
  .desk-shell { padding: 0 var(--desk-space-6); }
}

/* ---------- Top bar (Bloomberg-style: barra negra delgada arriba) ---------- */
.desk-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--desk-paper);
  border-bottom: 1px solid var(--desk-rule);
}
.desk-top__strip {
  background: var(--desk-ink);
  color: var(--desk-paper);
  font-family: var(--desk-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid var(--desk-accent);
}
.desk-top__strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--desk-shell-width);
  margin: 0 auto;
  padding: 0 var(--desk-space-4);
  gap: var(--desk-space-4);
}
.desk-top__strip-left,
.desk-top__strip-right {
  display: flex;
  align-items: center;
  gap: var(--desk-space-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-top__strip strong {
  color: var(--desk-accent);
  font-weight: 700;
}
.desk-top__strip-clock {
  font-variant-numeric: tabular-nums;
}

.desk-top__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--desk-shell-width);
  margin: 0 auto;
  padding: var(--desk-space-3) var(--desk-space-4);
  gap: var(--desk-space-4);
  min-height: 60px;
}
.desk-top__brand {
  font-family: var(--desk-font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--desk-ink);
  text-transform: uppercase;
}
.desk-top__brand img {
  max-height: 36px;
  width: auto;
}
.desk-top__nav {
  display: none;
  gap: var(--desk-space-4);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (min-width: 992px) {
  .desk-top__nav { display: flex; }
}
.desk-top__nav a {
  color: var(--desk-ink);
  padding: var(--desk-space-2) 0;
  position: relative;
}
.desk-top__nav a:hover,
.desk-top__nav a.is-active {
  color: var(--desk-accent-deep);
}
.desk-top__nav a.is-active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--desk-accent);
}
.desk-top__actions {
  display: flex;
  align-items: center;
  gap: var(--desk-space-2);
}
.desk-top__icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--desk-ink);
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.desk-top__icon-btn:hover {
  border-color: var(--desk-rule);
  background: var(--desk-paper-soft);
}
@media (min-width: 992px) {
  .desk-top__menu-btn { display: none; }
}

.desk-top__mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--desk-rule);
  background: var(--desk-paper);
}
body.desk-menu-open .desk-top__mobile-nav { display: flex; }
.desk-top__mobile-nav a {
  padding: var(--desk-space-3) var(--desk-space-4);
  border-bottom: 1px solid var(--desk-rule);
  color: var(--desk-ink);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.desk-top__mobile-nav a:hover {
  background: var(--desk-paper-soft);
  color: var(--desk-accent-deep);
}

/* ---------- Buscador ---------- */
.desk-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--desk-rule);
  background: var(--desk-paper);
  height: 40px;
  width: 240px;
  max-width: 100%;
}
.desk-search--desktop { display: none; }
@media (min-width: 992px) {
  .desk-search--desktop { display: flex; }
}
.desk-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 var(--desk-space-3);
  font-family: var(--desk-font-text);
  font-size: 13px;
  color: var(--desk-ink);
  background: transparent;
  height: 100%;
}
.desk-search__input::placeholder {
  color: var(--desk-ink-mute);
}
.desk-search__btn {
  background: var(--desk-ink);
  color: var(--desk-paper);
  border: none;
  width: 40px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.desk-search__btn:hover {
  background: var(--desk-accent-deep);
}

.desk-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 31, 0.55);
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--desk-space-7) var(--desk-space-4);
}
.desk-search-overlay[hidden] { display: none; }
.desk-search-overlay .desk-search {
  width: 100%;
  max-width: 600px;
  height: 56px;
}
.desk-search-overlay .desk-search__input { font-size: 18px; }
.desk-search__close {
  position: absolute;
  top: var(--desk-space-4);
  right: var(--desk-space-4);
  background: transparent;
  color: var(--desk-paper);
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Submenu (categorías scrolleables tipo "marketstrip") ---------- */
.desk-submenu {
  background: var(--desk-paper-soft);
  border-bottom: 1px solid var(--desk-rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.desk-submenu::-webkit-scrollbar { display: none; }
.desk-submenu__inner {
  display: flex;
  gap: var(--desk-space-5);
  padding: var(--desk-space-3) var(--desk-space-4);
  white-space: nowrap;
  max-width: var(--desk-shell-width);
  margin: 0 auto;
}
.desk-submenu a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--desk-ink-soft);
  padding: var(--desk-space-1) 0;
  border-bottom: 2px solid transparent;
  position: relative;
}
.desk-submenu a:hover,
.desk-submenu a.is-active {
  color: var(--desk-accent-deep);
  border-bottom-color: var(--desk-accent);
}

/* Variante "ticker": muestra titulares en lugar de categorías,
 * con etiqueta "EN PORTADA" prefix tipo strip Bloomberg. */
.desk-submenu--ticker {
  position: relative;
  display: flex;
  align-items: center;
}
.desk-submenu__label {
  flex-shrink: 0;
  font-family: var(--desk-font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--desk-ink);
  color: var(--desk-paper);
  padding: var(--desk-space-2) var(--desk-space-3);
  margin-left: var(--desk-space-4);
}
.desk-submenu--ticker .desk-submenu__inner {
  flex: 1;
  margin: 0;
  padding-left: var(--desk-space-3);
}
.desk-submenu--ticker a {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--desk-ink);
  border-bottom: none;
  padding: var(--desk-space-2) 0;
  position: relative;
}
.desk-submenu--ticker a + a::before {
  content: '·';
  margin-right: var(--desk-space-3);
  color: var(--desk-rule-strong);
}
.desk-submenu--ticker a:hover {
  color: var(--desk-accent-deep);
}

/* ---------- Etiquetas / chips de categoría (BG sólido, Bloomberg-style) ---------- */
.desk-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--desk-space-2);
  font-family: var(--desk-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--desk-ink);
  color: var(--desk-paper);
  padding: 3px 8px;
  border-radius: 0;
  text-decoration: none;
  line-height: 1.4;
}
.desk-chip--accent {
  background: var(--desk-accent);
  color: var(--desk-ink);
}
.desk-chip--breaking {
  background: var(--desk-danger);
  color: var(--desk-paper);
  animation: desk-blink 2s ease-in-out infinite;
}
@keyframes desk-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-chip--breaking { animation: none; }
}
.desk-chip--outline {
  background: transparent;
  color: var(--desk-ink);
  border: 1px solid var(--desk-rule-strong);
}
.desk-chip--outline:hover {
  background: var(--desk-paper-soft);
  border-color: var(--desk-accent);
  color: var(--desk-accent-deep);
}

/* ---------- Cards (densas, horizontales) ---------- */
.desk-card {
  display: block;
  padding: var(--desk-space-5) 0;
  border-top: 1px solid var(--desk-rule);
}
.desk-card:first-child { border-top: none; padding-top: 0; }
.desk-card__media {
  margin-bottom: var(--desk-space-3);
  background: var(--desk-paper-soft);
  overflow: hidden;
}
.desk-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.desk-card__title {
  font-family: var(--desk-font-display);
  color: var(--desk-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 var(--desk-space-2);
}
.desk-card__title a { color: inherit; }
.desk-card__title a:hover { color: var(--desk-accent-deep); }
.desk-card__intro {
  color: var(--desk-ink-soft);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 var(--desk-space-2);
}
.desk-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--desk-space-3);
  font-family: var(--desk-font-mono);
  font-size: 11px;
  color: var(--desk-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.desk-card__meta strong { color: var(--desk-ink); font-weight: 600; }

/* XL - hero principal de portada */
.desk-card--xl .desk-card__title { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.desk-card--xl .desk-card__intro { font-size: 16px; }

/* LG - feature secundario */
.desk-card--lg .desk-card__title { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
.desk-card--lg .desk-card__intro { font-size: 14px; }

/* MD - lista horizontal Bloomberg-style: foto a la IZQUIERDA, texto a
 * la derecha con título grande y meta. Funciona en grid de 2 cols en
 * desktop (ver .desk-news-list abajo) y en 1 col en mobile. */
.desk-card--md {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--desk-space-4);
  align-items: start;
  padding: var(--desk-space-4) 0;
  border-top: 1px solid var(--desk-rule);
}
.desk-card--md:first-child { border-top: none; padding-top: 0; }
.desk-card--md .desk-card__media {
  margin: 0;
  width: 140px;
  height: 105px;
  order: -1;
}
.desk-card--md .desk-card__media img {
  aspect-ratio: 4 / 3;
  width: 140px;
  height: 105px;
}
.desk-card--md .desk-card__title { font-size: 16px; line-height: 1.25; }
.desk-card--md .desk-card__intro { display: none; }
.desk-card--md .desk-card__body { min-width: 0; }
@media (min-width: 480px) {
  .desk-card--md { grid-template-columns: 180px 1fr; }
  .desk-card--md .desk-card__media,
  .desk-card--md .desk-card__media img { width: 180px; height: 135px; }
  .desk-card--md .desk-card__title { font-size: 17px; }
}

/* Lista densa de cards md en grid 2 columnas (desktop), 1 col mobile.
 * Es el contenedor que envuelve las cards de "Más noticias". */
.desk-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--desk-space-7);
}
@media (min-width: 992px) {
  .desk-news-list {
    grid-template-columns: 1fr 1fr;
  }
  /* Reset border-top en la primera card de cada columna */
  .desk-news-list > .desk-card--md:nth-child(1),
  .desk-news-list > .desk-card--md:nth-child(2) {
    border-top: none;
    padding-top: 0;
  }
}

/* SM - solo texto */
.desk-card--sm .desk-card__media { display: none; }
.desk-card--sm {
  padding: var(--desk-space-3) 0;
  border-top: 1px solid var(--desk-rule);
}
.desk-card--sm .desk-card__title { font-size: 14px; line-height: 1.3; }
.desk-card--sm .desk-card__intro { display: none; }

/* ---------- Sección con heading "ticker style" ---------- */
.desk-section { margin: var(--desk-space-7) 0; }
.desk-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--desk-space-4);
  margin: 0 0 var(--desk-space-5);
  padding-bottom: var(--desk-space-2);
  border-bottom: 3px solid var(--desk-ink);
  position: relative;
}
.desk-section__heading::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--desk-accent);
}
.desk-section__title {
  font-family: var(--desk-font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--desk-ink);
  margin: 0;
}
.desk-section__more {
  font-family: var(--desk-font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--desk-ink-mute);
}
.desk-section__more:hover { color: var(--desk-accent-deep); }

/* Grid 3 columnas para feature row */
.desk-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--desk-space-5);
}
@media (min-width: 768px) {
  .desk-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .desk-grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--desk-space-6); }
}
.desk-grid-3 > .desk-card {
  border-top: none;
  padding: 0;
}

/* Layout asimétrico hero + sidebar (Bloomberg landing) */
.desk-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--desk-space-6);
  margin-top: var(--desk-space-5);
}
@media (min-width: 992px) {
  .desk-feature-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--desk-space-7);
  }
}

/* ---------- Vista de noticia ---------- */
.desk-article {
  padding: var(--desk-space-6) 0 var(--desk-space-9);
}
.desk-article__progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--desk-accent);
  z-index: 60;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .desk-article__progress { transition: none; }
}
.desk-article__header {
  max-width: var(--desk-feature-width);
  margin: 0 auto var(--desk-space-5);
}
.desk-article__category {
  display: flex;
  align-items: center;
  gap: var(--desk-space-2);
  margin-bottom: var(--desk-space-4);
}
.desk-article__title {
  font-family: var(--desk-font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  color: var(--desk-ink);
  margin: 0 0 var(--desk-space-4);
}
.desk-article__intro {
  font-family: var(--desk-font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: var(--desk-ink-soft);
  margin: 0 0 var(--desk-space-5);
}
.desk-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--desk-space-4);
  font-family: var(--desk-font-mono);
  font-size: 12px;
  color: var(--desk-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--desk-rule);
  border-bottom: 1px solid var(--desk-rule);
  padding: var(--desk-space-3) 0;
  margin: 0 0 var(--desk-space-5);
  font-variant-numeric: tabular-nums;
}
.desk-article__meta strong {
  color: var(--desk-ink);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--desk-font-text);
}

.desk-article__hero {
  max-width: var(--desk-feature-width);
  margin: 0 auto var(--desk-space-5);
}
.desk-article__hero img { width: 100%; height: auto; }
.desk-article__caption {
  font-size: 12px;
  color: var(--desk-ink-mute);
  font-family: var(--desk-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--desk-space-2) 0;
  border-bottom: 1px solid var(--desk-rule);
}

.desk-article__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--desk-space-5);
  font-family: var(--desk-font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--desk-ink-mute);
  padding: var(--desk-space-3) 0;
  border-bottom: 1px solid var(--desk-rule);
  margin: 0 auto var(--desk-space-5);
  max-width: var(--desk-feature-width);
  font-variant-numeric: tabular-nums;
}
.desk-article__stats strong { color: var(--desk-ink); font-weight: 700; }
.desk-article__stats i { color: var(--desk-accent-deep); }

.desk-article__body {
  max-width: var(--desk-reading-width);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--desk-ink);
}
@media (min-width: 768px) {
  .desk-article__body { font-size: 18px; }
}
.desk-article__body p { margin: 0 0 var(--desk-space-4); }
.desk-article__body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--desk-space-7) 0 var(--desk-space-3);
}
.desk-article__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: var(--desk-space-6) 0 var(--desk-space-3);
}
.desk-article__body a {
  color: var(--desk-accent-deep);
  border-bottom: 1px solid var(--desk-accent);
}
.desk-article__body a:hover {
  background: var(--desk-accent-soft);
  color: var(--desk-accent-deep);
}
.desk-article__body img {
  margin: var(--desk-space-6) auto;
}
.desk-article__body blockquote {
  margin: var(--desk-space-6) 0;
  padding: 0 var(--desk-space-4);
  border-left: 3px solid var(--desk-accent);
  font-family: var(--desk-font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--desk-ink);
}
.desk-article__body blockquote.pull,
.desk-article__body blockquote.desk-pull {
  font-style: normal;
  font-weight: 700;
  text-align: center;
  border-left: none;
  border-top: 3px solid var(--desk-ink);
  border-bottom: 1px solid var(--desk-rule);
  padding: var(--desk-space-5) var(--desk-space-4);
  margin: var(--desk-space-7) auto;
  max-width: 600px;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  position: relative;
}
.desk-article__body blockquote.pull::before,
.desk-article__body blockquote.desk-pull::before {
  content: '"';
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--desk-accent);
  margin-bottom: var(--desk-space-2);
}

.desk-article__actions {
  display: flex;
  gap: var(--desk-space-2);
  flex-wrap: wrap;
  margin: var(--desk-space-6) auto;
  max-width: var(--desk-reading-width);
  padding-top: var(--desk-space-4);
  border-top: 1px solid var(--desk-rule);
}
.desk-article__action {
  display: inline-flex;
  align-items: center;
  gap: var(--desk-space-2);
  padding: var(--desk-space-3) var(--desk-space-4);
  background: var(--desk-paper-soft);
  border: 1px solid var(--desk-rule);
  color: var(--desk-ink);
  font-family: var(--desk-font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.desk-article__action:hover {
  background: var(--desk-ink);
  border-color: var(--desk-ink);
  color: var(--desk-paper);
}

/* ---------- "Continuar leyendo" CTA (specificity boost para evitar bug atlas) ---------- */
html.template-desk .desk-next-read {
  max-width: var(--desk-feature-width);
  margin: var(--desk-space-9) auto var(--desk-space-7);
  padding-top: var(--desk-space-6);
  border-top: 3px solid var(--desk-ink);
  position: relative;
}
html.template-desk .desk-next-read::after {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 60px; height: 3px;
  background: var(--desk-accent);
}
html.template-desk .desk-next-read__kicker {
  font-family: var(--desk-font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--desk-accent-deep);
  margin-bottom: var(--desk-space-3);
}
html.template-desk .desk-next-read__title {
  font-family: var(--desk-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  line-height: 1.2;
  margin: 0 0 var(--desk-space-3);
}
html.template-desk .desk-next-read__title a {
  color: inherit;
}
html.template-desk .desk-next-read__title a:hover {
  color: var(--desk-accent-deep);
}
html.template-desk .desk-next-read__excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: var(--desk-ink-soft);
  margin: 0 0 var(--desk-space-4);
}
html.template-desk .desk-next-read__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--desk-space-2);
  padding: var(--desk-space-3) var(--desk-space-5);
  background: var(--desk-ink);
  color: var(--desk-paper);
  font-family: var(--desk-font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid var(--desk-ink);
  min-height: 44px;
  line-height: 1;
  transition: all 0.12s ease;
}
html.template-desk .desk-next-read__cta:hover,
html.template-desk .desk-next-read__cta:focus {
  background: var(--desk-accent);
  color: var(--desk-ink);
  border-color: var(--desk-accent);
}

/* ---------- Ads ---------- */
.desk-ad {
  margin: var(--desk-space-6) auto;
  max-width: var(--desk-feature-width);
  padding: var(--desk-space-3) 0;
  border-top: 1px solid var(--desk-rule);
  border-bottom: 1px solid var(--desk-rule);
  text-align: center;
}
.desk-ad__label {
  display: block;
  font-family: var(--desk-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--desk-ink-mute);
  margin-bottom: var(--desk-space-2);
}

/* ---------- Footer ---------- */
.desk-footer {
  border-top: 3px solid var(--desk-ink);
  margin-top: var(--desk-space-9);
  padding: var(--desk-space-7) var(--desk-space-4) var(--desk-space-6);
  background: var(--desk-paper-soft);
}
.desk-footer__inner {
  max-width: var(--desk-shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--desk-space-5);
}
@media (min-width: 768px) {
  .desk-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}
.desk-footer__brand {
  font-family: var(--desk-font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: var(--desk-space-3);
}
.desk-footer p,
.desk-footer a {
  font-size: 13px;
  color: var(--desk-ink-soft);
}
.desk-footer__copy {
  border-top: 1px solid var(--desk-rule);
  padding-top: var(--desk-space-4);
  margin-top: var(--desk-space-5);
  font-family: var(--desk-font-mono);
  font-size: 11px;
  color: var(--desk-ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ---------- Heredados de blue cuando se delega ---------- */
html.template-desk main.container-lg,
html.template-desk #content.container-lg {
  background: var(--desk-paper);
}
html.template-desk #news_content .news_title {
  font-family: var(--desk-font-display);
  color: var(--desk-ink);
}

/* ============================================================
 * REFINAMIENTOS POST-AUDITORÍA (perfeccionamiento visual)
 * ============================================================ */

/* Fix #4: Section headings más prominentes (Bloomberg-style) */
html.template-desk .desk-section__title {
  font-size: 16px;
  letter-spacing: 0.12em;
}
@media (min-width: 768px) {
  html.template-desk .desk-section__title { font-size: 18px; }
}
html.template-desk .desk-section__heading {
  border-bottom-width: 4px;
  padding-bottom: var(--desk-space-3);
}
html.template-desk .desk-section__heading::after {
  height: 4px;
  bottom: -4px;
  width: 80px;
}

/* Fix #5: Hero más prominente en desktop */
@media (min-width: 992px) {
  html.template-desk .desk-card--xl .desk-card__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.025em;
    line-height: 1.05;
  }
  html.template-desk .desk-card--xl .desk-card__intro {
    font-size: 17px;
    line-height: 1.45;
  }
}

/* Fix #6: Hover states más visibles */
html.template-desk .desk-card__title a {
  transition: color 0.12s ease;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease, color 0.12s ease;
}
html.template-desk .desk-card__title a:hover,
html.template-desk .desk-card__title a:focus {
  color: var(--desk-accent-deep);
  background-size: 100% 1px;
}
html.template-desk .desk-chip--outline:hover {
  background: var(--desk-accent-soft);
  border-color: var(--desk-accent-deep);
  color: var(--desk-accent-deep);
}
html.template-desk .desk-card--md:hover .desk-card__media,
html.template-desk .desk-card--lg:hover .desk-card__media,
html.template-desk .desk-card--xl:hover .desk-card__media {
  filter: brightness(0.96);
  transition: filter 0.12s ease;
}

/* Fix #9: Skip link visible al focus (accesibilidad) */
html.template-desk .desk-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
html.template-desk .desk-skip-link:focus {
  position: fixed;
  left: var(--desk-space-3);
  top: var(--desk-space-3);
  width: auto;
  height: auto;
  background: var(--desk-ink);
  color: var(--desk-paper);
  padding: var(--desk-space-3) var(--desk-space-4);
  font-family: var(--desk-font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 1000;
  outline: 2px solid var(--desk-accent);
  outline-offset: 2px;
}

/* Fix #10: Reading progress bar más visible */
html.template-desk .desk-article__progress {
  height: 4px;
  background: var(--desk-accent);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* Fix #2: Stats sin "0 me gusta" — ocultar items con counter en cero
 * mediante clase .is-zero que el PHP aplica condicionalmente. */
html.template-desk .desk-article__stat.is-zero { display: none; }

/* Fix #7: Print stylesheet — solo cuerpo de la nota al imprimir */
@media print {
  html.template-desk .desk-top,
  html.template-desk .desk-submenu,
  html.template-desk .desk-article__progress,
  html.template-desk .desk-article__stats,
  html.template-desk .desk-article__actions,
  html.template-desk .desk-ad,
  html.template-desk .desk-next-read,
  html.template-desk .desk-section,
  html.template-desk .desk-footer,
  html.template-desk .desk-skip-link,
  html.template-desk .desk-search-overlay,
  html.template-desk .desk-search { display: none !important; }
  html.template-desk .desk-article {
    padding: 0 !important;
    max-width: 720px;
    margin: 0 auto;
  }
  html.template-desk .desk-article__title { font-size: 24pt; }
  html.template-desk .desk-article__intro { font-size: 13pt; font-style: italic; color: #444; }
  html.template-desk .desk-article__body { font-size: 12pt; line-height: 1.6; color: #000; }
  html.template-desk .desk-article__hero { max-width: 100%; }
  html.template-desk a { color: #000 !important; text-decoration: underline; }
}

/* Fix mejora extra: enriquecer meta de cards md con monospace
 * sólido (la clase ya está, solo confirmamos pesos) */
html.template-desk .desk-card--md .desk-card__meta {
  font-family: var(--desk-font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}
html.template-desk .desk-card--md .desk-card__meta strong {
  color: var(--desk-ink);
  font-weight: 600;
}
