/* El Mundo Ahora - Hoja de estilos editorial v1.0.1 (fix nav spacing) */

:root {
    --ema-azul-noche:     #1a1a2e;
    --ema-azul-noche-2:   #16213e;
    --ema-rojo-titular:   #B91C1C;
    --ema-papel:          #fafaf7;
    --ema-papel-claro:    #ffffff;
    --ema-tinta:          #1f2937;
    --ema-tinta-suave:    #4b5563;
    --ema-gris-claro:     #e5e7eb;
    --ema-gris-borde:     #d1d5db;
    --ema-block-ucrania:    #1e3a8a;
    --ema-block-iran:       #7c2d12;
    --ema-block-china:      #991b1b;
    --ema-block-brics:      #166534;
    --ema-block-ia:         #5b21b6;
    --ema-corr-realismo:    #B91C1C;
    --ema-corr-mainstream:  #1e40af;
    --ema-corr-surglobal:   #16a34a;
    --ema-corr-espanol:     #ca8a04;
    --ema-font-titular: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ema-font-cuerpo:  'Source Serif Pro', Georgia, 'Times New Roman', serif;
    --ema-font-mono:    'JetBrains Mono', Menlo, Consolas, monospace;
    --ema-radius:    6px;
    --ema-radius-lg: 12px;
    --ema-shadow:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ema-shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --ema-max-content: 720px;
    --ema-max-wide:    1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body { margin: 0; background: var(--ema-papel); color: var(--ema-tinta); font-family: var(--ema-font-cuerpo); line-height: 1.7; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 { font-family: var(--ema-font-titular); color: var(--ema-azul-noche); line-height: 1.2; letter-spacing: -0.01em; margin-top: 1.8em; margin-bottom: 0.6em; font-weight: 700; }
h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.2em; }
a  { color: var(--ema-azul-noche); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ema-rojo-titular); }
strong { font-weight: 700; color: var(--ema-azul-noche); }
em { font-style: italic; }
blockquote { border-left: 4px solid var(--ema-rojo-titular); margin: 1.6em 0; padding: 0.6em 1.2em; color: var(--ema-tinta-suave); font-style: italic; background: rgba(185, 28, 28, 0.04); border-radius: 0 var(--ema-radius) var(--ema-radius) 0; }

.ema-header { background: var(--ema-azul-noche); color: var(--ema-papel); padding: 0.7em 0; border-bottom: 3px solid var(--ema-rojo-titular); }
.ema-header__inner { max-width: var(--ema-max-wide); margin: 0 auto; padding: 0 1.5em; display: flex; align-items: center; justify-content: space-between; gap: 1.5em; flex-wrap: wrap; }
.ema-logo { font-family: var(--ema-font-titular); font-weight: 700; font-size: 1.3rem; color: var(--ema-papel); text-decoration: none; letter-spacing: -0.02em; }
.ema-logo span { color: var(--ema-rojo-titular); }

.ema-nav { display: flex; flex-wrap: wrap; }
.ema-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-family: var(--ema-font-titular); font-size: 0.92rem; font-weight: 500; padding: 0 0.8em; border-right: 1px solid rgba(255,255,255,0.18); }
.ema-nav a:last-child { border-right: 0; padding-right: 0; }
.ema-nav a:first-child { padding-left: 0; }
.ema-nav a:hover { color: var(--ema-papel); }

.ema-container { max-width: var(--ema-max-content); margin: 0 auto; padding: 2em 1.5em; }
.ema-container--wide { max-width: var(--ema-max-wide); }

.ema-articulo__meta { font-family: var(--ema-font-titular); font-size: 0.85rem; color: var(--ema-tinta-suave); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8em; }
.ema-articulo__titulo { font-size: 2.6rem; margin: 0.2em 0 0.4em; line-height: 1.15; }
.ema-articulo__subtitulo { font-family: var(--ema-font-titular); font-size: 1.25rem; color: var(--ema-tinta-suave); font-weight: 400; margin-bottom: 1.6em; }
.ema-articulo__firma { font-family: var(--ema-font-titular); font-size: 0.9rem; color: var(--ema-tinta-suave); margin-bottom: 2em; padding-bottom: 1em; border-bottom: 1px solid var(--ema-gris-borde); }
.ema-articulo__firma strong { color: var(--ema-azul-noche); }

