/*
Theme Name: La Trompeta Final
Theme URI: https://latrompeta.org
Author: La Trompeta
Description: Tema editorial final para La Trompeta — Portavoz de la Iglesia de Dios. Fusiona la cabecera con imagen de fondo, lector (A-/A+/Papel cálido) y botón de Panel de Editores de La Trompeta v2, la estructura de menú multinivel, off-canvas móvil y búsqueda instantánea de Evermag, y un cuerpo editorial inspirado en Christianity Today News.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latrompeta
Tags: news, magazine, editorial, custom-logo, custom-header, featured-images, translation-ready
*/

:root {
  --lt-blue: #0060A0;
  --lt-orange: #E86A2C;
  --lt-gold: #F0C43D;
  --lt-ink: #1A1A1A;
  --lt-muted: #595959;
  --lt-border: #E2DFD9;
  --lt-bg: #FFFFFF;
  --lt-paper: #FAF8F4;
  --lt-serif: "Times New Roman", Times, Georgia, serif;
  --lt-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lt-reading-size: 19px;
  --lt-overlay: 0.78;
  --dir: 1;
}

body.lt-warm-paper {
  --lt-bg: #FAF6EE;
  --lt-paper: #F2ECE0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--lt-serif);
  font-size: var(--lt-reading-size);
  line-height: 1.7;
  color: var(--lt-ink);
  background: var(--lt-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lt-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  background: #141414;
  color: #FFFFFF;
  padding: 8px 14px;
  z-index: 9999;
  font-family: var(--lt-sans);
  font-size: 13px;
}

/* ==========================================================================
   1. BARRA SUPERIOR UTILITARIA (Lector + Panel de Editores)
   ========================================================================== */
.lt-topbar {
  background: #141414;
  color: #F2F2F2;
  font-family: var(--lt-sans);
  font-size: 12px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #2A2A2A;
}

.lt-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.lt-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CCCCCC;
  flex-wrap: wrap;
}

.lt-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lt-read-btn {
  background: transparent;
  border: 1px solid #444;
  color: #E5E5E5;
  padding: 4px 9px;
  font-family: var(--lt-sans);
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.lt-read-btn:hover,
.lt-read-btn.active {
  background: #2C2C2C;
  border-color: var(--lt-gold);
  color: #FFFFFF;
}

.lt-editor-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lt-blue);
  color: #FFFFFF;
  border: none;
  padding: 6px 13px;
  border-radius: 3px;
  font-family: var(--lt-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.lt-editor-btn:hover {
  background: #004B80;
  color: #FFFFFF;
  text-decoration: none;
}

.lt-editor-btn.is-logged {
  background: var(--lt-orange);
}

.lt-editor-btn.is-logged:hover {
  background: #C9551D;
}

/* ==========================================================================
   2. CABECERA CON IMAGEN DE FONDO + ESTRUCTURA DE 3 ZONAS (Evermag + La Trompeta)
   ========================================================================== */
.site-header {
  position: relative;
}

.lt-masthead {
  position: relative;
  overflow: hidden;
  background-color: var(--lt-paper);
  border-bottom: 1px solid var(--lt-border);
}

.lt-masthead-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.lt-masthead-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, var(--lt-overlay));
  z-index: 1;
}

.lt-masthead.is-dark-header {
  color: #FFFFFF;
  background-color: #16222E;
}

.lt-masthead.is-dark-header .lt-masthead-overlay {
  background: rgba(15, 22, 30, var(--lt-overlay));
}

.lt-masthead.is-dark-header .lt-site-title,
.lt-masthead.is-dark-header .lt-site-tagline,
.lt-masthead.is-dark-header .header-icon,
.lt-masthead.is-dark-header .social-nav a {
  color: #FFFFFF;
}

.lt-masthead.is-dark-header .lt-site-tagline {
  color: rgba(255, 255, 255, 0.85);
}

.lt-masthead-content {
  position: relative;
  z-index: 2;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.header-main__left {
  justify-self: start;
  display: flex;
  align-items: center;
}

.header-main__branding {
  justify-self: center;
  min-width: 0;
  text-align: center;
}

.header-main__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lt-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lt-branding .custom-logo-link img {
  max-height: 82px;
  width: auto;
  margin: 0 auto;
}

.lt-site-title {
  font-family: var(--lt-serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--lt-ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
  display: inline-block;
}

.lt-site-title:hover {
  color: var(--lt-blue);
  text-decoration: none;
}

.lt-site-tagline {
  font-family: var(--lt-sans);
  font-size: 13px;
  color: var(--lt-muted);
  margin: 4px 0 0;
}

/* Iconos sociales y botones de cabecera (Evermag) */
.social-nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lt-ink);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

.social-nav a:hover,
.social-nav a:focus {
  opacity: 1;
  color: var(--lt-blue);
}

.social-nav a svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lt-ink);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}

