/*
Theme Name: En Línea
Theme URI: https://enlineadiario.net
Author: En Línea Media
Description: Tema editorial v12 — diseño "Guardian/NYT" con tipografía Playfair Display + Source Sans 3, categorías reales y layout de portada con nota principal, tarjetas y secciones.
Version: 5.0.0
License: GNU General Public License v2 or later
Text Domain: enlinea
Tags: news, magazine, editorial, minimal
*/

/* ─── IMPORTS ─────────────────────────────────────────────────────────────── */
/* Las fuentes de Google se encolan por separado en functions.php (con
   preconnect), no con @import acá — @import bloquea el render porque el
   navegador tiene que descargar y parsear todo este CSS antes de empezar
   siquiera a pedir la fuente. */

/* ─── VARIABLES ───────────────────────────────────────────────────────────── */
:root {
  --ink:      #1a1a1a;
  --paper:    #faf9f7;
  --breaking: #c8102e;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ─── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ─── ANIMACIONES ─────────────────────────────────────────────────────────── */
@keyframes fadeIn   { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: translateY(0) } }
@keyframes tickerScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.anim-fade { animation: fadeIn .5s ease-out both; }
.anim-fade-up { animation: fadeInUp .5s ease-out both; }

/* ─── TOPBAR ──────────────────────────────────────────────────────────────── */
.site-topbar { border-bottom: 1px solid var(--gray-200); }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 40px;
}
.topbar-date {
  font-size: 12px; color: var(--gray-500); text-transform: capitalize; letter-spacing: .01em;
}
.topbar-edicion {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink); border: 1px solid var(--gray-300); padding: 4px 10px; border-radius: 2px;
  transition: background .15s, color .15s;
}
.topbar-edicion:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── MASTHEAD ────────────────────────────────────────────────────────────── */
.site-masthead { border-bottom: 1px solid rgba(209,213,219,.6); }
.masthead-inner {
  max-width: 1280px; margin: 0 auto; padding: 24px 16px;
  text-align: center; position: relative;
}
.site-logo {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 900 !important;
  font-size: clamp(40px, 6vw, 64px) !important;
  letter-spacing: -.02em !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  display: inline-block;
}
.site-logo:hover { opacity: .85; }
.site-logo-sub {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gray-400); margin-top: 8px;
}
.masthead-menu-btn, .masthead-search-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-500); padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.masthead-menu-btn:hover, .masthead-search-btn:hover { color: var(--ink); }
.masthead-menu-btn { left: 16px; display: flex; }
.masthead-search-btn { right: 16px; }
@media (min-width: 768px) { .masthead-menu-btn { display: none; } }

/* Búsqueda desplegable */
.masthead-search { border-top: 1px solid var(--gray-200); display: none; }
.masthead-search.is-open { display: block; }
.masthead-search-inner {
  max-width: 576px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
}
.masthead-search-inner input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 14px; color: var(--ink); font-family: inherit;
}
.masthead-search-inner input::placeholder { color: var(--gray-400); }
.masthead-search-inner svg { flex-shrink: 0; color: var(--gray-400); }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.site-nav {
  border-top: 1px solid rgba(209,213,219,.6);
  border-bottom: 1px solid rgba(209,213,219,.6);
  display: none;
}
@media (min-width: 768px) { .site-nav { display: block; } }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.nav-list {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  height: 44px; overflow-x: auto; scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex-shrink: 0; }
.nav-list a {
  position: relative; display: block; font-size: 14px; font-weight: 600;
  color: var(--ink); padding: 12px 0; white-space: nowrap;
}
.nav-list a:hover { color: var(--gray-500); }
.nav-underline {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  transform: scaleX(0); transition: transform .3s;
}
.nav-list a:hover .nav-underline,
.nav-list a.is-current .nav-underline { transform: scaleX(1); }

/* Nav móvil */
.mobile-nav { display: none; border-top: 1px solid var(--gray-200); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 8px 16px; }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav-dot { width: 4px; height: 20px; border-radius: 999px; flex-shrink: 0; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }

