/*
Theme Name: Milenio Cooperativo
Theme URI: https://marianoacosta.coop/
Author: Milenio Cooperativo
Description: Tema editorial para el periódico Milenio Cooperativo. Diseño tipo diario digital, con noticias, categorías, avisos y portada responsive.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: milenio-cooperativo
*/

/* =========================
   VARIABLES Y BASE
========================= */

:root {
  --mc-blue: #252c75;
  --mc-red: #d71920;
  --mc-cyan: #00a6d6;
  --mc-pink: #e6007e;
  --mc-dark: #121212;
  --mc-gray: #f4f4f6;
  --mc-border: #e5e5e8;
  --mc-max: 1500px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--mc-dark);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* =========================
   BARRA SUPERIOR
========================= */

.topbar {
  background: var(--mc-blue);
  color: #fff;
  font-size: 13px;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* =========================
   HEADER / LOGOS / FECHA
========================= */

.brand {
  padding: 10px 0;
  border-bottom: 4px solid var(--mc-red);
  background: #fff;
}

.brand-inner {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand a,
.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  height: auto;
  overflow: visible;
}

.site-logo {
  width: 500px;
  max-width: 100%;
  max-height: none;
  height: auto;
  display: block;
  object-fit: contain;
  transform: none;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 48px;
  padding-right: 20px;
}

.edition-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.edition-logos img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: .25s;
}

.edition-logos img:hover {
  transform: scale(1.05);
}

.edition {
  min-width: 210px;
  text-align: right;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 700;
}

.edition .month {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 700;
}

.edition div:last-child {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

/* =========================
   MENÚ Y BUSCADOR
========================= */

.nav {
  border-bottom: 1px solid var(--mc-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.menu li a {
  display: block;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  transition: .25s;
}

.menu li a:hover {
  color: var(--mc-red);
}

.search-form {
  display: flex;
  align-items: center;
  width: 280px;
  height: 46px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 30px;
  overflow: hidden;
  padding-left: 8px;
  flex-shrink: 0;
}

.search-form:hover,
.search-form:focus-within {
  border-color: var(--mc-blue);
  box-shadow: 0 0 0 4px rgba(37, 44, 117, .08);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0 18px;
  background: none;
  font-size: 15px;
  color: #222;
}

.search-form input::placeholder {
  color: #999;
}

.search-form button {
  width: 58px;
  height: 100%;
  border: none;
  margin: 0;
  padding: 0;
  background: var(--mc-blue);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 30px 30px 0;
  transition: .25s;
}

.search-form button:hover {
  background: var(--mc-red);
}

/* =========================
   HERO / PORTADA
========================= */

.hero {
  background: linear-gradient(180deg, #fff, #f8f8fb);
  padding: 10px 0 0;
}

.hero .wrap {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr .9fr;
  gap: 18px;
  align-items: start;
}

.lead-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: transparent;
}

.lead-card a {
  display: block;
}

.lead-media,
.lead-media-img {
  width: 100%;
  overflow: hidden;
  background: #eee;
  line-height: 0;
}

.lead-media {
  aspect-ratio: 16 / 8.5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mc-cyan), var(--mc-pink));
  color: #fff;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 86px);
  letter-spacing: -3px;
}

.lead-media-img {
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
}

.lead-media-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.lead-body {
  position: relative;
  padding: 22px 26px;
  margin-top: -6px;
  background: #fff;
}

.kicker {
  display: inline-block;
  color: var(--mc-red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.lead-title {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--mc-blue);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 700;
  margin: 8px 0 12px;
}

.excerpt {
  color: #464646;
  line-height: 1.55;
}

.lead-body .excerpt {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #333;
}

.meta {
  font-size: 13px;
  color: #777;
}

/* =========================
   NOTICIAS LATERALES
========================= */

.side-list {
  display: grid;
  grid-template-rows: repeat(4, auto);
  gap: 12px;
}

.small-card {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 1px solid #e8e8e8;
}

.small-card:last-child {
  border-bottom: none;
}

.small-thumb {
  width: 135px;
  height: 88px;
  overflow: hidden;
  background: #eee;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

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

.small-content .kicker {
  display: block;
  color: var(--mc-red);
  font-size: 11px;
  letter-spacing: 1px;
  margin: 0 0 4px;
}

.small-content h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.12;
  color: var(--mc-blue);
}

.small-content h3 a:hover {
  color: var(--mc-red);
}

.small-content .excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #555;
}

/* =========================
   ÚLTIMAS NOTICIAS
========================= */

.section-title {
  border-top: 4px solid var(--mc-red);
  padding-top: 12px;
  margin: 34px 0 18px;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--mc-blue);
  font-weight: 900;
}

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

