/*
Theme Name: El Mexiquense
Theme URI: https://elmexiquense.com.mx/
Author: FactoriaDigital
Author URI: https://factoriadigital.store/
Description: Tema editorial vanguardista de alto impacto diseñado para Noticias del Estado de México, fiscalización política, vida metropolitana y contenidos evergreen de alto valor. Desarrollado con arquitectura SEO avanzada, paleta de identidad mexiquense (verde esmeralda, oro, burdeos y carbón profundo), imagotipos dedicados por sección y enrutamiento inteligente de formularios.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: el-mexiquense
Tags: news, edomex, politics, evergreen, magazine, high-impact, seo-optimized, widgets
*/

:root {
  --em-black: #090b0e;
  --em-dark-bg: #0f1318;
  --em-card-bg: #161b22;
  --em-card-hover: #1f2630;
  --em-border: #27313f;
  --em-green-primary: #059669;
  --em-green-glow: #10b981;
  --em-gold: #f59e0b;
  --em-gold-light: #fbbf24;
  --em-ruby: #dc2626;
  --em-text-main: #f3f4f6;
  --em-text-muted: #9ca3af;
  --em-text-dim: #6b7280;
  --em-white: #ffffff;
  --em-font-headline: 'Bebas Neue', 'Impact', sans-serif;
  --em-font-title: 'Montserrat', sans-serif;
  --em-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--em-dark-bg);
  color: var(--em-text-main);
  font-family: var(--em-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--em-green-glow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--em-font-title);
  font-weight: 800;
  line-height: 1.2;
  color: var(--em-white);
  letter-spacing: -0.02em;
}

.headline-condensed {
  font-family: var(--em-font-headline);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.em-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.em-topbar {
  background: var(--em-black);
  border-bottom: 2px solid var(--em-green-primary);
  font-size: 13px;
  padding: 8px 0;
}

.em-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.em-ticker-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
}

.em-ticker-badge {
  background: var(--em-ruby);
  color: var(--em-white);
  font-family: var(--em-font-headline);
  font-size: 15px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 15px;
  white-space: nowrap;
  animation: pulse-ruby 2s infinite;
}

.em-ticker-items {
  white-space: nowrap;
  animation: ticker-slide 30s linear infinite;
  color: var(--em-text-main);
}

.em-ticker-items a {
  margin-right: 25px;
}

.em-topbar-date {
  color: var(--em-text-muted);
  font-size: 12px;
  white-space: nowrap;
  margin-left: 20px;
}

/* Header */
.em-site-header {
  background: linear-gradient(180deg, var(--em-black) 0%, rgba(15,19,24,0.98) 100%);
  border-bottom: 1px solid var(--em-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.em-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.em-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.em-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--em-green-primary) 0%, #064e3b 100%);
  border-radius: 8px;
  border: 1px solid var(--em-green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16,185,129,0.4);
}

.em-logo-text {
  display: flex;
  flex-direction: column;
}