/* ─── BREAKING BAR ────────────────────────────────────────────────────────── */
.breaking-bar { background: var(--breaking); color: #fff; overflow: hidden; }
.breaking-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: stretch; }
.breaking-label {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--breaking); flex-shrink: 0; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
}
.breaking-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
.breaking-scroll { overflow: hidden; flex: 1; position: relative; }
.breaking-track { display: flex; white-space: nowrap; animation: tickerScroll 42s linear infinite; }
.breaking-track:hover { animation-play-state: paused; }
.breaking-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 20px;
  font-size: 12.5px; color: rgba(255,255,255,.92); border-right: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}
.breaking-item strong { font-weight: 700; }
.breaking-item .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5); }

/* ─── CONTENEDOR PRINCIPAL ────────────────────────────────────────────────── */
.site-main { max-width: 1280px; margin: 0 auto; padding: 32px 16px 48px; }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 2fr 1fr; gap: 48px; } }
.hero-lead { min-width: 0; }
@media (min-width: 1024px) { .hero-lead { border-right: 1px solid var(--gray-200); padding-right: 48px; } }
.hero-lead-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 2px; margin-bottom: 24px; }
.hero-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; margin-bottom: 12px; padding-bottom: 3px; border-bottom: 2px solid currentColor;
}
.hero-lead-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1; color: var(--ink); margin: 0 0 16px;
}
.hero-lead-deck { font-size: 18px; color: var(--gray-600); line-height: 1.65; font-weight: 300; margin: 0 0 16px; }
.hero-byline { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--gray-500); }
.hero-byline span:not(:last-child)::after { content: '·'; margin-left: 10px; }

.hero-secondary { display: flex; flex-direction: column; gap: 24px; }
.hero-sec-item { padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.hero-sec-item:last-child { border: none; padding-bottom: 0; }
.hero-sec-img { width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: 2px; margin-bottom: 14px; }
.hero-sec-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-sec-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.hero-sec-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ink); margin: 0 0 8px; }
.hero-sec-meta { font-size: 12px; color: var(--gray-500); }

/* Lo más leído */
.most-read { background: var(--gray-50); border-radius: 2px; padding: 20px; }
.most-read-title {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
  color: var(--ink); margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.most-read-title .bar { width: 4px; height: 20px; background: var(--breaking); border-radius: 2px; }
.most-read-list { display: flex; flex-direction: column; gap: 12px; }
.most-read-list a { display: flex; gap: 12px; align-items: baseline; }
.most-read-num { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; color: var(--gray-300); line-height: 1; flex-shrink: 0; }
.most-read-list a:hover .most-read-num { color: var(--breaking); }
.most-read-text { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* ─── SECCIONES DE PORTADA ────────────────────────────────────────────────── */
.headlines-section { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: rgba(255,255,255,.5); padding: 28px 0; margin-bottom: 8px; }
.headlines-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-head .dot { width: 6px; height: 26px; border-radius: 3px; flex-shrink: 0; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin: 0; white-space: nowrap; }
.section-head .rule { flex: 1; height: 1px; background: var(--gray-200); }
.section-head .see-all { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); white-space: nowrap; }
.section-head .see-all:hover { color: var(--ink); }

.section-block { max-width: 1280px; margin: 0 auto; padding: 40px 16px; border-top: 1px solid var(--gray-200); }

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: 2px; margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.card-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ink); margin: 0 0 8px; }
.card:hover .card-title { color: var(--gray-600); }
.card-deck { font-size: 13px; color: var(--gray-600); line-height: 1.55; margin: 0 0 8px; }
.card-meta { font-size: 11px; color: var(--gray-500); }

/* Texto sin imagen (Opinión) */
.text-only-item { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.text-only-item:last-child { border: none; }
.text-only-tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.text-only-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); margin: 0 0 4px; }
.text-only-meta { font-size: 12px; color: var(--gray-500); }