.article-card {
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
}

.article-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.article-card .thumb,
.thumb-img {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: #eee;
}

.article-card .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-blue);
  font-size: 42px;
  font-weight: 900;
}

.thumb-img img,
.article-card .thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.article-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.article-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.12;
  margin: 0;
  color: #1c1c1c;
}

.btn {
  display: inline-block;
  background: var(--mc-blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  margin-top: auto;
}

/* =========================
   PUBLICIDADES
========================= */

.ad-banner {
  margin: 35px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

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

.footer-ads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 45px 0 60px;
}

.footer-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 10px;
  overflow: visible;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,.10);
  transition: .35s;
}

.footer-ad:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.footer-ad img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

/* =========================
   DATOS DEL PERIÓDICO
========================= */

.newspaper-info {
  margin: 60px 0 30px;
  padding: 35px;
  background: #fff;
  border-top: 5px solid #b30000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.newspaper-title {
  border-bottom: 2px solid #ddd;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.newspaper-title h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 1px;
}

.newspaper-title span {
  color: #666;
  font-size: 15px;
}

.newspaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.newspaper-grid h4 {
  margin-bottom: 15px;
  color: #b30000;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.newspaper-grid p {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

/* =========================
   SINGLE / NOTICIAS INTERNAS
========================= */

.content-area {
  max-width: 850px;
  margin: 36px auto;
  padding: 0 18px;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) 300px;
  gap: 45px;
  align-items: start;
  margin-top: 45px;
}

.single-content {
  max-width: 850px;
}

.entry-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.12;
  color: #151515;
  margin: 0 0 22px;
}

.single-content .meta {
  margin-bottom: 30px;
  color: #777;
}

.single-featured-image {
  margin: 0 0 38px;
}

.single-featured-image img {
  width: 100%;
  max-height: 460px;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.entry-content {
  max-width: 720px;
  margin-top: 35px;
  font-size: 20px;
  line-height: 1.85;
  color: #222;
}

.entry-content p {
  margin: 0 0 26px;
}

.entry-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.single-sidebar {
  position: sticky;
  top: 25px;
}

.side-ad {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,.10);
}

.side-ad img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* =========================
   AVISO INSTITUCIONAL
========================= */

.alerta-institucional {
  background: #c8102e;
  border-top: 4px solid #9b001f;
  border-bottom: 4px solid #9b001f;
  margin-bottom: 35px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.alerta-box {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 30px;
  align-items: center;
  padding: 20px 0;
}

.alerta-box strong {
  display: inline-block;
  background: #fff;
  color: #c8102e;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 800;
}

.alerta-box p {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.alerta-contacto {
  text-align: right;
}

.alerta-contacto span {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin: 6px 0;
}

/* =========================
   WHATSAPP
========================= */

.wa-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #25D366;
  color: #fff;
  padding: 14px 18px;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(0,0,0,.20);
  transition: .35s;
  z-index: 99999;
}

.wa-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.30);
}

