/*
Theme Name: Nota de Voz Vanguard
Theme URI: https://www.notadevoz.online/
Author: FactoriaDigital
Author URI: https://factoriadigital.store/
Description: Tema editorial vanguardista para Nota de Voz. Portada asimétrica, hero por categoría Portada, arquitectura SEO, espacios comerciales, páginas institucionales y footer con widgets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: notadevoz-vanguard
*/

:root {
  --ndv-black: #050507;
  --ndv-ink: #0d0e12;
  --ndv-graphite: #171922;
  --ndv-paper: #f4f1ea;
  --ndv-white: #ffffff;
  --ndv-muted: #b8b9c3;
  --ndv-red: #ff2e43;
  --ndv-orange: #ff8a00;
  --ndv-blue: #3be8ff;
  --ndv-violet: #7a3cff;
  --ndv-green: #32ff9f;
  --ndv-line: rgba(255,255,255,.14);
  --ndv-shadow: 0 28px 80px rgba(0,0,0,.35);
  --ndv-radius: 28px;
  --ndv-container: min(1360px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgba(255,46,67,.22), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(59,232,255,.16), transparent 26%),
    linear-gradient(135deg, #030305 0%, #11121a 44%, #050507 100%);
  color: var(--ndv-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ndv-blue); }
img { max-width: 100%; height: auto; display: block; }

.ndv-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ndv-blue);
  color: var(--ndv-black);
  padding: 12px 18px;
  z-index: 999;
}
.ndv-skip-link:focus { left: 12px; top: 12px; }

.ndv-container { width: var(--ndv-container); margin: 0 auto; }

.ndv-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(5,5,7,.78);
  border-bottom: 1px solid var(--ndv-line);
}
.ndv-header-grid {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr auto;
  align-items: center;
  gap: 24px;
}
.ndv-brand { display: flex; align-items: center; gap: 14px; }
.ndv-brand img { width: min(320px, 52vw); height: auto; }
.ndv-brand-text { display: none; }
.ndv-primary-nav { justify-self: end; }
.ndv-primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ndv-primary-nav a {
  display: inline-flex;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ndv-primary-nav a:hover {
  color: var(--ndv-white);
  border-color: var(--ndv-line);
  background: rgba(255,255,255,.07);
}
.ndv-nav-toggle { display: none; }
.ndv-cta-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ndv-black);
  background: linear-gradient(135deg, var(--ndv-blue), var(--ndv-green));
  font-weight: 950;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  box-shadow: 0 16px 40px rgba(59,232,255,.2);
}

.ndv-breaking {
  border-bottom: 1px solid var(--ndv-line);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.ndv-breaking-inner { display: flex; gap: 20px; align-items: center; min-height: 42px; }
.ndv-breaking-label {
  flex: 0 0 auto;
  background: var(--ndv-red);
  color: var(--ndv-white);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}
.ndv-breaking-track {
  white-space: nowrap;
  overflow: hidden;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 700;
}

.ndv-hero {
  padding: 54px 0 34px;
}
.ndv-hero-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}
.ndv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ndv-blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ndv-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--ndv-red), var(--ndv-blue));
}
.ndv-hero h1, .ndv-page-title {
  margin: 12px 0 0;
  font-size: clamp(42px, 7.5vw, 106px);
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
  max-width: 980px;
}
.ndv-slogan {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.2;
  font-weight: 750;
  max-width: 560px;
}