/* Compacto (dos columnas Deportes / Tecnología) */
.compact-item { display: flex; gap: 16px; margin-bottom: 18px; }
.compact-item:last-child { margin-bottom: 0; }
.compact-thumb { width: 108px; height: 108px; flex-shrink: 0; border-radius: 2px; overflow: hidden; }
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-tag { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.compact-title { font-family: 'Playfair Display', serif; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink); margin: 0; }
.compact-meta { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

/* Explora todas las secciones */
.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .explore-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .explore-grid { grid-template-columns: repeat(4, 1fr); } }
.explore-card {
  position: relative; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 2px;
  padding: 20px; transition: border-color .2s, box-shadow .2s; display: block;
}
.explore-card:hover { border-color: var(--gray-400); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.explore-card .bar { position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.explore-card h3 { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.explore-card:hover h3 { color: var(--gray-600); }
.explore-card p.desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; margin: 0; }
.explore-card p.count { font-size: 12px; font-weight: 600; color: var(--gray-400); margin: 12px 0 0; }

/* ─── ARTÍCULO INDIVIDUAL ─────────────────────────────────────────────────── */
.single-back { max-width: 768px; margin: 0 auto; padding: 24px 16px 0; }
.single-back a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray-500); }
.single-back a:hover { color: var(--ink); }
.single-header { max-width: 768px; margin: 0 auto; padding: 32px 16px 24px; }
.post-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 16px; padding-bottom: 4px; border-bottom: 2px solid currentColor; }
.single-header h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--ink); margin: 0 0 20px; }
.single-deck { font-size: 20px; color: var(--gray-600); font-weight: 300; line-height: 1.6; margin: 0 0 24px; }
.single-byline {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
}
.byline-left { display: flex; align-items: center; gap: 12px; }
.byline-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.byline-name { font-weight: 600; color: var(--ink); font-size: 14px; margin: 0; }
.byline-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0 0; }
.byline-actions { display: flex; gap: 8px; }
.byline-actions button {
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gray-500);
  padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: 2px; background: none; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.byline-actions button:hover { color: var(--ink); border-color: var(--gray-400); }

.single-featured { max-width: 960px; margin: 32px auto; padding: 0 16px; }
.single-featured img { width: 100%; height: auto; border-radius: 2px; }
.single-body-wrap { max-width: 672px; margin: 0 auto; padding: 0 16px; }

