/*
Theme Name: SpotNews
Theme URI: https://example.com/spotnews
Author: Nous Research
Author URI: https://nousresearch.com
Description: A reimplementation of a classic Argentine Blogger news/magazine layout (SpotNews-style). Thin utility top bar, category header menu, breaking-news ticker, embedded live radio player, featured hero grid, per-category sections, AJAX load-more and a dark footer. Fully configurable via the Customizer (accent color, logo, radio stream URL, about text, widget areas).
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spotnews
Tags: news, magazine, blog, custom-colors, custom-logo, custom-menu, widgetized
*/

/* ==========================================================================
   1. CSS Custom Properties (accent injected from Customizer in header.php)
   ========================================================================== */
:root {
  --accent: #0073ff;
  --accent-dark: #0056c4;
  --accent-soft: rgba(0, 115, 255, 0.10);
  --body-bg: #ffffff;
  --content-bg: #ffffff;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #9aa0a6;
  --border: #e5e7eb;
  --footer-bg: #0d0d0d;
  --footer-bg-2: #111111;
  --footer-text: #b0b3b8;
  --footer-border: #1f1f1f;
  --widget-header-bg: #171717;
  --header-bg: #ffffff;
  --ticker-bg: #f6f7f9;
}

body.dark {
  --body-bg: #101114;
  --content-bg: #16181c;
  --card-bg: #1b1e24;
  --text: #e6e8ea;
  --text-muted: #9aa0a6;
  --text-light: #6b7280;
  --border: #2a2d34;
  --header-bg: #16181c;
  --ticker-bg: #16181c;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Screen-reader text */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}

/* ==========================================================================
   3. Top utility bar
   ========================================================================== */
.topbar {
  background: var(--accent);
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
}
.topbar nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar nav a {
  display: inline-block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
  opacity: 0.92;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.topbar nav a:hover { background: rgba(255,255,255,0.15); opacity: 1; text-decoration: none; }

/* ==========================================================================
   4. Main header
   ========================================================================== */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.site-header .container { position: relative; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.site-branding { flex: 0 0 auto; max-width: 280px; }
.site-logo { display: inline-block; }
.site-logo img { max-height: 64px; width: auto; }
.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; color: var(--accent); }

.header-nav { flex: 1 1 auto; }
.header-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.header-nav a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 8px 11px;
  border-radius: 3px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.header-nav a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.header-nav li.current-menu-item > a,
.header-nav li.current-cat > a { color: var(--accent); }

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* Search form (drop-down) */
.header-search {
  display: none;
  position: absolute;
  top: 100%;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 14px;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.header-search.open { display: block; }
.header-search form { display: flex; gap: 8px; }
.header-search input[type="search"] {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
  background: var(--body-bg);
  color: var(--text);
}
.header-search input[type="search"]:focus { outline: none; border-color: var(--accent); }
.header-search button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 0 16px;
  font-weight: 700;
}

/* Mobile menu toggle (hidden on desktop) */
.mobile-menu-toggle { display: none; }

/* ==========================================================================
   5. Breaking-news ticker
   ========================================================================== */
.ticker-bar {
  background: var(--ticker-bg);
  border-bottom: 1px solid var(--border);
}
.ticker-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ticker-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  white-space: nowrap;
}
.ticker-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  min-height: 40px;
}
.ticker-items { position: relative; height: 100%; }
.ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.ticker-item.active { opacity: 1; visibility: visible; }
.ticker-item a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-item a:hover { color: var(--accent); text-decoration: none; }
.ticker-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}
.ticker-nav button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  border-radius: 3px;
}
.ticker-nav button:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   6. Live radio player
   ========================================================================== */
.radio-bar {
  background: var(--content-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.radio-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.radio-label .pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  animation: radio-pulse 1.2s infinite;
}
@keyframes radio-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}
.radio-bar audio { flex: 1 1 auto; min-width: 240px; height: 38px; }

