/* =====================================================================
   HOY EN TLAXCALA — Sistema de diseño "Mosaico editorial"
   Tipografía: Archivo (titulares/UI, eje de anchura) + Newsreader (lectura)
   Paleta: la del logotipo — azul rey (#1F58BF → #15409C), rojo (#B80E1B) y blanco. Solo modo claro.
   ===================================================================== */
:root {
  --blue: #1F58BF; --blue-light: #2569D6; --blue-deep: #15409C; --blue-night: #0E2C70; --blue-soft: #E9F0FC; --blue-mist: #B6C6E8;
  --red: #B80E1B; --red-dark: #8F0A14; --red-soft: #FCE9EB;
  --ink: #0B1F4D; --ink-2: #24365E; --muted: #56668A; --muted-2: #8593B2;
  --paper: #FFFFFF; --paper-2: #FFFFFF; --paper-3: #EEF3FB; --line: #DCE4F2; --line-2: #C3D0EA;
  --logo-grad: linear-gradient(180deg, #2569D6 0%, #1F58BF 45%, #15409C 100%);
  --cat: var(--blue);
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", system-ui, sans-serif;
  --radius: 14px; --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(14, 44, 112, .28);
  --shadow-lg: 0 30px 60px -20px rgba(14, 44, 112, .38);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px; --gutter: clamp(16px, 4vw, 32px);
  --overlay: linear-gradient(180deg, rgba(14, 44, 112, 0) 30%, rgba(14, 44, 112, .6) 62%, rgba(11, 31, 77, .94) 100%);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 1000; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.noimg { display: block; width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue-deep), var(--blue) 60%, var(--red)); }
.kicker { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 18px; height: 3px; background: var(--red); transform: skewX(-20deg); }

/* ---------- Barra de progreso / topbar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; z-index: 300; pointer-events: none; }
.topbar { background: var(--ink); color: #D5D8E6; font-size: 12.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar-date { text-transform: capitalize; letter-spacing: .02em; }
.topbar-tag { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; color: #9AA3C7; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a, .footer-social a, .mobile-social a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; transition: background .25s, transform .25s var(--ease); }
.topbar-social svg, .footer-social svg, .mobile-social svg { width: 14px; height: 14px; fill: currentColor; }
.topbar-social a:hover, .footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* ---------- Masthead ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--paper); transition: transform .45s var(--ease), box-shadow .3s; }
.site-header.is-compact { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .45); }
.site-header.is-hidden { transform: translateY(calc(-100% + 0px)); }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 96px; gap: 16px; transition: min-height .35s var(--ease); }
.is-compact .masthead-inner { min-height: 64px; }
.brand { grid-column: 2; display: inline-flex; align-items: center; justify-content: center; }
.brand img { height: 64px; width: auto; transition: height .35s var(--ease); }
.is-compact .brand img { height: 44px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .18em; font-family: var(--font-head); font-weight: 900; font-stretch: 112%; font-size: clamp(28px, 4.2vw, 40px); letter-spacing: -.03em; color: var(--blue); line-height: 1; transition: font-size .35s var(--ease); white-space: nowrap; }
.is-compact .wordmark { font-size: clamp(22px, 3vw, 28px); }
.wordmark .w2 { background: var(--red); color: #fff; font-size: .58em; padding: .18em .36em .14em; transform: skewX(-12deg); display: inline-block; border-radius: 2px; }
.wordmark .w2::before { content: none; }
.wordmark.small { font-size: 26px; color: #fff; }
.masthead-actions { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.burger { grid-column: 1; justify-self: start; width: 44px; height: 44px; border: 0; background: transparent; display: none; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; border-radius: 8px; }
.burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s, width .3s; width: 26px; }
.burger span:nth-child(2) { width: 18px; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.search-mini { position: relative; display: flex; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px; height: 40px; width: 200px; transition: width .35s var(--ease), box-shadow .25s; }
.search-mini:focus-within { width: 280px; box-shadow: 0 0 0 4px var(--blue-soft); border-color: var(--blue); }
.search-mini input { border: 0; background: transparent; outline: 0; flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--ink); }
.search-mini button { width: 32px; height: 32px; border: 0; background: var(--blue); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform .25s var(--ease), background .25s; }
.search-mini button svg { width: 18px; height: 18px; fill: currentColor; }
.search-mini button:hover { background: var(--red); transform: scale(1.06); }
.suggest { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: 90vw; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; }
.suggest a { display: flex; flex-direction: column; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.suggest a:last-child { border: 0; } .suggest a:hover { background: var(--blue-soft); }
.suggest small { color: var(--muted); font-weight: 500; }

/* ---------- Navegación principal ---------- */
.mainnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a { display: block; padding: 12px 14px; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; position: relative; white-space: nowrap; color: var(--ink-2); transition: color .2s; }
.mainnav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--blue); }
.mainnav a:hover::after, .mainnav a[aria-current]::after { transform: scaleX(1); }
.is-compact .mainnav a { padding: 9px 14px; }