.article-body { font-size: 1.2rem; line-height: 1.85; color: #2a2a2a; }
.article-body p { margin: 0 0 1.5rem; }
.article-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif; font-size: 4.5rem; font-weight: 900;
  float: left; line-height: .82; margin: .35rem .6rem 0 0; color: var(--ink);
}
.article-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.75rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 2em 0 .6em; }
.article-body h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 1.6em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.25rem; line-height: 1.85; font-size: 1.2rem; color: #2a2a2a; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote { border-left: 3px solid var(--breaking); margin: 2em 0; padding: .25em 0 .25em 1.5em; font-style: italic; color: #444; }
.article-body a { color: var(--breaking); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { max-width: 100%; height: auto; border-radius: 2px; margin: 1.5em 0; }
.article-body figure { margin: 1.5em 0; }
.article-body figcaption { font-size: .8rem; color: var(--gray-400); margin-top: .5em; text-align: center; }

.author-footer { max-width: 672px; margin: 48px auto 0; padding: 32px 16px 0; border-top: 1px solid var(--gray-200); }
.author-footer-inner { display: flex; align-items: center; gap: 12px; }
.author-footer .byline-avatar { width: 48px; height: 48px; font-size: 16px; }

.related-section { max-width: 960px; margin: 64px auto 0; padding: 48px 16px 64px; border-top: 1px solid var(--gray-200); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── ARCHIVO DE CATEGORÍA ────────────────────────────────────────────────── */
.archive-header { border-top: 4px solid currentColor; border-bottom: 1px solid var(--gray-200); }
.archive-header-inner { max-width: 1280px; margin: 0 auto; padding: 40px 16px; }
.archive-header h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(32px, 5vw, 48px); color: var(--ink); margin: 0 0 8px; }
.archive-header p { font-size: 18px; color: var(--gray-500); max-width: 640px; margin: 0; }
.archive-lead { max-width: 1280px; margin: 0 auto; padding: 40px 16px; }
.archive-lead-inner { max-width: 896px; margin: 0 auto; }
.archive-rest { max-width: 1280px; margin: 0 auto; padding: 40px 16px 48px; border-top: 1px solid var(--gray-200); }
.archive-empty { max-width: 768px; margin: 0 auto; padding: 80px 16px; text-align: center; color: var(--gray-500); }

/* ─── BÚSQUEDA ────────────────────────────────────────────────────────────── */
.search-header { max-width: 768px; margin: 0 auto; padding: 48px 16px 32px; border-bottom: 1px solid var(--gray-200); }
.search-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--breaking); margin: 0 0 12px; }
.search-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.search-count { font-size: 14px; color: var(--gray-500); }
.search-results { max-width: 1280px; margin: 0 auto; padding: 40px 16px; }
.search-empty { max-width: 768px; margin: 0 auto; padding: 64px 16px; text-align: center; }
.search-empty p { color: var(--gray-500); margin-bottom: 24px; }
.search-cat-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.search-cat-links a { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-600); border: 1px solid var(--gray-200); border-radius: 2px; padding: 7px 14px; }
.search-cat-links a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── PÁGINA ESTÁTICA ─────────────────────────────────────────────────────── */
.page-back { max-width: 672px; margin: 0 auto; padding: 48px 16px 0; }
.page-back a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray-500); }
.page-back a:hover { color: var(--ink); }
.page-header { max-width: 672px; margin: 0 auto; padding: 24px 16px 8px; }
.page-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--breaking); margin: 0 0 12px; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 36px); font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.page-excerpt { font-size: 18px; color: var(--gray-600); font-weight: 300; line-height: 1.6; margin: 0; }
.page-content { max-width: 672px; margin: 0 auto; padding: 24px 16px 64px; font-size: 16px; color: var(--gray-600); line-height: 1.8; }
.page-content h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin: 2em 0 .6em; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin: 0 0 1.4em; }
.page-content a { color: var(--breaking); text-decoration: underline; text-underline-offset: 2px; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--gray-300); margin-top: 80px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 900; color: #fff; line-height: 1; display: block; }
.footer-logo-sub { font-size: 9.6px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: var(--gray-500); margin-top: 4px; display: block; }
.footer-tagline { font-size: 14px; color: var(--gray-400); margin: 16px 0 0; max-width: 280px; line-height: 1.6; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--gray-500); margin: 0 0 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col button { font-size: 14px; color: var(--gray-300); background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-newsletter-desc { font-size: 14px; color: var(--gray-400); margin: 0 0 12px; }
.footer-newsletter-form { display: flex; }
.footer-newsletter-form input {
  flex: 1; min-width: 0; background: var(--gray-800); color: #fff; font-size: 14px;
  padding: 8px 12px; border: 1px solid var(--gray-700); border-radius: 2px 0 0 2px;
}
.footer-newsletter-form input::placeholder { color: var(--gray-500); }
.footer-newsletter-form button {
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 0 2px 2px 0; border: none; flex-shrink: 0;
}
.footer-newsletter-note { font-size: 12px; color: var(--gray-500); margin: 8px 0 0; }
.footer-bottom {
  border-top: 1px solid var(--gray-700); padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-copy { font-size: 12px; color: var(--gray-500); margin: 0; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: var(--gray-500); }
.footer-legal a:hover { color: var(--gray-300); }

/* ─── BOTÓN FLOTANTE EDICIÓN IMPRESA ──────────────────────────────────────── */
.fab-edicion {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 12px 18px 12px 12px; border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s;
}
.fab-edicion:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.fab-icon-wrap { position: relative; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fab-dot { position: absolute; top: -1px; right: -1px; width: 8px; height: 8px; background: var(--breaking); border-radius: 50%; border: 2px solid var(--ink); }
.fab-text { display: flex; flex-direction: column; line-height: 1.25; }
.fab-label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.6); }
.fab-action { font-size: 12px; font-weight: 700; color: #fff; }

/* ─── RESPONSIVE GENERAL ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-main { padding: 20px 16px 40px; }
  .single-header, .single-body-wrap, .page-header, .page-content { padding-left: 16px; padding-right: 16px; }
  .fab-edicion { bottom: 16px; right: 16px; padding: 10px 14px 10px 10px; }
  .footer-brand { grid-column: span 2; }
}

/* ─── Fix listas de WordPress dentro del nav ──────────────────────────────── */
.nav-list, .mobile-nav ul { list-style: none; }