/* ==========================================================================
   7. Featured hero grid
   ========================================================================== */
.featured-hero { margin: 24px 0; }
.featured-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.hero-card { position: relative; }
.hero-card .hero-thumb {
  position: relative;
  display: block;
  height: 100%;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
}
.hero-card { min-height: 440px; }
.hero-card-wrap { display: flex; }
.hero-card-wrap .hero-card { flex: 1 1 auto; width: 100%; }
.hero-card .hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-card .hero-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 32%, rgba(0,0,0,0) 52%);
}
.hero-card .hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  z-index: 2;
}
.hero-card .hero-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.hero-card .hero-title a { color: #fff; }
.hero-card .hero-title a:hover { color: #fff; text-decoration: underline; }
.hero-card .hero-meta { color: rgba(255,255,255,0.8); font-size: 12.5px; }

.featured-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Generic post card (small, image-top) */
.post-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.post-card .post-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--border);
  overflow: hidden;
}
.post-card .post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 3px;
}
.post-card-body { padding: 12px 14px; }
.post-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }
.post-card-meta { font-size: 12px; color: var(--text-light); }

/* ==========================================================================
   8. Main content layout
   ========================================================================== */
.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 28px 0 48px;
}

/* Category section */
.cat-section { margin-bottom: 32px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  background: #0a0a0a;
  padding: 10px 16px;
}
.section-head .section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}
.btn-ver-todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  padding: 6px 16px;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-ver-todo:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(-1px); }

.cat-section-first { margin-bottom: 16px; }
.post-list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.post-list-item .post-list-thumb {
  flex: 0 0 auto;
  width: 250px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  display: block;
  position: relative;
}
.post-list-item .post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-item.small .post-list-thumb { width: 90px; height: 62px; }
.post-list-body { flex: 1 1 auto; }
.post-list-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.post-list-title a { color: inherit; }
.post-list-title a:hover { color: var(--accent); text-decoration: none; }
.post-list-item.small .post-list-title { font-size: 0.92rem; }
.post-list-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-list-meta { font-size: 12px; color: var(--text-light); }

/* Load more */
.load-more-wrap { text-align: center; margin: 24px 0 8px; }
.btn-load-more {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 30px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}
.btn-load-more:hover { background: var(--accent-dark); text-decoration: none; }
.btn-load-more.loading { opacity: 0.6; pointer-events: none; }
.load-more-note { color: var(--text-light); font-size: 12.5px; }

/* ==========================================================================
   9. Sidebar / widgets
   ========================================================================== */
.sidebar { position: relative; }
.widget {
  margin-bottom: 24px;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--card-bg);
}
.widget .widget-header {
  background: var(--widget-header-bg);
  color: #fff;
  padding: 10px 14px;
}
.widget .widget-header .widget-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.widget .widget-zone {
  padding: 0;
  min-height: 0;
  background: var(--card-bg);
}
.widget .widget-zone img { display: block; width: 100%; border-radius: 0; }
.widget-banner {
  background: var(--border);
  min-height: 200px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-image: linear-gradient(135deg, var(--border) 0%, var(--ticker-bg) 100%);
}

/* ==========================================================================
   10. Single post
   ========================================================================== */
.single-article { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 24px 28px; }
.single-article .single-thumb { margin: -24px -28px 20px; }
.single-article .single-thumb img { width: 100%; }
.single-article .single-title { font-size: 1.8rem; margin: 0 0 12px; }
.single-article .single-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.single-article .single-meta .cat-badge {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.entry-content { font-size: 16px; line-height: 1.75; color: var(--text); }
.entry-content img { height: auto; border-radius: 6px; margin: 0 auto 16px; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.35rem; }
.entry-content a { text-decoration: underline; }
.post-categories-links { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.post-categories-links a {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-right: 6px;
}
.post-categories-links a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ==========================================================================
   11. Archive / category header
   ========================================================================== */
.archive-header { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--accent); }
.archive-header .archive-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--text);
}
.archive-header .archive-description { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Post list grid for archives / main listing */
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.archive-list > article { margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 0; }
.footer-top { padding: 48px 0 40px; }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--footer-border);
}
.footer-logo { flex: 0 0 auto; }
.footer-logo img { max-height: 56px; width: auto; }
.footer-about { flex: 1 1 auto; }
.footer-about h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.footer-about p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--footer-text); }

