/*
Theme Name: EL COTIDIANO GE
Theme URI: https://elcotidiano-ge.news
Author: EL COTIDIANO GE
Author URI: https://elcotidiano-ge.news
Description: Tema profesional de portal de noticias para EL COTIDIANO GE. Diseño moderno con paleta terracota, animaciones y diseño responsive.
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elcotidiano-ge
Tags: news, magazine, responsive, custom-header, custom-menu, featured-images, translation-ready

EL COTIDIANO GE - Portal digital de noticias de Guinea Ecuatorial
*/

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

:root {
  --background: hsl(35, 20%, 96%);
  --foreground: hsl(200, 30%, 10%);
  --card: hsl(35, 15%, 99%);
  --card-foreground: hsl(200, 30%, 10%);
  --primary: hsl(18, 75%, 42%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(35, 15%, 91%);
  --secondary-foreground: hsl(200, 30%, 10%);
  --muted: hsl(35, 10%, 93%);
  --muted-foreground: hsl(200, 10%, 45%);
  --accent: hsl(18, 75%, 42%);
  --border: hsl(35, 15%, 85%);
  --destructive: hsl(0, 84%, 60%);

  --topbar-bg: hsl(200, 30%, 12%);
  --topbar-fg: hsl(35, 20%, 95%);
  --navbar-bg: hsl(35, 15%, 99%);
  --navbar-fg: hsl(200, 30%, 15%);
  --breaking-bg: hsl(0, 70%, 45%);
  --breaking-fg: hsl(0, 0%, 100%);
  --footer-bg: hsl(200, 30%, 12%);
  --footer-fg: hsl(35, 15%, 85%);

  --news-red: hsl(0, 70%, 45%);
  --news-blue: hsl(210, 65%, 42%);
  --news-green: hsl(145, 55%, 38%);
  --news-orange: hsl(18, 75%, 42%);
  --news-purple: hsl(270, 45%, 45%);
  --news-teal: hsl(180, 50%, 38%);

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 0.5rem;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Dark mode */
body.dark-mode {
  --background: hsl(200, 25%, 8%);
  --foreground: hsl(35, 15%, 92%);
  --card: hsl(200, 20%, 12%);
  --card-foreground: hsl(35, 15%, 92%);
  --primary: hsl(18, 75%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(200, 15%, 18%);
  --secondary-foreground: hsl(35, 15%, 92%);
  --muted: hsl(200, 15%, 18%);
  --muted-foreground: hsl(200, 10%, 58%);
  --border: hsl(200, 15%, 22%);
  --topbar-bg: hsl(200, 30%, 6%);
  --topbar-fg: hsl(35, 15%, 90%);
  --navbar-bg: hsl(200, 20%, 12%);
  --navbar-fg: hsl(35, 15%, 90%);
  --breaking-bg: hsl(0, 70%, 40%);
  --footer-bg: hsl(200, 30%, 6%);
  --footer-fg: hsl(35, 10%, 68%);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== WATERMARK ===== */
.watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.02;
}
.watermark img { width: 600px; height: 600px; object-fit: contain; }

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

/* ===== TOPBAR ===== */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-fg);
  padding: 6px 0;
  font-size: 0.8rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar .date-time { display: flex; align-items: center; gap: 0.75rem; }
.topbar .date-time #current-date { text-transform: capitalize; }
.topbar .date-time .time { font-family: monospace; }
.hidden-sm { display: inline; }
.social-icons { display: flex; gap: 4px; align-items: center; }
.social-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
  cursor: pointer;
  color: var(--topbar-fg);
  opacity: 0.7;
}
.social-icon:hover {
  opacity: 1;
  transform: scale(1.2) rotate(5deg);
  background: var(--icon-hover, transparent);
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.5rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar .logo { display: flex; align-items: center; gap: 0.75rem; }
.navbar .logo img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.navbar .logo h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--foreground); }
.navbar .logo .tagline { font-size: 0.75rem; color: var(--muted-foreground); }

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links li { position: relative; }
.nav-links a, .nav-links button.nav-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--navbar-fg);
}
.nav-links a:hover, .nav-links button.nav-btn:hover,
.nav-links a.active { color: var(--primary); background: hsla(18, 75%, 42%, 0.1); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 50;
  display: none;
  animation: fadeIn 0.2s ease;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: all 0.3s;
}
.dropdown-menu a:hover { background: hsla(18, 75%, 42%, 0.1); color: var(--primary); }
.dropdown-menu a.dropdown-header {
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav-actions button {
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-actions button:hover { color: var(--primary); background: hsla(18, 75%, 42%, 0.1); }
.nav-actions button svg { width: 20px; height: 20px; }

/* Search */
.search-form-inline {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: fadeIn 0.3s ease;
  display: flex;
  align-items: center;
}
.search-form-inline input {
  background: var(--card);
  color: var(--foreground);
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 2px solid hsla(18, 75%, 42%, 0.4);
  width: 16rem;
  box-shadow: var(--shadow-lg);
  outline: none;
  font-family: var(--font-body);
}
.search-form-inline input:focus { border-color: var(--primary); }
.search-form-inline button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}
.search-form-inline form { position: relative; }
.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 16rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
}
.search-result-item {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: hsla(18, 75%, 42%, 0.1); color: var(--primary); }
.search-empty {
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--navbar-bg);
  padding: 0.5rem 1rem;
  animation: fadeIn 0.3s ease;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navbar-fg);
  transition: all 0.3s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); background: hsla(18, 75%, 42%, 0.1); }
