/* Agenda Plural — Diseño 33 normalizado para notas de Economía */
:root {
  --d33-navy: #0f172a;
  --d33-navy-2: #1e293b;
  --d33-red: #c0272d;
  --d33-red-dark: #991b1f;
  --d33-paper: #f8fafc;
  --d33-white: #fff;
  --d33-ink: #1e293b;
  --d33-muted: #64748b;
  --d33-line: #e2e8f0;
  --d33-soft: #f1f5f9;
  --d33-blue-soft: #e0f2fe;
  --d33-blue-line: #bae6fd;
  --d33-serif: "Playfair Display", Georgia, serif;
  --d33-sans: "Roboto", Arial, sans-serif;
  --d33-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--d33-paper);
  color: var(--d33-ink);
  font-family: var(--d33-sans);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: var(--d33-red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

.d33-topbar { background: var(--d33-navy); color: #fff; font-size: .78rem; }
.d33-topbar-inner,
.d33-header-inner,
.d33-nav-inner,
.d33-shell,
.d33-footer-inner { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.d33-topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.d33-topbar a { color: #fff; text-decoration: none; }
.d33-header { background: #fff; border-bottom: 1px solid var(--d33-line); }
.d33-header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.d33-logo { line-height: 0; }
.d33-logo img { width: 264px; height: 60px; object-fit: contain; object-position: left center; }
.d33-edition { color: var(--d33-muted); font-family: var(--d33-serif); font-style: italic; font-size: .86rem; }
.d33-nav { background: var(--d33-navy-2); color: #fff; }
.d33-nav-inner { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: thin; }
.d33-nav a {
  flex: 0 0 auto;
  min-height: 46px;
  padding: .78rem 1.15rem;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .055em;
}
.d33-nav a:hover,
.d33-nav a[aria-current="page"] { background: var(--d33-red); }

.d33-shell { margin-block: 1.5rem 2.5rem; }
.d33-breadcrumb { margin-bottom: 1rem; color: var(--d33-muted); font-size: .78rem; }
.d33-breadcrumb a { text-decoration: none; }
.d33-breadcrumb a:hover { color: var(--d33-red); }
.d33-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.d33-article,
.d33-panel {
  background: #fff;
  border: 1px solid var(--d33-line);
  border-radius: 8px;
  box-shadow: var(--d33-shadow);
}
.d33-article { padding: clamp(1.15rem, 4vw, 2.25rem); min-width: 0; }
.d33-badge {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .3rem .65rem;
  border-radius: 4px;
  background: var(--d33-red);
  color: #fff;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.d33-title {
  margin: 0 0 .85rem;
  color: var(--d33-navy);
  font-family: var(--d33-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.spotlight-text {
  background: linear-gradient(90deg, var(--d33-navy) 0%, var(--d33-navy) 42%, var(--d33-red) 50%, var(--d33-navy) 58%, var(--d33-navy) 100%);
  background-size: 220% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: d33-shine 7s linear infinite;
}
@keyframes d33-shine { to { background-position: 220% center; } }
.d33-summary { margin: 0 0 1rem; color: #475569; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300; line-height: 1.6; }
.d33-meta {
  margin-bottom: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  color: var(--d33-muted);
  font-size: .84rem;
}
.d33-meta a { color: var(--d33-red); font-weight: 700; text-decoration: none; }
.d33-hero { margin: 0 0 1.65rem; }
.d33-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--d33-soft);
}
.d33-caption { margin: .6rem auto 0; max-width: 82ch; color: var(--d33-muted); text-align: center; font-size: .8rem; font-style: italic; line-height: 1.5; }

.d33-article-body { color: #334155; font-size: clamp(1rem, 1.4vw, 1.08rem); line-height: 1.8; }
.d33-article-body > p { margin: 0 0 1.25rem; }
.d33-article-body h2 { margin: 2rem 0 .9rem; padding-bottom: .55rem; border-bottom: 2px solid var(--d33-line); color: var(--d33-navy); font-family: var(--d33-serif); font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.25; }
.d33-article-body h3 { color: var(--d33-navy); }
.d33-article-body a { color: var(--d33-red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.d33-article-body .cita,
.d33-article-body blockquote { margin: 1.7rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--d33-red); border-radius: 0 8px 8px 0; background: var(--d33-paper); color: var(--d33-navy-2); font-family: var(--d33-serif); font-size: 1.18rem; font-style: italic; }
.d33-article-body .info-box,
.d33-article-body .tip-box,
.d33-article-body .neutral-box { margin: 1.7rem 0; padding: 1.1rem; border: 1px solid var(--d33-blue-line); border-radius: 8px; background: var(--d33-blue-soft); }
.d33-article-body .info-box h3,
.d33-article-body .tip-box h3 { margin-top: 0; color: #0369a1; }
.d33-article-body .grid3 { margin: 1.5rem 0; display: grid; grid-template-columns: 1fr; gap: .9rem; }
.d33-article-body .gcard { padding: 1rem; border: 1px solid var(--d33-line); border-top: 4px solid var(--d33-red); border-radius: 7px; background: #fff; }
.d33-article-body .gcard .label { color: var(--d33-red); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.d33-article-body .balance { margin: 1.7rem 0; overflow: hidden; border: 1px solid var(--d33-line); border-radius: 8px; }
.d33-article-body .balance-head { padding: .9rem 1rem; background: var(--d33-navy); color: #fff; font-weight: 700; }
.d33-article-body .balance-cols { display: grid; grid-template-columns: 1fr; }
.d33-article-body .bal-col { padding: 1rem; }
.d33-article-body .bal-col + .bal-col { border-top: 1px solid var(--d33-line); }
.d33-article-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; display: block; overflow-x: auto; }
.d33-article-body th,
.d33-article-body td { min-width: 180px; padding: .75rem; border: 1px solid var(--d33-line); text-align: left; vertical-align: top; }
.d33-article-body th { background: var(--d33-soft); color: var(--d33-navy); }

.d33-tags { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--d33-line); }
.d33-tags h2 { margin: 0 0 .8rem; font-family: var(--d33-serif); font-size: 1.1rem; }
.d33-taglist { display: flex; flex-wrap: wrap; gap: .5rem; }
.d33-taglist span { padding: .35rem .75rem; border: 1px solid var(--d33-line); border-radius: 999px; background: var(--d33-soft); color: #475569; font-size: .78rem; }
.cascade-tags span { animation: d33-pop .35s ease both; }
.cascade-tags span:nth-child(2) { animation-delay: .06s; }
.cascade-tags span:nth-child(3) { animation-delay: .12s; }
.cascade-tags span:nth-child(4) { animation-delay: .18s; }
@keyframes d33-pop { from { opacity: 0; transform: translateY(7px) scale(.96); } }

.d33-author { margin-top: 1.8rem; padding: 1rem; display: flex; gap: .9rem; align-items: center; border-left: 4px solid var(--d33-red); border-radius: 0 8px 8px 0; background: var(--d33-paper); }
.d33-author-mark { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; display: grid; place-items: center; background: var(--d33-navy); color: #fff; font-family: var(--d33-serif); font-weight: 700; }
.d33-author p { margin: 0; }
.d33-author-label { color: var(--d33-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.d33-author-name { color: var(--d33-navy); font-family: var(--d33-serif); font-size: 1.05rem; font-weight: 700; }
.d33-author-note { color: var(--d33-muted); font-size: .8rem; }

.d33-side { min-width: 0; }
.d33-panel { margin-bottom: 1.1rem; padding: 1.15rem; }
.d33-panel h2 { margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--d33-line); color: var(--d33-navy); font-family: var(--d33-serif); font-size: 1.15rem; }
.d33-facts { margin: 0; padding: 0; list-style: none; }
.d33-facts li { padding: .75rem 0; border-bottom: 1px solid var(--d33-soft); }
.d33-facts li:last-child { border: 0; }
.d33-facts strong { display: block; margin-bottom: .2rem; color: var(--d33-muted); font-size: .68rem; letter-spacing: .055em; text-transform: uppercase; }
.d33-facts span { color: var(--d33-navy); font-size: .9rem; font-weight: 500; }
.d33-related { margin: 0; padding: 0; list-style: none; }
.d33-related li { padding: .8rem 0; border-bottom: 1px solid var(--d33-soft); }
.d33-related li:last-child { border: 0; }
.d33-related small { display: block; margin-bottom: .25rem; color: var(--d33-red); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.d33-related a { color: var(--d33-navy); font-family: var(--d33-serif); font-size: .94rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.d33-related a:hover { color: var(--d33-red); }
.premium-lift { transition: transform .25s ease, box-shadow .25s ease; }
.premium-lift:hover { transform: translateY(-3px); box-shadow: 0 13px 24px rgba(15, 23, 42, .12); }

.d33-footer { padding: 2.4rem 0 2.7rem; background: #050505; color: #a1a1aa; text-align: center; }
.d33-footer-brand { color: #fff; font-family: var(--d33-serif); font-size: 2rem; font-weight: 900; }
.d33-footer-brand span { color: #dc2626; }
.d33-footer p { margin: .55rem 0; }
.d33-footer-links { margin: 1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.35rem; }
.d33-footer a { color: #f4f4f5; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.d33-footer a:hover { color: #dc2626; }

@media (min-width: 680px) {
  .d33-article-body .grid3 { grid-template-columns: repeat(3, 1fr); }
  .d33-article-body .balance-cols { grid-template-columns: repeat(2, 1fr); }
  .d33-article-body .bal-col + .bal-col { border-top: 0; border-left: 1px solid var(--d33-line); }
}
@media (min-width: 940px) {
  .d33-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 1.8rem; align-items: start; }
  .d33-side { position: sticky; top: 1rem; }
}
@media (max-width: 560px) {
  .d33-topbar-inner { justify-content: center; }
  .d33-topbar-inner span:last-child,
  .d33-edition { display: none; }
  .d33-header-inner { min-height: 76px; }
  .d33-logo img { width: 220px; height: 50px; }
  .d33-nav-inner { width: 100%; }
  .d33-nav a { padding-inline: .85rem; }
  .d33-shell { width: min(100% - 1rem, 1200px); margin-top: .8rem; }
  .d33-article { padding: 1rem; }
  .d33-title { font-size: clamp(1.8rem, 10vw, 2.45rem); }
  .d33-article-body { line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .spotlight-text { background: none; color: var(--d33-navy); }
}
