/*
Theme Name: Solo en Off
Theme URI: https://soloenoff.com
Author: Agencia Ocho
Author URI: https://agenciaocho.com
Description: Portal de noticias político-periodístico. Diseño profesional estilo medio digital argentino.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: soloenoff
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images
*/

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --rojo: #c0392b;
  --rojo-oscuro: #96281b;
  --negro: #111111;
  --gris-oscuro: #222222;
  --gris-medio: #444444;
  --gris-claro: #f2f2f2;
  --borde: #dddddd;
  --blanco: #ffffff;
  --font-title: 'Georgia', 'Times New Roman', serif;
  --font-ui: 'Arial', 'Helvetica', sans-serif;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--gris-claro);
  color: var(--negro);
  font-size: 15px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--rojo); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── TOP BAR ────────────────────────────────────────────── */
.topbar {
  background: var(--negro);
  color: #aaa;
  font-size: 12px;
  padding: 6px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #aaa; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 16px; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--blanco);
  border-bottom: 4px solid var(--rojo);
  padding: 12px 0 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 900;
  color: var(--negro);
  letter-spacing: -1px;
  line-height: 1;
}
.site-logo span { color: var(--rojo); }
.site-logo-sub {
  font-size: 12px;
  color: var(--gris-medio);
  font-family: var(--font-ui);
  margin-top: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.header-date {
  text-align: right;
  font-size: 13px;
  color: var(--gris-medio);
}

/* ── NAV ────────────────────────────────────────────────── */
.main-nav { background: var(--negro); }
.main-nav li { list-style: none; display: block; }
.main-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.main-nav a {
  color: #ddd;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: var(--rojo);
  color: var(--blanco);
}

/* ── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--rojo);
  color: var(--blanco);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  background: var(--rojo-oscuro);
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
  font-size: 13px;
  padding: 7px 0;
}
.ticker-content span { margin: 0 40px; }
@keyframes ticker-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}
.main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
}

/* ── SECTION TITLE ──────────────────────────────────────── */
.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid var(--rojo);
  padding-left: 10px;
  margin-bottom: 16px;
}
.section-sep {
  border: none;
  border-top: 3px solid var(--negro);
  margin-bottom: 16px;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero { margin-bottom: 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  background: #000;
  display: block;
}
.hero-main img { width: 100%; height: 380px; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.hero-main:hover img { opacity: 1; }
.hero-main .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 40px 20px 20px;
  color: #fff;
}
.hero-side {
  position: relative;
  overflow: hidden;
  background: #000;
  display: block;
}
.hero-side img { width: 100%; height: 188px; object-fit: cover; opacity: 0.82; transition: opacity 0.2s; }
.hero-side:hover img { opacity: 1; }
.hero-side .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 30px 14px 14px;
  color: #fff;
}
.cat-tag {
  background: var(--rojo);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  margin-bottom: 8px;
  display: inline-block;
  color: #fff;
}
.hero-main h2 {
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.hero-main .volanta { font-size: 13px; color: #ccc; }
.hero-side h3 {
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}
.hero-no-image {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 48px;
}
.hero-side-no-image {
  width: 100%;
  height: 188px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

/* ── NEWS GRID ──────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 700px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  overflow: hidden;
  transition: box-shadow 0.15s;
  display: block;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.news-card .card-img { height: 160px; overflow: hidden; background: #1a1a2e; }
.news-card .card-img img { width: 100%; height: 160px; object-fit: cover; }
.news-card-body { padding: 12px; }
.news-card .cat { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--rojo); letter-spacing: 0.8px; margin-bottom: 5px; }
.news-card h3 { font-family: var(--font-title); font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--negro); margin-bottom: 6px; }
.news-card:hover h3 { color: var(--rojo); }
.news-card p { font-size: 13px; color: var(--gris-medio); line-height: 1.45; }
.news-card .meta { font-size: 11px; color: #999; margin-top: 10px; border-top: 1px solid var(--borde); padding-top: 8px; }

/* ── LIST ARTICLE ───────────────────────────────────────── */
.list-articles { background: var(--blanco); border: 1px solid var(--borde); margin-bottom: 28px; }
.list-article {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--borde);
}
.list-article:last-child { border-bottom: none; }
.list-article .thumb { width: 110px; height: 72px; flex-shrink: 0; overflow: hidden; background: #1a1a2e; }
.list-article .thumb img { width: 110px; height: 72px; object-fit: cover; }
.list-article-body { flex: 1; }
.list-article .cat { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--rojo); letter-spacing: 0.8px; margin-bottom: 4px; }
.list-article h4 { font-family: var(--font-title); font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--negro); margin-bottom: 3px; }
.list-article:hover h4 { color: var(--rojo); }
.list-article .meta { font-size: 11px; color: #999; }

/* ── OPINION GRID ───────────────────────────────────────── */
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .opinion-grid { grid-template-columns: repeat(2, 1fr); }
}
.opinion-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  padding: 16px;
  text-align: center;
  display: block;
}
.opinion-card .avatar { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; background: #eee; }
.opinion-card .avatar img { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; }
.opinion-card .author-name { font-weight: 800; font-size: 14px; margin-bottom: 3px; color: var(--negro); }
.opinion-card .author-role { font-size: 11px; color: #999; margin-bottom: 10px; }
.opinion-card h4 { font-family: var(--font-title); font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--negro); }
.opinion-card:hover h4 { color: var(--rojo); }

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-box { background: var(--blanco); border: 1px solid var(--borde); }
.sidebar-box-title {
  background: var(--negro);
  color: var(--blanco);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 9px 14px;
}
.sidebar-box-title.red { background: var(--rojo); }

/* Más leídas */
.mas-leida-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--borde);
}
.mas-leida-item:last-child { border-bottom: none; }
.mas-leida-num { font-size: 28px; font-weight: 900; color: var(--borde); line-height: 1; min-width: 28px; }
.mas-leida-item h5 { font-family: var(--font-title); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--negro); }
.mas-leida-item:hover h5 { color: var(--rojo); }
.mas-leida-item .meta { font-size: 11px; color: #999; margin-top: 3px; }

/* Newsletter */
.newsletter-box { padding: 16px; }
.newsletter-box p { font-size: 13px; color: var(--gris-medio); margin-bottom: 12px; line-height: 1.5; }
.newsletter-box input[type=email] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--borde);
  font-size: 13px;
  margin-bottom: 8px;
  font-family: var(--font-ui);
}
.newsletter-box button {
  width: 100%;
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.newsletter-box button:hover { background: var(--rojo-oscuro); }

/* Off the record */
.off-box { padding: 14px; }
.off-quote { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--borde); }
.off-quote:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.off-quote blockquote { font-size: 13px; color: #555; line-height: 1.6; font-weight: 600; margin-bottom: 6px; }
.off-quote cite { font-size: 12px; color: #999; font-style: normal; }

/* ── SINGLE POST ────────────────────────────────────────── */
.single-hero { margin-bottom: 28px; }
.single-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.single-header { margin-bottom: 20px; }
.single-cat { margin-bottom: 10px; }
.single-title {
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 12px;
}
.single-meta { font-size: 13px; color: #999; margin-bottom: 20px; }
.single-meta strong { color: var(--negro); }
.single-content {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  background: var(--blanco);
  padding: 28px;
  border: 1px solid var(--borde);
}
.single-content p { margin-bottom: 18px; }
.single-content h2, .single-content h3 { font-family: var(--font-title); margin: 24px 0 12px; color: var(--negro); }
.single-content blockquote {
  border-left: 4px solid var(--rojo);
  padding: 12px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
}

/* ── 404 ────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 120px; color: var(--rojo); font-family: var(--font-title); line-height: 1; }
.error-page h2 { font-size: 24px; margin-bottom: 16px; }
.error-page p { color: var(--gris-medio); margin-bottom: 24px; }
.btn-red {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}
.btn-red:hover { background: var(--rojo-oscuro); color: #fff; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--negro); color: #aaa; margin-top: 40px; }
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-logo { font-family: var(--font-title); font-size: 28px; font-weight: 900; color: var(--blanco); margin-bottom: 10px; }
.footer-logo span { color: var(--rojo); }
.site-footer p { font-size: 13px; line-height: 1.6; }
.site-footer h6 { color: var(--blanco); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; border-bottom: 1px solid #333; padding-bottom: 8px; }
.site-footer ul li { margin-bottom: 7px; }
.site-footer ul a { color: #aaa; font-size: 13px; }
.site-footer ul a:hover { color: var(--rojo); }
.footer-bottom { background: #000; text-align: center; padding: 14px; font-size: 12px; color: #555; }
.footer-bottom a { color: #555; }
.footer-bottom a:hover { color: var(--rojo); }

/* ── SEARCH ─────────────────────────────────────────────── */
.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--borde); font-size: 14px; font-family: var(--font-ui); }
.search-form button { background: var(--rojo); color: #fff; border: none; padding: 10px 18px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 13px; }
.search-form button:hover { background: var(--rojo-oscuro); }

/* ── PAGINATION ─────────────────────────────────────────── */
.pagination { text-align: center; margin: 28px 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  font-size: 14px;
  color: var(--negro);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--rojo);
  color: #fff;
  border-color: var(--rojo);
}