.mobile-submenu { padding-left: 1.5rem; display: none; }
.mobile-submenu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-submenu a { color: var(--muted-foreground); font-size: 0.875rem; padding: 0.5rem 1rem; }

.hamburger { display: none; }

/* ===== BANNER ===== */
.site-banner { width: 100%; }
.site-banner img { width: 100%; object-fit: cover; max-height: 250px; }

/* ===== BREAKING NEWS ===== */
.breaking-news {
  background: var(--breaking-bg);
  color: var(--breaking-fg);
  overflow: hidden;
}
.breaking-news .container { display: flex; align-items: center; }
.breaking-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  background: hsla(0, 0%, 100%, 0.1);
  flex-shrink: 0;
}
.breaking-label .pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.ticker-text {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 1rem;
}

/* ===== AD BANNER ===== */
.ad-banner {
  width: 100%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1rem 0;
  flex-direction: column;
  gap: 2px;
}
.ad-banner .ad-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
  opacity: 0;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 40%, transparent 100%);
}
.hero-slide .slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2.5rem;
  z-index: 2;
}
.hero-slide .slide-content .category-badge { margin-bottom: 0.75rem; }
.hero-slide .slide-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.hero-slide .slide-content h2 a { color: white; }
.hero-slide .slide-content h2 a:hover { text-decoration: underline; }
.hero-slide .slide-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  max-width: 42rem;
}
.hero-dots {
  position: absolute;
  bottom: 1rem; right: 1.5rem;
  display: flex; gap: 0.5rem;
  z-index: 10;
}
.hero-dots button {
  width: 12px; height: 12px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  transition: all 0.3s;
}
.hero-dots button.active { background: var(--primary); width: 2rem; }

/* ===== CATEGORY BADGE ===== */
.category-badge {
  display: inline-block;
  padding: 2px 12px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  color: white;
}
.cat-politica { background: var(--news-red); }
.cat-economia { background: var(--news-blue); }
.cat-deportes { background: var(--news-green); }
.cat-sociedad { background: var(--news-orange); }
.cat-tecnologia { background: var(--news-purple); }
.cat-cultura { background: var(--news-teal); }
.cat-religion { background: hsl(30, 50%, 35%); }
.cat-emprendimiento { background: hsl(160, 55%, 35%); }
.cat-entrevistas { background: hsl(199, 70%, 40%); }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

