/*
Theme Name: En Línea
Theme URI: https://enlineadiario.net
Author: En Línea Media
Description: Tema editorial v11 — Diseño inspirado en The Times y The New Yorker.
Version: 4.3.0
License: GNU General Public License v2 or later
Text Domain: enlinea
Tags: news, magazine, editorial, minimal
*/

/* ─── IMPORTS ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;1,8..60,300;1,8..60,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

/* ─── VARIABLES ───────────────────────────────────────────────────────────── */
:root {
  --white:      #FFFFFF;
  --off-white:  #F4F4F4;
  --light-gray: #EEEEEC;
  --mid-gray:   #DEDEDE;
  --muted:      #777777;
  --ink-soft:   #444442;
  --ink:        #0A0A0A;
  --red:        #B22222;
  --red-dark:   #8B1A1A;
  --red-bg:     #F9EDED;
  --navy:       #1A3A6B;
  --navy-dark:  #0F2347;
  --navy-mid:   #162E57;
  --navy-text:  #7A9AC4;
  --navy-light: #C8D8EE;
}

/* ─── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── ANIMACIONES ─────────────────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
@keyframes tickMove { from { transform:translateX(0) } to { transform:translateX(-50%) } }

/* ─── TOPBAR ──────────────────────────────────────────────────────────────── */
.site-topbar {
  background: var(--navy-dark);
  border-bottom: 1px solid var(--navy-mid);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 30px;
}
.topbar-date {
  font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-edicion {
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: white; white-space: nowrap; padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 2px;
  transition: background .15s, border-color .15s;
}
.topbar-edicion:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
@media (max-width: 580px) {
  .topbar-inner { padding: 0 16px; height: 26px; }
  .topbar-date  { font-size: 8px; letter-spacing: .06em; }
  .topbar-edicion { font-size: 8px; padding: 2px 7px; }
}

/* ─── MASTHEAD ────────────────────────────────────────────────────────────── */
.site-masthead {
  background: var(--navy);
  border-bottom: 3px solid var(--ink);
}
.masthead-inner {
  max-width: 1240px; margin: 0 auto; padding: 20px 28px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.masthead-logo { display: flex; flex-direction: column; }
.site-logo {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(52px, 6vw, 88px) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  line-height: .92 !important;
  color: #FFFFFF !important;
  display: block;
  text-decoration: none !important;
}
.site-logo:hover { color: #FFFFFF !important; opacity: .9; }
.site-logo-accent { color: #B22222 !important; }
.site-logo-sub {
  font-family: 'Inter', sans-serif !important;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy-text); margin-top: 7px;
}

.masthead-actions { display: flex; align-items: center; gap: 12px; }
.search-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.3); background: var(--white);
  padding: 8px 14px; border-radius: 2px;
}
.search-pill .search-icon { color: var(--muted); font-size: 14px; flex-shrink: 0; line-height: 1; }
.search-pill input[type="text"] {
  border: none; outline: none; background: transparent;
  font-family: 'Source Serif 4', serif; font-size: 13px; color: var(--ink); width: 160px;
}
.search-pill input[type="text"]::placeholder { color: #aaa; }
.search-pill .search-submit {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); border: none; padding: 0; margin: -1px;
}

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  border-top: 1px solid var(--navy-mid);
  border-bottom: 3px solid var(--ink);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); white-space: nowrap;
  padding: 11px 14px; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.nav-inner a:first-child { padding-left: 0; }
.nav-inner a:hover { color: white; }
.nav-inner a.current-menu-item { color: white; border-bottom-color: var(--red); }

/* ─── TICKER ──────────────────────────────────────────────────────────────── */
.site-ticker {
  background: var(--navy);
  display: flex; overflow: hidden; align-items: center; height: 32px;
}
.ticker-label {
  font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: white;
  background: var(--navy-dark); padding: 0 14px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 100%; position: relative; z-index: 2;
}
.ticker-scroll {
  flex: 1; overflow: hidden; position: relative; height: 100%;
}
.ticker-track {
  display: flex; white-space: nowrap; height: 100%; align-items: center;
  animation: tickMove 50s linear infinite;
  will-change: transform;
}
.ticker-item {
  font-family: 'Inter', sans-serif; font-size: 10px; color: white;
  padding: 0 28px; opacity: .92; white-space: nowrap; flex-shrink: 0;
}
.ticker-item::before { content: '◆'; margin-right: 10px; font-size: 6px; vertical-align: middle; opacity: .5; }

/* ─── CONTENEDOR PRINCIPAL ────────────────────────────────────────────────── */
.site-main { max-width: 1240px; margin: 0 auto; padding: 28px 28px 60px; }