.header-icon:hover {
  background: rgba(0, 0, 0, 0.06);
}

.header-hamburger {
  display: none;
}

/* Buscador desplegable con autocompletado (Evermag) */
.header-search {
  position: relative;
  display: inline-flex;
}

.header-search__toggle .header-search__close-icon {
  display: none;
}

.header-search.is-open .header-search__toggle .header-search__icon {
  display: none;
}

.header-search.is-open .header-search__toggle .header-search__close-icon {
  display: inline-block;
}

.header-search__panel {
  position: absolute;
  z-index: 200;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  width: 320px;
  max-width: calc(100vw - 2rem);
  padding: 12px 14px;
  background: var(--lt-bg);
  color: var(--lt-ink);
  border: 1px solid var(--lt-border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
  border-radius: 4px;
}

.header-search__panel[hidden] {
  display: none;
}

.lt-search-form {
  display: block;
  width: 100%;
}

.lt-search-form__field {
  position: relative;
  width: 100%;
}

.lt-search-form .search-field {
  width: 100%;
  padding: 9px 40px 9px 12px;
  border: 1px solid var(--lt-border);
  border-radius: 3px;
  font-family: var(--lt-sans);
  font-size: 14px;
  background: var(--lt-bg);
  color: var(--lt-ink);
}

.lt-search-form .search-field:focus {
  outline: 2px solid var(--lt-blue);
  outline-offset: -1px;
}

button.lt-search-form__submit {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lt-ink);
  cursor: pointer;
  opacity: 0.65;
}

button.lt-search-form__submit:hover {
  opacity: 1;
}

.lt-search-suggest {
  position: absolute;
  z-index: 20;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--lt-bg);
  border: 1px solid var(--lt-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  max-height: 60vh;
  overflow-y: auto;
  font-family: var(--lt-sans);
  font-size: 13.5px;
}

.lt-search-suggest li {
  margin: 0;
}

.lt-search-suggest a {
  display: block;
  padding: 8px 12px;
  color: var(--lt-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-search-suggest li.is-active a,
.lt-search-suggest a:hover,
.lt-search-suggest a:focus {
  background: var(--lt-paper);
  color: var(--lt-blue);
  text-decoration: none;
}

.lt-search-suggest[hidden] {
  display: none;
}

/* ==========================================================================
   3. MENÚ DE NAVEGACIÓN ESTILO EVERMAG (Centrado, multinivel, sticky)
   ========================================================================== */
.navbar {
  background: var(--lt-bg);
  border-top: 1px solid var(--lt-border);
  border-bottom: 2px solid var(--lt-ink);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .primary-nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--lt-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-header .primary-nav .menu > li {
  display: block;
  position: relative;
}

.site-header .primary-nav .menu a {
  display: block;
  color: var(--lt-ink);
  text-decoration: none;
  padding: 13px 0;
  line-height: 20px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.site-header .primary-nav .menu > li.current-menu-item > a,
.site-header .primary-nav .menu > li.current-menu-ancestor > a,
.site-header .primary-nav .menu > li.current-cat > a,
.site-header .primary-nav .menu > li:hover > a {
  color: var(--lt-blue);
  border-bottom-color: var(--lt-blue);
  text-decoration: none;
}

.site-header .primary-nav .menu > .menu-item-has-children > a::after {
  content: "▾";
  margin-inline-start: 4px;
  font-size: 0.95em;
  opacity: 0.55;
}

.site-header .primary-nav .menu ul {
  display: none;
  position: absolute;
  z-index: 999;
  top: 100%;
  inset-inline-start: 0;
  min-width: 210px;
  background: var(--lt-bg);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--lt-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.site-header .primary-nav .menu ul > li {
  position: relative;
}

.site-header .primary-nav .menu ul > li + li > a {
  border-top: 1px solid var(--lt-border);
}

.site-header .primary-nav .menu ul ul {
  inset-inline-start: 100%;
  top: -1px;
}

.site-header .primary-nav .menu ul a {
  display: block;
  padding: 8px 16px;
  line-height: 1.4;
  border-bottom: none;
}

.site-header .primary-nav .menu ul > li.current-menu-item > a,
.site-header .primary-nav .menu ul > li:hover > a {
  background: var(--lt-paper);
  color: var(--lt-blue);
  border-bottom: none;
}

.site-header .primary-nav .menu li:hover > ul,
.site-header .primary-nav .menu li:focus-within > ul {
  display: block;
}

/* Menú Off-canvas móvil (Evermag) */
.header-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility 0s linear 0.25s;
}

.header-offcanvas.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.header-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.header-offcanvas__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(84vw, 330px);
  padding: 18px 22px;
  overflow-y: auto;
  background: var(--lt-bg);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.header-offcanvas.is-open .header-offcanvas__backdrop {
  opacity: 1;
}

.header-offcanvas.is-open .header-offcanvas__panel {
  transform: none;
}

.header-offcanvas__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lt-border);
}

.header-offcanvas__label {
  font-family: var(--lt-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lt-muted);
}

.header-offcanvas__search {
  margin-bottom: 16px;
}

.offcanvas-nav .menu,
.offcanvas-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--lt-sans);
  font-size: 15px;
  font-weight: 600;
}