/* ===== NEWS CARDS ===== */
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(18, 75%, 42%, 0.3);
}
.news-card .image-wrapper { overflow: hidden; }
.news-card .image-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.7s;
}
.news-card:hover .image-wrapper img { transform: scale(1.05); }
.news-card .card-body { padding: 1rem; }
.news-card .card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-top: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.news-card:hover .card-body h3 { color: var(--primary); }
.news-card .card-body .excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.news-card .card-meta img {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* Featured card (overlay) */
.news-card-featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: block;
}
.news-card-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card-featured .image-wrapper { aspect-ratio: 4/3; overflow: hidden; }
.news-card-featured .image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.news-card-featured:hover .image-wrapper img { transform: scale(1.1); }
.news-card-featured .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
}
.news-card-featured .card-overlay-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
}
.news-card-featured .card-overlay-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: white;
  line-height: 1.3;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.news-card-featured .card-overlay-content .overlay-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
}

/* Horizontal card */
.news-card-horizontal {
  display: flex;
  flex-direction: row;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.news-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(18, 75%, 42%, 0.3);
}
.news-card-horizontal .image-wrapper {
  width: 14rem; flex-shrink: 0;
  overflow: hidden;
}
.news-card-horizontal .image-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.news-card-horizontal:hover .image-wrapper img { transform: scale(1.05); }
.news-card-horizontal .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card-horizontal .card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-top: 0.5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.news-card-horizontal:hover .card-body h3 { color: var(--primary); }
.news-card-horizontal .card-body .excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-horizontal .card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.news-card-horizontal .card-meta img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== SIDEBAR - LO ÚLTIMO ===== */
.main-sidebar {
  min-width: 0;
}
.sidebar-latest {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.sidebar-latest .sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-latest .sidebar-header svg { width: 24px; height: 24px; color: var(--primary); }
.sidebar-latest .sidebar-header h3 { font-size: 1.125rem; font-weight: 700; }
.sidebar-scroll {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 520px;
  overflow: hidden;
  scrollbar-width: none;
}
.sidebar-scroll::-webkit-scrollbar { display: none; }
.sidebar-item {
  display: flex;
  gap: 0.75rem;
}
.sidebar-item a { display: flex; gap: 0.75rem; color: inherit; }
.sidebar-item .thumb {
  width: 6rem; height: 6rem;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.sidebar-item .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.sidebar-item:hover .thumb img { transform: scale(1.1); }
.sidebar-item .item-info { flex: 1; min-width: 0; }
.sidebar-item .item-info h4 {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}
.sidebar-item:hover .item-info h4 { color: var(--primary); }
.sidebar-item .item-info .item-date { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; display: block; }

/* ===== MAIN GRID ===== */
.main-with-sidebar { display: grid; grid-template-columns: 1fr 350px; gap: 1.5rem; }
.mobile-sidebar-area { display: none; margin-bottom: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ===== TEAM PAGE ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: hsla(18, 75%, 42%, 0.3); }
.team-card .team-photo { aspect-ratio: 1; overflow: hidden; position: relative; }
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-card .team-hover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.team-card:hover .team-hover-overlay { opacity: 1; }
.team-card .team-info { padding: 1.5rem; }
.team-card .team-info h2 { font-size: 1.125rem; font-weight: 700; }
.team-card .team-info .team-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}
.team-card .team-info .team-bio {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.team-card .team-contact { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.team-card .team-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.3s;
}
.team-card .team-contact a:hover { color: var(--primary); }
.team-card .team-contact svg { width: 16px; height: 16px; }

/* ===== ABOUT PAGE ===== */
.about-container { max-width: 48rem; margin: 0 auto; }
.about-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.about-header img { width: 4rem; height: 4rem; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow); }
.about-header .about-label { color: var(--primary); font-weight: 500; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 0.25rem; }
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 3rem;
  box-shadow: var(--shadow-lg);
}
.about-card p { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1.5rem; }
.about-card strong { color: var(--primary); }
.about-section {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.about-section h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.about-section p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 0; }

