/*
Theme Name:  elDiario.ie
Theme URI:   https://eldiario.ie
Description: Tema oficial de elDiario.ie — periódico en español para hispanohablantes en Irlanda
Version:     1.0.0
Author:      elDiario.ie
Text Domain: eldiario
*/

/* ── Fuentes self-hosted ─────────────────────────── */
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Estilos extraídos de design-b.html ─────────── */
/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --display:      'Source Serif 4', Georgia, serif;
  --body:         'Source Sans 3', system-ui, sans-serif;

  --green:        #1F4A3A;
  --green-dark:   #163828;
  --green-pale:   #E8F0EC;
  --gold:         #B38637;
  --gold-pale:    #F5EDD8;
  --red:          #9C2F22;

  --bg:           #FBFAF6;
  --bg-off:       #F2EEE3;
  --bg-deep:      #E7E1D0;
  --bg-dark:      #14201C;

  --ink:          #14201C;
  --ink-soft:     #5A6460;
  --ink-faint:    #9A9E9C;
  --border:       #D4CEBC;
  --border-soft:  #E5DFCF;

  --container:    1240px;
  --t:            150ms ease;
}

[data-theme="dark"] {
  --bg:           #14201C;
  --bg-off:       #1A2A22;
  --bg-deep:      #1F3328;
  --bg-dark:      #0C1610;
  --ink:          #E8E4D8;
  --ink-soft:     #8A9490;
  --ink-faint:    #566058;
  --border:       #2A3C32;
  --border-soft:  #223428;
  --green:        #6DD49A;
  --green-dark:   #5ABF86;
  --gold:         #D4A848;
}

