/*
Theme Name: Info Rivadavia
Theme URI: https://inforivadavia.com.ar
Author: NEXIA MKT & Consultoría
Author URI: https://nexiamkt.com.ar
Description: Tema oficial del diario digital Info Rivadavia — Rivadavia, Mendoza, Argentina.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: info-rivadavia
*/

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

/* ── VARIABLES ── */
:root {
  --navy:    #0d1b2a;
  --blue-d:  #1a5276;
  --blue-m:  #2e86c1;
  --blue-l:  #85b7eb;
  --blue-xl: #b5d4f4;
  --blue-bg: #eaf2fb;
  --blue-bg2:#d6eaf8;
  --text:    #1a2733;
  --muted:   #5a7a90;
  --border:  rgba(46,134,193,0.18);
  --surface: #f4f8fc;
  --white:   #ffffff;
  --red:     #c0392b;
  --green:   #1e8449;
  --gold:    #d4ac0d;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Source Sans 3', system-ui, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  padding: 5px 0;
  font-size: 11px;
  color: var(--blue-l);
  letter-spacing: 0.04em;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--blue-l); transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; }
.topbar-date { color: #4a7aa0; }

/* ── TICKER ── */
.ticker {
  background: var(--blue-d);
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker-label {
  background: var(--blue-m);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-text {
  display: inline-block;
  font-size: 12px;
  color: var(--blue-xl);
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ── HEADER ── */
header.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--blue-m);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.logo-zone { flex-shrink: 0; }
.logo-info {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}
.logo-info span { color: var(--blue-m); }
.logo-rivadavia {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-xl);
  display: block;
  margin-top: -4px;
}
.logo-tagline {
  font-size: 10px;
  color: #3a6a90;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 5px;
}
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 8px;
}
.header-weather {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,134,193,0.12);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--blue-xl);
}
.weather-temp { font-size: 18px; font-weight: 600; color: #fff; }
.header-social { display: flex; gap: 8px; }
.social-btn {
  width: 28px; height: 28px;
  border-radius: 4px;
  border: 0.5px solid rgba(46,134,193,0.3);
  background: rgba(46,134,193,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--blue-l);
  cursor: pointer; transition: background 0.2s;
}
.social-btn:hover { background: var(--blue-m); color: #fff; }

/* ── NAV ── */
nav.site-nav {
  background: var(--navy);
  border-top: 0.5px solid rgba(46,134,193,0.2);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
}
.nav-inner ul { display: flex; list-style: none; gap: 2px; }
.nav-inner ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  color: #5a8aaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-inner ul li a:hover,
.nav-inner ul li.current-menu-item a {
  color: var(--blue-m);
  border-bottom-color: var(--blue-m);
}

/* ── LAYOUT ── */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* ── FEATURED / POST DESTACADO ── */
.featured-post {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  margin-bottom: 24px;
}
.featured-post .post-thumbnail {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #1a5276 0%, #0d1b2a 100%);
}
.featured-post .post-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured-post .post-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,40,0.88) 0%, transparent 55%);
}
.featured-post .post-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--blue-m);
  color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.featured-post .post-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.featured-post .post-caption h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: #fff; line-height: 1.3;
  margin-bottom: 6px;
}
.featured-post .post-caption h2 a { color: #fff; }
.featured-post .post-caption h2 a:hover { color: var(--blue-xl); }
.featured-post .post-meta {
  font-size: 11px; color: var(--blue-l);
  display: flex; gap: 12px;
}
.featured-post .post-excerpt {
  padding: 16px 20px 20px;
  font-size: 14px; color: #4a6070; line-height: 1.65;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 17px; font-weight: 700; color: var(--text);
}
.section-line { flex: 1; height: 0.5px; background: var(--border); }
.section-accent {
  width: 4px; height: 18px;
  background: var(--blue-m);
  border-radius: 2px; flex-shrink: 0;
}

/* ── NEWS GRID ── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.news-card {
  background: var(--white);
  border-radius: 8px;
  border: 0.5px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 4px 20px rgba(26,82,118,0.1); }
.news-card .post-thumbnail {
  height: 130px; overflow: hidden;
  background: linear-gradient(135deg, #1a5276, #0d3a5a);
}
.news-card .post-thumbnail img { width:100%; height:100%; object-fit:cover; }
.news-card-body { padding: 12px 14px 14px; }
.cat-badge {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: inline-block;
  padding: 1px 8px; border-radius: 3px; color: #fff;
}
.cat-locales    { background: var(--blue-m); }
.cat-regionales { background: var(--blue-d); }
.cat-nacionales { background: #34495e; }
.cat-deportes   { background: var(--green); }
.cat-policiales { background: #555; }
.cat-economia   { background: var(--gold); color: #333 !important; }
.cat-campo      { background: #7dbe6a; color: #1a3312 !important; }
.cat-espectaculos { background: #8e44ad; }
.cat-opinion    { background: #2c3e50; }

.news-card-body h3 {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  color: var(--text); line-height: 1.3;
  margin-bottom: 6px;
}
.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--blue-m); }
.news-card-body p { font-size: 12px; color: #7a8a95; line-height: 1.5; }
.news-card-meta {
  font-size: 11px; color: #aaa;
  margin-top: 8px;
  display: flex; justify-content: space-between;
}

/* ── LIST CARDS ── */
.list-card {
  background: var(--white);
  border-radius: 8px;
  border: 0.5px solid var(--border);
  margin-bottom: 10px;
  padding: 12px 14px;
  display: flex; gap: 12px;
  transition: background 0.15s;
}
.list-card:hover { background: var(--blue-bg); }
.list-card-num {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--blue-bg2);
  min-width: 28px; line-height: 1; padding-top: 2px;
}
.list-card h4 {
  font-family: var(--serif);
  font-size: 14px; font-weight: 600;
  color: var(--text); line-height: 1.3; margin-bottom: 3px;
}
.list-card h4 a { color: var(--text); }
.list-card h4 a:hover { color: var(--blue-m); }
.list-card p { font-size: 12px; color: #7a8a95; }

/* ── SINGLE POST ── */
.single-post-container {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px; align-items: start;
}
.single-post article { background: var(--white); border-radius: 10px; border: 0.5px solid var(--border); overflow: hidden; }
.single-post .post-hero { height: 380px; overflow: hidden; }
.single-post .post-hero img { width:100%; height:100%; object-fit:cover; }
.single-post .post-content-wrap { padding: 28px 32px 36px; }
.single-post h1.post-title {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700;
  color: var(--text); line-height: 1.25;
  margin-bottom: 12px;
}
.single-post .post-meta-bar {
  display: flex; gap: 16px; align-items: center;
  font-size: 12px; color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--border);
}
.single-post .post-body {
  font-size: 16px; line-height: 1.8; color: #2a3a48;
}
.single-post .post-body p { margin-bottom: 1.2em; }
.single-post .post-body h2 { font-family: var(--serif); font-size: 22px; margin: 1.5em 0 0.5em; color: var(--navy); }
.single-post .post-body h3 { font-family: var(--serif); font-size: 18px; margin: 1.2em 0 0.4em; color: var(--navy); }
.single-post .post-body img { border-radius: 6px; margin: 1.2em 0; }
.single-post .post-body a { color: var(--blue-m); text-decoration: underline; }
.single-post .post-body blockquote {
  border-left: 3px solid var(--blue-m);
  padding: 10px 20px;
  margin: 1.2em 0;
  background: var(--blue-bg);
  border-radius: 0 6px 6px 0;
  font-style: italic; color: var(--muted);
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget-ir {
  background: var(--white);
  border-radius: 8px;
  border: 0.5px solid var(--border);
  overflow: hidden;
}
.widget-ir .widget-title {
  background: var(--navy);
  color: var(--blue-xl);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 14px;
  border-bottom: 2px solid var(--blue-m);
}
.widget-ir .widget-body { padding: 14px; }

/* Clima */
.clima-main { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.clima-temp { font-size: 40px; font-weight: 300; color: var(--navy); line-height: 1; }
.clima-icon { font-size: 36px; }
.clima-desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.clima-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  padding: 4px 0; border-top: 0.5px solid var(--border);
}
.clima-row span:last-child { color: var(--text); font-weight: 500; }

/* Más leídas */
.leidas-item {
  display: flex; gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
}
.leidas-item:last-child { border-bottom: none; }
.leidas-num { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--blue-bg2); min-width: 22px; line-height: 1.1; }
.leidas-item h4 { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.3; }
.leidas-item h4 a { color: var(--text); }
.leidas-item h4 a:hover { color: var(--blue-m); }
.leidas-item p { font-size: 11px; color: #aaa; margin-top: 2px; }

/* Publicidad */
.pub-banner {
  height: 120px;
  background: linear-gradient(135deg, var(--blue-bg), var(--blue-bg2));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  border: 1px dashed var(--border);
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Suscripción */
.widget-suscripcion {
  background: var(--navy);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
}
.widget-suscripcion h3 { font-family: var(--serif); font-size: 16px; color: #fff; margin-bottom: 6px; }
.widget-suscripcion p { font-size: 12px; color: var(--blue-l); margin-bottom: 14px; line-height: 1.5; }
.widget-suscripcion input {
  width: 100%; padding: 8px 12px;
  border-radius: 5px;
  border: 0.5px solid rgba(46,134,193,0.4);
  background: rgba(46,134,193,0.1);
  color: #fff; font-size: 13px;
  margin-bottom: 8px; outline: none;
}
.widget-suscripcion input::placeholder { color: #4a7aa0; }
.widget-suscripcion button {
  width: 100%; padding: 9px;
  background: var(--blue-m); color: #fff;
  border: none; border-radius: 5px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.2s; letter-spacing: 0.04em;
}
.widget-suscripcion button:hover { background: var(--blue-d); }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--blue-m);
  margin-top: 32px;
  padding: 32px 0 16px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 0.5px solid rgba(46,134,193,0.2);
}
.footer-logo-name { font-family: var(--serif); font-size: 36px; color: #fff; font-weight: 700; letter-spacing: -0.02em; }
.footer-logo-name span { color: var(--blue-m); }
.footer-logo-sub { font-size: 13px; color: var(--blue-l); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }
.footer-logo p { font-size: 12px; color: #4a7aa0; margin-top: 10px; line-height: 1.6; }
.footer-col h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-m); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: #5a8aaa; margin-bottom: 6px; }
.footer-col a:hover { color: var(--blue-xl); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #3a5a70; }

/* ── PAGINACIÓN ── */
.pagination { margin: 24px 0; display: flex; gap: 6px; }
.pagination a, .pagination span {
  padding: 7px 13px;
  border-radius: 5px;
  font-size: 13px;
  border: 0.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--blue-m); color: #fff; border-color: var(--blue-m); }
.pagination .current { background: var(--blue-m); color: #fff; border-color: var(--blue-m); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-container, .single-post-container { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .footer-logo { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .logo-info { font-size: 42px; }
  .news-grid { grid-template-columns: 1fr; }
  .header-right { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .single-post .post-content-wrap { padding: 18px 16px 24px; }
  .single-post h1.post-title { font-size: 22px; }
}
