﻿/* ============================================================
   SECTORFINANCIERO.ES — v5
   Mosaico editorial asimétrico (cada noticia con su espacio)
   Inspiración: NYT, The Guardian, El Mundo
   ============================================================ */

:root {
  --c-green:        #38b6ff;
  --c-green-deep:   #1d8dd1;
  --c-green-soft:   #6cc7ff;
  --c-green-tint:   #eaf6ff;
  --c-cream:        #f4f4f1;
  --c-cream-deep:   #ebebe6;
  --c-white:        #ffffff;
  --c-ink:          #11171a;
  --c-text:         #1a1f23;
  --c-text-soft:    #565d62;
  --c-text-mute:    #8a9094;
  --c-line:         #d8d8d2;
  --c-line-soft:    #e6e6df;
  --c-placeholder:  #d6d6cf;
  --c-placeholder-2:#c2c2bb;
  --c-red:          #b1142c;

  --f-serif:        "Source Serif 4", "Source Serif Pro", "Times New Roman", Georgia, serif;
  --f-sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad-x:          28px;
  --pad-y:          28px;
  --gap:            22px;
  --gap-tight:      14px;
  --max-content:    1440px;  /* ancho máximo de contenido (no full-width) */

  --h-topbar:       34px;
  --h-livebar:      36px;
  --h-nav:          50px;
  --h-nav-sticky:   56px;

  --shadow-md:      0 6px 18px rgba(56, 182, 255, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--h-livebar);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-green); }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--f-serif);
  color: var(--c-ink); margin: 0;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.005em;
}
button { font-family: inherit; cursor: pointer; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ============================================================
   TOPBAR / LIVEBAR / MASTHEAD / NAV (sin cambios estructurales)
   ============================================================ */
.topbar {
  background: var(--c-green-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  padding: 0 var(--pad-x);
  height: var(--h-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-date { text-transform: capitalize; font-weight: 500; color: rgba(255,255,255,0.9); }
.topbar-meta { display: flex; align-items: center; gap: 12px; }
.topbar-meta a, .topbar-meta span { color: rgba(255,255,255,0.78); }
.topbar-meta a:hover { color: #fff; text-decoration: underline; }
.topbar-meta .sep { opacity: 0.4; }
.topbar-search {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.topbar-search:hover { background: rgba(255,255,255,0.1); color: #fff; }

.livebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--h-livebar);
  background: var(--c-green);
  color: #fff;
  display: flex; align-items: center;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
}
.livebar-label {
  background: rgba(0,0,0,0.15);
  color: #fff; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.14em;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-out infinite; }
/* Pulse: solo ripple expandiéndose, sin escalado del punto (sin rebote) */
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(255,255,255,0.65); }
  100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
.livebar-viewport { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.livebar-track {
  display: inline-flex;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-x 130s linear infinite;
  will-change: transform;
}
.livebar-track:hover { animation-play-state: paused; }
.livebar-item { padding: 0 28px; position: relative; }
.livebar-item + .livebar-item::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.55);
}
@keyframes scroll-x { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ============================================================
   STICKY HEADER — masthead + nav se quedan fijos al scroll
   #site-header usa display:contents para que sus hijos sean
   hijos directos del <body> (necesario para que sticky funcione).
   La livebar (encima del wrapper) no entra: se va al hacer scroll.
   ============================================================ */
#site-header { display: contents; }

.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.masthead {
  background: #fff;
  padding: 24px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  border-bottom: 1px solid var(--c-line-soft);
  position: relative;
}
.masthead-search,
.masthead-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--c-text);
  align-items: center;
  justify-content: center;
}
.masthead-burger {
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
}
.masthead-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  transition: transform .2s ease, opacity .2s ease;
}
.masthead-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.masthead-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.masthead-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.masthead-logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Descripción serif debajo del logo (tipografía del newsletter title) */
.masthead-tagline {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--c-text-soft);
  text-align: center;
  font-style: italic;
}

.sections-nav {
  background: #fff;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line);
  height: var(--h-nav);
  transition: box-shadow .2s ease;
}
.sections-nav.scrolled {
  box-shadow: var(--shadow-md);
}
.sections-nav-inner {
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: var(--max-content);
  margin: 0 auto;
}
/* Nav actions (iconos a la derecha: personalizar + login) */
.nav-actions {
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.nav-icon {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.nav-icon:hover {
  background: var(--c-green);
  color: #fff;
  border-color: var(--c-green);
}
.nav-icon svg { display: block; }
.sections-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  height: 100%;
}
.sections-list li { height: 100%; display: flex; align-items: stretch; }
.sections-list a {
  display: inline-flex;
  align-items: center;
  color: var(--c-text-soft);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0 18px;
  height: 100%;
  position: relative;
  transition: color .15s ease;
}
.sections-list a:hover { color: var(--c-ink); }
.sections-list a.active { color: var(--c-text-soft); }
.sections-list a.active::after {
  content: ""; position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 3px; background: var(--c-green);
}
.sections-list li + li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--c-line);
}
.sections-toggle {
  display: none;
  position: absolute;
  right: var(--pad-x); top: 50%;
  transform: translateY(-50%);
  background: transparent; border: 0;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0;
}
.sections-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); transition: transform .2s ease, opacity .2s ease; }
.sections-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sections-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sections-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   PLACEHOLDER GRIS (sustituye <img>)
   ============================================================ */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 55%),
    linear-gradient(180deg, var(--c-placeholder) 0%, var(--c-placeholder-2) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 22px, rgba(0,0,0,0.025) 22px 23px);
  pointer-events: none;
}
.ph-icon {
  width: 32px; height: 32px;
  color: rgba(56, 182, 255, 0.22);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ph-cat {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--c-green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  z-index: 2;
}

/* ============================================================
   BANDS (de borde a borde)
   ============================================================ */
.band {
  padding: var(--pad-y) var(--pad-x);
  position: relative;
}
/* Contenido de cada banda con ancho máximo y centrado */
.band > .block-head,
.band > .section-tags,
.band > .mosaic,
.band > .timeline,
.band > .two-col-wide,
.ad-band > .ad-band-inner {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}
.newsletter-inner,
.footer-top,
.footer-bottom {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}
.band-rule { border-top: 1px solid var(--c-line); }
.band-light { background: var(--c-white); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.band-cream { background: var(--c-cream-deep); border-top: 1px solid var(--c-line); }
.band-dark { background: var(--c-green-deep); color: rgba(255,255,255,0.92); }
.band-dark .block-title { color: #fff; }
.band-dark .block-title span { border-bottom-color: var(--c-cream); }
.band-dark .block-more { color: rgba(255,255,255,0.85); }
.band-dark .block-more:hover { color: #fff; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.block-head-dark { border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 14px; margin-bottom: 18px; }
.block-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  display: inline-block;
}
.block-title span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--c-green);
}
.block-more {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 600;
  transition: color .15s ease;
}
.block-more:hover { color: var(--c-green-deep); }

/* ============================================================
   MOSAICO — layouts por sección
   - row-5:         5 cards en fila (5 → 4 → 3 → 2 → 1 responsive)
   - feature-left:  1 grande izq + 5 pequeñas + 1 ad (Medium Rect 300×250)
   - feature-right: igual pero la grande va a la derecha
   ============================================================ */
.mosaic {
  display: grid;
  gap: var(--gap);
}

/* ---------- CARDS — base unificada ---------- */
.card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  min-width: 0;
}
.card .news-img {
  width: 100%;
  aspect-ratio: 16/10;
  flex: 0 0 auto;
}
.card-body {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.card .news-eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 800;
  margin: 0 0 2px;
}
.card .news-title {
  font-family: var(--f-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.18;
  font-size: 1rem;
  transition: color .2s ease;
}
.card:hover .news-title { color: var(--c-green); }
.card .news-desc {
  font-family: var(--f-serif);
  color: var(--c-text-soft);
  line-height: 1.4;
  margin: 6px 0 0;
  font-size: 0.9rem;
  display: none;
}
.card .news-meta {
  font-size: 0.7rem;
  color: var(--c-text-mute);
  letter-spacing: 0.02em;
  margin: 6px 0 0;
}

/* ---------- WIDGET DE JUEGOS (ocupa 1 celda en row-5) ---------- */
.games-widget {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 12px 14px;
}
.games-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--c-line-soft);
  flex-shrink: 0;
}
.games-widget-head .gw-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 800;
  line-height: 1;
}
.games-widget-head .gw-date {
  font-size: 0.64rem;
  color: var(--c-text-mute);
  text-transform: capitalize;
  line-height: 1;
}
.game-tile {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  text-decoration: none;
  color: var(--c-text);
  border-top: 1px solid var(--c-line-soft);
  line-height: 1.1;
}
.game-tile:first-of-type { border-top: 0; }
.game-tile:hover .game-name { color: var(--c-green); }
.game-tile:hover .game-icon-box { color: var(--c-green); }
.game-icon-box {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--c-text-soft);
  flex-shrink: 0;
  transition: color .15s ease;
}
.game-icon-box svg {
  display: block;
  width: 22px;
  height: 22px;
}
.game-tile-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}
.game-name {
  font-family: var(--f-serif);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  line-height: 1.05;
  transition: color .15s ease;
}
.game-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--c-text-soft);
  margin-top: 2px;
  line-height: 1;
}
.game-status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #d39a14;
  flex-shrink: 0;
}
.game-status.done { color: #2a8a3c; }
.game-status.done::before { background: #2a8a3c; }
.game-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  line-height: 1;
}
.game-counter-num {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.game-counter-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--c-text-mute);
  line-height: 1;
}