/* ══════════════════════════════════════════
   BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -.015em;
}
::selection { background: var(--green); color: #fff; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ══════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════ */
.topbar {
  background: var(--green);
  color: rgba(255,255,255,.6);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar .sep { margin: 0 10px; opacity: .3; }
.topbar a { color: inherit; transition: color var(--t); }
.topbar a:hover { color: #fff; }

/* ══════════════════════════════════════════
   MASTHEAD
══════════════════════════════════════════ */
.masthead {
  padding: 20px 28px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.masthead__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.masthead__wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(58px, 9.5vw, 112px);
  letter-spacing: -.025em;
  line-height: .9;
  color: var(--ink);
  display: block;
}
.masthead__wordmark .ie { color: var(--green); }

.masthead__tagline {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
  margin-bottom: 16px;
}

.masthead__bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.masthead__date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.masthead__actions { display: flex; gap: 2px; }
.hdr-btn {
  width: 32px; height: 32px;
  border: 0; background: transparent;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px;
  transition: background var(--t), color var(--t);
}
.hdr-btn:hover { background: var(--bg-off); color: var(--ink); }
.hdr-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════
   STICKY NAV
══════════════════════════════════════════ */
.site-nav {
  background: var(--bg-dark);
  border-top: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
[data-theme="dark"] .site-nav { background: #0A1610; }

.site-nav .wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
}
.nav-list { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: inline-flex; align-items: center;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 13px 18px;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
}
.nav-list li:first-child a { border-left: 1px solid rgba(255,255,255,.07); }
.nav-list a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-list a.active { color: #fff; border-bottom: 2px solid var(--green); padding-bottom: 11px; }

.nav-right { display: flex; position: absolute; right: 0; top: 0; bottom: 0; align-items: stretch; }
.nav-icon {
  width: 44px;
  border: 0; background: transparent;
  color: rgba(255,255,255,.45);
  display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(255,255,255,.07);
  transition: color var(--t), background var(--t);
  padding: 0;
}
.nav-icon:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-icon svg { width: 17px; height: 17px; }
.nav-burger { display: none; }

@media (max-width: 900px) {
  .nav-list { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-list.open {
    display: flex; position: fixed; inset: 0;
    background: var(--ink); flex-direction: column;
    padding: 64px 24px 24px; overflow-y: auto; z-index: 200;
  }
  .nav-list.open a {
    padding: 14px 0; border-right: 0; border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 17px;
  }
}

/* ══════════════════════════════════════════
   IMAGE PLACEHOLDERS
══════════════════════════════════════════ */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--body);
  font-size: 9px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
}
.ph-forest  { background: #1F3A2C; color: rgba(255,255,255,.12); }
.ph-stone   { background: #2C3028; color: rgba(255,255,255,.10); }
.ph-warm    { background: #3D3020; color: rgba(255,255,255,.10); }
.ph-slate   { background: #20283A; color: rgba(255,255,255,.10); }
.ph-sand    { background: #8C7E60; color: rgba(255,255,255,.18); }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.sh {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-bottom: 24px;
}

.sh__title {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.sh__more {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--t);
}
.sh__more:hover { color: var(--green); }
.sh__more::after { content: '→'; }

/* ══════════════════════════════════════════
   KICKER
══════════════════════════════════════════ */
.kicker {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  display: inline-block;
}
.kicker--red  { color: var(--red); }
.kicker--gold { color: var(--gold); }

/* ══════════════════════════════════════════
   META (author / date / time)
══════════════════════════════════════════ */
.meta {
  font-family: var(--body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 6px;
}
.meta .sep { opacity: .4; }
.meta .author { color: var(--green); text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero { margin: 0; }

/* Main feature */
.hero__feature {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7.5;
  min-height: 480px;
  overflow: hidden;
  background: #111;
  isolation: isolate;
}
@media (max-width: 700px) { .hero__feature { aspect-ratio: 4/5; min-height: 0; } }

.hero__image { position: absolute; inset: 0; z-index: 1; }
.hero__image .ph, .hero__image image-slot { width: 100%; height: 100%; display: block; }

.hero__feature::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,14,.92) 0%, rgba(10,20,14,.55) 32%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

.hero__text {
  position: absolute;
  left: 0; right: 0; bottom: 0; z-index: 3;
  padding: clamp(20px, 3vw, 44px) clamp(24px, 5vw, 72px);
  max-width: 860px;
}

.hero__label {
  display: inline-block;
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero__h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: #FFFFFF;
  margin-bottom: 14px;
  text-wrap: balance;
}

.hero__byline {
  font-family: var(--body);
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex; gap: 8px; align-items: center;
}
.hero__byline .sep { opacity: .35; }

/* Secondary strip: 2 articles side by side below hero image */
.hero__strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.hero__strip > * + * { border-left: 1px solid var(--border); }
@media (max-width: 600px) {
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip > * + * { border-left: 0; border-top: 1px solid var(--border); }
}

.hero__secondary {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 32px;
  transition: background var(--t);
}
@media (max-width: 600px) { .hero__secondary { padding: 20px 16px; } }
.hero__secondary:hover { background: var(--bg-off); }

.hero__secondary .thumb {
  aspect-ratio: 16/9; overflow: hidden; background: var(--bg-off);
  margin-bottom: 4px;
}
.hero__secondary .thumb .ph { transition: transform 360ms ease; }
.hero__secondary:hover .thumb .ph { transform: scale(1.04); }

.hero__secondary h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero__secondary h3 a { transition: color var(--t); }
.hero__secondary h3 a:hover { color: var(--green); }

/* ══════════════════════════════════════════
   CARD GRID
══════════════════════════════════════════ */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.grid-4--text { margin-top: 0; border-top: 1px solid var(--border); padding-top: 24px; }
.card--text { gap: 8px; }
.card--text .card__h { font-size: 16px; line-height: 1.3; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; gap: 10px; }

.card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-off);
  position: relative;
}
.card__img.wide { aspect-ratio: 16/9; }
.card__img .ph { transition: transform 360ms ease; }
.card:hover .card__img .ph { transform: scale(1.04); }

.card__media-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.65);
  color: #fff; width: 28px; height: 28px;
  border-radius: 50%; display: grid; place-items: center;
}

.card__h {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.card__h a { transition: color var(--t); }
.card__h a:hover { color: var(--green); }
.card__h--lg { font-size: 28px; line-height: 1.05; }

.card__excerpt {
  font-family: var(--body);
  font-size: 15px; line-height: 1.52;
  color: var(--ink-soft);
  margin: 0;
}
.card__excerpt--lg { font-size: 17px; }

/* Horizontal card */
.card--h { flex-direction: row; align-items: flex-start; gap: 16px; }
.card--h .card__img { flex: 0 0 38%; aspect-ratio: 4/3; }
.card--h .card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card--h .card__h { font-size: 16px; }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section { margin-top: 52px; }

/* ══════════════════════════════════════════
   GUIDES
══════════════════════════════════════════ */
.guides {
  background: var(--bg-off);
  border-top: 4px solid var(--green);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  margin-top: 52px;
}
[data-theme="dark"] .guides { background: var(--bg-off); border-top-color: var(--green); }

.guides__intro { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.guides__intro h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -.02em;
  line-height: 1.0;
}
.guides__intro p { font-size: 16px; color: var(--ink-soft); max-width: 540px; }

.guides-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
@media (max-width: 900px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .guides-grid { grid-template-columns: 1fr; } }

.guide-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--t), box-shadow var(--t);
}
.guide-card:hover { border-color: var(--green); box-shadow: 0 4px 20px rgba(0,0,0,.06); }
[data-theme="dark"] .guide-card { background: var(--bg); }

.guide-card .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  color: var(--border);
  line-height: 1;
}
.guide-card h4 { font-family: var(--display); font-size: 19px; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.guide-card p  { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0; flex: 1; }
.guide-card .gm {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 12px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
}
.guide-card:hover .gm .arr { color: var(--green); }

/* ══════════════════════════════════════════
   TWO-COL LAYOUT
══════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 52px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ══════════════════════════════════════════
   RANKED LIST
══════════════════════════════════════════ */
.ranked { display: flex; flex-direction: column; }
.ranked .ri {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--border); align-items: start;
}
.ranked .ri:first-child { border-top: 0; padding-top: 0; }
.ranked .rn {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  color: var(--border); line-height: 1.2;
}
.ranked .rh { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.2; margin-bottom: 3px; letter-spacing: -.01em; }
.ranked .rh a { transition: color var(--t); }
.ranked .rh a:hover { color: var(--green); }
.ranked .rm { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* ══════════════════════════════════════════
   PODCAST
══════════════════════════════════════════ */
.podcast {
  background: var(--green);
  padding: 32px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px; align-items: center;
  margin-top: 52px;
}
[data-theme="dark"] .podcast { background: #0C2418; border: 1px solid var(--border); }
@media (max-width: 640px) { .podcast { grid-template-columns: 1fr; padding: 24px; } }

.podcast__cover { aspect-ratio: 1/1; background: rgba(0,0,0,.25); position: relative; overflow: hidden; }
.podcast__cover .ph { width: 100%; height: 100%; }
.podcast__cover-tag {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(255,255,255,.15); color: #fff; padding: 3px 7px;
  backdrop-filter: blur(4px);
}

.podcast .kicker { color: rgba(255,255,255,.5); margin-bottom: 6px; }
.podcast h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.podcast p  { font-size: 15px; color: rgba(255,255,255,.72); margin: 0 0 18px; }

.podcast__player { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.2); padding: 10px 14px; max-width: 380px; }
.podcast__play {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--green); border: 0;
  display: grid; place-items: center; flex: 0 0 34px;
}
.podcast__play svg { width: 11px; height: 11px; }
.podcast__bar { flex: 1; height: 2px; background: rgba(255,255,255,.22); position: relative; }
.podcast__bar::before { content: ''; position: absolute; left: 0; top: 0; width: 35%; height: 100%; background: #fff; }
.podcast__time { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════
   NATIVE AD
══════════════════════════════════════════ */
.ad-native {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-off); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 18px; position: relative;
}
.ad-native::before {
  content: 'Publicidad';
  position: absolute; top: 8px; right: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--ink-faint);
}
.ad-native .ad-img { flex: 0 0 100px; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.ad-native .ad-img .ph { width: 100%; height: 100%; }
.ad-native h4 { font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.ad-native p  { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ══════════════════════════════════════════
   EMPLEOS BAND
══════════════════════════════════════════ */
.empleos-band {
  background: var(--bg-off);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 52px;
}
[data-theme="dark"] .empleos-band { background: var(--bg-off); }

.empleos-badge {
  font-family: var(--body);
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--green); color: #fff;
  padding: 3px 10px;
  white-space: nowrap;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .jobs-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .jobs-grid { grid-template-columns: 1fr; } }

.job-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  min-width: 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.job-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(31,74,58,.1);
}
.job-card__logo {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--green-pale);
  color: var(--green);
  font-family: var(--body); font-size: 12px; font-weight: 800;
  letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center;
}
.job-card__body {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.job-card__body .job-role {
  font-family: var(--body); font-size: 15px; font-weight: 700;
  color: var(--ink); line-height: 1.3;
}
.job-card__body .job-co {
  font-size: 12px; color: var(--ink-soft); font-weight: 500;
}
.job-card__tags { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; align-items: flex-end; }

/* ══════════════════════════════════════════
   VIDEO + EMPLEOS
══════════════════════════════════════════ */
.ve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 800px) { .ve-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Video */
.video-card { display: flex; flex-direction: column; gap: 16px; }
.video-card:hover .video-thumb img,
.video-card:hover .ph { filter: brightness(.9); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  overflow: hidden;
}
.video-thumb .ph { width: 100%; height: 100%; transition: filter var(--t); }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,20,14,.35);
  transition: background var(--t);
}
.video-card:hover .video-play { background: rgba(10,20,14,.55); }
.video-play svg {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.95);
  border-radius: 50%;
  color: var(--green);
  padding: 10px 10px 10px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.video-dur {
  position: absolute; bottom: 10px; right: 10px;
  font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: .06em;
  background: rgba(0,0,0,.72); color: #fff;
  padding: 2px 6px;
}
.video-body { display: flex; flex-direction: column; gap: 8px; }

/* Empleos */
.jobs-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.job-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--t);
}
.job-item:hover { background: var(--bg-off); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
.job-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-role { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.job-co { font-family: var(--body); font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.job-tags { display: flex; gap: 6px; flex-shrink: 0; }
.job-tag {
  font-family: var(--body); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px;
  background: var(--bg-deep); color: var(--ink-soft);
  white-space: nowrap;
}
.job-tag--lang { background: var(--green-pale); color: var(--green); }

/* ══════════════════════════════════════════
   TOPICS BAND
══════════════════════════════════════════ */
.topics {
  background: var(--ink);
  color: #fff;
  padding: 52px 0;
  margin-top: 52px;
}
[data-theme="dark"] .topics { background: var(--bg-dark); }

.topics h2 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
}

.topics-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; }
@media (max-width: 900px) { .topics-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px)  { .topics-grid { grid-template-columns: repeat(2,1fr); } }

.topic-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background var(--t), border-color var(--t);
}
.topic-tile:hover { background: rgba(255,255,255,.09); border-color: var(--green); }
.topic-tile .tn { font-family: var(--display); font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.topic-tile .tc { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════ */
.newsletter { margin: 60px auto; max-width: 560px; text-align: center; padding: 0 28px; }
.newsletter h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: -.02em;
  margin: 8px 0 12px;
}
.newsletter p { font-size: 16px; color: var(--ink-soft); margin: 0 0 22px; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 16px; border: 1.5px solid var(--border);
  border-right: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1 var(--body); border-radius: 0;
  transition: border-color var(--t);
}
.newsletter-form input:focus { outline: 0; border-color: var(--green); }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } .newsletter-form input { border-right: 1.5px solid var(--border); border-bottom: 0; } }
.btn-primary {
  background: var(--green); color: #fff; border: 0; border-radius: 0;
  padding: 13px 20px; font: 700 12px/1 var(--body);
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background var(--t); white-space: nowrap;
}
.btn-primary:hover { background: var(--green-dark); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 52px 0 24px;
}
[data-theme="dark"] .site-footer { background: var(--bg-dark); }

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.footer-brand .wm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -.025em;
  color: #fff;
  line-height: .92;
  display: block; margin-bottom: 12px;
}
.footer-brand .wm .ie { color: var(--green); }
.site-footer p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); margin: 0; }

