/* ===================================
   LA IZQUIERDA NOTICIAS - main.css
   =================================== */

:root {
  --rojo: #C8102E;
  --rojo-oscuro: #8B0D20;
  --negro: #0A0A0A;
  --gris-oscuro: #1A1A1A;
  --gris-medio: #2D2D2D;
  --gris-claro: #F0F0F0;
  --blanco: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--blanco);
  color: var(--negro);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* === TICKER === */
.ticker-bar {
  background: var(--rojo);
  color: var(--blanco);
  padding: 7px 0;
  overflow: hidden;
  position: relative;
  height: 30px;
}
.ticker-label {
  background: var(--negro);
  color: var(--blanco);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 0 16px;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex; align-items: center;
  z-index: 2;
  white-space: nowrap;
}
.ticker-track {
  display: flex;
  animation: ticker 35s linear infinite;
  padding-left: 160px;
  align-items: center;
  height: 100%;
}
.ticker-track span { white-space: nowrap; padding-right: 60px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.ticker-track span::before { content: "◆ "; font-size: 9px; opacity: 0.7; }
.ticker-track a { color: var(--blanco); }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === HEADER === */
.site-header {
  background: linear-gradient(90deg, #6b0000 0%, #8B0D20 40%, #8B0D20 60%, #6b0000 100%);
  border-bottom: 3px solid var(--rojo);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 20px;
}
.header-date { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: #666; letter-spacing: 1px; text-transform: uppercase; }
.site-logo { height: 52px; width: auto; }
.header-social { display: flex; gap: 10px; justify-content: flex-end; }
.social-btn {
  width: 32px; height: 32px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #888; font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.social-btn:hover { border-color: var(--rojo); color: var(--rojo); }

/* === NAV === */
.site-nav { background: var(--gris-oscuro); border-bottom: 1px solid #2a2a2a; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; padding: 0 20px; }
.nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: #aaa; padding: 14px 20px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--blanco); border-bottom-color: var(--rojo); }
.nav-admin { margin-left: auto; color: #555; font-size: 11px; }
.nav-admin:hover { color: var(--rojo); border-bottom-color: transparent; }

/* === HERO === */
.hero { background: var(--negro); }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1px;
  background: #111;
}
.hero-main {
  position: relative; overflow: hidden;
  background: var(--negro); min-height: 480px; display: block;
}
.hero-bg-img, .aside-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
  transition: opacity 0.3s, transform 0.4s;
}
.hero-main:hover .hero-bg-img { opacity: 0.45; transform: scale(1.02); }
.hero-placeholder { width: 100%; min-height: 480px; background: linear-gradient(135deg, #1a0a0e 0%, #2d1015 100%); }
.hero-main-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}
.hero-title { font-family: 'Oswald', sans-serif; font-size: 38px; font-weight: 700; color: var(--blanco); line-height: 1.1; text-transform: uppercase; margin: 12px 0; }
.hero-excerpt { font-size: 14px; color: #bbb; line-height: 1.6; }
.hero-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: #666; letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; }
.hero-aside { display: flex; flex-direction: column; gap: 1px; background: #111; }
.hero-aside-item { position: relative; overflow: hidden; flex: 1; min-height: 156px; display: block; }
.aside-placeholder { width: 100%; height: 100%; min-height: 156px; background: linear-gradient(135deg, #0a1a2e, #1a2a3e); }
.aside-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}
.hero-aside-item:hover .aside-bg-img { opacity: 0.4; transform: scale(1.03); }
.aside-title { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; color: var(--blanco); line-height: 1.2; text-transform: uppercase; margin-top: 4px; }

/* === BADGE === */
.badge {
  display: inline-block;
  background: var(--rojo); color: var(--blanco);
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 4px;
}
.aside-badge { font-size: 9px; padding: 3px 8px; }

/* === MAIN WRAP === */
.main-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
.main-content { min-width: 0; }

/* === SECTION HEADER === */
.section-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 3px solid var(--negro);
}
.section-header::before { content: ''; width: 6px; height: 28px; background: var(--rojo); display: block; flex-shrink: 0; }
.section-header h2 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.section-header a { margin-left: auto; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: var(--rojo); letter-spacing: 1px; text-transform: uppercase; }
.section-header a:hover { text-decoration: underline; }

/* === NEWS GRID === */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.news-card { display: block; cursor: pointer; transition: transform 0.2s; }
.news-card:hover { transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-img-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--gris-claro), #ddd); }
.card-body { padding: 14px 0 0; }
.card-cat { font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--rojo); margin-bottom: 6px; display: block; }
.card-title { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.2; color: var(--negro); margin-bottom: 8px; text-transform: uppercase; }
.news-card:hover .card-title { color: var(--rojo); }
.card-excerpt { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 8px; }
.card-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #999; letter-spacing: 0.5px; text-transform: uppercase; }

/* === FEATURED HORIZONTAL === */
.news-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 48px; background: var(--negro); overflow: hidden;
}
.featured-img { position: relative; overflow: hidden; min-height: 240px; }
.feat-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.featured-img-placeholder { width: 100%; height: 100%; min-height: 240px; background: linear-gradient(135deg, #1a0a0e, #3d1520); }
.featured-text { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.featured-title { font-family: 'Oswald', sans-serif; font-size: 26px; font-weight: 700; color: var(--blanco); line-height: 1.15; text-transform: uppercase; margin: 10px 0; }
.news-featured:hover .featured-title { color: #ffcccc; }
.featured-excerpt { font-size: 14px; color: #999; line-height: 1.7; }
.featured-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: 1px; margin-top: 16px; }

/* === LIST === */
.news-list { margin-bottom: 48px; }
.list-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #eee;
  cursor: pointer; transition: background 0.15s; align-items: start;
}
.list-item:hover { background: #fafafa; }
.list-item-img { width: 120px; height: 80px; object-fit: cover; flex-shrink: 0; }
.list-item-img-placeholder { width: 120px; height: 80px; background: linear-gradient(135deg, #eee, #ddd); flex-shrink: 0; }
.list-cat { font-family: 'Oswald', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 2px; color: var(--rojo); text-transform: uppercase; display: block; margin-bottom: 4px; }
.list-title { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; color: var(--negro); text-transform: uppercase; margin-bottom: 4px; }
.list-item:hover .list-title { color: var(--rojo); }
.list-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }

/* === SIDEBAR === */
.sidebar { min-width: 0; }
.sidebar-block { margin-bottom: 32px; }
.sidebar-header { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 3px solid var(--negro); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sidebar-header::before { content: ''; width: 4px; height: 18px; background: var(--rojo); display: block; }
.trending-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; cursor: pointer; align-items: start; }
.trending-num { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: #e0e0e0; line-height: 1; }
.trending-title { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; color: var(--negro); line-height: 1.3; text-transform: uppercase; display: block; }
.trending-item:hover .trending-title { color: var(--rojo); }

.cat-links { display: flex; flex-direction: column; gap: 4px; }
.cat-banner-link {
  padding: 10px 14px;
  font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blanco); display: flex; justify-content: space-between; align-items: center;
  transition: opacity 0.2s;
}
.cat-banner-link:hover { opacity: 0.85; }
.cat-banner-link span { font-size: 10px; opacity: 0.7; }

.sidebar-post { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; align-items: start; }
.sidebar-post-img { width: 70px; height: 47px; object-fit: cover; }
.sidebar-post-text { display: flex; flex-direction: column; gap: 4px; }
.sidebar-post-title { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--negro); text-transform: uppercase; }
.sidebar-post:hover .sidebar-post-title { color: var(--rojo); }
.sidebar-post-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #999; text-transform: uppercase; }

.social-follow {
  display: flex; align-items: center;
  padding: 10px 14px; margin-bottom: 4px;
  font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px;
  color: var(--blanco); transition: opacity 0.2s;
}
.social-follow:hover { opacity: 0.85; }
.social-follow-fb { background: #1877f2; }
.social-follow-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-follow-tw { background: #000; }
.social-follow-tt { background: #ff0050; }

/* === CATEGORY BANNER === */
.category-banner { padding: 16px 0; }
.cat-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.cat-banner-label { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--blanco); letter-spacing: 2px; text-transform: uppercase; }
.cat-banner-count { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

/* === SINGLE ARTICLE === */
.single-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 20px 0; }
.breadcrumb { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: #999; letter-spacing: 0.5px; margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--rojo); }
.breadcrumb a:hover { text-decoration: underline; }

.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 0; }
.single-article { min-width: 0; }

.article-header { margin-bottom: 20px; }
.article-title { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; line-height: 1.1; text-transform: uppercase; margin: 14px 0 16px; }
.article-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: #777; letter-spacing: 0.5px; display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 2px solid #eee; }

.article-featured-img { margin-bottom: 20px; }
.article-hero-img { width: 100%; max-height: 500px; object-fit: cover; }

.share-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.share-label { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #999; }
.share-btn { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1px; padding: 6px 14px; color: var(--blanco); text-transform: uppercase; }
.share-fb { background: #1877f2; }
.share-tw { background: #000; }
.share-wa { background: #25d366; }

.article-content { font-size: 17px; line-height: 1.8; color: #222; margin-bottom: 28px; }
.article-content p { margin-bottom: 1.4em; }
.article-content h2 { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; text-transform: uppercase; margin: 2em 0 0.8em; padding-bottom: 8px; border-bottom: 2px solid var(--rojo); }
.article-content h3 { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; margin: 1.5em 0 0.6em; }
.article-content blockquote { border-left: 4px solid var(--rojo); padding: 12px 20px; background: #fafafa; margin: 2em 0; font-style: italic; color: #444; }
.article-content img { max-width: 100%; margin: 20px 0; }

.article-tags { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: #666; margin-bottom: 32px; }
.article-tags a { background: #f0f0f0; padding: 4px 10px; margin: 2px; display: inline-block; color: var(--negro); }
.article-tags a:hover { background: var(--rojo); color: var(--blanco); }

.related-posts { margin-top: 48px; }

/* === PAGINATION === */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 48px; }
.pagination .page-numbers {
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 14px; border: 2px solid #eee; color: var(--negro);
  transition: all 0.2s; letter-spacing: 1px;
}
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }

.no-results { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: #999; padding: 40px 0; text-align: center; }

/* === FOOTER === */
.site-footer { background: var(--negro); border-top: 3px solid var(--rojo); padding: 40px 0 20px; margin-top: 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-desc { font-size: 13px; color: #555; line-height: 1.7; margin-top: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 32px; height: 32px; border: 1px solid #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #555; font-size: 13px; transition: all 0.2s; }
.footer-social a:hover { border-color: var(--rojo); color: var(--rojo); }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #666; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #222; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; color: #555; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--rojo); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 16px 20px 0; border-top: 1px solid #1a1a1a; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: #444; letter-spacing: 0.5px; text-transform: uppercase; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { display: none; }
  .main-wrap, .single-layout, .footer-inner { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 200px; }
  .sidebar { display: none; }
  .header-inner { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .header-date { display: none; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 26px; }
  .article-title { font-size: 26px; }
}
.header-date {
  color: #ffffff !important;
}
.social-btn {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.4) !important;
}