/*
Theme Name: Líderes Revista
Theme URI: https://groupquimera.com
Author: Group Quimera
Author URI: https://groupquimera.com
Description: Tema de revista para Líderes Empresariales (Bolivia y Latinoamérica). Nombre, país, colores, portada de la edición, banner publicitario y redes se cambian en Apariencia > Personalizar.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: Propietaria
Text Domain: lideres
*/

/* ---------- Tokens ---------- */
:root {
  --ink: #0b0b0c;
  --ink-2: #16161a;
  --ink-3: #24242a;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --line: #e6e2da;
  --muted: #6e6a64;
  --muted-dark: #a9a49b;
  --gold: #e9b062;       /* se reemplaza desde el Personalizador */
  --gold-soft: #f3d3a0;
  --display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--gold); color: var(--ink); padding: 8px 14px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Tipografía editorial ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker a:hover { color: inherit; opacity: .75; }
.meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.section-head a { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.more::after { content: "→"; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--gold); background: var(--gold); color: var(--ink);
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: var(--muted-dark); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar__date { white-space: nowrap; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.social { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.social a { display: inline-flex; color: var(--muted-dark); }
.social a:hover { color: var(--gold); }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__cta { color: var(--gold); font-weight: 600; }

/* ---------- Cabecera ---------- */
.masthead { background: var(--ink); color: var(--paper); position: relative; z-index: 20; }
.masthead__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 26px 0 22px; }
.masthead__tools { display: flex; gap: 6px; }
.masthead__tools--right { justify-content: flex-end; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--paper); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--gold); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.wordmark { display: inline-flex; flex-direction: column; align-items: stretch; color: var(--paper); line-height: 1; text-align: center; }
.wordmark:hover { color: var(--paper); }
.wordmark__main { font-family: var(--display); font-weight: 900; font-size: clamp(42px, 6.4vw, 78px); letter-spacing: -.02em; line-height: .9; }
.wordmark__sub { font-family: var(--display); font-weight: 500; font-size: clamp(11px, 1.45vw, 18px); letter-spacing: .42em; margin: 8px -.42em 0 0; text-transform: uppercase; }
.wordmark__country { font-family: var(--sans); font-weight: 500; font-size: clamp(8px, .9vw, 11px); letter-spacing: .38em; text-transform: uppercase; text-align: right; margin-top: 6px; margin-right: -.38em; color: var(--gold); }
.custom-logo-link img { max-height: 110px; width: auto; }

.mainnav { border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.mainnav a {
  display: block; padding: 15px 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #d9d5cd;
}
.mainnav a:hover, .mainnav .current-menu-item > a, .mainnav .current-cat > a { color: var(--gold); }

/* Buscador desplegable */
.searchbar { display: none; background: var(--ink-2); border-bottom: 1px solid var(--ink-3); }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: 10px; padding: 18px 0; }
.searchbar input[type=search] {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  background: transparent; border: 1px solid var(--ink-3); color: var(--paper);
  font-family: var(--serif); font-size: 18px;
}
.searchbar input[type=search]::placeholder { color: var(--muted); }

/* Menú móvil */
.drawer { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper); display: none; flex-direction: column; padding: 20px var(--gut) 40px; overflow-y: auto; }
.drawer.is-open { display: flex; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ink-3); font-family: var(--display); font-size: 28px; }
.drawer .social { margin-top: 32px; }
.drawer .social svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

