:root {
  --blue-main: #0055ff;
  --black-bg: #1a1a1a;
  --gray-text: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f4f7f6;
}

/* Top Nav */
.top-nav {
  background: #000;
  color: white;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.top-links a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

/* Header */
header {
  background: white;
  padding: 20px 5% 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo-link:hover {
  opacity: 0.9; /* efecto sutil opcional */
}
.social-icons {
  display: flex;
  gap: 18px; /* más separación entre íconos */
  font-size: 13px; /* tamaño más grande */
}

.social-icons i {
  cursor: pointer;
  transition: 0.3s ease;
}

.social-icons i:hover {
  color: var(--blue-main);
  transform: translateY(-2px) scale(1.1);
}

.logo h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 28px;
  font-style: italic;
  color: #1a1a1a;
}

.logo h1 span {
  color: var(--blue-main);
}

.logo p {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-text);
  width: 100%;
  text-align: center;
}

.btn-news {
  background: var(--blue-main);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.3);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  border-top: 1px solid #eee;
  padding: 15px 0;
}

.main-nav li {
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #333;
}

.main-nav li.active {
  color: var(--blue-main);
  border-bottom: 3px solid var(--blue-main);
}

/* Layout */
.content-grid {
  max-width: 1200px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 0 20px;
}

/* Hero Article */
.hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 500px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
}

.label-red {
  background: #e63946;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: bold;
}

.label-gray {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  font-size: 10px;
  margin-left: 5px;
}

.hero-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: 900;
  margin: 15px 0;
  line-height: 1;
}

/* Sidebar & Tendencias */
.tendencias {
  background: white;
  padding: 25px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.tendencias h3 {
  font-style: italic;
  font-family: "Montserrat", sans-serif;
  border-bottom: 3px solid var(--blue-main);
  display: inline-block;
  margin-bottom: 20px;
}

.trend-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.number {
  font-size: 32px;
  font-weight: 900;
  color: #eee;
}

.trend-text h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.cat {
  font-size: 10px;
  font-weight: bold;
  color: var(--blue-main);
}

/* Live Score */
.live-score {
  background: #111;
  color: white;
  padding: 20px;
  border-radius: 4px;
}

.live-header {
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-main);
  border-radius: 50%;
}

.score-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-family: "Montserrat", sans-serif;
}

.score-num {
  font-size: 32px;
  font-weight: 900;
}

.team-code {
  font-size: 12px;
  display: block;
  color: #888;
}

/* Footer */
footer {
  background: #0d0d0d;
  color: white;
  padding: 60px 5% 20px;
  margin-top: 50px;
}

.footer-logo h2 span {
  color: var(--blue-main);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  gap: 20px;
}

.col h5 {
  font-size: 12px;
  margin-bottom: 20px;
  color: var(--gray-text);
}

.col a {
  display: block;
  color: #ccc;
  text-decoration: none;
  font-size: 11px;
  margin-bottom: 10px;
}

.input-group {
  display: flex;
}

.input-group input {
  background: #222;
  border: none;
  padding: 10px;
  color: white;
  width: 100%;
}

.input-group button {
  background: var(--blue-main);
  color: white;
  border: none;
  padding: 10px 15px;
  font-weight: bold;
}