/* ─── HERO GRID ───────────────────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1px 280px;
  gap: 0;
  border-bottom: 1px solid var(--mid-gray);
  padding-bottom: 28px; margin-bottom: 36px;
  animation: fadeUp .5s ease both;
}
.hero-divider { background: var(--mid-gray); }

/* Hero principal */
.hero-lead { padding-right: 28px; }
.hero-lead-bg {
  width: 100%; height: 340px; overflow: hidden;
  margin-bottom: 18px; position: relative;
}
.hero-lead-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-lead-content { padding: 4px 0; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.hero-lead-title {
  font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700;
  line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin-bottom: 12px;
}
.hero-lead-deck {
  font-family: 'Source Serif 4', serif; font-size: 15px; font-weight: 300;
  line-height: 1.7; color: var(--ink-soft); margin-bottom: 12px;
}
.hero-byline {
  font-family: 'Inter', sans-serif; font-size: 10px; color: var(--muted);
  letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 6px;
}
.hero-byline span::after { content: '·'; margin-left: 6px; }
.hero-byline span:last-child::after { content: ''; margin: 0; }

/* Hero lista lateral */
.hero-secondary { padding: 0 24px; }
.hero-sec-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-list-item {
  padding: 14px 0; border-bottom: 1px solid var(--light-gray); cursor: pointer;
}
.hero-list-item:first-child { padding-top: 0; }
.hero-list-item:last-child { border-bottom: none; }
.hero-list-tag {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}
.hero-list-title {
  font-family: 'Playfair Display', serif; font-size: 14.5px; font-weight: 700;
  line-height: 1.3; color: var(--ink);
}
.hero-list-meta {
  font-family: 'Inter', sans-serif; font-size: 10px; color: var(--muted); margin-top: 4px;
}

/* ─── SECTION HEAD ────────────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.section-head h2 {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.section-rule { flex: 1; height: 1px; background: var(--mid-gray); }
.section-more {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  white-space: nowrap; transition: opacity .15s;
}
.section-more:hover { opacity: .7; }

/* ─── CARDS GRID ──────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--mid-gray);
  margin-bottom: 36px;
  animation: fadeUp .5s .1s ease both;
}
.card {
  background: var(--white); padding: 18px;
  transition: background .15s;
}
.card:hover { background: var(--off-white); }
.card-thumb {
  width: 100%; height: 160px; overflow: hidden;
  margin-bottom: 12px;
}
.card-thumb:empty { display: none; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.card:hover .card-thumb img { transform: scale(1.02); }
.card-tag {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
.card-title {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
  line-height: 1.3; color: var(--ink); margin-bottom: 8px;
}
.card-excerpt {
  font-family: 'Source Serif 4', serif; font-size: 13px; font-weight: 300;
  line-height: 1.65; color: var(--ink-soft); margin-bottom: 10px;
}
.card-foot {
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: 10px; color: var(--muted);
}

/* ─── TWO COL ─────────────────────────────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 36px; margin-bottom: 36px;
  animation: fadeUp .5s .2s ease both;
}

/* Article list */
.article-list { display: flex; flex-direction: column; }
.al-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--light-gray); cursor: pointer;
}
.al-item:last-child { border-bottom: none; }
.al-thumb { width: 90px; height: 68px; overflow: hidden; background: var(--light-gray); flex-shrink: 0; }
.al-thumb img { width: 100%; height: 100%; object-fit: cover; }
.al-content { min-width: 0; }
.al-tag {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 3px;
}
.al-title {
  font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700;
  line-height: 1.3; color: var(--ink);
}
.al-meta {
  font-family: 'Inter', sans-serif; font-size: 10px; color: var(--muted); margin-top: 4px;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar { border-left: 1px solid var(--light-gray); padding-left: 28px; }
.widget-title {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.nl-widget { }
.nl-desc {
  font-family: 'Source Serif 4', serif; font-size: 14px; font-weight: 300;
  line-height: 1.65; color: var(--ink-soft); margin-bottom: 14px;
}
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-form input {
  border: 1px solid var(--mid-gray); padding: 9px 12px; font-size: 13px;
  font-family: 'Source Serif 4', serif; outline: none; border-radius: 2px;
}
.nl-form input:focus { border-color: var(--ink); }
.nl-form button {
  background: var(--ink); color: white; border: none; cursor: pointer;
  padding: 10px 16px; font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 2px; transition: background .15s;
}
.nl-form button:hover { background: var(--red); }


/* ─── SINGLE POST ─────────────────────────────────────────────────────────── */
.single-post { width: 100%; }
.single-post-header,
.single-post-body {
  max-width: 780px; margin-left: auto; margin-right: auto;
}
.single-post-header { padding-top: 48px; padding-bottom: 28px; }
.single-post-body   { padding-bottom: 80px; }

.post-tag {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.single-post h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.015em; color: var(--ink); margin-bottom: 16px;
}
.post-deck {
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6;
  color: var(--ink-soft); margin-bottom: 16px;
}
.post-meta {
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted);
  letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 6px;
  padding-bottom: 20px; border-bottom: 1px solid var(--mid-gray);
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta span::before { content: '·'; opacity: .5; }
.post-meta span:first-child::before { content: ''; }

.post-featured-img {
  width: 100%; max-height: 520px; overflow: hidden;
  background: var(--light-gray); margin-bottom: 0;
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }

.post-content { font-size: 18px; line-height: 1.88; color: var(--ink-soft); }
.post-content p  { margin-bottom: 1.6em; }
.post-content h2 {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700;
  color: var(--ink); margin: 2em 0 .6em; line-height: 1.2;
}
.post-content h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600;
  color: var(--ink); margin: 1.6em 0 .5em;
}
.post-content blockquote {
  border-left: 3px solid var(--red); margin: 2em 0;
  padding: 4px 0 4px 24px;
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 20px; color: var(--ink-soft); line-height: 1.6;
}
.post-content a { color: var(--red); border-bottom: 1px solid transparent; transition: border-color .15s; }
.post-content a:hover { border-bottom-color: var(--red); }

/* ─── SEARCH RESULTS ──────────────────────────────────────────────────────── */
.search-results-header {
  max-width: 780px; margin: 48px auto 40px; padding: 0 28px;
  border-bottom: 1px solid var(--mid-gray); padding-bottom: 28px;
}
.search-results-label {
  font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.search-results-title {
  font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 46px);
  font-weight: 700; color: var(--ink); line-height: 1.1; margin-bottom: 12px;
}
.search-results-count {
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted);
}
.search-pagination { margin: 48px 0; text-align: center; }
.search-pagination .page-numbers {
  font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-soft);
  padding: 6px 12px; border: 1px solid var(--mid-gray); border-radius: 2px;
  margin: 0 3px; transition: background .15s;
}
.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover { background: var(--ink); color: white; border-color: var(--ink); }
.search-no-results {
  max-width: 780px; margin: 0 auto; padding: 40px 28px;
  font-family: 'Source Serif 4', serif; font-size: 16px; color: var(--muted);
}
.search-cat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.search-cat-link {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  padding: 7px 14px; border: 1px solid var(--mid-gray); border-radius: 2px;
  transition: background .15s, color .15s;
}
.search-cat-link:hover { background: var(--ink); color: white; border-color: var(--ink); }