/* ---------- Portada (hero) ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.15) 0%, rgba(11,11,12,.25) 40%, rgba(11,11,12,.92) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 80px); padding-top: 120px; }
.hero__copy { max-width: 900px; }
.hero h1 { font-size: clamp(36px, 5vw, 68px); margin: 16px 0 20px; }
.hero h1 a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hero__excerpt { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: #e4e0d8; max-width: 640px; margin: 0 0 24px; }
.hero .meta { color: var(--muted-dark); }

/* ---------- Lo último ---------- */
.latest { background: var(--ink); color: var(--paper); padding: 0 0 56px; }
.latest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink-3); }
.latest__item { padding: 28px 28px 0 0; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.latest__item + .latest__item { padding-left: 28px; border-left: 1px solid var(--ink-3); }
.latest__item img { width: 96px; height: 96px; object-fit: cover; }
.latest__item h3 { font-family: var(--display); font-size: 19px; line-height: 1.2; margin: 8px 0 0; font-weight: 700; }

/* ---------- Tarjetas ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper2 { background: var(--paper-2); }
.grid { display: grid; gap: 40px 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.grid--2 .card h3 { font-size: clamp(24px, 2.4vw, 32px); }
.grid--2 .card__media { aspect-ratio: 16 / 10; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); margin-bottom: 18px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card h3 { font-family: var(--display); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.18; font-weight: 700; margin: 10px 0 10px; }
.card h3 a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.card p { font-family: var(--serif); color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 12px; }
.card--sm h3 { font-size: 19px; }
.card--sm .card__media { aspect-ratio: 3 / 2; }

/* ---------- Entrevistas ---------- */
.interviews { background: var(--paper); }
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature h3 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; font-weight: 700; margin: 14px 0 18px; text-transform: none; }
.feature p { font-family: var(--serif); font-size: 18px; color: #4a4741; margin: 0 0 24px; }
.feature__quote { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.4; border-left: 2px solid var(--gold); padding-left: 18px; color: var(--ink); margin: 0 0 24px; }

/* ---------- Edición impresa ---------- */
.edition { background: var(--ink); color: var(--paper); overflow: hidden; }
.edition__grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.edition__cover { position: relative; transform: rotate(-2deg); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.edition__cover img { width: 100%; }
.edition__placeholder {
  aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 50% 20%, #2a2620 0%, #0b0b0c 70%);
  border: 1px solid var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 34px 26px;
}
.edition__placeholder .wordmark__main { font-size: clamp(40px, 5vw, 66px); }
.edition__placeholder .wordmark__sub { font-size: clamp(10px, 1.1vw, 14px); }
.edition__placeholder span.soon { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.edition h2 { font-size: clamp(36px, 5vw, 64px); margin: 16px 0 22px; }
.edition p { font-family: var(--serif); font-size: 19px; color: #d6d1c8; max-width: 560px; margin: 0 0 30px; }
.edition__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Ranking ---------- */
.ranking { background: var(--paper-2); }
.ranking__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.ranking__num { font-family: var(--display); font-weight: 900; font-size: clamp(120px, 20vw, 260px); line-height: .8; color: var(--ink); position: relative; padding-top: 28px; }
.ranking__num small { position: absolute; top: 0; left: .06em; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); line-height: 1; }
.ranking h2 { font-size: clamp(30px, 4vw, 52px); margin: 0 0 18px; }
.ranking p { font-family: var(--serif); font-size: 19px; color: #4a4741; max-width: 620px; margin: 0 0 26px; }
.ranking__list { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: rk; }
.ranking__list li { counter-increment: rk; display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 20px; }
.ranking__list li::before { content: counter(rk, decimal-leading-zero); font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .1em; }

/* ---------- Publicidad ---------- */
.adslot { padding: 40px 0; }
.adslot__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.adslot img { width: 100%; }
.adslot__empty {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px dashed #c9c3b8; padding: 30px clamp(20px, 4vw, 44px); background: var(--paper-2);
}
.adslot__empty strong { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.adslot__empty span { display: block; font-family: var(--serif); color: var(--muted); font-size: 16px; }

/* ---------- Anunciá ---------- */
.advertise { background: var(--ink); color: var(--paper); text-align: center; }
.advertise h2 { font-size: clamp(34px, 5vw, 62px); margin: 14px auto 18px; max-width: 900px; }
.advertise p { font-family: var(--serif); font-size: 19px; color: #d6d1c8; max-width: 640px; margin: 0 auto 30px; }
.advertise__items { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0 0 36px; }
.advertise__items li { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.advertise__items li::before { content: "◆"; color: var(--gold); margin-right: 10px; font-size: 9px; vertical-align: 2px; }

/* ---------- Pie ---------- */
.site-footer { background: #070708; color: var(--muted-dark); padding: 72px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer .wordmark__main { font-size: 46px; }
.site-footer .wordmark__sub { font-size: 11px; }
.site-footer p { font-family: var(--serif); font-size: 16px; line-height: 1.6; margin: 22px 0 0; max-width: 420px; }
.site-footer h4 { font-family: var(--display); color: var(--gold); font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.site-footer ul.links { list-style: none; margin: 0; padding: 0; }
.site-footer ul.links a { display: block; padding: 6px 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d9d5cd; }
.site-footer ul.links a:hover { color: var(--gold); }
.footer__contact a { color: #d9d5cd; }
.footer__contact div { padding: 5px 0; }
.footer__bottom { border-top: 1px solid var(--ink-3); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Nota (single) ---------- */
.article-head { background: var(--ink); color: var(--paper); padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.article-head h1 { font-size: clamp(36px, 5.6vw, 72px); max-width: 980px; margin: 18px auto 22px; }
.article-head .dek { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); color: #d6d1c8; max-width: 760px; margin: 0 auto 22px; }
.article-head .meta { color: var(--muted-dark); }
.single .article-head { padding-bottom: clamp(120px, 14vw, 180px); }
.article-figure { max-width: 1100px; margin: calc(-1 * clamp(90px, 11vw, 140px)) auto 0; padding: 0 var(--gut); position: relative; }
.article-figure img { width: 100%; max-height: 720px; object-fit: cover; object-position: center 20%; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.page .article-figure { margin-top: 40px; }
.article-figure figcaption { font-size: 12px; color: var(--muted); padding-top: 10px; }
.prose { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gut); font-family: var(--serif); font-size: 20px; line-height: 1.7; color: #1d1c1a; }
.prose > p:first-of-type:not(.nota-ejemplo)::first-letter,
.prose > .nota-ejemplo:first-child + p::first-letter { font-family: var(--display); font-weight: 900; float: left; font-size: 4.4em; line-height: .82; margin: .06em .12em 0 0; color: var(--ink); }
.prose h2, .prose h3 { font-family: var(--display); line-height: 1.15; margin: 1.8em 0 .6em; }
.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 3px solid var(--gold); font-family: var(--display); font-style: italic; font-size: 28px; line-height: 1.35; }
.prose blockquote p { margin: 0; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose img, .prose figure { margin: 1.6em 0; }
.prose .nota-ejemplo { font-family: var(--sans); font-size: 13px; letter-spacing: .02em; background: #fff6e6; border: 1px solid var(--gold-soft); padding: 12px 16px; color: #6b5022; }
.article-figure--portrait { max-width: 640px; }
.article-figure--portrait img { max-height: none; object-fit: contain; }
.share { max-width: 720px; margin: 0 auto; padding: 0 var(--gut) 56px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.share a { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); padding: 9px 14px; }
.share a:hover { border-color: var(--gold); }
.tags { max-width: 720px; margin: -20px auto 40px; padding: 0 var(--gut); display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--paper-2); padding: 6px 10px; }

/* ---------- Archivo / página ---------- */
.archive-head { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); }
.archive-head h1 { font-size: clamp(44px, 7vw, 96px); margin: 12px 0 14px; }
.archive-head p { font-family: var(--serif); font-size: 19px; color: #d6d1c8; max-width: 680px; margin: 0; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 13px; font-weight: 600; padding: 0 12px; }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { text-align: center; padding: 80px 0; font-family: var(--serif); font-size: 20px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .latest__grid { grid-template-columns: 1fr; }
  .latest__item, .latest__item + .latest__item { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--ink-3); }
}
@media (max-width: 860px) {
  .mainnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .masthead__inner { padding: 18px 0; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .feature, .edition__grid, .ranking__grid { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .feature__media { aspect-ratio: 4 / 3; }
  .edition__cover { max-width: 320px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .topbar__date { display: none; }
  .topbar .wrap { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .prose { font-size: 18px; }
  .topbar__right .social { display: none; }
  .hero { min-height: 78vh; }
  .ranking__num { font-size: 120px; }
  .adslot__empty { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