.site-footer h5 {
  font-family: var(--body);
  font-size: 10px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--t); }
.site-footer ul a:hover { color: #fff; }

.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.social-row a:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.social-row svg { width: 13px; height: 13px; color: rgba(255,255,255,.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding-top: 20px;
}
.footer-bottom .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  grid-template-columns: none;
}
.footer-bottom span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); }

/* ══════════════════════════════════════════
   CULTURE
══════════════════════════════════════════ */
.culture { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .culture { grid-template-columns: 1fr; } }
.culture__list { display: flex; flex-direction: column; gap: 20px; }

/* ── Estilos adicionales de articulo-b.html ─────── */
/* ══════════════════════════════════════════
   READING PROGRESS
══════════════════════════════════════════ */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--green);
  z-index: 200;
  transition: width 80ms linear;
}

/* ══════════════════════════════════════════
   ARTICLE HEADER
══════════════════════════════════════════ */
.art-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 28px 36px;
}
.art-breadcrumb {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.art-breadcrumb .sep { opacity: .4; }
.art-breadcrumb a:hover { color: var(--green); }
.art-breadcrumb .current { color: var(--green); }

.art-kicker {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: block;
}

.art-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: balance;
}

.art-dek {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 32px;
  text-wrap: pretty;
}

.art-meta {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.art-meta__author {
  display: flex; align-items: center; gap: 10px;
}
.art-meta__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-family: var(--display); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.art-meta__name {
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.art-meta__info {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.art-meta__info .sep { margin: 0 6px; opacity: .4; }
.art-meta__actions { margin-left: auto; display: flex; gap: 4px; }
.art-action {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.art-action:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.art-action svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════
   HERO IMAGE
══════════════════════════════════════════ */
.art-hero {
  max-width: 1040px;
  margin: 40px auto 0;
  padding: 0 28px;
}
.art-hero__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-deep);
}
.art-hero__img .ph { width: 100%; height: 100%; }
.art-hero__caption {
  margin-top: 10px;
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.art-hero__caption .credit {
  font-family: var(--body);
  font-style: normal;
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  margin-left: 10px; opacity: .7;
}

/* ══════════════════════════════════════════
   ARTICLE BODY LAYOUT
══════════════════════════════════════════ */
.art-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 40px;
  max-width: 820px;
  margin: 52px auto 80px;
  padding: 0 28px;
  align-items: start;
}
@media (max-width: 700px) {
  .art-body { grid-template-columns: 1fr; }
  .art-share-rail { display: none; }
}

/* Share rail */
.art-share-rail {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
}
.art-share-rail .art-action { width: 38px; height: 38px; }
.art-share-rail .divider {
  width: 1px; height: 32px;
  background: var(--border); margin: 4px 0;
}

/* Prose */
.art-prose {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.72;
  color: var(--ink);
}
.art-prose p { margin: 0 0 1.5em; text-wrap: pretty; }
.art-prose p:first-child::first-letter {
  font-size: 4em;
  font-weight: 900;
  line-height: .82;
  float: left;
  margin: 4px 12px 0 0;
  color: var(--green);
}
.art-prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 2em 0 .6em;
  color: var(--ink);
}
.art-prose h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -.015em;
  margin: 1.8em 0 .5em;
  color: var(--ink);
}
.art-prose strong { font-weight: 700; }
.art-prose em { font-style: italic; }
.art-prose a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(31,74,58,.3); }
.art-prose a:hover { text-decoration-color: var(--green); }