.footer-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}
/* category pills */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills a {
  display: inline-block;
  background: var(--footer-bg-2);
  border: 1px solid var(--footer-border);
  color: var(--footer-text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cat-pills a:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

.footer-mini-list li { margin-bottom: 14px; }
.footer-mini-list a {
  display: block;
  color: var(--footer-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.footer-mini-list a:hover { color: var(--accent); text-decoration: none; }
.footer-mini-list .footer-mini-date { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.footer-mini-item-with-thumb { display: flex; gap: 10px; align-items: center; }
.footer-mini-item-with-thumb img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
}

.footer-bottom {
  background: var(--footer-bg-2);
  border-top: 1px solid var(--footer-border);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copyright { font-size: 12.5px; color: #8a8f96; }
.footer-bottom nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-bottom nav a {
  color: #8a8f96;
  font-size: 12.5px;
  padding: 2px 8px;
}
.footer-bottom nav a:hover { color: var(--accent); text-decoration: none; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .header-nav { order: 3; flex: 1 1 100%; }
  .header-nav ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .featured-hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .featured-side-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .post-list-item .post-list-thumb { width: 120px; height: 96px; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; }
  .footer-brand-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .featured-side-grid { grid-template-columns: 1fr; }
  .header-actions .search-toggle { display: none; }
  .ticker-item a { white-space: normal; }
  .radio-bar-inner { flex-direction: column; align-items: stretch; }
  .single-article { padding: 16px; }
  .single-article .single-thumb { margin: -16px -16px 16px; }
}
/* Market ticker (dolar / granos / clima) */
.market-ticker {
  background: #111;
  color: #e5e5e5;
  border-bottom: 1px solid #222;
  font-size: 12.5px;
  overflow: hidden;
  white-space: nowrap;
}
.market-ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.market-ticker-inner::-webkit-scrollbar { display: none; }
.market-ticker .mt-item { color: #b5b5b5; flex: 0 0 auto; }
.market-ticker .mt-item strong { color: #fff; font-weight: 700; margin-left: 3px; }
.market-ticker .mt-sep { color: #3a3a3a; flex: 0 0 auto; }
@media (max-width: 640px) {
  .market-ticker-inner { padding: 6px 12px; }
  .market-ticker .mt-item { font-size: 11.5px; }
}

/* Share buttons */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 4px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }
.share-pin { background: #e60023; }
.share-mail { background: #6b7280; }
.share-btn:hover { opacity: 0.88; }

/* Related posts ("Te puede interesar") */
.related-posts { margin: 10px 0 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card { display: block; }
.related-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-body { padding-top: 10px; }
.related-body .cat-badge { margin-bottom: 6px; display: inline-block; }
.related-title { font-size: 1rem; font-weight: 700; margin: 4px 0 6px; line-height: 1.3; }
.related-title a { color: var(--text); }
.related-title a:hover { color: var(--accent); }
.related-body time { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 780px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Comments section header (igual a section-head) */
.comments-section { margin: 10px 0 28px; }
.comments-section .comment-form textarea,
.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"] {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}
.comments-section .comment-form textarea { max-width: 100%; min-height: 90px; }
.comments-section .comment-form p { margin: 0 0 12px; }
.comments-section .comment-form .form-submit input {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

/* Navegacion anterior / siguiente */
.single-post-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 28px;
  font-size: 14px;
}
.single-post-nav a { color: var(--text); font-weight: 600; }
.single-post-nav a:hover { color: var(--accent); }