/* ===== OPINION PAGE ===== */
.opinion-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.opinion-form h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px hsla(18, 75%, 42%, 0.15); }
textarea.form-input { min-height: 120px; resize: vertical; margin-bottom: 1rem; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
}
.btn-primary:hover { opacity: 0.9; }

.opinion-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.opinion-card .opinion-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.opinion-card .opinion-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.opinion-card .opinion-meta .author-name { font-weight: 500; color: var(--foreground); }

.editorial-card {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}
.editorial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.editorial-card img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.editorial-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.editorial-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 0.75rem; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-icon-box {
  width: 2.5rem; height: 2.5rem;
  background: hsla(18, 75%, 42%, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-box svg { width: 20px; height: 20px; color: var(--primary); }
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.file-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.3s;
  margin-bottom: 1rem;
}
.file-label:hover { color: var(--primary); }
.file-label input[type="file"] { display: none; }
.file-label svg { color: var(--muted-foreground); }

/* ===== SINGLE ARTICLE ===== */
.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex-wrap: wrap;
}
.article-header .article-meta img {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}
.article-header .article-meta .author-name { font-weight: 500; color: var(--foreground); }
.article-content { font-size: 1rem; line-height: 1.75; }
.article-content p { margin-bottom: 1rem; }
.article-featured-image { margin-bottom: 1.5rem; }
.article-featured-image img { width: 100%; border-radius: var(--radius); }
.article-featured-image figcaption { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; font-style: italic; }

