/* ── NewsPress Base Styles ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--np-text);
  background: var(--np-bg);
  transition: background var(--t-med), color var(--t-med);
  -webkit-font-smoothing: antialiased;
}

/* ── Tipografía ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--np-text);
  letter-spacing: -.01em;
}

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--np-link);
  text-decoration: none;
}
a:hover { color: var(--np-link-hover); }

strong, b { font-weight: 700; }
em, i     { font-style: italic; }

code, pre {
  font-family: var(--f-mono);
  font-size: .9em;
  background: var(--np-surface-alt);
  padding: 2px 5px;
  border-radius: var(--r-sm);
}

blockquote {
  border-left: 4px solid var(--np-accent);
  padding: var(--sp-3) var(--sp-5);
  margin: var(--sp-5) 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--t-md);
  color: var(--np-text-sec);
  background: var(--np-surface-alt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

ul, ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
li + li { margin-top: var(--sp-1); }

img, video { max-width: 100%; height: auto; display: block; }

hr {
  border: none;
  border-top: 1px solid var(--np-border);
  margin: var(--sp-5) 0;
}

/* ── Layout helpers ──────────────────────────────────── */
.np-container {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.np-site {
  padding-top: var(--hdr-h);
  min-height: 100vh;
}

/* ── Separador editorial ─────────────────────────────── */
.np-section-sep {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.np-section-sep__line {
  flex: 1;
  height: 1px;
  background: var(--np-border);
}
.np-section-sep__title {
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--np-text-sec);
  white-space: nowrap;
}
.np-section-sep--accent .np-section-sep__title {
  color: var(--np-accent);
}
.np-section-sep--accent .np-section-sep__line:first-child {
  background: var(--np-accent);
  flex: 0 0 32px;
}

/* ── Badges / Tags ───────────────────────────────────── */
.np-tag {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--np-accent);
  text-decoration: none;
  line-height: 1;
}
.np-tag:hover { color: var(--np-accent-dk); }

.np-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-radius: var(--r-sm);
}
.np-badge--accent { background: var(--np-accent); color: #fff; }
.np-badge--dark   { background: var(--np-text); color: var(--np-bg); }
.np-badge--ghost  { border: 1px solid var(--np-border-str); color: var(--np-text-sec); }

/* ── Botones ─────────────────────────────────────────── */
.np-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 20px;
  font-size: var(--t-sm);
  font-family: var(--f-sans);
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.np-btn--primary { background: var(--np-accent); color: #fff; }
.np-btn--primary:hover { background: var(--np-accent-dk); color: #fff; }
.np-btn--outline { background: transparent; color: var(--np-text); border: 1px solid var(--np-border-str); }
.np-btn--outline:hover { border-color: var(--np-text); color: var(--np-text); }
.np-btn--sm { padding: 6px 14px; font-size: 12px; }

/* ── Tarjeta de noticia (base) ───────────────────────── */
.np-card {
  display: grid;
  gap: var(--sp-2);
}
.np-card__img {
  position: relative;
  overflow: hidden;
  background: var(--np-surface-alt);
}
.np-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-med);
}
.np-card:hover .np-card__img img { transform: scale(1.03); }

.np-card__tag  { margin-bottom: var(--sp-1); }
.np-card__title {
  font-family: var(--f-serif);
  font-weight: 700;
  color: var(--np-text);
  line-height: 1.25;
  text-decoration: none;
}
.np-card__title:hover { color: var(--np-accent); }
.np-card__sumario {
  font-size: var(--t-sm);
  color: var(--np-text-sec);
  line-height: 1.5;
}
.np-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--t-xs);
  color: var(--np-text-muted);
}
.np-card__meta a { color: var(--np-text-muted); }
.np-card__meta a:hover { color: var(--np-accent); }

/* ── Utility ─────────────────────────────────────────── */
.np-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .np-container { padding: 0 var(--sp-4); }
}
