/*
Theme Name: Informa Lo Real
Theme URI: https://informaloreal.com
Description: Tema premium de periódico digital profesional. Diseño editorial moderno Mobile-First inspirado en CNN y BBC. Portal de noticias con SEO avanzado, publicidad, modo oscuro y performance optimizado.
Version: 1.0.2
Author: Informa Lo Real Dev Team
Text Domain: informa-lo-real
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL v2 or later
Tags: news, newspaper, magazine, blog, two-columns, three-columns, grid-layout, custom-menu, featured-images, dark, responsive, rtl-language-support
*/

/* ─────────────────────────────────────────────────────────────
   GOOGLE FONTS — loaded via <link rel="preload"> in performance.php
   No @import here to avoid render-blocking.
───────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --azul:       #0A56A5;
  --azul-dk:    #083D75;
  --azul-md:    #0B4E96;
  --azul-lt:    #3B7FCA;
  --azul-bg:    #E3EDF7;
  --accent:       #111111;
  --accent-dk:    #000000;
  --accent-lt:    #333333;
  --gold:        #f5a623;

  /* Neutrals */
  --header-bg:   #ffffff;
  --nav-bg:      #0A56A5;
  --black:       #0a0a0a;
  --footer-bg:   #111111;
  --dark:        #1c1c1c;
  --gray-dk:     #444;
  --gray:        #666;
  --gray-lt:     #999;
  --border:      #e4e4e4;
  --bg:          #f3f4f6;
  --surface:     #fff;
  --white:       #fff;

  /* Typography */
  --font-logo:    'Oswald', 'Impact', 'Arial Black', sans-serif;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Layout */
  --max-w:       1200px;
  --sidebar-w:   300px;
  --gap:         20px;
  --radius:      6px;
  --radius-lg:   12px;

  /* Effects */
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.16);
  --trans:       all .25s cubic-bezier(.4,0,.2,1);
}

/* Dark Mode */
.dark-mode {
  --bg:      #121212;
  --surface: #1e1e1e;
  --dark:    #f0f0f0;
  --gray-dk: #ccc;
  --gray:    #aaa;
  --border:  #333;
  --footer-bg: #1a1a1a;
}

/* Category colours */
:root {
}


/* ── Slogan banner ── */
.site-slogan {
  background: var(--azul);
  color: #fff;
  font-family: var(--font-logo);
  font-size: clamp(.85rem, 3vw, 1.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  padding: 9px 30px;
  margin: 10px 0 16px;
  clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
  display: inline-block;
}

/* ─────────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--trans); }
img { max-width: 100%; height: auto; display: block; }

/* Override img reset for overlay cards */
.card .card-link .card-bg,
.card-h .card-h-link .card-h-bg {
  max-width: none !important;
  height: 100% !important;
}
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
p { margin-bottom: 1rem; }

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ─────────────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden { display: none !important; }

.page-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════
   ★ HEADER — fondo claro #f3f4f6 + logo imagen real
═══════════════════════════════════════════════════════════ */

.site-header {
  background: #ffffff;
  position: relative;
  border-bottom: 3px solid var(--azul);
}

/* Top bar: fecha + redes sociales */
.header-topbar {
  background: #0a0a0a;
  border-bottom: 1px solid #222;
}
.header-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin-inline: auto;
  padding: 6px 16px;
}
.header-date { font-size: 11px; color: #aaa; letter-spacing: .3px; display: flex; align-items: center; gap: 5px; }
.header-topbar-right { display: flex; align-items: center; gap: 10px; }
.header-social { display: flex; gap: 7px; }
.header-social a {
  color: #777; font-size: 13px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.07);
  transition: var(--trans);
}
.header-social a:hover { background: var(--azul); color: #fff; }
.dark-toggle-btn {
  color: #888; font-size: 13px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 4px;
  transition: var(--trans);
}
.dark-toggle-btn:hover { background: var(--azul); color: #fff; }

/* Logo — izquierda en desktop, centrado en mobile */
.header-logo-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: var(--max-w);
  margin-inline: auto;
  gap: 20px;
}
.logo-wrap {
  flex-shrink: 0;
  line-height: 0;
  max-height: 65px;
  max-width: 300px;
  overflow: hidden;
}
.logo-link { display: flex; align-items: center; }
.site-logo-img {
  display: block;
  max-height: 65px;
  width: auto;
  height: auto;
}

/* Header ad beside logo */
.header-ad { flex: 1; display: flex; justify-content: flex-end; }

/* Fallback texto (si no hay imagen) */
.logo-informa {
  font-family: var(--font-logo);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -3px;
  line-height: .9;
}
.logo-loreal {
  font-family: var(--font-logo);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 800;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: -3px;
  line-height: .9;
}

/* ═══════════════════════════════════════════════════════════
   ★ NAV BAR
═══════════════════════════════════════════════════════════ */
.nav-bar {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 3px 16px rgba(0,0,0,.35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin-inline: auto;
  padding-inline: 16px; min-height: 48px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 36px;
  background: rgba(255,255,255,.12); border-radius: var(--radius);
  color: #fff; font-size: 16px;
  flex-shrink: 0; transition: var(--trans);
}
.nav-toggle:hover { background: rgba(255,255,255,.22); }

/* Menu */
#site-nav {
  display: flex; align-items: center; flex-wrap: nowrap;
}
#site-nav li { position: relative; }
#site-nav li a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 14px 12px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: var(--trans);
  white-space: nowrap;
  position: relative;
}
#site-nav li a:hover,
#site-nav li.current-menu-item > a { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.05); }

/* Dropdown */
#site-nav li .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 210px;
  background: var(--azul);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); z-index: 9999;
  display: none; flex-direction: column;
}
#site-nav li:hover > .sub-menu { display: flex; }
#site-nav li .sub-menu a {
  padding: 10px 16px; font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 0; border-right: none;
}