/* Comments */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-form {
  background: var(--secondary);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.comment-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.comment-item .comment-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.comment-avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: hsla(18, 75%, 42%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-avatar svg { width: 16px; height: 16px; color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-brand img { width: 3rem; height: 3rem; border-radius: 8px; object-fit: cover; }
.footer-brand h3 { font-size: 1.125rem; font-weight: 700; color: var(--footer-fg); }
.footer-desc { font-size: 0.875rem; opacity: 0.7; line-height: 1.6; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: hsla(35, 15%, 85%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all 0.3s;
  color: var(--footer-fg);
}
.footer-social a:hover { background: var(--primary); color: var(--primary-foreground); }
.footer-social a svg { width: 14px; height: 14px; fill: currentColor; }
.footer-col h4 { font-weight: 700; margin-bottom: 1rem; color: var(--footer-fg); }
.footer-col ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; opacity: 0.7; transition: all 0.3s; }
.footer-col a:hover { opacity: 1; color: var(--primary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; opacity: 0.7; }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-contact-item a { opacity: 1; transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid hsla(35, 15%, 85%, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.75rem; opacity: 0.5; }

/* ===== WHATSAPP BUTTON + TOOLTIP ===== */
.whatsapp-wrapper {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.whatsapp-float {
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all 0.3s;
  color: white;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.wa-tooltip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 1rem;
  max-width: 280px;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.wa-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-tooltip-close {
  position: absolute; top: 0.5rem; right: 0.75rem;
  background: none; border: none; cursor: pointer;
  font-size: 1.25rem; color: var(--muted-foreground);
  line-height: 1;
}
.wa-tooltip-close:hover { color: var(--foreground); }
.wa-tooltip-link {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  padding-right: 1rem;
  line-height: 1.4;
}
.wa-tooltip-link:hover { color: var(--primary); }
.wa-tooltip-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}
.wa-tooltip-contact {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.wa-tooltip-contact:hover { color: var(--primary); }
.wa-tooltip-contact strong { color: var(--foreground); }
.wa-tooltip-arrow {
  position: absolute;
  bottom: -8px; right: 24px;
  width: 16px; height: 16px;
  background: var(--card);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

/* ===== TEAM V2 (unified grid) ===== */
.team-grid-unified {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.team-card-v2 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.team-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.team-photo-v2 {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.team-photo-v2 img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.team-card-v2:hover .team-photo-v2 img { transform: scale(1.1); }
.team-overlay-v2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.team-card-v2:hover .team-overlay-v2 { opacity: 1; }
.team-role-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  transform: translateY(1rem);
  transition: transform 0.5s ease;
}
.team-card-v2:hover .team-role-badge { transform: translateY(0); }
.team-info-v2 { padding: 1.5rem; }
.team-info-v2 h2 {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: color 0.3s;
}
.team-card-v2:hover .team-info-v2 h2 { color: var(--primary); }
.team-role-v2 {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.25rem 0 0.75rem;
}
.team-bio-v2 {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.team-contact-v2 { display: flex; flex-direction: column; gap: 0.5rem; }
.team-contact-v2 a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.team-contact-v2 a:hover { color: var(--primary); }
.team-contact-v2 svg { flex-shrink: 0; }

@media (max-width: 640px) {
  .team-grid-unified { grid-template-columns: 1fr; }
}

/* ===== SEARCH RESULTS PAGE ===== */
.search-results-page h1 { margin-bottom: 0.5rem; }
.search-results-page p { color: var(--muted-foreground); margin-bottom: 2rem; }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 5rem 1rem; }
.page-404 h1 { font-size: 6rem; font-weight: 900; color: var(--primary); }
.page-404 h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.page-404 p { color: var(--muted-foreground); margin-bottom: 2rem; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out both; }
.animate-fade-in-left { animation: fadeInLeft 0.6s ease-out both; }

/* Animation classes - controlled by IntersectionObserver in JS */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0) !important;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .hero-slider { height: 500px; }
  .hero-slide .slide-content { padding: 2rem 2.5rem; }
  .hero-slide .slide-content h2 { font-size: 2.5rem; }
  .hero-slide .slide-content p { font-size: 1rem; }
}

@media (max-width: 1024px) {
  .main-with-sidebar { grid-template-columns: 1fr; }
  .main-sidebar { display: none; }
  .mobile-sidebar-area { display: block; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hidden-sm { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .news-card-horizontal { flex-direction: column; }
  .news-card-horizontal .image-wrapper { width: 100%; height: 11rem; }
  .about-card { padding: 1.5rem; }
  .editorial-card { flex-direction: column; }
  .hero-slide .slide-content { padding: 1rem 1.25rem; }
  .hero-slide .slide-content h2 { font-size: 1.25rem; }
}

/* ===== ARTÍCULO – FORMATO EDITORIAL PROFESIONAL ===== */
.article-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0.75rem 0 1rem;
}

.article-lead {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--foreground);
  opacity: 0.92;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
}
.article-byline img,
.article-byline .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.article-byline .byline-info {
  display: flex; flex-direction: column;
}
.article-byline .byline-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: 0.01em;
}
.article-byline .byline-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1px;
}
.article-byline .byline-date {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.1rem;
}

/* Cuerpo justificado tipo periódico */
.article-body,
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--foreground);
}
.article-body p,
.article-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body img,
.article-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0 0.5rem;
}
.article-body figure,
.article-content figure {
  margin: 1.5rem 0;
}
.article-body figcaption,
.article-content figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.4;
}
.article-featured-image figcaption {
  font-style: italic;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* Móvil: tipografía cómoda */
@media (max-width: 640px) {
  .article-body p,
  .article-content p { font-size: 1rem; line-height: 1.75; }
  .article-lead { font-size: 1rem; }
}

/* Quitar campo email del comment-form de WP si aparece */
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent { display: none !important; }
.comment-form .form-input { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit; margin-bottom: 0.75rem; }
.comment-form .form-submit input,
.comment-form button[type="submit"] {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 0;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s;
}
.comment-form .form-submit input:hover,
.comment-form button[type="submit"]:hover { opacity: 0.9; }
