/* ==========================================================================
   Avance Mercados - Design System
   ========================================================================== */

/* --- Self-hosted Google Fonts --- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.0bb2ef2eda4e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.87c506d88b9f.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext.2e01db0610b1.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin.f94a697b1650.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #c8102e;
  --primary-dark: #9b0b24;
  --ink: #0b1220;
  --ink-muted: #4b5563;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e5e7eb;
  --chip: #eef2f7;
  --accent: #f59e0b;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(200, 16, 46, 0.08), transparent 60%),
    radial-gradient(900px 500px at 90% -20%, rgba(15, 23, 42, 0.10), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; }

:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.35);
  outline-offset: 2px;
}

/* === TOPBAR === */
.topbar {
  background: #0a0f1c;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.topbar a:hover { color: #fff; }

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.topbar-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.topbar-nav a:hover { color: #fff; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.topbar-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 12px;
}

.topbar-link:hover { color: #fff; }

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
}

.topbar-social a:hover { color: #fff; }

.topbar-clima {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar-user {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

/* === HEADER === */
.site-header {
  background: linear-gradient(135deg, #0b1220 0%, #111827 70%);
  padding: 20px 0 22px;
  border-bottom: 3px solid var(--primary);
}

.header-inner,
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.logo a {
  font-family: 'Newsreader', serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.logo-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-top: 6px;
  max-width: 520px;
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.premium-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

/* === BUTTONS === */
.btn-primary,
.btn-ghost,
.btn-outline,
.btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === MAIN NAVBAR === */
.main-navbar {
  background: #111827;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-navbar .container::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-block;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--primary);
}

/* === FLASH MESSAGES === */
.page-wrap {
  margin-top: 28px;
}

.flash-wrap {
  margin-bottom: 18px;
}

.flash-message {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.flash-message.success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.flash-message.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/* === STATS BAR === */
.stats-bar {
  background: #0b1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stats-bar-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stats-bar-value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.stats-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-bar-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

/* === INTRO SECTION (Home) === */
.intro {
  padding: 20px 0 4px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  align-items: start;
}

.intro-kicker {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.intro-title {
  font-family: 'Newsreader', serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--ink);
}

.intro-text {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  max-width: 540px;
  line-height: 1.5;
}

.intro-state {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.state-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.intro-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dashboard-filters {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.dashboard-filters .form-select,
.dashboard-filters .form-control {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.dashboard-filters .btn-filter {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
}

.dashboard-filters .btn-outline {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
}

.dashboard-filters .btn-alerta {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s;
}
.dashboard-filters .btn-alerta:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}


.intro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.intro-card-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.intro-chip-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.intro-guide {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
  color: #334155;
}

.country-search {
  display: flex;
  gap: 8px;
}

.country-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
}

.coverage-scroll {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  max-height: 260px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.coverage-section {
  margin: 6px 0 18px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coverage-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coverage-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  background: #ffffff;
}

.coverage-card {
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.coverage-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.coverage-code {
  display: inline-flex;
  min-width: 40px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.coverage-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.coverage-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.coverage-foco {
  border-color: rgba(200, 16, 46, 0.28);
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.08), #fff 38%);
}

.coverage-card.coverage-selected {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.22);
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.1), #fff 45%);
  transform: translateY(-1px);
}

.coverage-card.coverage-selected .coverage-code {
  border-color: rgba(200, 16, 46, 0.35);
  color: var(--primary);
  background: rgba(200, 16, 46, 0.06);
}

/* === TICKER COTIZACIONES === */
.ticker-cotizaciones {
  background: #fff;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ticker-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticker-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ticker-tab.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.ticker-panel {
  display: none;
}

.ticker-panel.active {
  display: block;
}

.section-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
}

.section-title {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.ticker-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
}

.ticker-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.ticker-grid.ticker-grid-expanded {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  overflow: visible;
  padding-bottom: 0;
}

.ticker-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ticker-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.ticker-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.ticker-change {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ticker-change.up { color: #10b981; }
.ticker-change.down { color: #ef4444; }
.ticker-change.neutral { color: #64748b; }

.ticker-more {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.ticker-more-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ticker-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ticker-extra {
  margin-top: 12px;
}

.is-hidden {
  display: none;
}

/* === AUTHOR BYLINE === */
.article-byline { display:flex; align-items:center; gap:10px; margin:14px 0 4px; }
.byline-avatar {
  width:36px; height:36px; border-radius:50%; background:#1e293b; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; letter-spacing:.5px; flex-shrink:0;
}
.byline-info { display:flex; flex-direction:column; }
.byline-name { font-size:14px; font-weight:600; color:#1e293b; line-height:1.2; }
.byline-role { font-size:12px; color:#6b7280; line-height:1.3; }

/* === SHARE BAR === */
.share-bar { display:flex; align-items:center; gap:10px; margin:16px 0 8px; }
.share-label { font-size:12px; color:#6b7280; font-weight:500; }
.share-btn {
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; color:#fff; font-size:15px; transition:opacity .2s; text-decoration:none;
}
.share-btn:hover { opacity:.85; color:#fff; }
.share-whatsapp { background:#25D366; }
.share-twitter { background:#000; }
.share-linkedin { background:#0A66C2; }

/* === AD SLOTS === */
.ad-slot {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c4;
  font-size: 11px;
  font-weight: 500;
  margin: 24px 0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.ad-slot::before {
  content: "Publicidad";
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  color: #c4cad4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.ad-slot ins.adsbygoogle { width: 100%; }

.ad-leaderboard {
  height: 90px;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

.ad-medium-rectangle { height: 250px; }
.ad-half-page { height: 600px; }

.sidebar-col { padding-top: 20px; }

.ad-sidebar-responsive {
  margin-bottom: 24px;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
}
.ad-sidebar-responsive ins.adsbygoogle { width: 100%; }
.ad-sidebar-responsive ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

@media (max-width: 767px) {
  .ad-leaderboard { height: 250px; max-width: 100%; }
  .ad-half-page { height: 300px; }
  .sidebar-col { padding-top: 0; }
}

/* === HERO SECTION === */
.hero-section {
  margin: 30px 0 10px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image {
  width: 100%;
  height: 420px;
  background: #f1f5f9;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: 26px 28px 30px;
}

.hero-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-category {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: 'Newsreader', serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--ink);
}

.hero-title a { color: var(--ink); }
.hero-title a:hover { color: var(--primary); }

.hero-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === SECONDARY CARDS === */
.secondary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.secondary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-card-horizontal {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.secondary-thumbnail {
  width: 160px;
  height: 120px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.secondary-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secondary-content {
  padding: 16px;
  flex: 1;
}

.secondary-meta {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.secondary-category {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.secondary-title {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.secondary-title a { color: var(--ink); }
.secondary-title a:hover { color: var(--primary); }

.secondary-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* === NEWS FEED === */
.news-feed {
  margin-top: 32px;
}

.section-header {
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--chip);
  border-radius: 999px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-market { background: #fef3c7; color: #92400e; }
.badge-instrument { background: #dbeafe; color: #1e40af; }
.badge-country { background: #dcfce7; color: #166534; }
.badge-sector { background: #f3e8ff; color: #6b21a8; }

.news-title {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.news-title a { color: var(--ink); }
.news-title a:hover { color: var(--primary); }

.news-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 12px;
}

.news-highlight {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  border-radius: 8px;
}

.news-highlight strong {
  color: #92400e;
  font-weight: 700;
}

.news-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.news-actions {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.news-more {
  display: flex;
  justify-content: center;
  margin: 10px 0 26px;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 10px;
}

.pagination-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* === SIDEBAR === */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.widget-item {
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.widget-item:last-child { border-bottom: none; }

.widget-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1.4;
}

.widget-link:hover { color: var(--primary); }

.widget-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* === FILTERS === */
.filters-bar {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 30px;
}

.form-select,
.form-control {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  padding: 10px 14px;
}

.btn-filter {
  background: var(--ink);
  color: #fff;
  width: 100%;
  padding: 11px 20px;
  border-radius: 999px;
}

.btn-filter:hover {
  background: var(--primary);
  color: #fff;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state i {
  font-size: 64px;
  color: #cbd5f5;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-family: 'Newsreader', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* === ARTICLE DETAIL === */
.article-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.article-header {
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--line);
}

.article-category {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  margin-bottom: 14px;
}

.article-title {
  font-family: 'Newsreader', serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--ink);
}

.article-summary {
  font-size: 18px;
  color: #334155;
  margin-bottom: 18px;
  max-width: 840px;
}

.article-image {
  margin: 18px 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.article-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.article-content {
  padding: 24px 30px 34px;
}

.alert-banner {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #92400e;
}

.why-matters {
  border-left: 4px solid var(--primary);
  background: #fff1f2;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.why-matters-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-matters-content {
  font-size: 16px;
  color: #334155;
}

.key-points {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.key-points-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.key-points ul {
  margin: 0;
  padding-left: 18px;
}

.key-points li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #334155;
}

.tickers-box {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.tickers-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.ticker-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticker-tag {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
}

.ticker-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.article-body {
  font-family: 'Newsreader', serif;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: justify;
}

.article-body p {
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 22px;
  color: var(--ink);
  font-weight: 500;
  text-align: justify;
}

/* === PAYWALL === */
.paywall {
  margin-top: 10px;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.paywall-title {
  font-family: 'Newsreader', serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.paywall p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 16px;
}

/* === COMMENTS === */
.comments-section {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 14px;
  padding: 22px;
}

.comments-title {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ink);
}

.comment {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  margin-bottom: 12px;
}

.comment-author {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.comment-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
}

.comment-footer {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.comment-footer a {
  color: #64748b;
}

.comment-footer a:hover {
  color: var(--primary);
}

.comment-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-left: 8px;
}

.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  cursor: pointer;
}

.comment-like.active {
  border-color: rgba(200, 16, 46, 0.4);
  color: var(--primary);
  background: rgba(200, 16, 46, 0.08);
}

.comment-reply {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
}

.comment-reply:hover { color: var(--primary); }

/* === FOOTER === */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.site-footer .container {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .intro-grid { grid-template-columns: 1fr; }
  .hero-image { height: 320px; }
  .hero-title { font-size: 28px; }
  .secondary-card-horizontal { flex-direction: column; }
  .secondary-thumbnail { width: 100%; height: 200px; }
  .coverage-grid,
  .coverage-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-title { font-size: 34px; }
  .article-header { padding: 22px 20px 18px; }
  .article-content { padding: 20px; }
  .article-body { font-size: 22px; }
}

@media (max-width: 768px) {
  .logo a { font-size: 34px; }
  .intro-title { font-size: 28px; }
  .ticker-grid { grid-auto-columns: minmax(132px, 1fr); }
  .nav-item { padding: 12px 14px; font-size: 12px; }
  .news-title { font-size: 18px; }
  .coverage-grid,
  .coverage-grid.compact { grid-template-columns: 1fr; }
  .header-inner { max-width: 100%; }
  .article-title { font-size: 28px; }
  .article-summary { font-size: 16px; }
  .article-body { font-size: 20px; }
  .article-body p { font-size: 19px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Related articles block ── */
.related-section { margin: 32px 0 24px; }
.related-title {
  font-family: 'Newsreader', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 8px);
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.related-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 6px;
}
.related-headline {
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 6px;
}
.related-time {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ── Guia auto-links ── */
.guia-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.guia-link:hover {
  text-decoration-style: solid;
}

/* ── Dashboard breadcrumb ── */
.breadcrumb-nav {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--ink-muted);
}
.breadcrumb-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span { margin: 0 5px; }

/* ── Dashboard intro paragraph ── */
.dashboard-intro {
  max-width: 640px;
}

/* === TEAM GRID (Sobre Nosotros) === */
.team-grid { display:flex; flex-direction:column; gap:16px; margin:16px 0 24px; }
.team-card {
  display:flex; align-items:flex-start; gap:14px;
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:16px;
}
.team-avatar {
  width:44px; height:44px; border-radius:50%; background:#1e293b; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; letter-spacing:.5px; flex-shrink:0;
}
.team-info { display:flex; flex-direction:column; gap:2px; }
.team-info strong { font-size:15px; color:#1e293b; }
.team-info span { font-size:13px; color:#6b7280; }
.team-info p { font-size:13px; color:#475569; margin:4px 0 0; line-height:1.4; }

/* ==========================================================================
   COTIZACIONES HUB & DETALLE
   ========================================================================== */

.cot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.cot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

a.cot-card--link {
  display: block;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.cot-card--link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cot-nombre {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.cot-valor {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.cot-variacion {
  font-size: 12px;
  font-weight: 700;
}

.cot-variacion.up { color: #10b981; }
.cot-variacion.down { color: #ef4444; }
.cot-variacion.neutral { color: #64748b; }

/* Detalle: precio hero */
.cot-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.cot-hero-valor {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.cot-hero-variacion {
  font-size: 1.2rem;
  font-weight: 700;
}

.cot-hero-variacion.up { color: #10b981; }
.cot-hero-variacion.down { color: #ef4444; }
.cot-hero-variacion.neutral { color: #64748b; }

/* Guía card en detalle */
.cot-guia-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

/* News items en detalle */
.cot-news-item {
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
}

.cot-news-item:last-child {
  border-bottom: none;
}

@media (max-width: 576px) {
  .cot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .cot-valor { font-size: 18px; }
  .cot-hero-valor { font-size: 2.2rem; }
}

/* ==========================================================================
   NEWSLETTER FOOTER BANNER
   ========================================================================== */

.newsletter-footer-banner {
  background: #fff7ed;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
  padding: 32px 0;
  margin-top: 32px;
}

.nf-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nf-text h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.nf-text p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0;
}

.nf-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nf-form input[type="email"] {
  border: 1px solid #fbbf24;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  min-width: 220px;
  outline: none;
}

.nf-form input[type="email"]:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.nf-form button {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nf-form button:hover {
  background: #d97706;
}

@media (max-width: 768px) {
  .nf-inner {
    flex-direction: column;
    text-align: center;
  }
  .nf-form {
    width: 100%;
    flex-direction: column;
  }
  .nf-form input[type="email"] {
    min-width: unset;
    width: 100%;
  }
  .nf-form button {
    width: 100%;
  }
}