/* ---------- Menú móvil ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 190; background: var(--blue); color: #fff; opacity: 0; transform: translateY(-4%); transition: opacity .35s var(--ease), transform .45s var(--ease); overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu-inner { padding: 120px var(--gutter) 40px; max-width: 640px; margin: 0 auto; }
.mobile-sections { list-style: none; margin: 28px 0; padding: 0; }
.mobile-sections li { opacity: 0; transform: translateX(-12px); transition: opacity .4s var(--ease) calc(.06s * var(--i)), transform .5s var(--ease) calc(.06s * var(--i)); }
.is-open .mobile-sections li { opacity: 1; transform: none; }
.mobile-sections a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-family: var(--font-head); font-size: clamp(28px, 7vw, 40px); font-weight: 800; letter-spacing: -.02em; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.mobile-sections .num { font-size: 14px; color: #FFB4BE; font-weight: 700; }
.mobile-social { display: flex; gap: 10px; }
.mobile-social a { width: 44px; height: 44px; background: rgba(255, 255, 255, .14); }
.mobile-social a:hover { background: var(--red); }
.search-big { display: flex; gap: 8px; }
.search-big input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 17px; background: var(--paper-2); color: var(--ink); }
.search-big button { background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 0 22px; font-weight: 700; }
.mobile-menu .search-big input { border-color: transparent; }

/* ---------- Secciones / cabeceras ---------- */
section { margin-block: clamp(36px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--cat); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; font-stretch: 105%; }
.section-head h2 a:hover { color: var(--cat); }
.section-head .kicker { color: var(--cat); margin-bottom: 6px; display: inline-flex; }
.section-head .kicker::before { background: var(--cat); }
.section-more { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; transition: color .2s, gap .25s var(--ease); }
.section-more svg { width: 16px; height: 16px; fill: currentColor; }
.section-more:hover { color: var(--cat); gap: 10px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }

/* ---------- Tarjetas ---------- */
.card { position: relative; }
.card-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.card:hover .card-img img { transform: scale(1.045); }
.card-title { font-size: 19px; line-height: 1.22; }
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.card:hover .card-title a { background-size: 100% 2px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cat); margin-bottom: 8px; }
.badge::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--cat); transform: skewX(-18deg); margin-right: 7px; vertical-align: 1px; }
.badge-light { color: #fff; background: var(--red); padding: 4px 9px 3px; border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); } .badge-light::before { display: none; }
.badge-lg { font-size: 13px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.meta-author { font-weight: 700; color: var(--ink-2); }
.meta-read::before, .meta time + .meta-read::before { content: "·"; margin-right: 10px; }
.card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 8px 0 0; font-family: var(--font-body); font-size: 16px; }
.card-standard .card-body { padding-top: 14px; }
.card-overlay { border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--ink); }
.card-overlay .card-img { border-radius: 0; }
.card-overlay .card-img img { aspect-ratio: 16/10; }
.card-overlay.size-lg .card-img img { aspect-ratio: 16/9; }
.card-overlay .card-body { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 3vw, 32px); background: var(--overlay); pointer-events: none; }
.card-overlay .card-body a, .card-overlay .card-body .badge { pointer-events: auto; }
.card-overlay .card-title { font-size: clamp(20px, 2.2vw, 26px); text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.card-overlay.size-lg .card-title { font-size: clamp(26px, 3.6vw, 46px); font-weight: 900; letter-spacing: -.025em; }
.card-overlay .card-sub { font-family: var(--font-body); font-size: 17px; opacity: .92; margin: 10px 0 0; max-width: 60ch; }
.card-overlay .meta { color: rgba(255, 255, 255, .78); } .card-overlay .meta-author { color: #fff; }
.card-overlay::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.card-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-row .card-img img { aspect-ratio: 4/3; }
.card-row .card-title { font-size: 16.5px; }
.card-row .badge { margin-bottom: 4px; font-size: 10.5px; }
.card-row .meta { margin-top: 4px; }
.card-row:has(> .card-body:only-child) { grid-template-columns: 1fr; }
.card-number { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card-number .num { font-family: var(--font-head); font-size: 40px; font-weight: 900; line-height: .9; color: var(--line-2); letter-spacing: -.05em; transition: color .3s; }
.card-number:hover .num { color: var(--red); }
.card-number .card-title { font-size: 17px; }
.card-opinion { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.card-opinion::before { content: "“"; position: absolute; top: 2px; right: 18px; font-family: var(--font-body); font-size: 84px; line-height: 1; color: var(--red); opacity: .25; }
.card-opinion:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-opinion .op-author { display: flex; flex-direction: column; margin-bottom: 12px; font-weight: 800; font-size: 14px; color: var(--blue); }
.card-opinion .op-author small { color: var(--muted); font-weight: 500; }
.card-opinion .card-title { font-family: var(--font-body); font-weight: 600; font-size: 22px; letter-spacing: 0; line-height: 1.25; }
.card-video { color: #fff; }
.card-video .card-img { position: relative; }
.card-video .card-img img { aspect-ratio: 16/9; filter: saturate(.9); }
.card-video .play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(200, 16, 46, .45); transition: transform .35s var(--ease); }
.card-video .play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.card-video:hover .play { transform: scale(1.12); }
.card-video .card-body { padding-top: 12px; }
.card-video .card-title { font-size: 17px; } .card-video.size-lg .card-title { font-size: clamp(22px, 2.6vw, 30px); }
.card-video .meta { color: #B7BCCD; }

/* ---------- Hero ---------- */
.hero { margin-top: clamp(16px, 3vw, 28px); }
.breaking { display: flex; align-items: center; gap: 14px; background: var(--red-soft); border: 1px solid #F3B9C2; border-radius: 10px; padding: 8px 14px 8px 8px; margin-bottom: 18px; color: var(--ink); font-weight: 700; }
.breaking-tag { background: var(--red); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; animation: pulse 2s infinite; white-space: nowrap; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .45); } 60% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); } }
.breaking-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.hero-main { grid-row: 1 / 3; }
.hero-side { display: grid; gap: 18px; align-content: start; }
.hero-rest { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.hero-rest .card-row { padding: 10px 0; }
.hero-side .card-overlay .card-title { font-size: clamp(17px, 1.45vw, 21px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side .card-overlay .card-body { padding: 16px 18px; background: linear-gradient(180deg, rgba(10, 14, 30, 0) 0%, rgba(10, 14, 30, .75) 40%, rgba(10, 14, 30, .95) 100%); }
.hero-main .card-overlay.size-lg .card-img img { aspect-ratio: 16/10; min-height: 100%; }
.hero-main .card-overlay { height: 100%; }
.hero-main .card-overlay .card-img { height: 100%; }
.hero-main .card-overlay .card-img img { height: 100%; }

/* ---------- Lo último ---------- */
.latest-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0 32px; }
.latest-lead { grid-row: 1 / 5; }
.latest-grid .card-row:nth-child(2), .latest-grid .card-row:nth-child(3) { border-top: 0; }

/* ---------- Mosaico / lista / rejillas ---------- */
.mosaic { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px 32px; align-items: start; }
.list-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.list-rest.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; cursor: grab; }
.strip.dragging { cursor: grabbing; user-select: none; }
.strip-item { flex: 0 0 300px; scroll-snap-align: start; }
.strip-item .card-title { font-size: 17px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo-col .card-standard { margin-bottom: 6px; }
.opinion-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.videos { background: var(--ink); color: #fff; padding: clamp(36px, 5vw, 64px) 0; margin-block: clamp(36px, 6vw, 72px); }
.videos .section-head { border-color: rgba(255, 255, 255, .22); }
.videos .section-head h2 a:hover { color: #FFB4BE; }
.videos .section-more { color: #B7BCCD; }
.video-band { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 18px; }
.video-band .card-video.size-lg { grid-column: 1 / 2; grid-row: 1 / 3; }
.most-read-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.sec-video .video-band { background: var(--ink); padding: 20px; border-radius: var(--radius); color: #fff; }

/* ---------- Anuncios ---------- */
.ad { display: flex; justify-content: center; align-items: center; margin-block: 18px; min-height: 0; }
.ad:empty { display: none; }
.ad-header { margin-block: 10px; }
.ad-home { margin-block: 28px; }
.ad-sidebar { margin-bottom: 24px; }

/* ---------- Páginas de listado ---------- */
.page-head { margin: clamp(24px, 4vw, 48px) 0 28px; max-width: 760px; }
.page-head h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 900; letter-spacing: -.03em; margin: 8px 0 10px; }
.page-head h1::after { content: ""; display: block; width: 88px; height: 5px; background: var(--cat); margin-top: 14px; transform: skewX(-20deg); }
.page-head p { font-family: var(--font-body); font-size: 19px; color: var(--muted); margin: 0 0 10px; }
.page-head small { color: var(--muted-2); font-size: 13px; }
.page-head small a { color: var(--blue); font-weight: 700; }
.category-lead { margin-bottom: 36px; }
.category-lead .card-overlay.size-lg .card-img img { aspect-ratio: 21/9; }
.empty { color: var(--muted); font-family: var(--font-body); font-size: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.author-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin: clamp(24px, 4vw, 48px) 0 32px; }
.author-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0; }
.author-head .role { color: var(--red); font-weight: 700; margin: 0 0 8px; }
.author-head .bio { font-family: var(--font-body); font-size: 18px; color: var(--ink-2); max-width: 70ch; }
.author-links a { margin-right: 14px; color: var(--blue); font-weight: 700; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-txt { display: inline-grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; }
.avatar-xl { width: 120px; height: 120px; font-size: 48px; }
.error-page { padding: clamp(40px, 8vw, 100px) 0; }
.error-hero { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.error-code { font-family: var(--font-head); font-size: clamp(90px, 20vw, 180px); font-weight: 900; line-height: .9; color: var(--red); letter-spacing: -.06em; display: block; }
.error-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 12px; }
.error-hero p { color: var(--muted); font-family: var(--font-body); font-size: 18px; }
.error-hero .search-big { margin: 20px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 800; font-size: 14px; letter-spacing: .02em; border: 2px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.empty-state { text-align: center; padding: 80px 0; }

/* ---------- Artículo ---------- */
.preview-bar { background: #FFF2C9; color: #5A4200; text-align: center; padding: 10px; font-weight: 700; font-size: 14px; }
.preview-bar a { color: var(--blue); text-decoration: underline; }
.article-header { max-width: 860px; margin-inline: auto; padding-top: clamp(20px, 4vw, 44px); }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--blue); }
.article-title { font-size: clamp(30px, 5.2vw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 16px; }
.article-sub { font-family: var(--font-body); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-2); margin: 0 0 22px; font-weight: 400; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 10px; }
.byline span { display: flex; flex-direction: column; line-height: 1.2; }
.byline strong { font-size: 14.5px; } .byline small { color: var(--muted); font-size: 12px; }
.dates { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.dates .updated { color: var(--red); font-weight: 700; }
.share-top { margin-left: auto; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); font-size: 12.5px; font-weight: 700; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.share svg { width: 15px; height: 15px; fill: currentColor; }
.share a:hover, .share button:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share .sh-wa:hover { background: #25D366; } .share .sh-fb:hover { background: #1877F2; } .share .sh-x:hover { background: #000; } .share .sh-tg:hover { background: #229ED9; } .share .sh-copy:hover, .share .sh-native:hover { background: var(--blue); }
.share .copied { background: var(--blue); color: #fff; }
.article-hero { max-width: 1100px; margin: clamp(20px, 3vw, 36px) auto; }
.article-lead img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.article-lead figcaption, .article-figure figcaption, .article-embed figcaption, .article-gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; font-family: var(--font-ui); }
.credit { color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.article-video .ratio-16x9 { border-radius: var(--radius); overflow: hidden; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; max-width: 1100px; margin-inline: auto; }
.article-body-wrap { max-width: 720px; justify-self: end; width: 100%; }
.article-body { font-family: var(--font-body); font-size: clamp(18px, 1.3vw + 10px, 20.5px); line-height: 1.68; color: var(--ink); }
.article-body > p:first-of-type::first-letter { font-family: var(--font-head); font-weight: 900; font-size: 3.4em; float: left; line-height: .82; margin: .08em .1em 0 0; color: var(--blue); }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.8em 0 .6em; }
.article-body h3 { font-size: clamp(19px, 2vw, 24px); margin: 1.6em 0 .5em; }
.article-body h4 { font-size: 18px; margin: 1.4em 0 .5em; }
.article-body a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(26, 79, 209, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .45em; }
.article-body mark.cdx-marker, .article-body mark { background: #FFE58A; padding: 0 .15em; border-radius: 2px; }
.article-body code.inline-code { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: var(--paper-3); padding: .1em .35em; border-radius: 4px; }
.align-center { text-align: center; } .align-right { text-align: right; }
.pullquote { margin: 2em 0; padding: 6px 0 6px 26px; border-left: 5px solid var(--red); font-size: 1.25em; line-height: 1.4; font-style: italic; font-weight: 500; }
.pullquote p { margin: 0; } .pullquote cite { display: block; margin-top: 10px; font-size: .7em; font-style: normal; font-family: var(--font-ui); font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.delimiter { border: 0; height: 4px; width: 72px; margin: 2.4em auto; background: var(--red); transform: skewX(-20deg); }
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; }
.article-body table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: 15px; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--paper-3); font-weight: 800; }
.article-figure { margin: 2em 0; }
.article-figure img { border-radius: var(--radius-sm); width: 100%; }
.article-figure.size-wide { margin-inline: -8%; width: 116%; }
.article-figure.size-full { margin-inline: 0; }
.article-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2em 0; }
.article-gallery[data-count="1"] { grid-template-columns: 1fr; }
.article-gallery[data-count="3"] figure:first-child { grid-column: 1 / -1; }
.article-gallery figure { margin: 0; } .article-gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.article-embed { margin: 2em 0; }
.ratio-16x9 { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-social { display: flex; flex-direction: column; align-items: center; }
.embed-social blockquote { margin: 0; }
.ratio-fb iframe { max-width: 100%; }
.btn-block { margin: 1.6em 0; font-family: var(--font-ui); }
.callout { border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.8em 0; font-family: var(--font-ui); font-size: .85em; line-height: 1.55; border: 1px solid var(--line); background: var(--paper-2); }
.callout-key { border-left: 5px solid var(--blue); background: var(--blue-soft); }
.callout-alert { border-left: 5px solid var(--red); background: var(--red-soft); }
.callout-info { border-left: 5px solid #E07A1F; background: #FFF4E8; color: #3b2a14; }
.callout-title { display: block; margin-bottom: 6px; font-weight: 800; }
.article-sources { margin-top: 36px; padding: 18px 22px; background: var(--paper-3); border-radius: var(--radius-sm); font-size: 14px; }
.article-sources h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.article-sources ul { margin: 0; padding-left: 18px; } .article-sources a { color: var(--blue); font-weight: 700; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; font-size: 13px; color: var(--muted); }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper-3); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.chip:hover { background: var(--blue); color: #fff; }
.article-share-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-share-bottom p { font-weight: 800; margin: 0 0 10px; }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.author-box .avatar { width: 72px; height: 72px; font-size: 28px; }
.author-box strong { font-size: 17px; } .author-box small { display: block; color: var(--red); font-weight: 700; font-size: 12px; margin: 2px 0 6px; }
.author-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.article-side { position: relative; }
.side-sticky { position: sticky; top: 140px; }
.side-block h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); border-bottom: 3px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.related, .same-cat { max-width: 1100px; }
.share-sticky { display: none; }
.static-page { max-width: 760px; }
.static-body { margin-top: 20px; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 8, 18, .92); z-index: 500; display: none; place-items: center; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: 8px; width: auto; }
.lightbox p { color: #ccc; margin: 10px 0 0; font-size: 14px; text-align: center; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--ink); color: #C9CDDC; margin-top: 60px; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-family: var(--font-body); font-size: 16px; line-height: 1.55; margin: 16px 0; max-width: 46ch; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { background: rgba(255, 255, 255, .08); width: 36px; height: 36px; }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; } .footer-col li { margin-bottom: 8px; font-size: 14.5px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #8A90A6; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .4s var(--ease), background .2s; z-index: 150; }
.to-top.is-visible { opacity: 1; transform: none; } .to-top:hover { background: var(--red); } .to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* =====================================================================
   IDENTIDAD DEL LOGOTIPO
   Encabezado azul con el degradado del logo, letras blancas, «EN» en caja roja
   inclinada y líneas rojas; acentos rojos y azules en todo el sitio.
   ===================================================================== */
/* Encabezado */
.site-header { background: var(--logo-grad); color: #fff; }
.site-header.is-compact { box-shadow: 0 8px 26px -12px rgba(14, 44, 112, .7); }
.topbar { background: var(--blue-night); color: var(--blue-mist); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-tag { color: #fff; opacity: .85; }
.topbar-social a { color: #fff; }
.masthead { border-bottom: 0; }
.brand { flex-direction: column; gap: 8px; }
.wordmark { color: #fff; text-shadow: 0 3px 0 rgba(11, 31, 77, .35), 0 8px 18px rgba(11, 31, 77, .35); font-weight: 900; }
.wordmark .w2 { background: var(--red); color: #fff; text-shadow: none; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.brand-rule { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--red) 12%, var(--red) 88%, transparent); }
.brand-tag { display: flex; gap: .7em; align-items: center; font-family: var(--font-ui); font-weight: 800; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; line-height: 1; }
.brand-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); display: inline-block; }
.is-compact .brand-tag, .is-compact .brand-rule { display: none; }
.burger span { background: #fff; }
.search-mini { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.search-mini input { color: #fff; }
.search-mini input::placeholder { color: rgba(255, 255, 255, .75); }
.search-mini:focus-within { background: #fff; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.search-mini:focus-within input { color: var(--ink); }
.search-mini button { background: var(--red); }
.search-mini button:hover { background: var(--red-dark); }
.mainnav { background: rgba(11, 31, 77, .28); border-bottom: 3px solid var(--red); border-top: 1px solid rgba(255, 255, 255, .12); }
.mainnav a { color: #fff; }
.mainnav a::after { background: #fff; bottom: 5px; }
.mainnav a:hover, .mainnav a[aria-current] { color: #fff; background: var(--red); }
.mainnav a[aria-current]::after, .mainnav a:hover::after { transform: scaleX(0); }
.mobile-menu { background: var(--logo-grad); }
.mobile-sections a { border-bottom-color: rgba(255, 255, 255, .2); }
.mobile-sections .num { color: #fff; background: var(--red); padding: 2px 6px; border-radius: 3px; transform: skewX(-10deg); }
.mobile-menu .search-big button { background: var(--red); }

/* Titulares de sección: barra azul y bloque rojo inclinado, como las líneas del logo */
.section-head { border-bottom: 3px solid var(--blue); }
.section-head::after { background: var(--red); width: 96px; height: 6px; bottom: -4.5px; transform: skewX(-20deg); }
.section-head h2 { color: var(--blue-deep); }
.section-head h2 a:hover { color: var(--red); }
.section-head .kicker, .kicker { color: var(--red); }
.section-head .kicker::before, .kicker::before { background: var(--red); }
.section-more { color: var(--blue); }
.section-more:hover { color: var(--red); }
.page-head h1 { color: var(--blue-deep); }
.page-head h1::after { background: var(--red); }

/* Tarjetas */
.badge { color: var(--red); }
.badge::before { background: var(--red); }
.badge-light { background: var(--red); color: #fff; }
.card-title { color: var(--ink); }
.card:hover .card-title a { color: var(--blue); }
.card-overlay .card-title, .card-overlay:hover .card-title a, .card-video .card-title { color: #fff; }
.card-overlay { background: var(--blue-night); }
.card-img { background: var(--blue-soft); }
.meta-author { color: var(--blue-deep); }
.card-number .num { color: var(--blue-mist); }
.card-number:hover .num { color: var(--red); }
.card-opinion { background: var(--paper-3); border: 0; border-left: 5px solid var(--blue); }
.card-opinion .op-author { color: var(--blue); }
.card-opinion::before { color: var(--red); opacity: .35; }
.noimg { background: var(--logo-grad); }

/* Bloques destacados */
.breaking { background: var(--red); border-color: var(--red); color: #fff; }
.breaking-tag { background: #fff; color: var(--red); animation: none; }
.videos, .sec-video .video-band { background: var(--logo-grad); }
.videos .section-head { border-bottom-color: rgba(255, 255, 255, .5); }
.videos .section-head h2, .videos .section-head h2 a { color: #fff; }
.videos .section-head .kicker { color: #fff; }
.videos .section-head .kicker::before { background: #fff; }
.videos .section-more { color: #fff; }
.card-video .meta { color: var(--blue-mist); }
.most-read { background: var(--paper-3); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }

/* Nota individual */
.article-title { color: var(--blue-deep); }
.article-sub { color: var(--ink-2); }
.article-body > p:first-of-type::first-letter { color: var(--red); }
.article-body h2, .article-body h3 { color: var(--blue-deep); }
.article-body a { color: var(--blue); text-decoration-color: rgba(31, 88, 191, .35); }
.pullquote { border-left-color: var(--red); color: var(--blue-deep); }
.delimiter { background: var(--red); }
.article-sources { background: var(--paper-3); border-left: 4px solid var(--blue); }
.article-sources a { color: var(--blue); }
.author-box { border-color: var(--line); background: var(--paper-3); }
.author-box small { color: var(--red); }
.side-block h4 { color: var(--red); border-bottom-color: var(--blue); }
.chip { background: var(--blue-soft); color: var(--blue-deep); }
.chip:hover { background: var(--blue); color: #fff; }
.crumbs a:hover { color: var(--red); }
.preview-bar { background: var(--red); color: #fff; }
.preview-bar a { color: #fff; }

/* Botones y paginación */
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--red); }
.pagination a:hover { background: var(--red); border-color: var(--red); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.search-big button { background: var(--red); }
.to-top { background: var(--red); }
.to-top:hover { background: var(--blue-deep); }
.progress { background: var(--red); }

/* Pie de página: azul profundo del logo con línea roja */
.site-footer { background: linear-gradient(180deg, var(--blue-deep), var(--blue-night)); color: var(--blue-mist); border-top: 5px solid var(--red); }
.footer-col h4 { color: #fff; }
.footer-col a:hover { color: #fff; }
.footer-social a { background: rgba(255, 255, 255, .12); color: #fff; }
.footer-social a:hover { background: var(--red); }
.footer-bottom { color: var(--blue-mist); border-top-color: rgba(255, 255, 255, .15); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .opinion-grid { grid-template-columns: repeat(2, 1fr); }
  .video-band { grid-template-columns: 1fr 1fr; } .video-band .card-video.size-lg { grid-column: 1 / -1; grid-row: auto; }
  .latest-grid { grid-template-columns: 1.3fr 1fr; } .latest-lead { grid-row: 1 / 8; }
  .article-layout { grid-template-columns: 1fr; gap: 24px; } .article-side { display: none; } .article-body-wrap { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .masthead { border-bottom: 3px solid var(--red); }
  .brand { gap: 5px; }
  .brand-tag { font-size: 8.5px; letter-spacing: .12em; gap: .5em; }
  .brand-tag i { width: 3px; height: 3px; }
  .most-read { padding: 16px; }
  body { font-size: 15.5px; }
  .topbar-tag { display: none; }
  .masthead-inner { grid-template-columns: 44px 1fr 44px; min-height: 68px; }
  .is-compact .masthead-inner { min-height: 60px; }
  .brand img { height: 42px; } .is-compact .brand img { height: 38px; }
  .wordmark, .is-compact .wordmark { font-size: 23px; }
  .burger { display: flex; }
  .search-mini { display: none; }
  .masthead-actions { gap: 0; }
  .mainnav { display: none; }
  .site-header.is-hidden { transform: translateY(-100%); }
  .hero-grid, .hero-rest, .latest-grid, .mosaic, .list-layout, .grid-3, .grid-4, .list-rest.cols-2, .duo, .opinion-grid, .video-band, .most-read-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-main, .latest-lead { grid-row: auto; }
  .hero-side { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-side .card-overlay .card-title { font-size: 15.5px; } .hero-side .card-overlay .card-body { padding: 14px; } .hero-side .card-overlay .meta { display: none; } .hero-side .card-overlay .card-img img { aspect-ratio: 4/5; }
  .card-overlay.size-lg .card-title { font-size: clamp(22px, 6.4vw, 30px); } .card-overlay .card-sub { display: none; }
  .grid-3 { gap: 26px; } .grid-4 { gap: 22px; }
  .strip-item { flex-basis: 76vw; }
  .duo { gap: 36px; }
  section { margin-block: 40px; }
  .section-head h2 { font-size: 24px; }
  .article-title { font-size: clamp(27px, 7.4vw, 36px); }
  .article-meta { gap: 12px; } .share-top { display: none; }
  .article-lead img { border-radius: 10px; }
  .article-body { font-size: 18px; }
  .article-figure.size-wide { margin-inline: 0; width: 100%; }
  .article-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .share-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; background: var(--paper-2); border-top: 1px solid var(--line); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); }
  .share-mobile { justify-content: space-between; flex-wrap: nowrap; }
  .share-mobile a, .share-mobile button { flex: 1; justify-content: center; padding: 0 6px; height: 40px; } .share-mobile span { display: none; }
  .share-mobile .sh-tg { display: none; }
  .to-top { bottom: 70px; }
  .author-head { grid-template-columns: 1fr; } .avatar-xl { width: 88px; height: 88px; }
  .category-lead .card-overlay.size-lg .card-img img { aspect-ratio: 4/3; }
  .page-head h1 { font-size: 34px; }
  .footer-bottom { flex-direction: column; }
  .article-body table { font-size: 14px; }
}
@media (max-width: 420px) { .hero-side { grid-template-columns: 1fr; } .hero-side .card-overlay .card-img img { aspect-ratio: 16/10; } }
@media print { .site-header, .site-footer, .share, .share-sticky, .to-top, .article-side, .related, .same-cat, .ad { display: none !important; } .article-body { font-size: 12pt; } }
