/*
Theme Name: Noticias Futuro
Theme URI: https://noticiasfuturo.com
Author: Sustantiva Digital
Description: Tema custom para Noticias Futuro - Periodismo progresista bonaerense
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: noticias-futuro
*/

/* === VARIABLES === */
:root {
  --violeta:      #3D1A8C;
  --violeta-mid:  #5A2FC0;
  --lima:         #B8F000;
  --negro:        #0D0D0D;
  --fondo:        #F9F8FF;
  --fondo-card:   #FFFFFF;
  --borde:        #E4E0F5;
  --gris:         #666;
  --gris-light:   #AAA;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--fondo);
  color: var(--negro);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === TICKER === */
.nf-ticker {
  background: var(--lima);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nf-ticker-label {
  background: var(--violeta);
  color: var(--lima);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nf-ticker-track { overflow: hidden; flex: 1; }
.nf-ticker-inner {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  animation: nftick 36s linear infinite;
}
.nf-ticker-inner span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--negro);
}
@keyframes nftick {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === HEADER === */
.nf-header {
  background: var(--negro);
  padding: 0 32px;
}
.nf-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.nf-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nf-logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nf-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nf-logo-name span { color: var(--lima); }
.nf-logo-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 3px;
}
.nf-header-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
}
.nf-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.nf-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 11px 14px 11px 0;
  margin-right: 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nf-nav a:hover,
.nf-nav a.current {
  color: var(--lima);
  border-bottom-color: var(--lima);
}

/* === HERO GRID === */
.nf-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 360px;
  background: #0D0D0D;
}
.nf-hero-main {
  position: relative;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.nf-hero-main a { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.nf-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transition: opacity 0.3s;
}
.nf-hero-main:hover .nf-hero-bg { opacity: 0.35; }
.nf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.4) 60%, transparent 100%);
}
.nf-hero-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--lima), rgba(184,240,0,0.2));
}
.nf-hero-content { position: relative; z-index: 1; }
.nf-hero-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lima);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nf-hero-cat::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--lima);
}
.nf-hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}
.nf-hero-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 540px;
}
.nf-hero-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* Hero stack lateral */
.nf-hero-stack {
  display: flex;
  flex-direction: column;
}
.nf-hero-stack-item {
  flex: 1;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nf-hero-stack-item:last-child { border-bottom: none; }
.nf-hero-stack-item:hover { background: rgba(184,240,0,0.04); }
.nf-hero-stack-item a { display: block; }
.nf-stack-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lima);
  opacity: 0.8;
  margin-bottom: 6px;
}
.nf-stack-title {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,0.8);
}
.nf-stack-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  margin-top: 7px;
}

/* === BODY === */
.nf-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

/* Section label */
.nf-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.nf-section-label::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--lima);
  border-radius: 50%;
  border: 2px solid var(--violeta);
  flex-shrink: 0;
}
.nf-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--borde);
}

/* Card grid */
.nf-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.nf-card { cursor: pointer; }
.nf-card:hover .nf-card-title { color: var(--violeta); }
.nf-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8e4ff;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.nf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.nf-card:hover .nf-card-img img { transform: scale(1.04); }
.nf-card-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violeta);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nf-card-cat::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 11px;
  background: var(--lima);
  border-radius: 2px;
}
.nf-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  line-height: 1.3;
  color: var(--negro);
  margin-bottom: 6px;
  transition: color 0.15s;
}
.nf-card-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--gris-light);
}

/* Lista de artículos */
.nf-article-list { display: flex; flex-direction: column; }
.nf-article-item {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--borde);
  align-items: flex-start;
}
.nf-article-item:hover .nf-article-title { color: var(--violeta); }
.nf-article-num {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--borde);
  line-height: 1;
  flex-shrink: 0;
  width: 30px;
  text-align: right;
}
.nf-article-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violeta);
  margin-bottom: 4px;
}
.nf-article-title {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--negro);
  transition: color 0.15s;
}
.nf-article-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  color: var(--gris-light);
  margin-top: 5px;
}

/* === SIDEBAR === */
.nf-ad-banner {
  background: #fff;
  border: 1px dashed var(--borde);
  border-radius: 4px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.nf-ad-banner img { width: 100%; }
.nf-ad-placeholder {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
}
.nf-trending-block {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 6px;
  padding: 18px;
  margin-top: 28px;
}
.nf-trending-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
  align-items: flex-start;
}
.nf-trending-item:last-child { border-bottom: none; }
.nf-trending-item:hover .nf-trending-title { color: var(--violeta); }
.nf-trending-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--borde);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
}
.nf-trending-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violeta);
  margin-bottom: 3px;
}
.nf-trending-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--negro);
  transition: color 0.15s;
}

/* === SINGLE POST === */
.nf-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}
.nf-post-header { margin-bottom: 28px; }
.nf-post-cat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violeta);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nf-post-cat::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--lima);
}
.nf-post-title {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  line-height: 1.18;
  color: var(--negro);
  margin-bottom: 16px;
}
.nf-post-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--gris-light);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.nf-post-meta-dot {
  width: 3px; height: 3px;
  background: var(--lima);
  border-radius: 50%;
}
.nf-post-featured-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 32px;
  overflow: hidden;
}
.nf-post-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.nf-post-content {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}
.nf-post-content p { margin-bottom: 24px; }
.nf-post-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--negro);
  border-left: 4px solid var(--lima);
  padding-left: 14px;
  margin: 36px 0 16px;
}
.nf-post-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--negro);
  margin: 28px 0 12px;
}
.nf-post-content blockquote {
  border-left: 4px solid var(--violeta);
  background: #f3f0ff;
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--violeta);
  margin: 28px 0;
  font-style: italic;
}
.nf-post-content a {
  color: var(--violeta);
  text-decoration: underline;
  text-decoration-color: rgba(61,26,140,0.3);
}
.nf-post-content a:hover { text-decoration-color: var(--violeta); }

/* === PAGINACIÓN === */
.nf-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.nf-pagination a, .nf-pagination span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--borde);
  color: var(--negro);
  transition: all 0.15s;
}
.nf-pagination a:hover { border-color: var(--violeta); color: var(--violeta); }
.nf-pagination span.current { background: var(--violeta); color: #fff; border-color: var(--violeta); }

/* === FOOTER === */
.nf-footer {
  background: var(--negro);
  border-top: 4px solid var(--lima);
  padding: 36px 32px 24px;
}
.nf-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 20px;
}
.nf-footer-logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.nf-footer-logo-name span { color: var(--lima); }
.nf-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}
.nf-footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 14px;
}
.nf-footer-links { display: flex; flex-direction: column; gap: 8px; }
.nf-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}
.nf-footer-links a:hover { color: var(--lima); }
.nf-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nf-footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nf-hero { grid-template-columns: 1fr; }
  .nf-hero-stack { display: none; }
  .nf-body, .nf-single { grid-template-columns: 1fr; padding: 20px; }
  .nf-card-grid { grid-template-columns: 1fr; }
  .nf-footer-inner { grid-template-columns: 1fr; }
  .nf-header { padding: 0 16px; }
  .nf-hero-main { padding: 24px 20px; }
  .nf-hero-title { font-size: 22px; }
  .nf-post-title { font-size: 26px; }
  .nf-nav { gap: 0; }
  .nf-nav a { font-size: 10px; padding: 10px 10px 10px 0; margin-right: 10px; }
}