.ndv-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 24px;
}
.ndv-main-card,
.ndv-side-card,
.ndv-post-card,
.ndv-single-shell,
.ndv-page-shell,
.ndv-author-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ndv-radius);
  border: 1px solid var(--ndv-line);
  background: rgba(255,255,255,.065);
  box-shadow: var(--ndv-shadow);
}
.ndv-main-card { min-height: 620px; }
.ndv-main-card .ndv-thumb,
.ndv-side-card .ndv-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ndv-main-card .ndv-thumb img,
.ndv-side-card .ndv-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}
.ndv-main-card::after,
.ndv-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.95), rgba(0,0,0,.16) 54%, rgba(0,0,0,.18));
  z-index: 1;
}
.ndv-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 46px);
}
.ndv-main-card h2 {
  margin: 12px 0;
  font-size: clamp(34px, 5vw, 74px);
  line-height: .9;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.ndv-side-stack { display: grid; gap: 24px; }
.ndv-side-card { min-height: 298px; }
.ndv-side-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: .96;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.ndv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ndv-pill {
  display: inline-flex;
  color: var(--ndv-black);
  background: var(--ndv-blue);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ndv-excerpt {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  max-width: 760px;
}

.ndv-ad-slot {
  margin: 34px auto;
  width: var(--ndv-container);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 20% 30%, rgba(255,46,67,.34), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(59,232,255,.26), transparent 24%),
    linear-gradient(135deg, #11131b, #050507 58%, #25130b);
  box-shadow: var(--ndv-shadow);
  overflow: hidden;
}
.ndv-ad-inner {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  position: relative;
}
.ndv-ad-inner::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(115deg, transparent 0, transparent 18px, rgba(255,255,255,.055) 19px, transparent 21px);
  opacity: .75;
}
.ndv-ad-title {
  position: relative;
  font-size: clamp(28px, 5vw, 74px);
  line-height: .85;
  letter-spacing: -.05em;
  text-transform: uppercase;
  font-weight: 1000;
}
.ndv-ad-sub {
  position: relative;
  margin-top: 10px;
  color: rgba(255,255,255,.74);
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ndv-section-wrap { padding: 26px 0 18px; }
.ndv-section {
  width: var(--ndv-container);
  margin: 0 auto 36px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 34px;
  border: 1px solid var(--ndv-line);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: var(--ndv-shadow);
}
.ndv-section:nth-of-type(3n+1) { background: linear-gradient(135deg, rgba(255,46,67,.17), rgba(255,255,255,.04)); }
.ndv-section:nth-of-type(3n+2) { background: linear-gradient(135deg, rgba(59,232,255,.14), rgba(255,255,255,.04)); }
.ndv-section:nth-of-type(3n+3) { background: linear-gradient(135deg, rgba(122,60,255,.16), rgba(255,255,255,.04)); }
.ndv-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.ndv-section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.ndv-section-description {
  margin: 8px 0 0;
  color: rgba(255,255,255,.72);
  max-width: 720px;
  font-weight: 650;
}
.ndv-section-link {
  border: 1px solid var(--ndv-line);
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.75);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.ndv-section-link:hover { background: var(--ndv-white); color: var(--ndv-black); }

.ndv-post-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 20px;
}
.ndv-post-grid.layout-b { grid-template-columns: .85fr 1.15fr .85fr; }
.ndv-post-grid.layout-c { grid-template-columns: .9fr .9fr 1.2fr; }
.ndv-post-card {
  min-height: 100%;
  background: rgba(0,0,0,.18);
}
.ndv-post-card:first-child { grid-row: span 2; }
.ndv-post-card .ndv-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1b1c25;
}
.ndv-post-card:first-child .ndv-card-thumb { aspect-ratio: 16/14; }
.ndv-post-card .ndv-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ndv-post-card:hover .ndv-card-thumb img { transform: scale(1.045); }
.ndv-post-card .ndv-card-body { padding: 18px; }
.ndv-post-card h3 {
  margin: 8px 0 8px;
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -.03em;
}
.ndv-post-card:first-child h3 { font-size: clamp(28px, 3vw, 45px); letter-spacing: -.045em; text-transform: uppercase; }
.ndv-card-body p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.ndv-placeholder-thumb {
  width: 100%; height: 100%; min-height: 210px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,46,67,.35), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(59,232,255,.28), transparent 35%),
    linear-gradient(135deg, #171922, #050507);
}
.ndv-placeholder-thumb span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.08);
}