/* ---------- LAYOUT 1: row-5 (5 cards → escalado responsive) ---------- */
.mosaic[data-layout="row-5"] {
  grid-template-columns: repeat(5, 1fr);
}
.mosaic[data-layout="row-5"] .card .news-title { font-size: 1rem; }

@media (max-width: 1279px) {
  .mosaic[data-layout="row-5"] { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .mosaic[data-layout="row-5"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .mosaic[data-layout="row-5"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mosaic[data-layout="row-5"] { grid-template-columns: 1fr; }
  .mosaic[data-layout="row-5"] .card .news-title { font-size: 1.3rem; }
  .mosaic[data-layout="row-5"] .card .news-desc  { display: block; }
}

/* ---------- LAYOUT 2 & 3: feature-left / feature-right ----------
   Filas FIJAS de 250px → cards pequeñas + ad miden 300×250 exacto
   Row 3 (auto) acoge las section-tags debajo de la noticia grande */
.mosaic[data-layout="feature-left"],
.mosaic[data-layout="feature-right"] {
  grid-template-rows: 250px 250px;
  grid-auto-rows: auto;
  align-items: stretch;
}
.mosaic[data-layout="feature-left"]  { grid-template-columns: minmax(0,1fr) 300px 300px 300px; }
.mosaic[data-layout="feature-right"] { grid-template-columns: 300px 300px 300px minmax(0,1fr); }

.mosaic[data-layout="feature-left"]  > .card:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.mosaic[data-layout="feature-right"] > .card:nth-child(1) { grid-column: 4; grid-row: 1 / span 2; }

/* Section-tags ahora viven DENTRO del big card (en su body, al fondo).
   Big card + hashtags = altura total de 2 cards pequeñas apiladas */
.mosaic[data-layout^="feature"] > .card:nth-child(1) .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mosaic[data-layout^="feature"] > .card:nth-child(1) .section-tags {
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 0;
}

/* La GRANDE: imagen horizontal fija (no estirada) + descripción larga + hashtags */
.mosaic[data-layout^="feature"] > .card:nth-child(1) {
  height: 100%;
}
.mosaic[data-layout^="feature"] > .card:nth-child(1) .news-img {
  aspect-ratio: 16/9;
  flex: 0 0 auto;
  min-height: 0;
}
.mosaic[data-layout^="feature"] > .card:nth-child(1) .card-body {
  flex: 1;
  gap: 8px;
}
.mosaic[data-layout^="feature"] > .card:nth-child(1) .news-title {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mosaic[data-layout^="feature"] > .card:nth-child(1) .news-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
}

/* Las pequeñas — 300×250 exactos para alinear con el ad */
.mosaic[data-layout^="feature"] > .card:not(:nth-child(1)) {
  height: 250px;
  overflow: hidden;
}
.mosaic[data-layout^="feature"] > .card:not(:nth-child(1)) .news-img {
  height: 140px;
  aspect-ratio: auto;
  flex: 0 0 140px;
}
.mosaic[data-layout^="feature"] > .card:not(:nth-child(1)) .card-body {
  padding: 10px 0 0;
  height: 110px;
  overflow: hidden;
  gap: 4px;
  display: flex;
  flex-direction: column;
}
.mosaic[data-layout^="feature"] > .card:not(:nth-child(1)) .news-title {
  font-size: 0.95rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mosaic[data-layout^="feature"] > .card:not(:nth-child(1)) .news-meta {
  display: block;
  font-size: 0.66rem;
  margin-top: auto;
}
.mosaic[data-layout^="feature"] > .card:not(:nth-child(1)) .news-desc {
  display: none;
}

/* ---------- HASHTAGS (debajo del card grande) ---------- */
/* ---------- SECTION TAGS — grandes, bordes afilados, nivel sección ---------- */
.section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--c-line);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-green);
  padding: 10px 16px;
  border: 0;
  border-radius: 0;             /* SIN redondeo — bordes afilados */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease;
  text-decoration: none;
}
.section-tag:hover  { background: var(--c-green-deep); color: #fff; }
/* Variante outline (alterna visual cada par de tags) */
.section-tag.outline {
  background: transparent;
  color: var(--c-green);
  box-shadow: inset 0 0 0 2px var(--c-green);
}
.section-tag.outline:hover {
  background: var(--c-green);
  color: #fff;
}

/* ---------- AD SLOT (Google AdSense 300×250 — Medium Rectangle) ----------
   Tamaño FIJO 300×250. No escala con la celda (los anuncios reales no se
   adaptan al ancho). Si la celda es más estrecha → la cortamos con overflow.
   En móvil se centra dentro de la columna. */
.ad-slot {
  display: flex;
  flex-direction: column;
  background: var(--c-cream-deep);
  border: 1px solid var(--c-line);
  overflow: hidden;
  width: 300px;
  height: 250px;
  flex: 0 0 300px;
  position: relative;
  margin: 0 auto;        /* centrar si la celda es más ancha */
  align-self: center;    /* en grid también */
}
.ad-slot-label {
  background: rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--c-line);
  padding: 5px 8px;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--c-text-mute);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.ad-slot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--c-text-mute);
  font-family: var(--f-sans);
  gap: 4px;
  background:
    linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.02) 100%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,0,0,0.015) 12px 13px);
}
.ad-slot-size {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-soft);
}
.ad-slot-note {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   AD BAND — banda horizontal con anuncio 728×90 + widget
   Aparece cada 2 secciones
   ============================================================ */
.ad-band {
  padding: var(--pad-y) var(--pad-x);
  background: var(--c-cream-deep);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.ad-band-inner {
  display: grid;
  grid-template-columns: 728px 1fr;
  gap: var(--gap);
  align-items: stretch;
}

/* Leaderboard 728×90 — TAMAÑO FIJO también */
.ad-leaderboard {
  width: 728px;
  height: 90px;
  flex: 0 0 728px;
  background: var(--c-cream-deep);
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.02) 100%),
    repeating-linear-gradient(45deg, var(--c-cream-deep) 0 12px, rgba(0,0,0,0.025) 12px 13px);
}
.ad-leaderboard::before {
  content: "PUBLICIDAD";
  position: absolute;
  top: 4px; left: 6px;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: var(--c-text-mute);
  font-weight: 700;
}
.ad-leaderboard-text {
  text-align: center;
  font-family: var(--f-sans);
  color: var(--c-text-soft);
}
.ad-leaderboard-size {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: block;
}
.ad-leaderboard-note {
  font-size: 0.65rem;
  color: var(--c-text-mute);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 2px;
}