/* ─── PAGE ESTÁTICA ───────────────────────────────────────────────────────── */
.page-content h2 {
  font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700;
  color: var(--ink); margin: 2em 0 .6em; padding-top: 1em;
  border-top: 1px solid var(--light-gray);
}
.page-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.page-content em { color: var(--muted); font-size: 14px; }

/* ─── ARCHIVE ─────────────────────────────────────────────────────────────── */
.archive-header {
  border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 32px;
}
.archive-label {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.archive-title {
  font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; color: var(--ink); line-height: 1.1;
}
.archive-hero { margin-bottom: 32px; border-bottom: 1px solid var(--mid-gray); padding-bottom: 28px; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: var(--navy-text); margin-top: 60px; }
.footer-top {
  max-width: 1240px; margin: 0 auto; padding: 48px 28px 36px;
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  border-bottom: 1px solid var(--navy-mid);
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700;
  color: white; line-height: 1; margin-bottom: 10px;
}
.footer-logo span { color: var(--red); }
.footer-tagline {
  font-family: 'Source Serif 4', serif; font-size: 13px; font-weight: 300;
  line-height: 1.65; color: var(--navy-text);
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer-col-title {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--navy-light);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--navy-mid);
}
.footer-col a {
  display: block; font-family: 'Source Serif 4', serif; font-size: 13px;
  font-weight: 300; color: var(--navy-text); margin-bottom: 8px; transition: color .15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy {
  font-family: 'Inter', sans-serif; font-size: 10px;
  letter-spacing: .06em; color: #4A6A9A;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 30px; height: 30px; border: 1px solid var(--navy-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  color: #4A6A9A; transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--navy-text); color: white; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-divider { display: none; }
  .hero-lead { padding-right: 0; }
  .hero-secondary { padding: 0; margin-top: 24px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .search-pill input[type="text"] { width: 120px; }
  .single-post-header, .single-post-body { padding-left: 28px; padding-right: 28px; }
  .masthead-inner { padding: 16px 20px 14px; }
  .site-logo { font-size: clamp(42px, 5vw, 68px) !important; }
}
@media (max-width: 580px) {
  .site-main { padding: 16px 16px 40px; }
  .masthead-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .masthead-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .search-pill { width: 100%; }
  .search-pill input[type="text"] { width: 100%; flex: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .single-post-header { padding: 24px 16px 20px; }
  .single-post-body   { padding: 0 16px 48px; }
  .single-post h1     { font-size: 28px; }
  .post-deck          { font-size: 16px; }
  .post-content       { font-size: 16px; line-height: 1.78; }
  .site-logo { font-size: 42px; }
}

/* ─── Fix WordPress nav lists ─────────────────────────────────────────────── */
.nav-inner ul { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.nav-inner ul::-webkit-scrollbar { display: none; }
.nav-inner ul li { display: flex; align-items: stretch; list-style: none; }
.nav-inner ul li a {
  font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  white-space: nowrap; padding: 11px 14px; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .15s, border-color .15s; display: block;
}
.nav-inner ul li a:hover,
.nav-inner ul li.current-menu-item > a,
.nav-inner ul li.current-cat > a { color: white; border-bottom-color: var(--red); }
.nav-inner ul li:first-child > a { padding-left: 0; }

/* ─── BOTÓN FLOTANTE EDICIÓN IMPRESA ──────────────────────────────────────── */
.fab-edicion {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-dark); color: white;
  padding: 12px 18px; border-radius: 50px;
  box-shadow: 0 4px 16px rgba(15,35,71,.35);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.fab-edicion:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,35,71,.45);
  background: var(--navy);
}
.fab-dot {
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  position: absolute; top: 10px; right: 10px;
  border: 2px solid var(--navy-dark);
}
.fab-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.fab-text { display: flex; flex-direction: column; line-height: 1.2; }
.fab-label {
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.fab-action {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: white;
}
@media (max-width: 580px) {
  .fab-edicion { bottom: 16px; right: 16px; padding: 10px 14px; gap: 8px; }
  .fab-icon { font-size: 16px; }
  .fab-action { font-size: 11px; }
}

/* ─── BARRA DE COMPARTIR — FLOTANTE DESKTOP ───────────────────────────────── */
.share-bar {
  position: fixed;
  left: calc((100vw - 1240px) / 2 - 56px);
  top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.share-bar.visible { opacity: 1; pointer-events: all; }
.share-bar-label {
  font-family: 'Inter', sans-serif; font-size: 8px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px;
}
.share-divider { width: 1px; height: 18px; background: var(--mid-gray); margin: 2px 0; }
@media (max-width: 1360px) { .share-bar { display: none; } }

/* ─── BARRA DE COMPARTIR — INLINE MÓVIL/TABLET ────────────────────────────── */
.share-inline {
  display: none;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--mid-gray);
}
.share-inline-label {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 14px;
}
.share-inline-btns {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
@media (max-width: 1360px) { .share-inline { display: block; } }

/* ─── BOTONES DE COMPARTIR — COMPARTIDOS ──────────────────────────────────── */
.share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  border: 1px solid var(--mid-gray); background: var(--white);
  color: var(--ink-soft); cursor: pointer; text-decoration: none;
  transition: transform .15s, opacity .15s; flex-shrink: 0;
}
.share-btn:hover { transform: scale(1.1); opacity: .85; }
.share-x    { background: #000 !important; color: white !important; border-color: #000 !important; font-size: 12px; }
.share-fb   { background: #1877F2 !important; color: white !important; border-color: #1877F2 !important; }
.share-wa   { background: #25D366 !important; color: white !important; border-color: #25D366 !important; }
.share-li   { background: #0A66C2 !important; color: white !important; border-color: #0A66C2 !important; font-size: 12px; }
.share-copy { background: var(--off-white) !important; color: var(--ink-soft) !important; font-size: 16px; border: 1px solid var(--mid-gray) !important; }
.share-copy.copied { background: var(--navy-dark) !important; color: white !important; border-color: var(--navy-dark) !important; font-size: 13px; }

/* ─── BANNER DE COOKIES ───────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--navy-dark);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 -4px 20px rgba(15,35,71,.25);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-title {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-light); margin-bottom: 4px;
}
.cookie-banner-desc {
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: rgba(255,255,255,.6); line-height: 1.5;
}
.cookie-banner-desc a { color: white; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-aceptar {
  background: var(--red); color: white; border: none; cursor: pointer;
  padding: 6px 14px; font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; transition: background .15s;
}
.cookie-btn-aceptar:hover { background: var(--red-dark); }
.cookie-btn-rechazar {
  background: transparent; color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  padding: 6px 12px; font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 500; letter-spacing: .06em;
  border-radius: 2px; transition: color .15s, border-color .15s;
}
.cookie-btn-rechazar:hover { color: white; border-color: rgba(255,255,255,.5); }
@media (max-width: 580px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-aceptar, .cookie-btn-rechazar { flex: 1; text-align: center; }
}