.ema-video { position: relative; width: 100%; padding-bottom: 56.25%; margin: 2em 0; background: #000; border-radius: var(--ema-radius); overflow: hidden; box-shadow: var(--ema-shadow-lg); }
.ema-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.ema-resumen { background: var(--ema-papel-claro); border: 1px solid var(--ema-gris-borde); border-radius: var(--ema-radius-lg); padding: 2em; margin: 2em 0; box-shadow: var(--ema-shadow); }
.ema-resumen__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1em; margin-bottom: 1.4em; padding-bottom: 1em; border-bottom: 1px solid var(--ema-gris-borde); }
.ema-resumen__titulo { font-family: var(--ema-font-titular); font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ema-azul-noche); text-transform: uppercase; letter-spacing: 0.05em; }
.ema-resumen__lang { display: inline-flex; border: 1px solid var(--ema-gris-borde); border-radius: var(--ema-radius); overflow: hidden; }
.ema-resumen__lang button { background: transparent; border: 0; padding: 0.45em 0.9em; cursor: pointer; font-family: var(--ema-font-titular); font-size: 0.85rem; color: var(--ema-tinta-suave); font-weight: 500; }
.ema-resumen__lang button.active { background: var(--ema-azul-noche); color: var(--ema-papel); }
.ema-resumen__pdf { display: inline-flex; align-items: center; gap: 0.4em; background: var(--ema-rojo-titular); color: var(--ema-papel); text-decoration: none; padding: 0.5em 1em; border-radius: var(--ema-radius); font-family: var(--ema-font-titular); font-size: 0.85rem; font-weight: 600; }
.ema-resumen__pdf:hover { background: #991b1b; color: var(--ema-papel); }

.ema-editorial { background: linear-gradient(180deg, rgba(185,28,28,0.04) 0%, rgba(185,28,28,0.01) 100%); border-left: 4px solid var(--ema-rojo-titular); padding: 1.6em 1.8em; margin: 2em 0; border-radius: 0 var(--ema-radius) var(--ema-radius) 0; }
.ema-editorial__label { font-family: var(--ema-font-titular); font-size: 0.78rem; color: var(--ema-rojo-titular); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.4em; }

.ema-badge { display: inline-block; padding: 0.3em 0.8em; border-radius: var(--ema-radius); font-family: var(--ema-font-titular); font-size: 0.78rem; font-weight: 600; color: white; text-decoration: none; margin-right: 0.4em; }
.ema-badge--bloque { background: var(--ema-azul-noche); }
.ema-badge--corriente { background: var(--ema-tinta-suave); }
.ema-badge--ucrania   { background: var(--ema-block-ucrania); }
.ema-badge--iran      { background: var(--ema-block-iran); }
.ema-badge--china     { background: var(--ema-block-china); }
.ema-badge--brics     { background: var(--ema-block-brics); }
.ema-badge--ia        { background: var(--ema-block-ia); }

.ema-card { background: var(--ema-papel-claro); border: 1px solid var(--ema-gris-borde); border-radius: var(--ema-radius-lg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.ema-card:hover { transform: translateY(-3px); box-shadow: var(--ema-shadow-lg); }
.ema-card__body { padding: 1.4em 1.6em; }
.ema-card__titulo { font-family: var(--ema-font-titular); font-size: 1.2rem; margin: 0.4em 0 0.6em; line-height: 1.3; }
.ema-card__titulo a { color: var(--ema-azul-noche); text-decoration: none; }
.ema-card__titulo a:hover { color: var(--ema-rojo-titular); }
.ema-card__meta { font-family: var(--ema-font-titular); font-size: 0.78rem; color: var(--ema-tinta-suave); margin-top: 1em; text-transform: uppercase; letter-spacing: 0.05em; }

.ema-footer { background: var(--ema-azul-noche); color: rgba(255,255,255,0.7); margin-top: 4em; padding: 2.5em 0; font-size: 0.88rem; }
.ema-footer__inner { max-width: var(--ema-max-wide); margin: 0 auto; padding: 0 1.5em; }
.ema-footer a { color: rgba(255,255,255,0.9); }

@media (max-width: 768px) {
    html { font-size: 16px; }
    .ema-articulo__titulo { font-size: 2rem; }
    .ema-resumen { padding: 1.4em; }
    .ema-resumen__head { flex-direction: column; align-items: flex-start; }
    .ema-nav a { padding: 0 0.6em; }
}