.offcanvas-nav a {
  display: block;
  padding: 11px 0;
  text-decoration: none;
  color: var(--lt-ink);
}

.offcanvas-nav a:hover {
  color: var(--lt-blue);
}

.offcanvas-nav > .menu > li + li {
  border-top: 1px solid var(--lt-border);
}

.offcanvas-nav .sub-menu {
  padding-inline-start: 16px;
  font-size: 14px;
  font-weight: 500;
}

.has-offcanvas-open {
  overflow: hidden;
}

/* ==========================================================================
   4. CUERPO EDITORIAL ESTILO CHRISTIANITY TODAY NEWS
   ========================================================================== */
.lt-kicker {
  font-family: var(--lt-sans);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lt-orange);
  margin-bottom: 6px;
  display: inline-block;
}

.lt-kicker a {
  color: inherit;
}

.lt-kicker a:hover {
  color: var(--lt-blue);
  text-decoration: none;
}

.lt-meta {
  font-family: var(--lt-sans);
  font-size: 12.5px;
  color: var(--lt-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.lt-meta a {
  color: var(--lt-muted);
}

.lt-meta a:hover {
  color: var(--lt-blue);
}

.lt-section-label {
  font-family: var(--lt-sans);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lt-ink);
  border-bottom: 2px solid var(--lt-ink);
  padding-bottom: 8px;
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lt-section-more {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--lt-blue);
  letter-spacing: 0.04em;
}

/* 4.1 Hero + Sub-destacados + Sidebar Últimas Noticias */
.ct-hero-section {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--lt-border);
}

.lt-hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
  align-items: start;
}

.ct-lead-story {
  padding-bottom: 26px;
}

.lt-hero-thumb {
  margin-bottom: 16px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--lt-paper);
}

.lt-hero-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ct-lead-story:hover .lt-hero-thumb img {
  transform: scale(1.015);
}

.lt-hero-title {
  font-family: var(--lt-serif);
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.14;
  margin: 0 0 12px;
  font-weight: 700;
}

.lt-hero-title a {
  color: var(--lt-ink);
}

.lt-hero-title a:hover {
  color: var(--lt-blue);
  text-decoration: none;
}

.lt-hero-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: #333333;
  margin: 0 0 12px;
}

/* Dos noticias secundarias debajo del Hero principal (estilo CT News) */
.ct-subfeatured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--lt-border);
}

.ct-subfeatured-card .lt-card-img {
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
}

.ct-subfeatured-card h3 {
  font-family: var(--lt-serif);
  font-size: 20px;
  line-height: 1.24;
  margin: 4px 0 8px;
}

.ct-subfeatured-card h3 a {
  color: var(--lt-ink);
}

.ct-subfeatured-card:hover h3 a {
  color: var(--lt-blue);
  text-decoration: none;
}

/* Sidebar Últimas Noticias */
.lt-latest-sidebar {
  border-left: 1px solid var(--lt-border);
  padding-left: 28px;
}

.lt-latest-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--lt-border);
}

.lt-latest-item:first-of-type {
  padding-top: 0;
}

.lt-latest-item:last-child {
  border-bottom: none;
}

