/*
Theme Name: Neurona Política
Theme URI: https://traveled-mediumaquamarine-sheep-76.hostingersite.com
Description: Tema de portada de noticias para Neurona Política (estructura tipo Bloomberg): nota principal, lo último, video, análisis, opinión, secciones y boletín.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: neurona
*/

:root {
  --np-black: #0b0b0b;
  --np-lime: #d6ef0f;
  --np-red: #c8231c;
  --np-ink: #111111;
  --np-muted: #55534e;
  --np-line: #e3e1dc;
  --np-placeholder: #e3e1dc;
  --np-paper: #ffffff;
  --np-bg: #f3f2ee;
  --np-max: 1280px;
  --np-pad: 28px;
  --np-font: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--np-bg);
  color: var(--np-ink);
  font-family: var(--np-font);
  font-size: 17px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.np-shell { max-width: var(--np-max); margin: 0 auto; background: var(--np-paper); border-left: 1px solid var(--np-line); border-right: 1px solid var(--np-line); }

/* ---------- Header ---------- */
.np-header { background: var(--np-black); color: #fff; }
.np-header__inner { max-width: var(--np-max); margin: 0 auto; display: flex; align-items: center; gap: 36px; padding: 18px var(--np-pad); }
.np-brand { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.np-brand:hover { text-decoration: none; }
.np-brand svg, .np-brand .custom-logo { height: 40px; width: auto; }
.np-brand__name { font-size: 24px; letter-spacing: -0.01em; white-space: nowrap; }
.np-brand__name b { font-weight: 800; }
.np-brand__name span { font-weight: 400; }
.np-nav { flex: 1; min-width: 0; }
.np-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.np-nav ul::-webkit-scrollbar { display: none; }
.np-nav a { color: #cfcfcf; font-size: 16px; white-space: nowrap; }
.np-nav a:hover, .np-nav .current-menu-item > a, .np-nav .current-cat > a { color: #fff; }
.np-btn-outline { border: 1.5px solid var(--np-lime); color: var(--np-lime); border-radius: 6px; padding: 7px 18px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.np-btn-outline:hover { background: var(--np-lime); color: var(--np-black); text-decoration: none; }

/* Ticker */
.np-ticker { max-width: var(--np-max); margin: 0 auto; background: var(--np-paper); border: 1px solid var(--np-line); border-top: 0; display: flex; gap: 28px; align-items: center; padding: 12px var(--np-pad); overflow-x: auto; scrollbar-width: none; font-size: 15px; }
.np-ticker::-webkit-scrollbar { display: none; }
.np-ticker__label { color: var(--np-red); font-weight: 700; white-space: nowrap; }
.np-ticker a { color: var(--np-muted); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Building blocks ---------- */
.np-row { display: grid; border-bottom: 1px solid var(--np-line); }
.np-cell { padding: var(--np-pad); min-width: 0; }
.np-cell + .np-cell { border-left: 1px solid var(--np-line); }
.np-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--np-muted); margin-bottom: 14px; }
.np-kicker--red { color: var(--np-red); }
.np-media { display: block; background: var(--np-placeholder); border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.np-media img { width: 100%; height: 100%; object-fit: cover; }
.np-media--tall { aspect-ratio: 16 / 8.4; }
.np-dek { color: var(--np-muted); margin: 10px 0 0; font-size: 16px; }
.np-play { position: absolute; inset: 0; display: grid; place-items: center; }
.np-play::before { content: ""; width: 58px; height: 58px; border-radius: 50%; background: rgba(11, 11, 11, .78); }
.np-play::after { content: ""; position: absolute; border-left: 16px solid var(--np-lime); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }

/* Hero row */
.np-hero { grid-template-columns: 2fr 3fr 2fr; }
.np-hero__main h2 { font-size: 36px; margin-top: 20px; }
.np-hero__side h3 { font-size: 22px; margin-top: 16px; }
.np-related { border: 1px solid var(--np-line); border-radius: 4px; padding: 14px 16px; margin-top: 22px; }
.np-related .np-kicker { margin-bottom: 8px; }
.np-related a { display: block; color: var(--np-muted); font-size: 16px; padding: 2px 0; }
.np-latest { list-style: none; margin: 0; padding: 0; }
.np-latest li { color: var(--np-muted); font-size: 16px; padding: 3px 0; }
.np-latest time { white-space: nowrap; }
.np-video .np-media { margin-bottom: 28px; }

/* Analysis row */
.np-analysis { grid-template-columns: 0.82fr 1.45fr 1.05fr; }
.np-analysis h2 { font-size: 30px; }
.np-analysis .np-media { aspect-ratio: 4 / 2; }
.np-secondary a { display: block; color: var(--np-muted); font-size: 17px; padding: 4px 0 18px; }

/* Opinion */
.np-opinion { display: block; padding: var(--np-pad) 38px; border-bottom: 1px solid var(--np-line); }
.np-opinion__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.np-column { display: flex; gap: 16px; align-items: center; }
.np-column img, .np-column .np-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--np-placeholder); flex-shrink: 0; object-fit: cover; }
.np-column strong { display: block; font-size: 17px; }
.np-column a { color: var(--np-muted); font-size: 16px; }

/* Sections */
.np-sections { grid-template-columns: repeat(3, 1fr); }
.np-sections .np-media { aspect-ratio: 16 / 4.4; }
.np-sections h3 { font-size: 24px; margin-top: 18px; }

/* Newsletter band */
.np-newsletter { background: var(--np-lime); color: var(--np-black); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 38px; }
.np-newsletter p { margin: 0; font-size: 22px; font-weight: 700; }
.np-btn-dark { background: var(--np-black); color: #fff; border-radius: 6px; padding: 14px 28px; font-size: 16px; white-space: nowrap; }
.np-btn-dark:hover { text-decoration: none; opacity: .88; }

/* Publicidad */
.np-ad { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px var(--np-pad); border-bottom: 1px solid var(--np-line); background: #faf9f6; }
.np-ad__label { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8a877f; }
.np-ad__item { max-width: 100%; }
.np-ad__item img { margin: 0 auto; }
.np-ad__item figure, .np-ad__item p { margin: 0; }
.np-ad--empty a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; max-width: 970px; min-height: 90px; border: 1.5px dashed #c9c6bd; border-radius: 4px; padding: 16px; text-align: center; color: var(--np-muted); font-size: 14px; font-weight: 600; }
.np-ad--empty small { font-weight: 400; font-size: 12px; }
.np-ad--anuncio-medio.np-ad--empty a { min-height: 250px; }
.np-article .np-ad { border: 0; background: none; padding: 36px 0 0; }

.np-footer { max-width: var(--np-max); margin: 0 auto; padding: 22px var(--np-pad) 40px; color: var(--np-muted); font-size: 14px; }

/* ---------- Archive / single ---------- */
.np-archive { padding: var(--np-pad); }
.np-archive__title { font-size: 34px; margin-bottom: 24px; }
.np-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.np-list h2 { font-size: 21px; margin-top: 14px; }
.np-pagination { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.np-pagination .page-numbers { border: 1px solid var(--np-line); padding: 6px 12px; border-radius: 4px; }
.np-pagination .current { background: var(--np-black); color: #fff; }

.np-article { max-width: 760px; margin: 0 auto; padding: 48px var(--np-pad) 64px; }
.np-article h1 { font-size: 42px; }
.np-article__meta { color: var(--np-muted); font-size: 15px; margin: 16px 0 28px; }
.np-article .np-media { margin-bottom: 32px; aspect-ratio: auto; }
.np-content { font-size: 19px; line-height: 1.7; }
.np-content a { text-decoration: underline; }
.np-content figure { margin: 28px 0; }
.np-content blockquote { border-left: 4px solid var(--np-lime); margin: 28px 0; padding: 4px 0 4px 20px; font-size: 22px; font-weight: 600; }
.np-empty { padding: 60px var(--np-pad); color: var(--np-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .np-hero { grid-template-columns: 1fr 1fr; }
  .np-hero__main { grid-column: 1 / -1; grid-row: 1; border-left: 0 !important; border-bottom: 1px solid var(--np-line); }
  .np-hero__side { border-left: 0 !important; }
  .np-analysis { grid-template-columns: 1fr 1.4fr; }
  .np-analysis .np-secondary { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--np-line); }
  .np-opinion__grid { grid-template-columns: repeat(2, 1fr); }
  .np-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --np-pad: 16px; }
  body { font-size: 16px; }
  .np-shell { border: 0; }
  .np-header__inner { flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; }
  .np-brand { gap: 12px; }
  .np-brand svg, .np-brand .custom-logo { height: 30px; }
  .np-brand__name { font-size: 19px; }
  .np-header .np-btn-outline { margin-left: auto; padding: 5px 12px; font-size: 14px; }
  .np-nav { order: 3; flex-basis: 100%; }
  .np-ticker { padding: 10px 16px; border-left: 0; border-right: 0; }
  .np-row, .np-hero, .np-analysis, .np-sections { grid-template-columns: 1fr; }
  .np-cell + .np-cell, .np-hero__side, .np-analysis .np-secondary { border-left: 0; border-top: 1px solid var(--np-line); }
  .np-hero__main { border-top: 0; }
  .np-hero__main h2 { font-size: 28px; }
  .np-analysis h2 { font-size: 24px; }
  .np-opinion { padding: var(--np-pad); }
  .np-opinion__grid { grid-template-columns: 1fr; gap: 18px; }
  .np-sections .np-media { aspect-ratio: 16 / 7; }
  .np-newsletter { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
  .np-newsletter p { font-size: 19px; }
  .np-list { grid-template-columns: 1fr; }
  .np-article { padding-top: 28px; }
  .np-article h1 { font-size: 30px; }
  .np-content { font-size: 18px; }
}
