/*
Theme Name: Diario ID
Theme URI: https://www.diarioid.cl
Author: Diario ID
Description: Theme liviano y responsivo para Diario ID - Portal de noticias de la Provincia del Choapa.
Version: 1.0.0
Text Domain: diarioid
*/

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

:root {
  --color-primary: #1b1b2f;
  --color-secondary: #162447;
  --color-accent: #e43f5a;
  --color-blue: #162447;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #f5f5f5;
  --color-white: #fff;
  --color-border: #e0e0e0;
  --color-category: #e94560;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --header-height: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

a { color: var(--color-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

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

ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }

/* === HEADER === */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.site-logo img { height: 40px; width: auto; }
.site-logo a { display: flex; align-items: center; }

/* === NAVIGATION === */
.main-nav ul { display: flex; gap: 0; }

.main-nav a {
  display: block;
  padding: 0 18px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: var(--header-height);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* === DROPDOWN SUBMENUS === */
.main-nav li { position: relative; }

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary);
  min-width: 220px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 100;
}

.main-nav li:hover > .sub-menu { display: block; }

.main-nav .sub-menu a {
  line-height: 40px;
  padding: 0 20px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.main-nav .sub-menu .sub-menu { left: 100%; top: 0; }

/* === TOP MOSAIC (featured posts) === */
.mosaic-section {
  margin-bottom: 30px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.mosaic-item.featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mosaic-item:hover img { transform: scale(1.03); }

.mosaic-item .mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.mosaic-item.featured .mosaic-overlay { padding: 30px 20px 20px; }

.mosaic-item .mosaic-overlay .cat-label {
  display: inline-block;
  background: var(--color-accent) !important;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 6px;
  border-radius: 2px;
  line-height: 1.4;
}

.mosaic-item.featured .mosaic-overlay .cat-label { font-size: 0.7rem; padding: 4px 12px; }

.mosaic-item h2, .mosaic-item h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

.mosaic-item h2 { font-size: 1.3rem; }
.mosaic-item h3 { font-size: 0.78rem; }

.mosaic-item h2 a, .mosaic-item h3 a { color: #fff; }
.mosaic-item h2 a:hover, .mosaic-item h3 a:hover { color: var(--color-accent); }

.mosaic-item .post-date { font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }

/* === HERO / FEATURED POST (fallback single) === */
.hero-section { margin-bottom: 30px; }

.hero-post {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  max-height: 500px;
}

.hero-post img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}

.hero-overlay .cat-label {
  display: inline-block;
  background: var(--color-accent);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #fff;
}

.hero-overlay h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-overlay h2 a { color: #fff; }
.hero-overlay h2 a:hover { color: var(--color-accent); }

.hero-overlay .post-date {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* === NEWS GRID === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
}

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

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

.news-card-img .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.news-card-img .card-overlay .cat-label {
  display: inline-block;
  background: var(--color-accent);
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 6px;
  border-radius: 2px;
  line-height: 1.4;
}

.news-card-img .card-overlay h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.news-card-img .card-overlay h3 a { color: #fff; }
.news-card-img .card-overlay h3 a:hover { color: var(--color-accent); }

.news-card-body { padding: 12px 15px 15px; display: none; }

.news-card .cat-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.news-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-text);
}

.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--color-accent); }

.news-card .post-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* === LATEST NEWS LAYOUT === */
.latest-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.latest-featured {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.latest-featured-img {
  display: block;
  height: 100%;
}

.latest-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.latest-featured:hover .latest-featured-img img { transform: scale(1.03); }

.latest-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.latest-featured-overlay .cat-label {
  display: inline-block;
  background: var(--color-accent) !important;
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff !important;
  margin-bottom: 8px;
  border-radius: 2px;
}

.latest-featured-overlay h3 {
  font-family: 'Montserrat', var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.latest-featured-overlay h3 a { color: #fff; }
.latest-featured-overlay h3 a:hover { color: var(--color-accent); }

.latest-featured-overlay .post-date {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  display: block;
}

.latest-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border-radius: 8px;
  padding: 5px 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.latest-list-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.latest-list-item:last-child { border-bottom: none; }

.latest-list-item-img {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
}

.latest-list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.latest-list-item:hover .latest-list-item-img img { transform: scale(1.05); }

.latest-list-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.latest-list-item-body .cat-label {
  display: inline-block;
  width: fit-content;
  background: var(--color-accent);
  color: #fff !important;
  padding: 1px 7px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  border-radius: 2px;
}

.latest-list-item-body h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-list-item-body h3 a { color: var(--color-text); }
.latest-list-item-body h3 a:hover { color: var(--color-accent); }

.latest-list-item-body .post-date {
  font-size: 0.65rem;
  color: #999;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .latest-layout {
    grid-template-columns: 1fr;
  }
  .latest-featured-img img { height: 220px; }
  .latest-featured-overlay h3 { font-size: 1rem; }
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 10px;
}

.section-header h2 {
  font-family: 'Montserrat', var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  color: var(--color-accent);
  font-size: 0.7rem;
}

.section-header .see-all {
  margin-left: auto;
  font-family: 'Montserrat', var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-header .see-all:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
  color: #fff !important;
}

.section-header-light .see-all:hover {
  color: #fff !important;
}

/* 3-column grid variant */
.news-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }

/* === BANNER SLIDER === */
.banner-slider {
  background: var(--color-white);
  margin-bottom: 25px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  padding-bottom: 12px;
}

.banner-slider-dep {
  margin-top: 25px;
}

.banner-slider-wrap {
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.banner-slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.banner-dot.active { background: var(--color-accent); }

/* === AD STRIP === */
.ad-strip {
  background: var(--color-secondary);
  padding: 15px 0;
  margin-bottom: 30px;
}

.ad-strip .ad-banner { margin: 0; padding: 0; text-align: center; }

/* === DUAL SECTION (Regional + Nacional side by side) === */
.dual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 10px;
}

.dual-col { margin-bottom: 0; }
.dual-col .news-list { padding: 5px 15px; }
.dual-col .news-list-item-img { width: 120px; height: 80px; }

/* === DEPORTES SECTION === */
.deportes-section {
  background: #f5f0eb;
  padding: 20px 20px 25px;
  margin-top: 10px;
  border-radius: 12px;
}

.section-header-light h2 { color: #8b2d2d; }
.section-header-light { border-bottom-color: #8b2d2d; }
.section-header-light .see-all { color: #fff; }
.section-header-light .section-icon { color: #8b2d2d; }

.deportes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 18px;
  align-items: center;
}

.deportes-card:first-child .deportes-card-img {
  aspect-ratio: 16/12;
}

.deportes-card:first-child .deportes-card-body h3 {
  font-size: 1rem;
}

.deportes-card:not(:first-child) .deportes-card-img {
  aspect-ratio: 16/10;
}

.deportes-card:not(:first-child) .deportes-card-body {
  padding: 6px 8px 8px;
}

.deportes-card:not(:first-child) .deportes-card-body h3 {
  font-size: 0.72rem;
  -webkit-line-clamp: 2;
}

.deportes-card:not(:first-child) .deportes-card-body .post-date {
  font-size: 0.6rem;
  margin-top: 4px;
}

.deportes-card {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}

.deportes-card:hover {
  transform: translateY(-3px);
  background: rgba(0,0,0,0.03);
}

.deportes-card-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

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

.deportes-card-body {
  padding: 12px 14px 16px;
}

.deportes-card-body h3 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deportes-card-body h3 a { color: var(--color-text); }
.deportes-card-body h3 a:hover { color: var(--color-accent); }

.deportes-card-body .post-date {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 8px;
  display: block;
}

/* === CATEGORY SECTION (list layout) === */
.category-section { margin-bottom: 35px; }

.category-section .news-list {
  background: var(--color-white);
  border-radius: 6px;
  padding: 5px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.news-list { display: flex; flex-direction: column; gap: 0; }

.news-list-item {
  display: flex;
  gap: 18px;
  background: var(--color-white);
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
}

.news-list-item:last-child { border-bottom: none; }
.news-list-item:hover { background: rgba(0,0,0,0.015); }

.news-list-item-img {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
}

.news-list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-list-item:hover .news-list-item-img img { transform: scale(1.05); }

.news-list-item-body {
  padding: 0 10px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-list-item .cat-label {
  display: inline-block;
  width: fit-content;
  background: var(--color-accent);
  color: #fff !important;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}

.news-list-item h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-item h3 a { color: var(--color-text); }
.news-list-item h3 a:hover { color: var(--color-accent); }

.news-list-item .post-excerpt {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.news-list-item .post-date {
  font-size: 0.7rem;
  color: #999;
  margin-top: 5px;
  letter-spacing: 0.2px;
}

/* === LAYOUT WITH SIDEBAR === */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.main-content { min-width: 0; }

/* === SIDEBAR === */
.sidebar { display: flex; flex-direction: column; gap: 25px; }

.widget {
  background: var(--color-white);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

/* Ad widget */
.widget-ad { padding: 0; background: none; box-shadow: none; }
.widget-ad img { width: 100%; border-radius: 4px; }

/* === SINGLE ARTICLE === */
.single-article {
  background: var(--color-white);
  border-radius: 4px;
  padding: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 30px;
}

.single-article .cat-label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.single-article h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
}

.article-meta .author { font-weight: 600; color: var(--color-text); }

.article-featured-img {
  margin-bottom: 25px;
  border-radius: 4px;
  overflow: hidden;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 1.5rem; margin: 1.5em 0 0.8em; color: var(--color-primary); }
.article-content h3 { font-size: 1.25rem; margin: 1.3em 0 0.6em; color: var(--color-primary); }
.article-content img { margin: 1.5em 0; border-radius: 4px; }
.article-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 15px 20px;
  margin: 1.5em 0;
  background: var(--color-bg);
  font-style: italic;
}
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-content li { margin-bottom: 0.5em; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content a { color: var(--color-accent); text-decoration: underline; }
.article-content iframe { max-width: 100%; margin: 1.5em 0; }

/* === SHARE BUTTONS === */
.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-link { background: #666; cursor: pointer; border: none; }

/* === AD BANNER === */
.ad-banner {
  text-align: center;
  margin: 25px 0;
  padding: 15px 0;
}

.ad-banner img { margin: 0 auto; max-width: 100%; }

.ad-banner-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px 0;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--color-text-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { margin: 0 5px; }

/* === FOOTER === */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  margin-top: 50px;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 45px 15px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { margin-bottom: 18px; }
.footer-logo a { display: inline-block; }
.footer-logo img,
.footer-logo .custom-logo {
  height: 45px !important;
  width: auto !important;
  max-width: 180px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-middle {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

/* === CONTACT FORM === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form-field label {
  display: block;
  font-family: 'Montserrat', var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(228, 63, 90, 0.1);
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: 'Montserrat', var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}

.contact-submit:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.contact-success {
  text-align: center;
  padding: 40px 20px;
}

.contact-success h3 {
  font-family: 'Montserrat', var(--font-heading);
  font-size: 1.3rem;
  color: #27ae60;
  margin-top: 15px;
}

.contact-success p {
  color: var(--color-text-light);
  margin-top: 8px;
}

.contact-error {
  background: #ffeaea;
  color: #c0392b;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .news-grid, .news-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .dual-section { grid-template-columns: 1fr; gap: 0; }
  .deportes-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-middle { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 55px; }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }

  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { line-height: 45px; border-bottom: 1px solid rgba(255,255,255,0.1); }

  .main-nav .sub-menu { position: static; box-shadow: none; min-width: 100%; }
  .main-nav .sub-menu a { padding-left: 35px; font-size: 0.75rem; line-height: 40px; }

  /* Mosaic */
  .mosaic-grid { grid-template-columns: 1fr 1fr; }
  .mosaic-item { aspect-ratio: 16/9; }
  .mosaic-item.featured { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9; }
  .mosaic-item h2 { font-size: 1.1rem; }

  /* News grid: 2 columns, proper aspect ratio */
  .news-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .news-card-img { aspect-ratio: 16/10; }

  /* News list: keep horizontal, smaller image */
  .news-list-item { flex-direction: row; }
  .news-list-item-img { width: 120px; height: 80px; flex-shrink: 0; }
  .news-list-item-img img { min-height: auto; }
  .news-list-item h3 { font-size: 0.82rem; }
  .news-list-item .post-date { font-size: 0.65rem; }

  /* Deportes */
  .deportes-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Single */
  .single-article { padding: 20px 15px; }
  .single-article h1 { font-size: 1.5rem; }
  .share-buttons { flex-wrap: wrap; }

  /* Dual section */
  .dual-section { grid-template-columns: 1fr; }

  .hero-post img { height: 280px; }
  .hero-overlay h2 { font-size: 1.2rem; }

  .footer-middle { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Mosaic: 1 col */
  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-item, .mosaic-item.featured { aspect-ratio: 16/9; }

  /* News grid: 1 col, rectangular cards */
  .news-grid { grid-template-columns: 1fr; gap: 10px; }
  .news-card-img { aspect-ratio: 16/9; }
  .news-card-img .card-overlay h3 { font-size: 0.85rem; }

  /* Deportes */
  .deportes-grid { grid-template-columns: 1fr; }
  .deportes-card-img { aspect-ratio: 16/9; }

  .hero-post img { height: 220px; }
  .hero-overlay { padding: 20px 15px 15px; }
  .hero-overlay h2 { font-size: 1.1rem; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
}