.copyright {
  text-align: center;
  font-size: 10px;
  color: #444;
  margin-top: 60px;
  border-top: 1px solid #222;
  padding-top: 20px;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .hero-image {
    height: 420px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Top Nav */
  .top-nav {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px;
  }

  .top-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-links a {
    margin: 0;
    font-size: 10px;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
  }

  /* Header */
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .logo h1 {
    font-size: 22px;
  }

  .header-right {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .btn-news {
    padding: 8px 18px;
    font-size: 11px;
  }

  /* Menú */
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .main-nav li {
    font-size: 10px;
  }

  /* Hero */
  .hero-image {
    height: 320px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-content h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .author {
    font-size: 10px;
  }

  /* Tendencias */
  .trend-text h4 {
    font-size: 13px;
  }

  .number {
    font-size: 26px;
  }

  /* Footer */
  footer {
    padding: 40px 20px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .input-group {
    flex-direction: column;
    gap: 10px;
  }

  .input-group button {
    width: 100%;
  }
}

.social-icons i {
  cursor: pointer;
  transition: 0.3s;
}

.social-icons i:hover {
  color: var(--blue-main);
  transform: translateY(-2px);
}

/* Estilos para las nuevas secciones */
.secondary-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.section-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
}

.view-all {
  font-size: 11px;
  font-weight: bold;
  color: var(--blue-main);
  text-decoration: none;
}

/* Grid de 3 columnas (Destacados) */
.grid-destacados {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-img {
  position: relative;
  height: 180px;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: bold;
  color: white;
}
.badge-blue {
  background: var(--blue-main);
}
.badge-red {
  background: #e63946;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
}

.card-body {
  padding: 15px;
}
.card-body h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-body p {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}
.card-body .time {
  font-size: 10px;
  font-weight: bold;
  color: #999;
}

/* Grid de 4 columnas (Más Noticias) */
.grid-mas-noticias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.small-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cat-label {
  display: block;
  font-size: 9px;
  font-weight: bold;
  color: var(--blue-main);
  margin-bottom: 5px;
}

.small-card h4 {
  font-size: 13px;
  line-height: 1.3;
  color: #222;
}

/* Responsive para las nuevas secciones */
@media (max-width: 992px) {
  .grid-destacados {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-mas-noticias {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-destacados {
    grid-template-columns: 1fr;
  }
  .grid-mas-noticias {
    grid-template-columns: 1fr;
  }
}
/* Mejora del grid para que respete las filas */
.grid-mas-noticias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px; /* 30px de espacio entre filas, 20px entre columnas */
}

/* Efecto Hover para las noticias (opcional, les da un toque más "Pro") */
.small-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.small-card:hover {
  transform: translateY(-5px);
}

.small-card img {
  width: 100%;
  height: 140px; /* Aumenté un poquito la altura para mejor visibilidad */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #ddd; /* Color de carga por si falla la imagen */
}

/* Layout Archivo */
.archive-grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.archive-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Items del Archivo */
.archive-item {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.archive-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.cat-label-green {
  color: #27ae60;
  font-size: 9px;
  font-weight: 900;
  display: block;
}

.archive-text h4 {
  font-size: 13px;
  line-height: 1.2;
  margin: 4px 0;
}

.time-stamp {
  font-size: 9px;
  color: #999;
  font-weight: bold;
}

.btn-load-more {
  width: 100%;
  margin-top: 30px;
  padding: 12px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
}

/* Sidebar Tabla */
.table-card {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.table-header {
  background: #1a1a1a;
  color: white;
  padding: 10px 15px;
  font-size: 11px;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.table-card th {
  padding: 10px;
  color: #999;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table-card td {
  padding: 10px;
  border-bottom: 1px solid #f9f9f9;
}

.mini-logo {
  width: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

.view-full-table {
  display: block;
  text-align: center;
  padding: 15px;
  color: var(--blue-main);
  font-weight: bold;
  text-decoration: none;
  font-size: 10px;
}

.next-match-card {
  margin-top: 20px;
  border-left: 4px solid #e63946;
  padding: 15px;
  background: white;
}

.next-match-card h4 {
  font-size: 12px;
  margin-bottom: 10px;
}

.match-mini {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

/* Responsive */
@media (max-width: 850px) {
  .archive-grid-container {
    grid-template-columns: 1fr;
  }
  .archive-list {
    grid-template-columns: 1fr;
  }
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#preloader.hidden {
  display: none;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #e50914;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Preloader responsive */
#preloader p {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
  max-width: 80%;
  line-height: 1.4;
}

@media (max-width: 768px) {
  #preloader .loader {
    width: 40px;
    height: 40px;
    border-width: 5px;
  }

  #preloader p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #preloader .loader {
    width: 30px;
    height: 30px;
    border-width: 4px;
  }

  #preloader p {
    font-size: 12px;
  }
}
.social-icons a i {
  color: white; /* color inicial blanco */
}

.social-icons a:hover i {
  color: #fff; /* blanco también al hover, o un efecto sutil si quieres */
  transform: translateY(-2px) scale(1.1);
}

.grid-destacados .featured-link {
  display: block;
  text-decoration: none;
}

.featured-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.featured-card:hover {
  transform: translateY(-6px);
}
/* Quitar líneas subrayadas de los títulos y artículos */
.section-header,
.tendencias h3,
.main-nav li.active,
.archive-item,
.small-card {
  border-bottom: none !important; /* Elimina cualquier línea inferior */
  text-decoration: none !important; /* Elimina subrayados de links */
}

/* Opcional: Quitar subrayado en todos los links dentro de artículos */
.grid-mas-noticias a,
.archive-list a,
.featured-link {
  text-decoration: none;
}

/* Quitar líneas internas de items de archivo y noticias */
.archive-item,
.small-card,
.featured-card {
  border: none !important;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08); /* Mantener sombra si quieres */
}
/* Grid Destacados */
.grid-destacados {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px; /* separación más elegante */
}

/* Grid Más Noticias */
.grid-mas-noticias {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px; /* filas más espaciadas que columnas */
}

/* Ajustes responsive ya existentes */
@media (max-width: 992px) {
  .grid-destacados {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-mas-noticias {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-destacados,
  .grid-mas-noticias {
    grid-template-columns: 1fr;
  }
}
/* Cards destacadas */
.featured-card {
  background: #fff;
  border-radius: 12px; /* más redondeo */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* sombra más suave y profunda */
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); /* efecto hover elegante */
}

/* Cards pequeñas de noticias */
.small-card {
  background: #fff;
  border-radius: 10px; /* bordes redondeados */
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.small-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
/* Mejora general de contenedores de texto en tarjetas */
.card-body,
.small-card {
  display: flex;
  flex-direction: column;
  padding: 18px; /* Más espacio interno */
}

/* Títulos más potentes y claros */
.card-body h3,
.small-card h4 {
  font-family: "Montserrat", sans-serif;
  color: #1a1a1a;
  margin-bottom: 10px;
  line-height: 1.25;
  font-weight: 700;
}

.card-body h3 {
  font-size: 19px;
} /* Para destacados */
.small-card h4 {
  font-size: 15px;
  padding: 0 10px 15px 10px;
} /* Para mini cards */

/* La descripción (etiqueta p) */
.card-body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
  /* Limita a 3 líneas para que todas las cards midan lo mismo */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Etiquetas de categoría siempre alineadas */
.cat-label {
  margin: 10px 10px 5px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-item {
  display: grid;
  grid-template-columns: 120px 1fr; /* Tamaño fijo para la imagen */
  gap: 15px;
  align-items: start;
  background: white;
  padding: 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.archive-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-text h4 {
  font-size: 14px;
  margin: 5px 0;
  color: #222;
}
/* --- ANIMACIÓN DE ELEVACIÓN PARA LAS TARJETAS --- */

/* Se aplica a las tarjetas de Destacados y Más Noticias */
.featured-card,
.small-card,
.archive-item {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Curva de movimiento profesional */
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Efecto al pasar el mouse (Hover) */
.featured-card:hover,
.small-card:hover,
.archive-item:hover {
  transform: translateY(-10px); /* Se eleva 10px */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Sombra más grande y suave */
  z-index: 10; /* Se asegura de estar por encima de otros elementos */
}

/* Efecto opcional: Brillo sutil en la imagen al hacer hover */
.featured-card:hover img,
.small-card:hover img {
  filter: brightness(1.05);
  transition: filter 0.3s ease;
}

/* Ajuste para que el contenedor de las noticias no corte la elevación */
.secondary-section,
.archive-grid-container {
  padding-top: 15px;
}
/* =========================
   Card de la tabla
   ========================= */
.table-card {
  width: 540px; /* ligeramente mayor al iframe para padding */
  max-width: 540px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 40px auto;
  padding: 10px;
}

/* =========================
   Encabezado
   ========================= */
.table-header {
  background: #1a73e8; /* azul profesional */
  color: white;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  text-align: center;
}

/* =========================
   Contenedor del iframe
   ========================= */
.widget-container-live {
  width: 100%;
  height: 478px; /* igual que el iframe */
  overflow: hidden; /* no scroll necesario */
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}

/* =========================
   Iframe
   ========================= */
.widget-container-live iframe {
  width: 520px;
  height: 700px;
  border: none;
  display: block;
  margin: 0 auto;
  font-family: Verdana, sans-serif;
}

/* =========================
   Enlace tabla completa
   ========================= */
.view-full-table {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
}

.view-full-table:hover {
  color: #0c47a1;
}

/* =========================
   Ajustes responsivos (móviles)
   ========================= */
@media (max-width: 600px) {
  .table-card {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
  }

  .widget-container-live iframe {
    width: 100%;
    min-width: 520px; /* mantiene scroll horizontal si es necesario */
  }
}
.main-nav li a {
  text-decoration: none;
  color: #333;
  display: block; /* Para que ocupe todo el li */
  padding: 5px 0;
  font-size: 11px;
  font-weight: 700;
}

.main-nav li.active a {
  color: var(--blue-main);
  border-bottom: 3px solid var(--blue-main);
}

.main-nav li a:hover {
  color: var(--blue-main);
}

.small-card .card-img-wrapper {
  width: 100%;
  height: 120px; /* altura fija de tus tarjetas pequeñas */
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.small-card .news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}


/* =============================================
   Próximo Partido - Muy simple, bonito, con borde y limpio
   ============================================= */
.featured-match {
  background: white;                 /* Fondo blanco limpio */
  border-radius: 12px;
  overflow: hidden;
  margin: 15px 0 25px 0;             /* Espacio justo, sin exceso abajo */
  border: 2px solid #0055ff;         /* Borde azul principal - bonito y visible */
  box-shadow: 0 4px 16px rgba(0, 85, 255, 0.12); /* Sombra suave azul */
  max-height: 360px;                 /* Compacto pero muestra varios partidos */
  display: flex;
  flex-direction: column;
}

.match-header {
  background: #001133;               /* Azul oscuro elegante */
  padding: 10px 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #0055ff44;
}

.live-dot.pulsing {
  width: 10px;
  height: 10px;
  background: #0055ff;               /* Azul vibrante */
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.6);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 85, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0); }
}

.match-widget {
  flex: 1;                           /* Ocupa todo el espacio disponible */
  min-height: 240px;                 /* Muestra MÁS partidos sin cortar */
  overflow: hidden;
}

.match-credit {
  font-size: 11px;
  color: #555;
  text-align: center;
  padding: 8px 12px;
  background: #f8f9fa;               /* Fondo gris claro para contraste */
  border-top: 1px solid #e0e7ff;
}

.match-credit a {
  color: #0055ff;
  text-decoration: none;
  font-weight: 600;
}

.match-credit a:hover {
  text-decoration: underline;
}

/* En móvil aún más compacto y bonito */
@media (max-width: 768px) {
  .featured-match {
    margin: 12px 0 20px 0;
    max-height: 320px;
    border-width: 1px;               /* borde más delgado en móvil */
  }
  
  .match-header {
    font-size: 13px;
    padding: 9px 14px;
  }
  
  .match-widget {
    min-height: 210px;
  }
}

/* Contenedor general de anuncios */
.ad-container {
  text-align: center;
  margin: 20px auto;
  padding: 10px 0;
  background: #f8f9fa;          /* fondo claro para que se vea pro */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Por defecto ocultamos ambos y mostramos según pantalla */
.ad-desktop {
  display: block;               /* visible en pantallas grandes */
}

.ad-mobile {
  display: none;                /* oculto por defecto */
}

/* En pantallas pequeñas (móviles y tablets pequeñas) */
@media (max-width: 1024px) {    /* o 768px si prefieres más estricto */
  .ad-desktop {
    display: none;              /* ocultamos el grande de PC */
  }
  
  .ad-mobile {
    display: block;             /* mostramos el móvil */
  }
  
  /* Opcional: hacer el móvil sticky en la parte inferior (prueba con cuidado) */
  /*
  .ad-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    margin: 0;
    border-top: 1px solid #ddd;
    background: white;
  }
  body { padding-bottom: 70px; }   /* evita que tape contenido */
  
}

/* Contenedor del anuncio en sidebar */
.ad-sidebar-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;                    /* espacio arriba y abajo */
  box-shadow: 0 4px 16px rgba(0, 85, 255, 0.12);
  border: 1px solid #e0e7ff;         /* borde sutil azul claro */
  text-align: center;
}

/* Header discreto "PATROCINADO" */
.ad-header {
  background: #001133;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #0055ff44;
}

.ad-header span {
  opacity: 0.9;
}

/* El bloque del anuncio 300x250 */
.adsterra-300x250 {
  width: 300px;
  height: 250px;
  margin: 0 auto;                    /* centrado */
  overflow: hidden;
}

/* En móviles: centrar y ajustar si la sidebar es full-width */
@media (max-width: 1024px) {
  .ad-sidebar-container {
    margin: 30px auto;
    max-width: 320px;
  }
  
  .adsterra-300x250 {
    width: 100%;
    height: auto;                    /* permite que el iframe se ajuste */
  }
  
  .adsterra-300x250 iframe {
    width: 100% !important;
    height: auto !important;
  }
}

/* Mejora responsiva para el Medium Rectangle en sidebar */
.ad-sidebar-container {
  width: 100%;
  max-width: 320px;                 /* evita que se salga en móviles estrechos */
  margin: 25px auto;                /* más espacio y centrado */
  box-sizing: border-box;
}

.adsterra-300x250 {
  width: 100% !important;
  max-width: 300px;
  height: 250px;
  margin: 0 auto;
  overflow: hidden;
}

.adsterra-300x250 script,
.adsterra-300x250 iframe {
  width: 100% !important;
  max-width: 300px !important;
  height: 250px !important;
}

/* En pantallas muy pequeñas forzamos ajuste */
@media (max-width: 380px) {
  .ad-sidebar-container {
    padding: 0 10px; 
  }
  
  .adsterra-300x250 {
    height: auto !important;
  }
  
  .adsterra-300x250 iframe {
    height: auto !important;
    min-height: 250px;
  }
}
