/* ── RESET & VARIABLES ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --un-blue:       #003D7A;
  --un-blue-dark:  #002654;
  --un-blue-light: #1A5CA8;
  --slate:         #E8EEF4;
  --amber:         #C88B00;
  --amber-light:   #F0AA00;
  --ink:           #1A1A2E;
  --ink-mid:       #4A4A6A;
  --ink-light:     #7A7A9A;
  --rule:          #C8D4E0;
  --white:         #FFFFFF;
  --paper:         #F7F9FC;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--un-blue-light); }

/* ── ticker ─────────────────────────────────────────── */
.ticker-bar {
  background: var(--un-blue-dark);
  color: #A8C4E0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 40s linear infinite;
  gap: 0;
}
.ticker-item {
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-label { color: rgba(168,196,224,0.65); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.ticker-val { color: var(--white); font-size: 12px; }
.ticker-chg.up   { color: #5ECFA0; }
.ticker-chg.down { color: #F08080; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── header ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--un-blue);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.logo-wrap img {
  height: 64px;
  width: auto;
}
.logo-divider {
  width: 1px;
  height: 44px;
  background: var(--rule);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--un-blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── botones ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: inherit;
}
.btn-outline {
  border: 1.5px solid var(--un-blue);
  color: var(--un-blue);
  background: transparent;
}
.btn-outline:hover { background: var(--un-blue); color: var(--white); }
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-light); }

/* ── navegación principal ─────────────────────────────────────────────── */
.main-nav {
  background: var(--un-blue);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}
.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 18px;
  display: block;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--amber-light);
}
.main-nav a.active { background: rgba(255,255,255,0.06); }

/* ── fecha ─────────────────────────────────────── */
.date-strip {
  background: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding: 7px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.date-strip .date {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.date-strip .edition {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

/* ── layout ─────────────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 32px;
  align-items: start;
}

/* ── hero ─────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--white);
  margin-bottom: 28px;
}
.hero-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: #B8C8D8;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-image .img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,20,50,0.55));
}
.hero-content {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--un-blue);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--un-blue);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: var(--amber);
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.hero-deck {
  font-family: 'Source Serif 4', serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-bottom: 18px;
}
.read-more {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--un-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.read-more::after { content: '→'; font-size: 14px; }
.read-more:hover { color: var(--amber); }

/* ── section headers y card grid ─────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--un-blue);
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--un-blue);
  text-transform: uppercase;
}
.section-header .see-all {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.section-header .see-all:hover { color: var(--un-blue); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,61,122,0.1); }
.card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--slate);
  position: relative;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-tag::before {
  content: '';
  display: block;
  width: 10px; height: 2px;
  background: var(--amber);
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.card-excerpt {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  flex: 1;
}
.card-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 10.5px;
  color: var(--ink-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── sidebar ─────────────────────────────────────────── */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
}
.widget-header {
  background: var(--un-blue);
  color: var(--white);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.widget-header .more {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
}
.widget-header .more:hover { color: var(--amber-light); }

/* video sidebar */
.video-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s;
}
.video-item:hover { background: var(--slate); }
.video-thumb {
  width: 80px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--un-blue-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
}
.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 7px 0 7px 14px;
  border-color: transparent transparent transparent rgba(255,255,255,0.92);
}
.video-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}
.video-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* widget markets */
.market-table { width: 100%; }
.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--slate);
  font-size: 12.5px;
}
.market-row:last-child { border-bottom: none; }
.market-name { font-weight: 600; color: var(--ink); }
.market-val { font-variant-numeric: tabular-nums; color: var(--ink-mid); }
.market-chg { font-size: 11.5px; font-weight: 700; }
.up   { color: #198A60; }
.down { color: #C0392B; }

/* opinión */
.opinion-strip {
  background: var(--un-blue-dark);
  padding: 14px 16px 12px;
  color: var(--white);
  margin-bottom: 24px;
}
.opinion-strip .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.opinion-strip blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  border-left: 3px solid var(--amber);
  padding-left: 14px;
  margin-bottom: 10px;
}
.opinion-strip .author {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* ── footer ─────────────────────────────────────────── */
footer {
  background: var(--un-blue-dark);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 22px 32px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 3px solid var(--amber);
  margin-top: 16px;
}
footer span { color: var(--amber-light); font-weight: 700; }

/* ── placeholder imagenes ──────────────────────────────── */
.ph {
  background: linear-gradient(135deg, #B8CCDE 0%, #8BACC4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
}