.lt-latest-item h3 {
  font-family: var(--lt-serif);
  font-size: 17.5px;
  line-height: 1.28;
  margin: 3px 0 6px;
}

.lt-latest-item h3 a {
  color: var(--lt-ink);
}

.lt-latest-item:hover h3 a {
  color: var(--lt-blue);
  text-decoration: none;
}

/* 4.2 Feed de Noticias Horizontal (estilo Christianity Today News) */
.ct-feed-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--lt-border);
}

.ct-feed-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}

.ct-feed-layout.is-full {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.ct-feed-item {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--lt-border);
  align-items: start;
}

.ct-feed-item:first-child {
  padding-top: 0;
}

.ct-feed-item:last-child {
  border-bottom: none;
}

.ct-feed-item.no-thumb {
  grid-template-columns: 1fr;
}

.ct-feed-item h3 {
  font-family: var(--lt-serif);
  font-size: 23px;
  line-height: 1.22;
  margin: 4px 0 9px;
}

.ct-feed-item h3 a {
  color: var(--lt-ink);
}

.ct-feed-item:hover h3 a {
  color: var(--lt-blue);
  text-decoration: none;
}

.ct-feed-excerpt {
  font-size: 16px;
  line-height: 1.55;
  color: #3A3A3A;
  margin: 0 0 10px;
}

.ct-feed-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--lt-paper);
}

.ct-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar secundario / Widgets */
.ct-sidebar .widget {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--lt-border);
  font-family: var(--lt-sans);
  font-size: 14px;
}

.ct-sidebar .widget:last-child {
  border-bottom: none;
}

.ct-sidebar .widget-title {
  font-family: var(--lt-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 2px solid var(--lt-ink);
  padding-bottom: 7px;
  margin: 0 0 14px;
}

.ct-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-sidebar li {
  padding: 7px 0;
  border-bottom: 1px solid var(--lt-border);
}

.ct-sidebar li:last-child {
  border-bottom: none;
}

/* 4.3 Grilla Editorial de 3 Columnas */
.lt-articles-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--lt-border);
}

.lt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lt-card {
  display: flex;
  flex-direction: column;
}

.lt-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  background: var(--lt-paper);
  margin-bottom: 12px;
}

.lt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lt-card h3 {
  font-family: var(--lt-serif);
  font-size: 20.5px;
  line-height: 1.25;
  margin: 5px 0 9px;
}

.lt-card h3 a {
  color: var(--lt-ink);
}

.lt-card:hover h3 a {
  color: var(--lt-blue);
  text-decoration: none;
}

.lt-card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: #3A3A3A;
  margin: 0 0 10px;
}

/* 4.4 Acerca de La Trompeta */
.lt-about-section {
  background: #F6F5F1;
  padding: 52px 0 60px;
  border-top: 2px solid var(--lt-ink);
}

.lt-about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--lt-border);
  padding-bottom: 14px;
  margin-bottom: 28px;
  font-family: var(--lt-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lt-about-domain {
  color: var(--lt-blue);
}

.lt-about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 44px;
  align-items: start;
}

.lt-about-title {
  font-family: var(--lt-serif);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
  margin: 0 0 18px;
}

.lt-about-text {
  font-family: var(--lt-sans);
  font-size: 15.5px;
  line-height: 1.72;
  color: #2B2B2B;
  margin: 0;
}

.lt-timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lt-year-card {
  background: #FFFFFF;
  padding: 20px 18px;
  border: 1px solid #E6E4DE;
  border-top-width: 3px;
}

.lt-year-card.y-1879 { border-top-color: var(--lt-blue); }
.lt-year-card.y-1948 { border-top-color: var(--lt-orange); }
.lt-year-card.y-2023 { border-top-color: var(--lt-gold); }
.lt-year-card.y-hoy  { border-top-color: #111111; }

.lt-year-card h3 {
  font-family: var(--lt-serif);
  font-size: 26px;
  margin: 0 0 8px;
}

.lt-year-card p {
  font-family: var(--lt-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: #4A4A4A;
  margin: 0;
}

/* ==========================================================================
   5. VISTA LECTURA DE ARTÍCULO (single.php & page.php)
   ========================================================================== */
.lt-article-view {
  max-width: 740px;
  margin: 36px auto 64px;
  padding: 0 24px;
}

.lt-back-btn {
  font-family: var(--lt-sans);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 1px solid var(--lt-border);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
  color: var(--lt-ink);
  text-decoration: none;
  display: inline-block;
}

.lt-back-btn:hover {
  text-decoration: none;
  background: var(--lt-paper);
}

.lt-single-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lt-border);
  font-family: var(--lt-sans);
  font-size: 13.5px;
  color: var(--lt-muted);
}