.em-logo-title {
  font-family: var(--em-font-headline);
  font-size: 38px;
  line-height: 0.9;
  color: var(--em-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.em-logo-title span {
  color: var(--em-green-glow);
}

.em-logo-slogan {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--em-gold);
  letter-spacing: 0.16em;
  margin-top: 4px;
}

.em-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.em-btn-denuncia {
  background: linear-gradient(135deg, var(--em-green-primary) 0%, #064e3b 100%);
  color: var(--em-white) !important;
  font-family: var(--em-font-title);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid var(--em-green-glow);
  box-shadow: 0 0 15px rgba(16,185,129,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.em-btn-denuncia:hover {
  background: var(--em-green-glow);
  box-shadow: 0 0 25px rgba(16,185,129,0.7);
  transform: translateY(-2px);
}

/* Nav */
.em-nav-bar {
  background: #090c10;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 2px solid var(--em-border);
}

.em-main-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  overflow-x: auto;
  white-space: nowrap;
}

.em-main-menu li {
  position: relative;
}

.em-main-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-family: var(--em-font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d1d5db;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
}

.em-main-menu a:hover,
.em-main-menu .current-menu-item > a {
  color: var(--em-white);
  background: rgba(16,185,129,0.12);
  border-bottom-color: var(--em-green-glow);
}

/* Layout */
.em-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin: 36px 0;
}

.em-hero-section {
  margin-bottom: 40px;
}

.em-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.em-hero-main-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--em-black);
  border: 1px solid var(--em-border);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.em-hero-main-card img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.em-hero-main-card:hover img {
  transform: scale(1.04);
  opacity: 0.8;
}

.em-card-overlay {
  position: relative;
  z-index: 2;
  padding: 30px;
  background: linear-gradient(180deg, rgba(9,11,14,0) 0%, rgba(9,11,14,0.92) 50%, #090b0e 100%);
}

.em-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--em-font-title);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.em-badge-green {
  background: var(--em-green-primary);
  color: var(--em-white);
}

.em-badge-gold {
  background: var(--em-gold);
  color: #000;
}

.em-badge-ruby {
  background: var(--em-ruby);
  color: #fff;
}

.em-hero-main-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.em-hero-main-desc {
  font-size: 15px;
  color: #d1d5db;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-post-meta {
  font-size: 12px;
  color: var(--em-text-dim);
  display: flex;
  align-items: center;
  gap: 14px;
}

.em-hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.em-card-compact {
  background: var(--em-card-bg);
  border: 1px solid var(--em-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.em-card-compact:hover {
  transform: translateY(-2px);
  border-color: var(--em-green-glow);
  background: var(--em-card-hover);
}

.em-card-thumb {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.em-card-compact-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.em-card-compact-desc {
  font-size: 13px;
  color: var(--em-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sections */
.em-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--em-green-primary);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.em-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.em-section-icon {
  width: 28px;
  height: 28px;
  background: var(--em-green-primary);
  color: var(--em-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 5px;
}

.em-section-title {
  font-family: var(--em-font-headline);
  font-size: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--em-white);
}

.em-news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.em-news-card {
  background: var(--em-card-bg);
  border: 1px solid var(--em-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.em-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--em-green-glow);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.em-news-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.em-news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}

.em-news-card:hover .em-news-card-img img {
  transform: scale(1.05);
}

.em-news-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.em-news-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.em-news-card-desc {
  font-size: 13.5px;
  color: var(--em-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Power Banner / Anúnciate */
.em-power-banner {
  background: radial-gradient(circle at center, #064e3b 0%, #062e24 60%, #03140f 100%);
  border: 2px solid var(--em-green-glow);
  border-radius: 8px;
  padding: 32px 24px;
  margin: 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(16,185,129,0.25);
}

.em-power-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(16,185,129,0.04) 0, rgba(16,185,129,0.04) 15px, transparent 15px, transparent 30px);
  pointer-events: none;
}

.em-power-banner-badge {
  background: var(--em-gold);
  color: #000;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.em-power-banner-title {
  font-family: var(--em-font-headline);
  font-size: 42px;
  color: var(--em-white);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(16,185,129,0.7);
}

.em-power-banner-sub {
  font-size: 16px;
  color: #d1d5db;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

.em-power-btn {
  background: var(--em-green-primary);
  color: var(--em-white) !important;
  font-family: var(--em-font-title);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(16,185,129,0.5);
}

.em-power-btn:hover {
  background: var(--em-green-glow);
  box-shadow: 0 0 35px rgba(16,185,129,0.85);
  transform: translateY(-2px);
}

/* Sidebar */
.em-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.em-widget {
  background: var(--em-card-bg);
  border: 1px solid var(--em-border);
  border-radius: 6px;
  padding: 20px;
}

.em-widget-title {
  font-family: var(--em-font-headline);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--em-green-primary);
  padding-bottom: 6px;
  margin-bottom: 16px;
  color: var(--em-white);
}

.em-denuncia-widget {
  background: linear-gradient(180deg, #052e24 0%, #161b22 100%);
  border: 1px solid var(--em-green-primary);
  text-align: center;
}

/* Single / Directory */
.em-single-article {
  background: var(--em-card-bg);
  border: 1px solid var(--em-border);
  border-radius: 8px;
  padding: 32px;
}

.em-single-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}

.em-single-lead {
  font-size: 18px;
  line-height: 1.5;
  color: #d1d5db;
  border-left: 3px solid var(--em-green-primary);
  padding-left: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.em-single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #e5e7eb;
}

.em-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.em-directory-card {
  background: var(--em-card-bg);
  border: 1px solid var(--em-border);
  border-top: 3px solid var(--em-green-primary);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.em-directory-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 2px solid var(--em-green-glow);
  overflow: hidden;
  flex-shrink: 0;
  background: #1f2937;
}

.em-directory-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--em-white);
  margin-bottom: 4px;
}

.em-directory-role {
  font-size: 13px;
  font-weight: 800;
  color: var(--em-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.em-directory-bio {
  font-size: 13.5px;
  color: var(--em-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Footer */
.em-site-footer {
  background: #06080a;
  border-top: 4px solid var(--em-green-primary);
  padding-top: 50px;
  margin-top: 60px;
}

.em-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--em-border);
}

.em-footer-col h4 {
  font-family: var(--em-font-headline);
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--em-white);
  margin-bottom: 18px;
  border-left: 3px solid var(--em-green-primary);
  padding-left: 10px;
}

.em-footer-links {
  list-style: none;
}

.em-footer-links li {
  margin-bottom: 10px;
}

.em-footer-links a {
  color: var(--em-text-muted);
  font-size: 14px;
}

.em-footer-links a:hover {
  color: var(--em-green-glow);
  padding-left: 4px;
}

.em-footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--em-text-dim);
}

.em-footer-credit a {
  color: var(--em-green-glow);
  font-weight: 700;
}

@keyframes pulse-ruby {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

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

@media (max-width: 1024px) {
  .em-layout-wrapper { grid-template-columns: 1fr; }
  .em-news-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .em-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .em-hero-grid, .em-directory-grid, .em-news-grid-3, .em-footer-grid { grid-template-columns: 1fr; }
  .em-header-main { flex-direction: column; gap: 16px; }
  .em-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
