/*
Theme Name: Equacom News
Theme URI: https://equacoms.news
Author: EQUACOM
Author URI: https://equacoms.news
Description: Theme profesional estilo periódico digital con animaciones avanzadas para EQUACOM NEWS. Portal de noticias líder en información económica, empresarial y de actualidad de África Central y Guinea Ecuatorial.
Version: 1.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: equacom-news
Tags: news, magazine, blog, custom-menu, featured-images, translation-ready, custom-logo
*/

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

:root {
  --primary: #0077cc;
  --primary-fg: #ffffff;
  --secondary: #1a2332;
  --secondary-fg: #ffffff;
  --accent: #2196F3;
  --ticker-bg: #d32f2f;
  --ticker-fg: #ffffff;
  --background: #eceef2;
  --foreground: #1e2a3a;
  --card: #ffffff;
  --border: #dde1e7;
  --muted: #8c95a3;
  --footer-bg: #151c27;
  --footer-fg: #8c95a3;
  --cat-economia: #0077cc;
  --cat-empresas: #33996b;
  --cat-actualidad: #d32f2f;
  --cat-deportes: #e68a00;
  --cat-innovacion: #7c3aed;
  --cat-empleos: #0097a7;
  --cat-formacion: #e91e90;
  --cat-emprendimiento: #339966;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px -10px rgba(30,42,58,0.18);
}

/* ============================================
   DARK MODE
   ============================================ */
body.dark-mode {
  --background: #141a24;
  --foreground: #d4d8e0;
  --card: #1e2736;
  --border: #2a3444;
  --muted: #6b7280;
  --footer-bg: #0d1117;
  --footer-fg: #6b7280;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  width: 100%;
  min-height: 100vh;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.3;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
img { max-width: 100%; height: auto; display: block; background: var(--background); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============================================
   WATERMARK
   ============================================ */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('assets/images/logo-watermark.png') no-repeat center center;
  background-size: 35%;
  opacity: 0.025;
  z-index: -1;
  pointer-events: none;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--secondary);
  color: #8c95a3;
  font-size: 11px;
  padding: 6px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--primary); }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-social a { padding: 4px; }
.topbar-social a:hover { transform: scale(1.1); }

/* ============================================
   TICKER
   ============================================ */
.ticker-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ticker-bg);
  color: var(--ticker-fg);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.ticker-label::after {
  content: '';
  position: absolute;
  right: -12px; top: 0;
  width: 12px; height: 100%;
  background: var(--ticker-bg);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.ticker-scroll {
  overflow: hidden;
  flex: 1;
  margin-left: 16px;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 18s linear infinite;
}
.ticker-track a {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.ticker-track a::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ticker-bg);
  flex-shrink: 0;
}
.ticker-track a:hover { color: var(--primary); }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   HEADER / LOGO ROW
   ============================================ */
.logo-row {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: padding 0.5s ease;
}
.logo-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-row img { height: 48px; object-fit: contain; transition: height 0.5s ease; }
.logo-row .date-info {
  font-size: 12px;
  color: var(--muted);
  display: none;
}
.logo-row .action-buttons { display: flex; gap: 8px; align-items: center; }

.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.dark-toggle:hover { background: var(--background); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-accent:hover { opacity: 0.9; }

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav li a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  position: relative;
  white-space: nowrap;
}
.main-nav li a:hover,
.main-nav li.current-menu-item a {
  color: var(--ticker-bg);
}
.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}
.main-nav li a:hover::after,
.main-nav li.current-menu-item a::after {
  background: var(--ticker-bg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 22px;
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--background);
}
.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.featured-main:hover img { transform: scale(1.05); }
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,28,39,0.85), rgba(21,28,39,0.2), transparent);
}
.featured-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
}
.featured-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-top: 12px;
  line-height: 1.25;
}
.featured-main:hover .featured-content h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.featured-content p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-top: 8px;
  max-width: 600px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 12px;
}
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.featured-side-item {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  min-height: 160px;
  background: var(--background);
}
.featured-side-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.featured-side-item:hover img { transform: scale(1.05); }
.featured-side-item .featured-overlay { z-index: 1; }
.featured-side-item .side-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  z-index: 2;
}
.featured-side-item .side-content h3 {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}
.featured-side-item:hover .side-content h3 { text-decoration: underline; }
.featured-side-item .progress-bar {
  position: absolute;
  right: 0; top: 0;
  width: 3px;
  height: 100%;
  z-index: 3;
  opacity: 0.8;
  border-radius: 2px 0 0 2px;
}
.side-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
}