.lt-single-byline__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lt-ink);
  font-weight: 600;
}

.lt-single-byline__avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  object-fit: cover;
}

.lt-article-body p {
  margin: 0 0 1.35em;
  line-height: 1.78;
}

.lt-article-body h2,
.lt-article-body h3 {
  font-family: var(--lt-serif);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.lt-article-body blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.2em;
  border-left: 3px solid var(--lt-orange);
  color: #333333;
  font-style: italic;
}

.lt-article-body img {
  border-radius: 3px;
  margin: 1.2em 0;
}

/* Tags & Author Box */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--lt-border);
  font-family: var(--lt-sans);
  font-size: 12.5px;
}

.entry-tags__label {
  font-weight: 700;
  color: var(--lt-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-tag {
  padding: 4px 10px;
  background: var(--lt-paper);
  border: 1px solid var(--lt-border);
  border-radius: 3px;
  color: var(--lt-ink);
}

.entry-tag:hover {
  border-color: var(--lt-blue);
  color: var(--lt-blue);
  text-decoration: none;
}

.lt-authorbox {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 32px;
  padding: 20px;
  background: var(--lt-paper);
  border: 1px solid var(--lt-border);
  border-radius: 4px;
}

.lt-authorbox__avatar {
  border-radius: 50%;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  object-fit: cover;
}

.lt-authorbox__name {
  font-family: var(--lt-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--lt-ink);
  display: inline-block;
  margin-bottom: 6px;
}

.lt-authorbox__bio {
  font-family: var(--lt-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--lt-muted);
  margin: 0;
}

.lt-related-section {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 36px 24px 0;
  border-top: 1px solid var(--lt-border);
}

/* Paginación */
.navigation.pagination {
  margin-top: 32px;
  font-family: var(--lt-sans);
  font-size: 14px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navigation.pagination .page-numbers {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--lt-border);
  border-radius: 3px;
  color: var(--lt-ink);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--lt-blue);
  border-color: var(--lt-blue);
  color: #FFFFFF;
  text-decoration: none;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.lt-footer {
  background: #141414;
  color: #CCCCCC;
  padding: 40px 0 32px;
  font-family: var(--lt-sans);
  font-size: 13px;
}

.lt-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.lt-footer a {
  color: var(--lt-gold);
}

.lt-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1.2em; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--lt-sans);
  font-size: 12.5px;
  color: var(--lt-muted);
  text-align: center;
  margin-top: 6px;
}

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .lt-hero-grid,
  .lt-about-grid,
  .ct-feed-layout {
    grid-template-columns: 1fr;
  }

  .lt-latest-sidebar {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--lt-border);
    padding-top: 24px;
  }

  .lt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .lt-masthead-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr);
    gap: 10px;
    padding: 16px 0;
  }

  .header-main__left .social-nav,
  .header-main__actions .header-search,
  .navbar {
    display: none;
  }

  .header-hamburger {
    display: inline-flex;
  }

  .ct-feed-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ct-feed-thumb {
    order: -1;
  }
}

@media (max-width: 640px) {
  .ct-subfeatured-grid,
  .lt-cards-grid,
  .lt-timeline-grid {
    grid-template-columns: 1fr;
  }

  .lt-topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .lt-authorbox {
    flex-direction: column;
  }
}


/* ==========================================================================
   8. CORRECCIONES DE FLUJO, ADMIN BAR Y PREVENCIÓN DE SUPERPOSICIÓN
   ========================================================================== */
.lt-hero-thumb,
.lt-card-img,
.ct-feed-thumb {
  display: block;
  width: 100%;
  position: relative;
}

.lt-article-body,
.ct-feed-body,
.lt-main,
.lt-about-section,
.lt-footer {
  display: flow-root;
}

.lt-article-body::after,
.lt-footer-grid::after {
  content: "";
  display: table;
  clear: both;
}

.lt-about-grid > div,
.lt-footer-grid > div,
.ct-feed-body,
.lt-card,
.lt-latest-item {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.lt-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 767.98px) {
  .lt-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

body.admin-bar .navbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}