/* WIDGET base — altura FIJA 90px para alinearse con el ad-leaderboard */
.widget {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  font-family: var(--f-sans);
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

/* ============================================================
   WIDGET — Conversor de divisas
   Compacto a la izquierda + grid 3×2 de quick rates a la derecha
   ============================================================ */
.widget-currency {
  padding: 8px 18px;
  gap: 14px;
  align-items: stretch;
}
.currency-converter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}
.currency-input-side,
.currency-output-side {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  padding: 7px 10px;
  min-width: 0;
}
.currency-amount,
.currency-result {
  font-family: var(--f-serif);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0;
  width: 64px;
  text-align: right;
  min-width: 0;
}
.currency-result {
  display: inline-block;
  white-space: nowrap;
}
.currency-select {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-green);
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  padding: 0 12px 0 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 10 10' fill='none' stroke='%2338b6ff' stroke-width='1.8'><path d='M2 3.5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
}
.currency-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  flex: 0 0 auto;
}

/* Quick rates — grid 3 filas × 2 columnas (6 ratios) */
.currency-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 2px 14px;
  flex: 1;
  border-left: 1px solid var(--c-line);
  padding-left: 14px;
  align-content: center;
  min-width: 0;
}
.quick-rate {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-sans);
  white-space: nowrap;
  min-width: 0;
}
.quick-pair {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--c-text-mute);
  text-transform: uppercase;
  font-size: 0.6rem;
}
.quick-val {
  font-family: var(--f-serif);
  font-weight: 800;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

/* ============================================================
   WIDGET — Bolsa: SIN título, 6 índices en strip horizontal
   ============================================================ */
.widget-stocks {
  padding: 0 18px;
  gap: 0;
}
.stocks-strip {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.stocks-strip .stock {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  border-right: 1px solid var(--c-line-soft);
}
.stocks-strip .stock:first-child { padding-left: 0; }
.stocks-strip .stock:last-child  { padding-right: 0; border-right: 0; }
.stocks-strip .ticker {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-text-mute);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stocks-strip .value {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.stocks-strip .change {
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stocks-strip .change.up   { color: #1d7d3e; }
.stocks-strip .change.down { color: #c0392b; }
.stocks-strip .change.up::before   { content: "▲ "; font-size: 0.7em; }
.stocks-strip .change.down::before { content: "▼ "; font-size: 0.7em; }

/* ============================================================
   WIDGET — Newsletter mini (sustituye a la agenda)
   90px de alto, con CTA inline
   ============================================================ */
/* Padding simétrico en TODO el bloque (vertical = horizontal) */
.widget-newsletter-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}
.nl-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.nl-eyebrow {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--c-green);
  text-transform: uppercase;
}
.nl-title {
  font-family: var(--f-serif);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--c-ink);
  font-style: italic;
  letter-spacing: -0.005em;
  line-height: 1.22;
}
.nl-form {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.nl-form input {
  font-family: var(--f-sans);
  font-size: 0.84rem;
  padding: 8px 12px;
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink);
  outline: none;
  width: 180px;
  transition: border-color .15s ease;
}
.nl-form input:focus { border-color: var(--c-green); }
.nl-form button {
  background: var(--c-green);
  color: #fff;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.nl-form button:hover { background: var(--c-green-deep); }

/* Responsive ad-band: stack en tablet/mobile */
@media (max-width: 1100px) {
  .ad-band-inner { grid-template-columns: 1fr; gap: 16px; }
  .ad-leaderboard { width: 100%; max-width: 728px; }
}
@media (max-width: 768px) {
  .ad-leaderboard { width: 100%; max-width: 100%; height: auto; min-height: 100px; padding: 14px; }
  .widget-stocks .widget-body { grid-template-columns: repeat(2, 1fr); }
}

/* row-5: ocultar tarjetas que sobran al bajar de columnas */
@media (max-width: 1279px) {
  .mosaic[data-layout="row-5"] > .card:nth-child(n+5) { display: none; }
}
@media (max-width: 1023px) {
  .mosaic[data-layout="row-5"] > .card:nth-child(n+4) { display: none; }
}
@media (max-width: 720px) {
  .mosaic[data-layout="row-5"] > .card:nth-child(n+3) { display: none; }
}

/* Tablet (768-1199): feature → grande full-width arriba + grid 3 cols.
   Ocultamos el ad (no cabe a 300px en celda estrecha) y bajamos a 5 noticias. */
@media (max-width: 1199px) {
  .mosaic[data-layout="feature-left"],
  .mosaic[data-layout="feature-right"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
  }
  .mosaic[data-layout="feature-left"]  > .card:nth-child(1),
  .mosaic[data-layout="feature-right"] > .card:nth-child(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .mosaic[data-layout^="feature"] > .card:nth-child(1) .news-img {
    aspect-ratio: 16/8;
    min-height: 0;
  }
  /* El ad-slot 300×250 no cabe limpio en celda <1200 → lo ocultamos */
  .mosaic[data-layout^="feature"] .ad-slot { display: none; }
}

/* Tablet medio: bajar a 2 cols, máximo 4 noticias en feature */
@media (max-width: 900px) {
  .mosaic[data-layout="feature-left"],
  .mosaic[data-layout="feature-right"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .mosaic[data-layout^="feature"] > .card:nth-child(n+6) { display: none; }
}

/* Mobile (<768): todo apilado, ad vuelve (300×250 cabe en 1 col) */
@media (max-width: 767px) {
  .mosaic[data-layout="feature-left"],
  .mosaic[data-layout="feature-right"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .mosaic[data-layout="feature-left"]  > .card:nth-child(1),
  .mosaic[data-layout="feature-right"] > .card:nth-child(1) {
    grid-column: 1;
    grid-row: auto;
  }
  .mosaic[data-layout^="feature"] > .card .news-title { font-size: 1.3rem; }
  .mosaic[data-layout^="feature"] > .card .news-desc  { display: block; }
  /* En móvil solo mostramos 1 grande + 3 pequeñas, sin ad */
  .mosaic[data-layout^="feature"] > .card:nth-child(n+5) { display: none; }
  .mosaic[data-layout^="feature"] .ad-slot { display: none; }
}

/* ============================================================
   MOSAICO DENSO (sin imagen, titulares en caja blanca)
   - Sección "Más noticias" — mantenemos grid regular de 4 cols
   ============================================================ */
.mosaic[data-pattern="dense"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-tight);
}
@media (max-width: 1080px) {
  .mosaic[data-pattern="dense"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .mosaic[data-pattern="dense"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mosaic[data-pattern="dense"] { grid-template-columns: 1fr; }
}
.mosaic[data-pattern="dense"] .card {
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  padding: 14px 16px;
  justify-content: flex-start;
}
.mosaic[data-pattern="dense"] .card .news-img { display: none; }
.mosaic[data-pattern="dense"] .card .news-desc { display: none; }
.mosaic[data-pattern="dense"] .card-body { padding: 0; gap: 5px; }
.mosaic[data-pattern="dense"] .card .news-title { font-size: 0.96rem; line-height: 1.22; }
.mosaic[data-pattern="dense"] .card .news-meta { font-size: 0.66rem; }

/* ============================================================
   COVER (portada) — usa el mismo sistema
   ============================================================ */
.cover { padding: 32px var(--pad-x); }

/* ============================================================
   TIMELINE (banda oscura)
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 36px;
}
.timeline li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: opacity .15s ease;
  align-items: start;
}
.timeline li:hover { opacity: 0.8; }
.timeline-time {
  font-family: var(--f-sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-cream);
  letter-spacing: 0.02em;
}
.timeline-time::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-red);
  margin-right: 6px;
  vertical-align: middle;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.timeline-text { font-family: var(--f-serif); font-size: 0.94rem; line-height: 1.25; color: rgba(255,255,255,0.95); font-weight: 600; }
.timeline-cat {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-cream);
  opacity: 0.7;
  margin: 0 0 4px;
}

/* ============================================================
   TWO COL (más leído + opinión)
   ============================================================ */
.two-col-wide {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.block-heading {
  font-family: var(--f-serif);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--c-ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.most-read-list { counter-reset: read-counter; }
.most-read-list li {
  counter-increment: read-counter;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-soft);
  cursor: pointer;
  transition: opacity .15s ease;
}
.most-read-list li:last-child { border-bottom: 0; }
.most-read-list li::before {
  content: counter(read-counter);
  font-family: var(--f-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.most-read-list li:hover { opacity: 0.7; }
.most-read-list .mr-eyebrow {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 700;
  margin-bottom: 4px;
}
.most-read-list .mr-title {
  font-family: var(--f-serif);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-ink);
}

.opinion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.opinion-piece {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line-soft);
  cursor: pointer;
  transition: opacity .15s ease;
}
.opinion-piece:hover { opacity: 0.85; }
.opinion-piece:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.opinion-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 700;
  margin: 0 0 6px;
}
.opinion-title {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.22;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 8px;
  font-style: italic;
}
.opinion-byline { font-size: 0.74rem; color: var(--c-text-mute); margin: 0; letter-spacing: 0.02em; }
.opinion-byline strong { color: var(--c-text); font-weight: 600; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--c-green);
  color: #fff;
  padding: 56px var(--pad-x);
  text-align: center;
}
.newsletter-inner { max-width: 720px; margin: 0 auto; }
.newsletter-eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-weight: 600; margin: 0 0 12px; }
.newsletter-title {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.newsletter-desc { color: rgba(255,255,255,0.85); font-size: 1.02rem; margin: 0 0 24px; font-family: var(--f-serif); font-style: italic; }
.newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 12px; }
.newsletter-form input {
  flex: 1; padding: 14px 16px; border: 0;
  background: rgba(255,255,255,0.95);
  font-family: var(--f-sans); font-size: 0.95rem; color: var(--c-ink);
}
.newsletter-form input:focus { outline: 2px solid var(--c-cream); outline-offset: 2px; }
.newsletter-form button {
  background: var(--c-cream); color: var(--c-green-deep); border: 0;
  padding: 14px 22px; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .15s ease;
}
.newsletter-form button:hover { background: #fff; }
.newsletter-fineprint { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 12px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--c-green-deep); color: rgba(255,255,255,0.78); }
.footer-top {
  padding: 48px var(--pad-x) 36px;
  display: grid;
  grid-template-columns: 1.3fr 2.5fr;
  gap: 48px;
}
.footer-brand .footer-logo { height: 36px; width: auto; margin-bottom: 18px; }
.footer-desc { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.7); margin: 0 0 22px; max-width: 420px; }
.social-list { display: flex; gap: 8px; }
.social-list a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem; font-weight: 700;
  font-family: var(--f-serif);
  border-radius: 50%;
  transition: all .15s ease;
}
.social-list a:hover { background: var(--c-cream); color: var(--c-green-deep); border-color: var(--c-cream); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-col h4 { color: #fff; font-family: var(--f-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px var(--pad-x);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ============================================================
   RESPONSIVE — solo ajustes de paddings y bloques no-mosaico
   El mosaico responsive vive en su propia sección arriba
   ============================================================ */
@media (max-width: 1200px) {
  :root { --pad-x: 24px; --gap: 20px; }
}
@media (max-width: 980px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .two-col-wide { grid-template-columns: 1fr; gap: 36px; }
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; --pad-y: 24px; --gap: 18px; }

  .masthead {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    column-gap: 8px;
    row-gap: 4px;
  }
  .masthead-search,
  .masthead-burger { display: flex; }
  .masthead-search { grid-column: 1; grid-row: 1; justify-self: start; color: var(--c-text-soft); }
  .masthead-logo { grid-column: 2; grid-row: 1; }
  .masthead-logo img { height: 26px; }
  .masthead-burger { grid-column: 3; grid-row: 1; justify-self: end; }
  .masthead-tagline {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.7rem;
    margin: 0;
  }
  .sections-nav { height: auto; min-height: var(--h-nav); }
  .sections-toggle { display: none !important; }
  .sections-nav-inner { padding: 8px 16px; }
  .sections-list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--c-green-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 99;
    height: auto;
  }
  .sections-list li { height: auto; }
  .sections-list.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .sections-list a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    justify-content: flex-start;
    height: auto;
  }
  .sections-list li + li a::before { display: none; }
  .sections-list a.active::after { display: none; }
  .sections-toggle { display: flex; }
  .nav-actions { display: none; }   /* en móvil mostramos solo el hamburguesa */

  .timeline { grid-template-columns: 1fr; }
  .opinion-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   WELCOME PANEL (sidebar derecha · personalización)
   ============================================================ */
.welcome-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.welcome-panel[hidden] { display: none; }
.wp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: auto;
}
.welcome-panel.open .wp-backdrop { opacity: 1; }
.wp-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--c-cream);
  transform: translateX(100%);
  transition: transform .3s ease;
  pointer-events: auto;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
}
.welcome-panel.open .wp-drawer { transform: translateX(0); }
.wp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: color .15s ease;
  z-index: 3;
}
.wp-close:hover { color: var(--c-green); }
.wp-content {
  padding: 38px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.wp-eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0;
}
.wp-title {
  font-family: var(--f-serif);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--c-ink);
  margin: 0;
}
.wp-lede {
  font-family: var(--f-serif);
  font-size: 0.96rem;
  color: var(--c-text-soft);
  line-height: 1.45;
  margin: 0;
}
.wp-sections {
  border: 0;
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--c-line);
}
.wp-sections legend {
  padding: 0 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.wp-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--f-sans);
  font-size: 0.94rem;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line-soft);
}
.wp-check:last-of-type { border-bottom: 0; }
.wp-check input {
  width: 18px; height: 18px;
  accent-color: var(--c-green);
  cursor: pointer;
}
.wp-extra {
  background: var(--c-green-tint);
  padding: 16px 18px;
  border-left: 3px solid var(--c-green);
}
.wp-extra h3 {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--c-ink);
}
.wp-extra p {
  font-size: 0.86rem;
  color: var(--c-text);
  margin: 0 0 10px;
  line-height: 1.45;
}
.wp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.wp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.wp-btn.primary { background: var(--c-green); color: #fff; }
.wp-btn.primary:hover { background: var(--c-green-deep); }
.wp-btn.ghost {
  background: transparent;
  color: var(--c-green);
  box-shadow: inset 0 0 0 2px var(--c-green);
}
.wp-btn.ghost:hover { background: var(--c-green); color: #fff; }
.wp-btn.link {
  background: transparent;
  color: var(--c-text-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  text-decoration: underline;
  padding: 8px;
}
.wp-btn.link:hover { color: var(--c-green); }
.wp-note {
  text-align: center;
  font-size: 0.74rem;
  color: var(--c-text-mute);
  letter-spacing: 0.04em;
  margin: 4px 0 0;
}

/* Ocultación de secciones por preferencia (localStorage) — 8 toggles */
body.hide-economia      #economia,
body.hide-finanzas      #finanzas,
body.hide-empresas      #empresas,
body.hide-politica      #politica,
body.hide-internacional #internacional,
body.hide-opinion       #opinion,
body.hide-masleido      .most-read,
body.hide-ultimas       #ultimas-horas {
  display: none;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px var(--pad-x);
}
.login-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}
.login-side { padding: 40px; }
.login-form-side {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
}
.login-header { margin-bottom: 22px; }
.login-eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0 0 10px;
}
.login-header h1 {
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--c-ink);
  margin: 0 0 10px;
}
.login-header .lede {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-text-soft);
  font-size: 1rem;
  margin: 0;
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  border: 2px solid var(--c-line);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-ink);
  cursor: pointer;
  transition: all .15s ease;
}
.btn-google:hover {
  border-color: var(--c-green);
  background: var(--c-green-tint);
}
.google-icon { flex: none; }
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--c-text-mute);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-soft);
}
.login-field input {
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  font-family: var(--f-sans);
  font-size: 0.95rem;
  color: var(--c-ink);
  outline: none;
  transition: border-color .15s ease;
  background: #fff;
}
.login-field input:focus { border-color: var(--c-green); }
.btn-primary {
  background: var(--c-green);
  color: #fff;
  border: 0;
  padding: 14px 20px;
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease;
  margin-top: 4px;
}
.btn-primary:hover { background: var(--c-green-deep); }
.login-alt {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--c-text-soft);
}
.login-alt a { color: var(--c-green); font-weight: 700; }
.login-alt a:hover { text-decoration: underline; }

/* Beneficios: estilo editorial sobrio, fondo crema, verde solo en acentos */
.login-benefits {
  background: var(--c-cream);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-green);
}
.benefits-eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0 0 10px;
}
.login-benefits h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--c-ink);
  margin: 0 0 14px;
}
.benefits-lede {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-text-soft);
  font-size: 1rem;
  line-height: 1.42;
  margin: 0 0 28px;
}
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.benefits-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line-soft);
}
.benefits-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-green);
}
.benefit-icon svg { display: block; }
.benefits-list h4 {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 2px 0 4px;
}
.benefits-list p {
  font-size: 0.88rem;
  color: var(--c-text-soft);
  margin: 0;
  line-height: 1.42;
}
.benefits-promise {
  background: #fff;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-green);
}
.benefits-promise strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green-deep);
  margin-bottom: 6px;
}
.benefits-promise p {
  font-size: 0.88rem;
  color: var(--c-text);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .login-container { grid-template-columns: 1fr; gap: 28px; }
  .login-side { padding: 28px; }
}