/* Pull quote */
.art-prose blockquote {
  margin: 2em -8px;
  padding: 28px 32px;
  border-left: 4px solid var(--green);
  background: var(--bg-off);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink);
}
.art-prose blockquote p { margin: 0; }
.art-prose blockquote::first-letter { float: none; font-size: inherit; font-weight: inherit; }
.art-prose blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* Inline figure */
.art-prose figure {
  margin: 2em -28px;
}
.art-prose figure img,
.art-prose figure .ph {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
}
.art-prose figcaption {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
  padding: 0 28px;
}

/* Fact box */
.art-factbox {
  background: var(--green-pale);
  border-top: 2px solid var(--green);
  padding: 20px 24px;
  margin: 2em 0;
}
.art-factbox h4 {
  font-family: var(--body);
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin: 0 0 12px;
}
.art-factbox ul { margin: 0; padding: 0 0 0 18px; }
.art-factbox li {
  font-family: var(--display);
  font-size: 16px; line-height: 1.5;
  margin-bottom: 6px;
  color: var(--ink);
}

/* Tags */
.art-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.art-tag {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  transition: border-color var(--t), color var(--t);
}
.art-tag:hover { border-color: var(--green); color: var(--green); }

/* ══════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════ */
.art-related {
  max-width: 1040px;
  margin: 0 auto 80px;
  padding: 0 28px;
  border-top: 3px solid var(--ink);
  padding-top: 36px;
}
.art-related__title {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 28px;
}
.art-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 700px) { .art-related__grid { grid-template-columns: 1fr; } }
.art-related__card { display: flex; flex-direction: column; gap: 10px; }
.art-related__card .thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-deep);
}
.art-related__card .thumb .ph { width: 100%; height: 100%; }
.art-related__card .kicker {
  font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
}
.art-related__card h4 {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; line-height: 1.25;
  letter-spacing: -.015em; color: var(--ink);
  margin: 0; text-wrap: balance;
}
.art-related__card h4 a:hover { color: var(--green); }
.art-related__card .meta {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; gap: 6px;
}
.art-related__card .meta .sep { opacity: .4; }