/* ============================================
   CATEGORY BADGES
   ============================================ */
.category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  border-radius: 8px;
}
.badge-economia { background: var(--cat-economia); }
.badge-empresas { background: var(--cat-empresas); }
.badge-actualidad { background: var(--cat-actualidad); }
.badge-deportes { background: var(--cat-deportes); }
.badge-innovacion { background: var(--cat-innovacion); }
.badge-empleos { background: var(--cat-empleos); }
.badge-formacion { background: var(--cat-formacion); }
.badge-emprendimiento { background: var(--cat-emprendimiento); }
.badge-default { background: var(--primary); }

/* ============================================
   NEWS GRID
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-header .bar {
  width: 3px;
  height: 24px;
  background: var(--ticker-bg);
  border-radius: 2px;
}
.section-header h2 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.news-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.news-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ============================================
   NEWS CARD
   ============================================ */
.news-card {
  background: var(--card);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: var(--radius);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card-image {
  overflow: hidden;
  aspect-ratio: 16/10;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--background);
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  background: var(--background);
}
.news-card:hover .news-card-image img { transform: scale(1.1); }
.news-card-body { padding: 16px; }
.news-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-body h3 { color: var(--primary); }
.news-card-body .excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar-block {
  background: var(--card);
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sidebar-title .bar {
  width: 3px; height: 20px;
  background: var(--ticker-bg);
  border-radius: 2px;
}
.sidebar-title h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-article {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article img {
  width: 80px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.sidebar-article h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-article:hover h4 { color: var(--primary); }
.sidebar-article .date { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* Most Read auto scroll */
.most-read-scroll {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}
.most-read-track {
  display: flex;
  flex-direction: column;
  animation: mostReadVertical 28s linear infinite;
}
.most-read-track:hover { animation-play-state: paused; }
.most-read-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.most-read-thumb {
  width: 80px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--background);
}
.most-read-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.most-read-content h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.most-read-item:hover .most-read-content h4 { color: var(--primary); }

@keyframes mostReadVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Newsletter */
.newsletter-block {
  background: var(--secondary);
  color: var(--secondary-fg);
  padding: 20px;
  border-radius: var(--radius);
}
.newsletter-block h3 {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.newsletter-block p { font-size: 12px; opacity: 0.8; margin-bottom: 16px; }
.newsletter-block input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.newsletter-block input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-block button {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-block button:hover { background: var(--accent); }

/* ============================================
   COMMENTS
   ============================================ */
.comments-section { max-width: 768px; margin: 0 auto; padding: 40px 16px; }
.comments-section h2 { font-size: 22px; margin-bottom: 24px; }
.comment-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,119,204,0.15);
}
.comment-form textarea { resize: none; margin-bottom: 16px; }
.comment-form button {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.comment-form button:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(0,119,204,0.3); }
.comment-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,119,204,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-name { font-weight: 600; font-size: 14px; }
.comment-date { font-size: 11px; color: var(--muted); }
.comment-text { font-size: 14px; color: rgba(30,42,58,0.8); line-height: 1.6; }

/* ============================================
   AD BANNER
   ============================================ */
.ad-banner {
  margin: 16px auto;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.ad-banner-leaderboard { max-width: 728px; height: 90px; }
.ad-banner-sidebar { max-width: 300px; height: 250px; }
.ad-banner span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.float-btn-sm { width: 48px; height: 48px; }
.whatsapp-btn { background: #25d366; }

/* ============================================
   SIDE AD BANNERS
   ============================================ */
.side-ad {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
}
.side-ad-left { left: 0; }
.side-ad-right { right: 0; }
.side-ad-inner {
  width: 160px;
  height: 600px;
  background: var(--background);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.side-ad-left .side-ad-inner { border-radius: 0 12px 12px 0; }
.side-ad-right .side-ad-inner { border-radius: 12px 0 0 12px; }
.side-ad-inner span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.side-ad-inner small { font-size: 8px; color: var(--muted); opacity: 0.5; }

@media (min-width: 1600px) {
  .side-ad { display: block; }
}

/* ============================================
   LUGARES SECTION
   ============================================ */
.lugares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lugar-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.lugar-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.lugar-map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.lugar-card:hover img { transform: scale(1.1); }
.lugar-card .lugar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
}
.lugar-card .lugar-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.lugar-card .lugar-content h3 {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}
.lugar-card .lugar-content p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  line-height: 1.4;
}
.lugar-card:hover {
  box-shadow: 0 0 0 2px rgba(0,119,204,0.5);
}

/* ============================================
   CATEGORY BAR
   ============================================ */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px 0;
}
.category-bar a {
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  transition: all 0.3s;
  border-radius: 9999px;
}
.category-bar a:hover { opacity: 0.8; transform: translateY(-2px) scale(1.05); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  overflow: hidden;
}
.footer-gradient-bar {
  height: 4px;
  background: linear-gradient(to right, var(--ticker-bg), var(--primary), var(--ticker-bg));
}
.site-footer .footer-inner {
  background: linear-gradient(135deg, var(--secondary), var(--footer-bg), var(--secondary));
  color: var(--footer-fg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h3 .bar-indicator {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  display: inline-block;
}
.footer-col p { font-size: 12px; opacity: 0.6; line-height: 1.7; }
.footer-col .slogan { font-size: 12px; font-style: italic; opacity: 0.4; margin-top: 4px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col li a {
  font-size: 12px;
  opacity: 0.5;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col li a:hover { opacity: 1; color: var(--primary); padding-left: 4px; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.footer-social a svg { width: 16px; height: 16px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0,119,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.4;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  background: var(--background);
}
@media (min-width: 768px) { .hero-slider { height: 380px; } }
@media (min-width: 1024px) { .hero-slider { height: 420px; } }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--background);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,28,39,0.95), rgba(21,28,39,0.4), transparent);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}
.hero-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 12px 0 8px;
  max-width: 700px;
}
.hero-excerpt {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  max-width: 600px;
  margin-bottom: 12px;
  display: none;
}
@media (min-width: 768px) {
  .hero-excerpt { display: block; }
}
.hero-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(26,35,50,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 10px 16px;
  max-width: 480px;
}
.hero-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,119,204,0.5);
  flex-shrink: 0;
}
.hero-author-info { min-width: 0; }
.hero-author-info strong { color: #fff; font-size: 13px; }
.hero-author-info span { color: rgba(255,255,255,0.6); font-size: 12px; }
.hero-author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,35,50,0.6);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 3;
}
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(26,35,50,0.9); }
.hero-arrow-left { left: 12px; }
.hero-arrow-right { right: 12px; }
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.hero-counter {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-right: 4px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* ============================================
   AUTHOR BOX (Single Post)
   ============================================ */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.author-box .author-avatar,
.author-box img.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.author-name { font-size: 15px; font-weight: 700; }
.author-name span { font-weight: 400; color: var(--muted); }
.author-bio { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.author-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.author-meta-links a {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.author-meta-links a:hover { color: var(--primary); }
.author-box-bottom { margin-top: 32px; }

/* ============================================
   CONTACT POPUP
   ============================================ */
.contact-popup-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
}
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.popup-overlay.show { opacity: 1; }
.popup-panel {
  position: fixed;
  bottom: 90px;
  left: 24px;
  width: 360px;
  max-width: calc(100% - 48px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s, transform 0.3s;
  overflow: hidden;
  border: 1px solid var(--border);
}
.popup-panel.show { opacity: 1; transform: translateY(0) scale(1); }
.popup-header {
  background: var(--secondary);
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popup-header h3 { font-size: 14px; font-weight: 700; }
.popup-header p { font-size: 11px; opacity: 0.7; }
.popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.popup-close:hover { background: rgba(255,255,255,0.1); }
.popup-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.popup-tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.popup-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.popup-body { padding: 16px; }
.popup-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: background 0.2s;
}
.popup-contact-item.whatsapp { background: rgba(37,211,102,0.08); }
.popup-contact-item.whatsapp:hover { background: rgba(37,211,102,0.15); }
.popup-contact-item.email { background: rgba(0,119,204,0.08); }
.popup-contact-item.email:hover { background: rgba(0,119,204,0.15); }
.popup-contact-item strong { font-size: 13px; }
.popup-contact-item small { font-size: 11px; color: var(--muted); }
.popup-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wa-icon { background: #25d366; color: #fff; }
.email-icon { background: var(--primary); color: #fff; }
.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.popup-form input:focus,
.popup-form textarea:focus { border-color: var(--primary); }
.popup-form textarea { resize: none; }
.popup-form button {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.popup-form button:hover { opacity: 0.9; }

/* ============================================
   ANIMATIONS (AOS-compatible)
   ============================================ */
[data-aos] { opacity: 0; transition: all 0.6s ease; }
[data-aos="fade-up"] { transform: translateY(20px); }
[data-aos="fade-left"] { transform: translateX(-20px); }
[data-aos="fade-right"] { transform: translateX(20px); }
[data-aos="zoom-in"] { transform: scale(0.95); }
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.pulse-dot { animation: pulseDot 1.5s ease-in-out infinite; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .logo-row .date-info { display: block; }
}

@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .news-grid-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav ul { display: none; }
  .main-nav ul.open { display: flex; flex-direction: column; }
  .menu-toggle { display: block; }
  .lugares-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid-2col { grid-template-columns: 1fr; }
  .featured-content h2 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .topbar-left a:not(:first-child) { display: none; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }
  .lugares-grid { grid-template-columns: 1fr; }
  .floating-buttons { bottom: 16px; left: 16px; right: auto; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn-sm { width: 40px; height: 40px; }
  .most-read-scroll { max-height: 360px; }
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}
.single-post-content .post-header { margin-bottom: 24px; }
.single-post-content .post-header h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.single-post-content .post-body {
  font-size: 16px;
  line-height: 1.8;
}
.single-post-content .post-body p { margin-bottom: 16px; }
.single-post-content .post-body img {
  margin: 24px 0;
  border-radius: var(--radius);
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-form-block {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}
.search-form-block input {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}
.search-form-block input:focus { border-color: var(--primary); }

/* ============================================
   PAGINATION (WordPress)
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 32px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   LOGO CENTERED ROW (below topbar)
   ============================================ */
.logo-centered-row {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.logo-centered-img {
  height: 56px;
  object-fit: contain;
  transition: height 0.5s ease;
}
@media (min-width: 768px) {
  .logo-centered-img { height: 64px; }
}

/* ============================================
   TRENDING SECTION
   ============================================ */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trending-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.trending-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,119,204,0.2);
}
.trending-card-image {
  width: 96px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--background);
}
.trending-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.trending-card:hover .trending-card-image img { transform: scale(1.1); }
.trending-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.6), transparent);
}
.trending-author-overlay {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.trending-author-overlay img,
.trending-author-avatar {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  object-fit: cover;
}
.trending-author-name {
  font-size: 8px;
  color: #fff;
  font-weight: 700;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trending-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trending-card-body h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.trending-card:hover .trending-card-body h4 { color: var(--primary); }
.trending-date { font-size: 10px; color: var(--muted); margin-top: 4px; }

@media (max-width: 1024px) {
  .trending-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .trending-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MULTIMEDIA SECTION
   ============================================ */
.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.multimedia-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  background: var(--background);
}
.multimedia-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.multimedia-card:hover img { transform: scale(1.1); }
.multimedia-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,35,50,0.9), rgba(26,35,50,0.3), transparent);
}
.multimedia-author {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,35,50,0.6);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 2px 8px 2px 2px;
  z-index: 2;
}
.multimedia-author img,
.multimedia-author-avatar {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  object-fit: cover;
}
.multimedia-author span {
  font-size: 9px;
  color: #fff;
  font-weight: 600;
}
.multimedia-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.multimedia-card:hover .multimedia-play { opacity: 1; }
.multimedia-play::after {
  content: '▶';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,119,204,0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.multimedia-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 2;
}
.multimedia-label {
  font-size: 9px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}
.multimedia-content h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .multimedia-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .multimedia-grid { grid-template-columns: 1fr; }
}

/* ============================================
   NEWS CARD AUTHOR OVERLAY (on image)
   ============================================ */
.news-card-image {
  position: relative;
}
.card-author-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,35,50,0.6);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  padding: 2px 8px 2px 2px;
  z-index: 2;
}
.card-author-avatar {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,0.5);
  object-fit: cover;
}
.card-author-name {
  font-size: 9px;
  color: #fff;
  font-weight: 600;
}
.news-card-author-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 1px solid var(--border);
}