.wa-icono {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1ebe5d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-texto {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wa-texto strong {
  font-size: 16px;
  font-weight: 700;
}

.wa-texto span {
  font-size: 13px;
  opacity: .95;
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #202020, #111);
  border-top: 5px solid var(--mc-red);
  color: #fff;
  box-shadow: 0 -5px 20px rgba(0,0,0,.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 45px 20px;
}

.footer h3 {
  color: #fff;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 18px;
}

.footer h3::after {
  content: "";
  display: block;
  width: 45px;
  height: 3px;
  background: var(--mc-red);
  margin-top: 8px;
}

.footer p {
  color: #d0d0d0;
  line-height: 1.8;
  font-size: 15px;
  transition: .2s;
}

.footer p:hover {
  color: #fff;
  padding-left: 6px;
}

.footer a {
  color: #d0d0d0;
  transition: .2s;
}

.footer a:hover {
  color: #fff;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px;
  text-align: center;
  color: #999;
  font-size: 14px;
  letter-spacing: .5px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
  .brand-inner {
    gap: 25px;
  }

  .site-logo {
    width: 390px;
  }

  .header-right {
    gap: 25px;
    padding-right: 0;
  }

  .edition-logos img {
    height: 58px;
  }

  .edition {
    min-width: 180px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .footer-grid,
  .newspaper-grid,
  .footer-ads {
    grid-template-columns: 1fr;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
  }

  .alerta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .alerta-contacto {
    text-align: center;
  }
}

/* =========================
   CELULAR
========================= */

@media (max-width: 768px) {

  .wrap {
    width: 94%;
    max-width: 94%;
    padding-left: 0;
    padding-right: 0;
  }

  .topbar .wrap {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    font-size: 12px;
  }

  .brand {
    padding: 8px 0 10px;
  }

  .brand-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .brand a,
  .logo-link {
    width: 100%;
    justify-content: center;
    margin: 0 auto;
  }

  .site-logo {
    width: 340px;
    max-width: 96%;
    transform: none;
  }

  .header-right {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .edition-logos {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .edition-logos img {
    height: 42px;
    max-width: 29%;
    width: auto;
  }

  .edition {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
  }

  .edition .month {
    font-size: 21px;
    line-height: 1.1;
    margin: 3px 0;
  }

  .edition div:last-child {
    font-size: 14px;
    line-height: 1.2;
  }

  .nav {
    position: static;
  }

  .nav .wrap {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 0;
  }

  .nav .menu {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 22px;
    padding: 0 14px 10px;
    margin: 0;
    list-style: none;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .nav .menu li {
    flex: 0 0 auto;
  }

  .nav .menu li a {
    font-size: 14px;
    padding: 12px 0;
  }

  .nav .search-form {
    width: 92%;
    max-width: 360px;
    margin: 10px auto 12px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero .wrap {
    width: 94%;
    max-width: 94%;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .lead-media {
    aspect-ratio: 16 / 10;
  }

  .lead-body {
    padding: 18px 0 0;
    margin-top: 0;
  }

  .lead-title {
    font-size: 34px;
    line-height: 1.08;
  }

  .lead-body .excerpt {
    font-size: 15px;
    line-height: 1.45;
  }

  .side-list {
    gap: 16px;
  }

  .small-card {
    grid-template-columns: 115px 1fr;
    gap: 12px;
    padding-bottom: 14px;
  }

  .small-thumb {
    width: 115px;
    height: 82px;
  }

  .small-content h3 {
    font-size: 18px;
  }

  .small-content .excerpt {
    font-size: 13px;
  }

  .section-title {
    font-size: 22px;
    text-align: center;
  }

  .article-card .body {
    padding: 14px 0;
  }

  .article-card h2 {
    font-size: 23px;
  }

  .entry-title {
    font-size: 34px;
  }

  .single-layout {
    display: block;
    margin-top: 25px;
  }

  .single-featured-image img {
    max-height: none;
  }

  .entry-content {
    font-size: 18px;
    line-height: 1.75;
  }

  .single-sidebar {
    margin-top: 40px;
  }

  .footer-ads,
  .newspaper-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newspaper-info {
    padding: 22px 16px;
    margin: 35px 0 20px;
  }

  .newspaper-title h3 {
    font-size: 23px;
  }

  .footer-grid {
    gap: 20px;
    padding: 35px 0;
  }

  .wa-texto {
    display: none;
  }

  .wa-button {
    padding: 0;
    width: 65px;
    height: 65px;
    justify-content: center;
    border-radius: 50%;
    right: 18px;
    bottom: 18px;
  }

  .wa-icono {
    width: 65px;
    height: 65px;
    background: none;
  }
}

/* =========================
   CELULAR CHICO
========================= */

@media (max-width: 420px) {

  .site-logo {
    width: 310px;
  }

  .edition-logos img {
    height: 38px;
  }

  .edition .month {
    font-size: 19px;
  }

  .edition div:last-child {
    font-size: 13px;
  }

  .lead-title {
    font-size: 30px;
  }

  .small-card {
    grid-template-columns: 100px 1fr;
  }

  .small-thumb {
    width: 100px;
    height: 76px;
  }

  .small-content h3 {
    font-size: 16px;
  }

  .small-content .excerpt {
    display: none;
  }
}
.footer-contacto {
  text-align: center;
  padding: 18px 15px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
}

.footer-contacto p {
  margin: 0;
}

.footer-contacto a {
  color: #f4c542;
  text-decoration: none;
  font-weight: 700;
}

.footer-contacto a:hover {
  text-decoration: underline;
}

/* BOTONES PARA COMPARTIR NOTICIAS */

.compartir-noticia {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e8;
}

.compartir-titulo {
    display: block;
    margin-bottom: 15px;
    color: #252c75;
    font-size: 18px;
    font-weight: 700;
}

.compartir-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compartir-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 11px 18px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.compartir-btn:hover {
    color: #ffffff;
    opacity: 0.88;
    transform: translateY(-2px);
}

.compartir-btn.whatsapp {
    background: #25d366;
}

.compartir-btn.facebook {
    background: #1877f2;
}

.compartir-btn.twitter {
    background: #111111;
}

.compartir-btn.telegram {
    background: #229ed9;
}

@media (max-width: 600px) {
    .compartir-botones {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .compartir-btn {
        min-width: 0;
        width: 100%;
        padding: 12px 8px;
    }
}
.compartir-btn.instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
/* NOTICIAS RELACIONADAS */

.noticias-relacionadas {
    margin: 45px 0 30px;
    padding-top: 30px;
    border-top: 2px solid #252c75;
}

.noticias-relacionadas > h2 {
    margin: 0 0 22px;
    color: #252c75;
    font-size: 26px;
    line-height: 1.2;
}

.relacionadas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.relacionada-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e5e8;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.relacionada-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.relacionada-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.relacionada-imagen {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f4f4f6;
}

.relacionada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.relacionada-contenido {
    padding: 16px;
}

.relacionada-categoria {
    display: block;
    margin-bottom: 8px;
    color: #d71920;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.relacionada-card h3 {
    margin: 0 0 10px;
    color: #121212;
    font-size: 18px;
    line-height: 1.3;
}

.relacionada-fecha {
    color: #777777;
    font-size: 13px;
}

@media (max-width: 850px) {
    .relacionadas-grid {
        grid-template-columns: 1fr;
    }

    .relacionada-card {
        display: grid;
        grid-template-columns: 130px 1fr;
    }

    .relacionada-card a {
        display: contents;
    }

    .relacionada-imagen {
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (max-width: 480px) {
    .relacionada-card {
        grid-template-columns: 105px 1fr;
    }

    .relacionada-contenido {
        padding: 12px;
    }

    .relacionada-card h3 {
        font-size: 16px;
    }
}
/* CONTADOR DE VISITAS */

.meta-noticia {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.contador-visitas {
    color: #777777;
    font-size: 14px;
    font-weight: 600;
}
.single-sidebar .side-ad {
    display: block;
    margin-bottom: 25px;
}

.single-sidebar .side-ad img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}