/* ══════════════════════════════════════════
   PLACEHOLDERS
══════════════════════════════════════════ */
.ph { display: flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; }
.ph-forest  { background: #2B4A3A; color: rgba(255,255,255,.4); }
.ph-warm    { background: #C4A882; color: rgba(255,255,255,.5); }
.ph-slate   { background: #8A9BA8; color: rgba(255,255,255,.5); }
.ph-stone   { background: #B0A898; color: rgba(255,255,255,.5); }
.ph-sand    { background: #D4C4A0; color: rgba(0,0,0,.3); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 60px 0 0;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.footer-brand .wm {
  font-family: var(--display); font-weight: 700;
  font-size: 44px; letter-spacing: -.025em;
  color: #fff; line-height: .92; display: block; margin-bottom: 12px;
}
.footer-brand .wm .ie { color: var(--green); }
.site-footer p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); margin: 0; }
.site-footer h5 {
  font-family: var(--body); font-size: 10px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: color var(--t); }
.site-footer ul a:hover { color: #fff; }
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a {
  width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t), background var(--t);
}
.social-row a:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.social-row svg { width: 13px; height: 13px; color: rgba(255,255,255,.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; grid-template-columns: none; }
.footer-bottom span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); }
/* ── Fix: Gutenberg sobreescribe color primario ── */
:root { --wp--preset--color--primary: #1F4A3A !important; }

/* ══════════════════════════════════════════
   FIXES DE INTEGRACIÓN CON WORDPRESS
══════════════════════════════════════════ */

/* Fix 1: WordPress genera <img> directos, el CSS original usaba .ph
   Sin object-fit las imágenes se deforman en móvil */
.hero__image img,
.card__img img,
.art-hero__img img,
.video-thumb img,
.art-related__card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__img img { transition: transform 360ms ease; }
.card:hover .card__img img { transform: scale(1.04); }

/* Fix 2: El --green en dark mode (#6DD49A) es fluorescente sobre fondos oscuros.
   Se reemplaza por un verde más apagado y legible. */
[data-theme="dark"] {
  --green:      #4DAA72;
  --green-dark: #3D9060;
  --green-pale: rgba(77, 170, 114, 0.12);
}

/* ══════════════════════════════════════════
   FIXES MOBILE v2
══════════════════════════════════════════ */

/* Fix nav: sin nav-list visible el .wrap colapsa a 0px y el nav-right
   (position:absolute) flota sobre el masthead → fantasma de la lupa */
@media (max-width: 900px) {
  .site-nav .wrap { min-height: 48px; }
  .nav-icon:not(.nav-burger) { display: none; }
}

/* Fix footer: a <480px queda en columna única (chorizo).
   Brand ocupa ancho completo, las 3 columnas de links van en 2+1 */
@media (max-width: 480px) {
  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════
   FIXES MOBILE v3
══════════════════════════════════════════ */

/* Fix: .card__img es <a> inline — sin display:block el aspect-ratio no
   funciona en Safari y la imagen no rellena el contenedor */
.card__img { display: block; }

/* Fix: nav mobile — scroll horizontal visible en vez de burger oculto */
@media (max-width: 900px) {
  .nav-list {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 100px; /* espacio para los iconos de la derecha */
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list a {
    font-size: 11px;
    padding: 10px 14px;
    white-space: nowrap;
  }
  .nav-burger { display: none; }
  .nav-icon:not(.nav-burger) { display: none; }
  .site-nav .wrap { min-height: 40px; }
}