.ndv-page-hero { padding: 54px 0 24px; }
.ndv-page-shell, .ndv-single-shell {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto 60px;
  padding: clamp(24px, 5vw, 54px);
  background: rgba(255,255,255,.075);
}
.ndv-single-shell { width: min(1120px, calc(100vw - 40px)); }
.ndv-single-title {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 82px);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.ndv-single-featured {
  overflow: hidden;
  border-radius: 28px;
  margin: 26px 0 28px;
  border: 1px solid var(--ndv-line);
}
.ndv-single-featured img { width: 100%; max-height: 660px; object-fit: cover; }
.ndv-content {
  color: rgba(255,255,255,.86);
  font-size: clamp(18px, 1.55vw, 21px);
}
.ndv-content p { margin: 0 0 1.12em; }
.ndv-content h2, .ndv-content h3 {
  color: var(--ndv-white);
  letter-spacing: -.035em;
  line-height: 1;
  margin-top: 1.5em;
}
.ndv-content a { color: var(--ndv-blue); border-bottom: 1px solid rgba(59,232,255,.4); }
.ndv-tags { margin-top: 28px; display: flex; gap: 9px; flex-wrap: wrap; }
.ndv-tags a { color: var(--ndv-black); background: var(--ndv-paper); padding: 7px 10px; border-radius: 999px; font-weight: 900; font-size: 12px; }

.ndv-author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.ndv-author-card { padding: 22px; background: rgba(255,255,255,.07); }
.ndv-author-card h3 { margin: 0 0 6px; font-size: 24px; line-height: 1; }
.ndv-author-card strong { color: var(--ndv-blue); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.ndv-author-card p { margin: 10px 0 0; color: rgba(255,255,255,.74); font-size: 15px; }

.ndv-archive-grid {
  width: var(--ndv-container);
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ndv-pagination {
  width: var(--ndv-container);
  margin: 0 auto 70px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ndv-pagination .page-numbers {
  border: 1px solid var(--ndv-line);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255,255,255,.75);
  font-weight: 900;
}
.ndv-pagination .current { background: var(--ndv-blue); color: var(--ndv-black); }

.ndv-footer {
  margin-top: 40px;
  border-top: 1px solid var(--ndv-line);
  background: #030305;
}
.ndv-footer-widgets {
  width: var(--ndv-container);
  margin: 0 auto;
  padding: 42px 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ndv-footer-widget {
  min-height: 160px;
  border: 1px solid var(--ndv-line);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,46,67,.22), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
}
.ndv-footer-widget .ndv-widget-fallback {
  height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.86);
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ndv-footer-main {
  width: var(--ndv-container);
  margin: 0 auto;
  padding: 28px 0 38px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  align-items: start;
}
.ndv-footer-logo { width: min(320px, 70vw); margin-bottom: 12px; }
.ndv-footer p { color: rgba(255,255,255,.66); margin: 0; }
.ndv-footer-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.ndv-footer-menu a {
  display: inline-flex;
  border: 1px solid var(--ndv-line);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ndv-footer-menu a:hover { background: rgba(255,255,255,.1); color: var(--ndv-white); }
.ndv-credit {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.ndv-credit a { color: var(--ndv-blue); font-weight: 900; }

@media (max-width: 1100px) {
  .ndv-header-grid { grid-template-columns: 1fr auto; }
  .ndv-cta-top { display: none; }
  .ndv-hero-layout, .ndv-hero-head { grid-template-columns: 1fr; }
  .ndv-main-card { min-height: 520px; }
  .ndv-side-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ndv-post-grid, .ndv-post-grid.layout-b, .ndv-post-grid.layout-c, .ndv-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --ndv-container: min(100vw - 24px, 1360px); }
  .ndv-site-header { position: relative; }
  .ndv-header-grid { min-height: 74px; }
  .ndv-brand img { width: 230px; }
  .ndv-nav-toggle {
    display: inline-flex;
    border: 1px solid var(--ndv-line);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--ndv-white);
    padding: 10px 13px;
    font-weight: 900;
  }
  .ndv-primary-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    padding: 0 0 18px;
  }
  .ndv-primary-nav.is-open { display: block; }
  .ndv-primary-nav ul { justify-content: flex-start; }
  .ndv-hero { padding-top: 34px; }
  .ndv-main-card { min-height: 470px; }
  .ndv-side-stack, .ndv-post-grid, .ndv-post-grid.layout-b, .ndv-post-grid.layout-c, .ndv-archive-grid, .ndv-author-grid, .ndv-footer-widgets, .ndv-footer-main { grid-template-columns: 1fr; }
  .ndv-section-head { grid-template-columns: 1fr; }
  .ndv-footer-menu ul { justify-content: flex-start; }
}