/* Subscribe btn in nav */
.nav-subscribe {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: var(--radius) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .8px !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  margin-left: 8px;
  white-space: nowrap;
  transition: var(--trans) !important;
}
.nav-subscribe:hover { background: var(--accent-dk) !important; }

/* Search form */
.nav-search { display: flex; align-items: center; background: rgba(255,255,255,.09); border-radius: 20px; overflow: hidden; }
.nav-search input { background: none; border: none; outline: none; padding: 6px 12px; color: #fff; font-size: 12px; width: 130px; }
.nav-search input::placeholder { color: rgba(255,255,255,.38); }
.nav-search button { padding: 6px 11px; color: rgba(255,255,255,.55); font-size: 12px; }
.nav-search button:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   ★ AD BANNER (728×90) — below nav, matches reference
═══════════════════════════════════════════════════════════ */
.ad-strip {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ad-strip .container { display: flex; justify-content: center; }
.ad-728 {
  width: 100%; max-width: 728px; height: 90px;
  background: #f7f7f7; border: 1px dashed #ccc;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  font-size: 12px; color: #bbb;
}
.ad-728 img { width: 100%; height: 100%; object-fit: cover; }
.ad-lbl { position: absolute; top: 3px; right: 6px; font-size: 8px; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }

/* Other ad sizes */
.ad-970  { width: 100%; height: 90px; }
.ad-300  { width: 100%; height: 250px; }
.ad-in   { max-width: 728px; height: 90px; margin-inline: auto; }
.ad-box {
  background: #f5f5f5; border: 1px dashed #d0d0d0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-size: 11px; color: #bbb; margin: 16px 0;
}

/* ═══════════════════════════════════════════════════════════
   BREAKING BAR
═══════════════════════════════════════════════════════════ */
.breaking-bar { background: #c62828; overflow: hidden; }
.breaking-inner { display: flex; align-items: stretch; max-width: var(--max-w); margin-inline: auto; }
.breaking-badge {
  background: var(--black); color: #fff;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 8px 14px; white-space: nowrap;
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
}
.breaking-badge i { color: var(--gold); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }
.breaking-scroll-wrap { flex:1; overflow: hidden; display: flex; align-items: center; padding-inline: 14px; }
.breaking-scroll {
  display: flex; white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.breaking-scroll:hover { animation-play-state: paused; }
.breaking-scroll a { color: #fff; font-size: 13px; font-weight: 500; padding-right: 70px; }
.breaking-scroll a::before { content: '▸ '; opacity: .6; }
.breaking-scroll a:hover { text-decoration: underline; }
@keyframes ticker { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }

/* ─────────────────────────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────────────────────────── */
.breadcrumbs {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 8px 0; font-size: 12px; color: var(--gray-lt);
}
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.breadcrumbs a { color: var(--azul); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: #ddd; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   SITE CONTENT WRAPPER
═══════════════════════════════════════════════════════════ */
.site-content { padding: 20px 0 40px; }

/* ─────────────────────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────────────────────── */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 3px solid var(--azul);
}
.sec-title {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  display: flex; align-items: center; gap: 8px;
}
.sec-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.sec-more { font-size: 11px; color: var(--azul); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.sec-more:hover { color: var(--azul-dk); }

/* ═══════════════════════════════════════════════════════════
   ★ CATEGORY BADGE
═══════════════════════════════════════════════════════════ */
.cat-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: #fff !important; padding: 4px 10px; border-radius: 2px;
  background: #0A56A5 !important;
}

/* ═══════════════════════════════════════════════════════════
   ★ HERO — grid con altura fija, estilo overlay azul marca
═══════════════════════════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 4px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Hero principal (ocupa las 2 filas) ── */
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  background: #111;
}
.hero-main-link {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-main-link > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform .6s ease;
}
.hero-main:hover .hero-main-link > img { transform: none; }

/* ── Overlay — degradado azul marca ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--azul) 0%,
    rgba(10,86,165,.95) 18%,
    rgba(10,86,165,.7) 35%,
    rgba(10,86,165,.25) 55%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Caption ── */
.hero-caption {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  padding: 0 20px;
  z-index: 2;
}
.hero-caption .cat-badge {
  display: inline-block;
  margin-bottom: 8px;
}
.hero-main-title {
  font-family: var(--font-head);
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero-main-title a { color: #fff; }
.hero-main-title a:hover { color: #111; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; font-size: 12px; color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.hero-meta span { display: flex; align-items: center; gap: 4px; color: #fff !important; }
.hero-meta i { color: #fff !important; }
.hero-sep { color: rgba(255,255,255,.6); }

/* ── Footer bar con logo (hero-main) ── */
.hero-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  gap: 10px;
}
.hero-footer-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--azul);
  letter-spacing: .3px;
  white-space: nowrap;
}
.hero-footer-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

/* ── Footer bar (hero-sub — más pequeña) ── */
.hero-footer-sm {
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  color: var(--azul);
}
.hero-footer-sm .hero-footer-logo {
  height: 15px;
}

/* ── Posts secundarios ── */
.hero-sub {
  position: relative;
  overflow: hidden;
  background: #111;
}
.hero-sub-link {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-sub-link > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform .5s ease;
}
.hero-sub:hover .hero-sub-link > img { transform: none; }
.hero-sub .hero-caption {
  bottom: 26px;
  padding: 0 10px;
}
.hero-sub .hero-caption .cat-badge {
  font-size: 8px;
  padding: 2px 7px;
  margin-bottom: 5px;
}
.hero-sub .hero-sub-title {
  font-family: var(--font-head);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.hero-sub .hero-sub-title a { color: #fff; }
.hero-sub .hero-sub-title a:hover { color: #111; }
.hero-sub .hero-meta { margin-top: 4px; font-size: 10px; }


/* ─────────────────────────────────────────────────────────────
   CARDS — VERTICAL (overlay style like reference image)
───────────────────────────────────────────────────────────── */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  background: #111;
  transition: var(--trans);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card .card-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}
.card .card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform .5s ease;
}
.card:hover .card-bg { transform: none; }

.card > .cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
}

.card .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--azul) 0%,
    rgba(10,86,165,.95) 20%,
    rgba(10,86,165,.7) 40%,
    rgba(10,86,165,.25) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.card .card-content {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  padding: 0 12px;
  z-index: 2;
}
.card .card-title {
  font-family: var(--font-head);
  font-size: clamp(.8rem, 1.4vw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 4px 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .card-title a { color: #fff; }
.card .card-title a:hover { color: #111; }

.card .card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #fff !important;
  border: none;
  padding: 0;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.card .card-meta span { display: flex; align-items: center; gap: 3px; color: #fff !important; }
.card .card-meta i { color: #fff !important; }

.card .card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  gap: 6px;
}
.card .card-footer-link {
  font-size: 8px;
  font-weight: 700;
  color: var(--azul);
  letter-spacing: .3px;
  white-space: nowrap;
}
.card .card-footer-logo {
  height: 16px;
  width: auto;
  max-width: 70px;
  max-height: 16px;
  flex-shrink: 0;
  position: static;
}

/* ─────────────────────────────────────────────────────────────
   CARD FEATURED — ancho completo, landscape
───────────────────────────────────────────────────────────── */
.card.card-featured {
  aspect-ratio: 16/9;
  margin-bottom: 0;
}
.card.card-featured .card-title {
  font-size: clamp(.95rem, 2vw, 1.3rem);
  -webkit-line-clamp: 4;
}
.card.card-featured .card-content {
  bottom: 30px;
  padding: 0 16px;
}
.card.card-featured .card-meta { font-size: 10px; color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.card.card-featured .card-footer { padding: 5px 12px; }
.card.card-featured .card-footer-link { font-size: 9px; }
.card.card-featured .card-footer-logo { height: 18px; max-height: 18px; }

/* ─────────────────────────────────────────────────────────────
   CARDS — HORIZONTAL (overlay style)
───────────────────────────────────────────────────────────── */
.card-h {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 120px;
  background: #111;
  transition: var(--trans);
}
.card-h:last-child { margin-bottom: 0; }
.card-h:hover { box-shadow: var(--shadow-lg); }

.card-h .card-h-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}
.card-h .card-h-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform .4s ease;
}
.card-h:hover .card-h-bg { transform: none; }

.card-h .card-h-cat {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 4;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #fff;
  background: #0A56A5 !important;
  padding: 2px 7px;
  border-radius: 3px;
}

.card-h .card-h-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--azul) 0%,
    rgba(10,86,165,.95) 25%,
    rgba(10,86,165,.5) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.card-h .card-h-content {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  padding: 0 10px;
  z-index: 2;
}
.card-h .card-h-title {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}
.card-h .card-h-title a { color: #fff; }
.card-h .card-h-title a:hover { color: #111; }
.card-h .card-h-meta {
  font-size: 9px;
  color: #fff !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

.card-h .card-h-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  font-size: 7px;
  font-weight: 700;
  color: var(--azul);
}
.card-h .card-h-footer-logo {
  height: 12px;
  width: auto;
  max-width: 55px;
  max-height: 12px;
  flex-shrink: 0;
  position: static;
}

/* ─────────────────────────────────────────────────────────────
   GRIDS
───────────────────────────────────────────────────────────── */
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.g2-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; margin-top: 4px; }

/* Category sections */
.cat-section { margin-bottom: 28px; }

/* ─────────────────────────────────────────────────────────────
   LATEST NEWS LIST
───────────────────────────────────────────────────────────── */
.latest-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.latest-item:last-child { border-bottom: none; }
.latest-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 900; color: #e0e0e0; flex-shrink: 0; width: 34px; line-height: 1; text-align: right; }
.latest-thumb { width: 82px; height: 62px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg); }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-cat { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--azul); display: block; margin-bottom: 3px; }
.latest-title { font-family: var(--font-head); font-size: .84rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-title a:hover { color: var(--azul); }
.latest-meta { font-size: 10.5px; color: var(--gray-lt); margin-top: 4px; }

/* ─────────────────────────────────────────────────────────────
   TRENDING — dark bg
───────────────────────────────────────────────────────────── */
.trending-section { background: var(--dark); padding: 30px 0; margin: 28px 0; }
.trending-section .sec-title { color: #fff; }
.trending-section .sec-title::before { background: var(--gold); }
.trending-section .sec-head { border-bottom-color: rgba(255,255,255,.12); }
.trend-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.trend-card { background: rgba(255,255,255,.06); border-radius: var(--radius); overflow: hidden; transition: var(--trans); }
.trend-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.trend-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #2a2a2a; }
.trend-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.trend-card:hover .trend-img img { transform: none; }
.trend-rank { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--black); width: 27px; height: 27px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.trend-body { padding: 10px; }
.trend-title { font-family: var(--font-head); font-size: .8rem; color: rgba(255,255,255,.9); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-title a { color: rgba(255,255,255,.9); }
.trend-title a:hover { color: #ccc; }
.trend-views { font-size: 10px; color: rgba(255,255,255,.35); margin-top: 5px; }

/* ─────────────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.widget-hd { background: var(--azul); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 10px 14px; display: flex; align-items: center; gap: 6px; }
.widget-bd { padding: 14px; }

.w-pop { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.w-pop:last-child { border-bottom: none; }
.w-pop-n { font-family: var(--font-head); font-size: 1.4rem; font-weight: 900; color: #e0e0e0; flex-shrink: 0; width: 28px; line-height: 1; }
.w-pop-title { font-size: 12px; font-weight: 700; line-height: 1.35; }
.w-pop-title a:hover { color: var(--azul); }
.w-pop-meta { font-size: 10px; color: var(--gray-lt); margin-top: 2px; }

.w-cat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.w-cat:last-child { border-bottom: none; }
.w-cat a:hover { color: var(--azul); }
.w-cat-count { background: var(--bg); color: var(--gray-lt); font-size: 10px; padding: 2px 7px; border-radius: 10px; }

.w-nl p { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.w-nl-form { display: flex; flex-direction: column; gap: 7px; }
.w-nl-input { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 12.5px; outline: none; transition: var(--trans); }
.w-nl-input:focus { border-color: var(--azul); }
.w-nl-btn { background: var(--accent); color: #fff; padding: 9px; border-radius: var(--radius); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; transition: var(--trans); }
.w-nl-btn:hover { background: var(--accent-dk); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-cloud a { font-size: 11px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 20px; color: var(--gray); transition: var(--trans); }
.tag-cloud a:hover { background: var(--azul); color: #fff; border-color: var(--azul); }

.w-social { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.w-social-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: var(--radius); font-size: 11.5px; font-weight: 700; color: #fff; transition: var(--trans); }
.w-social-btn:hover { opacity: .85; }
.s-fb{background:#1877f2}.s-tw{background:#1da1f2}.s-ig{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}.s-yt{background:#ff0000}.s-tg{background:#0088cc}.s-wa{background:#25d366}

/* ─────────────────────────────────────────────────────────────
   WIDGET: Entradas Recientes Personalizadas (TLN)
───────────────────────────────────────────────────────────── */
.ilr-recent-list { padding: 8px 14px 14px; }
.ilr-recent-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: var(--trans);
}
.ilr-recent-item:last-child { border-bottom: none; }
.ilr-recent-item:hover { background: var(--bg); border-radius: var(--radius); padding: 10px 8px; margin: 0 -8px; }
.ilr-recent-thumb {
  width: 80px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.ilr-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ilr-recent-item:hover .ilr-recent-thumb img { transform: none; }
.ilr-recent-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-lt); font-size: 18px; background: var(--bg);
}
.ilr-recent-info { flex: 1; min-width: 0; }
.ilr-recent-cat {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--azul); display: block; margin-bottom: 3px;
}
.ilr-recent-title {
  font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.ilr-recent-item:hover .ilr-recent-title { color: var(--azul); }
.ilr-recent-date { font-size: 10px; color: var(--gray-lt); margin-top: 3px; display: flex; align-items: center; gap: 3px; }

/* ─────────────────────────────────────────────────────────────
   WIDGET: Publicidad Container
───────────────────────────────────────────────────────────── */
.ilr-ad-container { padding: 12px; text-align: center; }
.ilr-ad-container .ad-lbl {
  display: block; font-size: 9px; color: var(--gray-lt);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
  text-align: right;
}
.ilr-ad-container a { display: inline-block; transition: var(--trans); }
.ilr-ad-container a:hover { opacity: .92; transform: translateY(-1px); }
.ilr-ad-container img { border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Placeholder ad boxes */
.ad-box.ad-300 {
  background: var(--bg); border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--gray-lt); font-size: 13px;
  max-width: 300px; height: 250px; margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   WIDGETS NATIVOS DE WORDPRESS — Estilo Premium
   (widget_search, widget_recent_entries, widget_recent_comments)
───────────────────────────────────────────────────────────── */

/* ── Buscar ── */
.sidebar .widget_search {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.sidebar .widget_search .widget-hd,
.sidebar .widget_search > div:first-child {
  background: var(--azul); color: #fff;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
}
.sidebar .widget_search label { display: none; }
.sidebar .widget_search form,
.sidebar .widget_search .search-form {
  display: flex; padding: 14px; gap: 0;
}
.sidebar .widget_search input[type="search"],
.sidebar .widget_search .search-field {
  flex: 1; border: 1px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px; font-size: 13px;
  outline: none; background: var(--surface);
  transition: var(--trans);
}
.sidebar .widget_search input[type="search"]:focus,
.sidebar .widget_search .search-field:focus { border-color: var(--azul); }
.sidebar .widget_search input[type="submit"],
.sidebar .widget_search .search-submit {
  background: var(--azul); color: #fff;
  border: none; padding: 10px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: var(--trans);
}
.sidebar .widget_search input[type="submit"]:hover,
.sidebar .widget_search .search-submit:hover { background: var(--azul-dk); }

/* ── Entradas Recientes nativas ── */
.sidebar .widget_recent_entries {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.sidebar .widget_recent_entries .widget-hd,
.sidebar .widget_recent_entries > h2,
.sidebar .widget_recent_entries > div:first-child {
  background: var(--azul); color: #fff;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 10px 14px; margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.sidebar .widget_recent_entries ul { padding: 14px; margin: 0; list-style: none; }
.sidebar .widget_recent_entries li {
  padding: 12px 8px; margin: 0 -8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 600; line-height: 1.4;
  border-radius: var(--radius);
  transition: var(--trans);
}
.sidebar .widget_recent_entries li:last-child { border-bottom: none; }
.sidebar .widget_recent_entries li:hover { background: var(--bg); }
.sidebar .widget_recent_entries li a {
  color: var(--dark); display: block;
  transition: var(--trans);
}
.sidebar .widget_recent_entries li a:hover { color: var(--azul); }
.sidebar .widget_recent_entries .post-date {
  display: block; font-size: 10px; color: var(--gray-lt);
  font-weight: 400; margin-top: 4px;
}

/* ── Comentarios Recientes nativos ── */
.sidebar .widget_recent_comments {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.sidebar .widget_recent_comments .widget-hd,
.sidebar .widget_recent_comments > h2,
.sidebar .widget_recent_comments > div:first-child {
  background: var(--azul); color: #fff;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 10px 14px; margin: 0;
}
.sidebar .widget_recent_comments ul { padding: 14px; margin: 0; list-style: none; }
.sidebar .widget_recent_comments li {
  padding: 10px 8px; margin: 0 -8px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.5; color: var(--gray);
  border-radius: var(--radius);
  transition: var(--trans);
}
.sidebar .widget_recent_comments li:last-child { border-bottom: none; }
.sidebar .widget_recent_comments li:hover { background: var(--bg); }
.sidebar .widget_recent_comments li a { color: var(--azul); font-weight: 600; }

/* ── Cualquier widget nativo sin estilo ── */
.sidebar .widget:not(.widget-ilr-ad):not(.widget-ilr-recent-posts):not(.widget-ilr-footer-logo) {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}

/* ─────────────────────────────────────────────────────────────
   NEWSLETTER SECTION
───────────────────────────────────────────────────────────── */
.nl-section { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-dk) 100%); padding: 52px 0; text-align: center; }
.nl-section h2 { color: #fff; font-size: clamp(1.5rem,3vw,2.1rem); margin-bottom: 8px; }
.nl-section p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 24px; }
.nl-form { display: flex; max-width: 500px; margin-inline: auto; border-radius: 30px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.nl-form input { flex: 1; border: none; outline: none; padding: 14px 20px; font-size: 14px; }
.nl-form button { background: var(--accent); color: #fff; padding: 14px 24px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; transition: var(--trans); }
.nl-form button:hover { background: var(--accent-dk); }

/* ─────────────────────────────────────────────────────────────
   SINGLE POST
───────────────────────────────────────────────────────────── */
.single-badge { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; padding: 4px 12px; border-radius: 2px; background: #0A56A5 !important; margin-bottom: 14px; }
.single-title { font-family: var(--font-head); font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.single-lead { font-size: 1.1rem; color: var(--gray); line-height: 1.75; font-style: italic; border-left: 4px solid var(--azul); padding-left: 16px; margin-bottom: 16px; }
.single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12.5px; color: var(--gray); padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.single-author { display: flex; align-items: center; gap: 9px; }
.single-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--azul); }
.single-author strong { color: var(--dark); font-size: 13px; }
/* Single post featured image uses .card classes directly */

.post-body { font-size: 1.05rem; line-height: 1.88; color: #2c2c2c; }
.post-body h2 { font-size: 1.5rem; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--azul); }
.post-body h3 { font-size: 1.2rem; margin: 20px 0 8px; }
.post-body p { margin-bottom: 1.2rem; }
.post-body a { color: var(--azul); text-decoration: underline; }
.post-body blockquote { border-left: 4px solid var(--accent); margin: 24px 0; padding: 14px 18px; background: #fdf5f4; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; font-size: 1.05rem; color: var(--gray); }
.post-body ul { list-style: disc; padding-left: 22px; margin-bottom: 1.2rem; }
.post-body ol { list-style: decimal; padding-left: 22px; margin-bottom: 1.2rem; }
.post-body li { margin-bottom: 5px; }
.post-body img { border-radius: var(--radius); margin: 16px 0; }

.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--bg); border-radius: var(--radius); margin: 20px 0; }
.share-bar-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-lt); }
.share-btn { display: flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: var(--radius); font-size: 11.5px; font-weight: 700; color: #fff; transition: var(--trans); }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.sh-fb{background:#1877f2}.sh-tw{background:#1da1f2}.sh-wa{background:#25d366}.sh-tg{background:#0088cc}.sh-li{background:#0a66c2}

.author-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; margin: 24px 0; }
.author-box-ava img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--azul); }
.author-box-name { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.author-box-role { font-size: 11px; color: var(--azul); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.author-box-bio { font-size: 13.5px; color: var(--gray); line-height: 1.65; }

/* Reading progress */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--azul), var(--accent)); z-index: 99999; transition: width .1s linear; }

/* ─────────────────────────────────────────────────────────────
   ARCHIVE
───────────────────────────────────────────────────────────── */
.archive-hdr { background: var(--azul); color: #fff; padding: 26px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.archive-hdr-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; opacity: .7; }
.archive-hdr-title { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: #fff; margin-top: 4px; }
.archive-hdr-desc { font-size: 13px; opacity: .75; margin-top: 6px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 26px; }

.pagination { display: flex; justify-content: center; gap: 5px; padding: 20px 0; flex-wrap: wrap; }
.pagination .page-numbers { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 600; transition: var(--trans); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--azul); border-color: var(--azul); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   404
───────────────────────────────────────────────────────────── */
.e404 { text-align: center; padding: 80px 20px; }
.e404-num { font-family: var(--font-head); font-size: clamp(5rem,12vw,9rem); font-weight: 900; color: var(--azul); line-height: 1; margin-bottom: 14px; }
.e404 h2 { font-size: 1.8rem; margin-bottom: 10px; }
.e404 p { color: var(--gray); max-width: 400px; margin-inline: auto; margin-bottom: 20px; }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg, #303030); color: #ccc; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col {}
.footer-brand { font-family: var(--font-logo); font-size: 2.7rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.footer-brand .t { color: var(--accent); }
.footer-brand .l { color: var(--azul); }
.footer-tagline { font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-about { font-size: 12.5px; line-height: 1.75; color: #aaa; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 15px;
  transition: var(--trans);
  border: 1px solid rgba(255,255,255,.12);
}
.footer-socials a:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.footer-col-title { font-size: 11.5px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--azul); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #aaa; font-size: 12.5px; display: flex; align-items: center; gap: 5px; transition: var(--trans); }
.footer-links a:hover { color: #fff; padding-left: 3px; }
.footer-links a::before { content: '›'; color: var(--azul); font-size: 14px; }
.footer-recent-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-recent-item:last-child { border-bottom: none; }
.footer-recent-img { width: 56px; height: 42px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: #444; }
.footer-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-recent-title { font-size: 11.5px; color: #ccc; line-height: 1.4; }
.footer-recent-title a:hover { color: #fff; }
.footer-recent-date { font-size: 10px; color: #777; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 0; font-size: 12px; color: #999; }
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: var(--azul); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-logo-widget img { max-width: 200px; height: auto; display: block; margin-bottom: 12px; }
.footer-logo-widget .footer-brand { margin-bottom: 4px; }
.footer-logo-widget .footer-about { color: #aaa; }

/* Footer widgets: remove card styling inherited from .widget */
.site-footer .widget {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.site-footer .widget-hd {
  background: transparent;
  color: #fff;
  padding: 0 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 2px solid var(--azul);
  margin-bottom: 14px;
}
.site-footer .widget-bd { padding: 0; }
.site-footer .ilr-recent-item { border-bottom-color: rgba(255,255,255,.08); }
.site-footer .ilr-recent-item:hover { background: rgba(255,255,255,.04); }
.site-footer .ilr-recent-cat { color: var(--azul); }
.site-footer .ilr-recent-title { color: #ccc; }
.site-footer .ilr-recent-item:hover .ilr-recent-title { color: #fff; }
.site-footer .ilr-recent-date { color: #777; }
.site-footer .ilr-recent-thumb { background: #444; }

/* Misc UI */
.back-top { position: fixed; bottom: 22px; right: 20px; width: 42px; height: 42px; background: var(--azul); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: var(--trans); z-index: 998; }
.back-top.visible { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--azul-dk); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE ≤ 1024px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2,1fr); }
  .g4 { grid-template-columns: repeat(2,1fr); }
  .trend-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* Hero: 1 grande + 2 lado a lado */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .hero-main { grid-column: 1 / -1; grid-row: auto; }
  .hero-main-link > img {
    aspect-ratio: 16 / 9;
    height: auto;
    object-position: center 30%;
  }
  .hero-caption { bottom: 34px; }
  .hero-sub .hero-caption { bottom: 24px; }
  .hero-sub { min-height: 200px; }
  .hero-sub-link > img { min-height: 200px; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE ≤ 768px
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Logo: llena casi todo el ancho en mobile */
  .header-logo-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
  }
  .logo-wrap {
    max-width: 100%;
    max-height: none;
    width: 100%;
    overflow: visible;
  }
  .logo-link {
    display: block;
    width: 100%;
  }
  .site-logo-img {
    max-height: none;
    width: 95%;
    max-width: 100%;
    margin: 0 auto;
  }
  .header-ad { display: none; }

  /* Hero mobile: 1 grande cuadrada + 2 pequeñas lado a lado */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 3px;
  }
  .hero-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .hero-main-link {
    display: block;
    width: 100%;
    height: auto;
  }
  .hero-main-link > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
  }
  .hero-sub {
    min-height: 130px;
    max-height: 160px;
  }
  .hero-sub-link > img {
    min-height: 130px;
    object-position: center 20%;
  }
  .hero-sub .hero-caption { bottom: 20px; padding: 0 8px; }
  .hero-sub .hero-sub-title { font-size: .68rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-sub .hero-meta { font-size: 8px; }
  .hero-sub .hero-caption .cat-badge { font-size: 7px; padding: 2px 5px; }
  .hero-footer { padding: 4px 10px; }
  .hero-footer-link { font-size: 8px; }
  .hero-footer-logo { height: 14px; }
  .hero-footer-sm { padding: 3px 6px; font-size: 6.5px; }
  .hero-footer-sm .hero-footer-logo { height: 10px; }

  /* Cards: limit image height on single-column mobile */
  .card.card-featured { aspect-ratio: 16/10; }
  .card.card-featured .card-title { font-size: 1rem; }
  .g2-cards .card { aspect-ratio: 3/4; }
  .g2-cards .card .card-title { font-size: .72rem; -webkit-line-clamp: 3; }
  .g2-cards .card .card-meta { font-size: 8px; gap: 4px; }
  .g2-cards .card .card-footer { padding: 3px 6px; }
  .g2-cards .card .card-footer-link { font-size: 6.5px; }
  .g2-cards .card .card-footer-logo { height: 12px; max-height: 12px; }

  .logo-informa,.logo-loreal { font-size: clamp(3.8rem,20vw,6.2rem); letter-spacing: -2px; }
  .site-slogan { font-size: .85rem; letter-spacing: 2.5px; clip-path: none; border-radius: var(--radius); }
  .header-util { display: none; }
  .nav-toggle { display: flex; }
  #site-nav {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--azul); z-index: 9998;
    border-top: 2px solid var(--accent); box-shadow: var(--shadow-lg);
    max-height: 70vh; overflow-y: auto;
  }
  #site-nav.open { display: flex; }
  #site-nav li a { padding: 13px 18px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 0; border-right: none; }
  #site-nav li .sub-menu { position: static; display: none !important; }
  .nav-search { display: none; }
  .nav-subscribe { padding: 6px 12px !important; font-size: 10px !important; }
  .ad-strip { display: none; }
  .g3,.g4 { grid-template-columns: repeat(2,1fr); }
  .g2 { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
  .trend-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 22px; padding: 28px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sidebar { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .share-btn span { display: none; }
  .nl-form { flex-direction: column; border-radius: var(--radius); }
  .nl-form input,.nl-form button { border-radius: var(--radius); }
}

@media (max-width: 480px) {
  .container { padding-inline: 10px; }
  .trend-grid { grid-template-columns: 1fr; }
  .hero-sub { min-height: 110px; max-height: 140px; }
  .hero-sub-link > img { min-height: 110px; }
  .hero-caption { bottom: 26px; padding: 0 8px; }
  .hero-sub .hero-caption { bottom: 16px; padding: 0 5px; }
  .hero-sub .hero-sub-title { font-size: .62rem; -webkit-line-clamp: 2; }
  .hero-sub .hero-meta { display: none; }
  .hero-main-title { font-size: 1rem; }
  .hero-footer-sm { padding: 2px 4px; font-size: 6px; }
  .hero-footer-sm .hero-footer-logo { height: 8px; }
  .card .card-title { font-size: .75rem; }
  .card .card-footer { padding: 3px 6px; }
  .card .card-footer-link { font-size: 6.5px; }
  .card .card-footer-logo { height: 12px; max-height: 12px; }
}

@media print {
  .site-header,.site-footer,.sidebar,.nav-bar,.breaking-bar,.share-bar,.ad-box,.ad-728,.ad-strip,.trending-section,.nl-section,.back-top { display: none !important; }
  .page-grid { grid-template-columns: 1fr; }
}



/* ═══════════════════════════════════════════════════════════
   ★ NAV LOGO COMPACTO — aparece al hacer scroll
   Usa los mismos colores del logo: azul + negro
═══════════════════════════════════════════════════════════ */

/* Contenedor del logo dentro del nav */
.nav-logo-compact {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;

  /* Oculto por defecto */
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-width .35s ease, opacity .35s ease, margin .35s ease;
  margin-right: 0;
}

/* Imagen del logo compacto */
.nav-logo-compact img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* El logo tiene fondo transparente → se ve sobre el nav azul */
  /* Aplicar filtro para que el logo sea visible sobre fondo azul */
  filter: brightness(1.15) contrast(1.05);
}

/* ── Cuando la página scrollea → clase .scrolled en #nav-bar ── */
.nav-bar.scrolled .nav-logo-compact {
  max-width: 200px;
  opacity: 1;
  pointer-events: auto;
  margin-right: 12px;
}

/* En mobile: ocultar logo compacto, el grande ya está en el header */
@media (max-width: 768px) {

  /* ── Logo compacto oculto en mobile ── */
  .nav-logo-compact {
    display: none !important;
  }

  /* Dar espacio: oculta búsqueda en nav */
  .nav-bar .nav-right .nav-search,
  .nav-bar.scrolled .nav-right .nav-search {
    display: none;
  }
}

/* Dark mode adapta el topbar */
.dark-mode .site-header    { background: #1a1a1a; border-bottom-color: #333; }
.dark-mode .header-topbar  { background: #151515; border-bottom-color: #2a2a2a; }
.dark-mode .header-date    { color: #666; }
.dark-mode .header-social a { background: rgba(255,255,255,.07); color: #666; }

/* Dark mode widgets */
.dark-mode .widget { background: var(--surface); }
.dark-mode .sidebar .widget_search input[type="search"],
.dark-mode .sidebar .widget_search .search-field {
  background: var(--surface); color: var(--dark); border-color: var(--border);
}
.dark-mode .sidebar .widget_recent_entries li a,
.dark-mode .ilr-recent-title { color: var(--dark); }

/* ═══════════════════════════════════════════════════════════
   ★ ANIMATED NAV UNDERLINE
═══════════════════════════════════════════════════════════ */
#site-nav li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 50%; right: 50%;
  height: 3px;
  background: #fff;
  transition: left .3s ease, right .3s ease;
}
#site-nav li a:hover::after,
#site-nav li.current-menu-item > a::after { left: 0; right: 0; }
@media (max-width: 768px) {
  #site-nav li a::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ★ FIX: Card/Hero footer logo with white background
═══════════════════════════════════════════════════════════ */
.card .card-footer-logo,
.card-h .card-h-footer-logo,
.hero-footer-logo {
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  object-fit: contain;
  max-height: 22px;
  height: 22px;
  width: auto;
}
.card.card-featured .card-footer-logo {
  max-height: 24px;
  height: 24px;
}
.hero-footer-logo {
  max-height: 28px;
  height: 28px;
}
.hero-footer-sm .hero-footer-logo {
  max-height: 18px;
  height: 18px;
}
.card-h .card-h-footer-logo {
  max-height: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   ★ FIX: ALL category badges — SINGLE DARK BLUE COLOR
   Overrides any class-based or variable-based colors
═══════════════════════════════════════════════════════════ */
.cat-badge,
.cat-badge.cat-politica,
.cat-badge.cat-economia,
.cat-badge.cat-tecnologia,
.cat-badge.cat-internacional,
.cat-badge.cat-deportes,
.cat-badge.cat-cultura,
.cat-badge.cat-opinion,
.cat-badge.cat-noticias,
.cat-badge.cat-videos,
.cat-badge.cat-podcasts,
.cat-badge[class*="cat-"],
.card-h .card-h-cat,
.single-badge,
.single-badge[class*="cat-"] {
  background: #0A56A5 !important;
  color: #fff !important;
}

