/* Variables CSS personalizadas */
:root {
  --primary-red: #ff0000;
  --dark-red: #cc0000;
  --light-red: #ff3333;
  --hover-red: #ff4444;
}

/* Configuración general mejorada */
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
}

/* Estilos para el navbar Bootstrap */
.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 12px 20px !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-red) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
  color: var(--primary-red) !important;
}

.social-icons a {
  color: #666;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 0 5px;
}

.social-icons a:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
}

.notification-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  position: relative;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.notification-btn:hover {
  color: var(--primary-red);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
}

/* Header personalizado */
.custom-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 3px solid var(--primary-red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
  background: black;
  color: red;
  border-radius: 8px;
  padding: 10px 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
  display: inline-block; /* Agregado para mejor control */
  white-space: nowrap; /* Evita que el texto se divida */
}

.logo-container:hover {
  background: #1a1a1a;
  color: red;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}


.nav-menu {
  gap: 8px;
}

.nav-item-custom {
  text-align: center;
  width: 100%;
}

.nav-link-custom {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 25px;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 12px 24px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.nav-link-custom:hover {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-icons a {
  color: #666;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--primary-red);
  transform: translateY(-2px);
}

.notification-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  position: relative;
  transition: all 0.3s ease;
}

.notification-btn:hover {
  color: var(--primary-red);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(45deg, #000 0%, #333 100%);
  color: white;
  padding: 80px 0;
}

.hero-title {
  background: linear-gradient(45deg, var(--primary-red), var(--light-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.5rem;
  font-weight: bold;
}

/* Cards personalizadas */
.news-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

.news-image {
  height: 200px;
  background: linear-gradient(45deg, #f8f9fa, #dee2e6);
  position: relative;
  overflow: hidden;
}

.news-image.featured {
  height: 400px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image::before {
  content: "📷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.3;
}

.category-badge {
  background: var(--primary-red);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: var(--primary-red);
}

/* Sidebar */
.sidebar-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  position: sticky;
  top: 180px;
}

.social-stat-item {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.trending-item {
  padding: 15px 0;
  border-bottom: 1px solid #dee2e6;
}

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

.trending-item a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.trending-item a:hover {
  color: var(--primary-red);
}

/* Footer */
.custom-footer {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: white;
  padding: 40px 0 20px;
}

.footer-social a {
  color: white;
  text-decoration: none;
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--light-red);
  color: white;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  /* MODIFICACIÓN PRINCIPAL - Reemplaza el bloque existente del logo */
  .logo-container {
    padding: 8px 16px; /* Reducir padding */
    font-size: 16px; /* Reducir tamaño de fuente */
    letter-spacing: 1px; /* Reducir espaciado entre letras */
    border-radius: 6px; /* Reducir border-radius */
  }

  .nav-link-custom {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* Estilos para la sección "Lo Más Leído" */
.mas-leido-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 0;
  margin-top: 50px;
}

.mas-leido-title {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 3px solid var(--primary-red);
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.mas-leido-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  backdrop-filter: blur(10px);
}

.mas-leido-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
  border-color: var(--primary-red);
}

.mas-leido-card.featured {
  background: linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.1),
    rgba(255, 51, 51, 0.1)
  );
  border-color: var(--primary-red);
}

.mas-leido-image {
  height: 250px;
  background: linear-gradient(45deg, #333, #555);
  position: relative;
  overflow: hidden;
}

.mas-leido-image.featured {
  height: 350px;
}

.mas-leido-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mas-leido-card:hover .mas-leido-image img {
  transform: scale(1.05);
}

.mas-leido-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary-red);
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mas-leido-content {
  padding: 25px;
}

.mas-leido-title-card {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.mas-leido-card:hover .mas-leido-title-card {
  color: var(--light-red);
}

.mas-leido-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mas-leido-author {
  color: var(--primary-red);
  font-weight: 600;
  font-size: 14px;
}

.mas-leido-date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-style: italic;
}

.mas-leido-small-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mas-leido-small-card:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: var(--primary-red);
  transform: translateX(10px);
}

.mas-leido-small-image {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #333, #555);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.mas-leido-small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mas-leido-small-content h5 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.mas-leido-small-content .mas-leido-small-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.mas-leido-small-content .mas-leido-small-meta .author {
  color: var(--primary-red);
  font-weight: 600;
}

.mas-leido-small-content .mas-leido-small-meta .date {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .mas-leido-title {
    font-size: 2rem;
  }

  .mas-leido-image {
    height: 200px;
  }

  .mas-leido-image.featured {
    height: 250px;
  }

  .mas-leido-small-card {
    flex-direction: column;
    text-align: center;
  }

  .mas-leido-small-image {
    width: 100%;
    height: 120px;
  }
}

/* Estilos para la sección Primera División */
.primera-division-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
  margin-top: 50px;
  /*border-top: 3px solid var(--primary-red);*/
}

.primera-division-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--primary-red);
  padding-bottom: 20px;
}

.primera-division-title {
  color: #333;
  font-weight: bold;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.primera-division-title::before,
.primera-division-title::after {
  content: "/";
  color: var(--primary-red);
  margin: 0 15px;
}

.ver-mas-btn {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.ver-mas-btn:hover {
  background: var(--dark-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.primera-division-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.primera-division-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(255, 0, 0, 0.15);
}

.primera-division-card.featured {
  border: 2px solid var(--primary-red);
  background: linear-gradient(135deg, white 0%, #fff5f5 100%);
}

.primera-division-image {
  height: 200px;
  background: linear-gradient(45deg, #f8f9fa, #dee2e6);
  position: relative;
  overflow: hidden;
}

.primera-division-image.featured {
  height: 280px;
}

.primera-division-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.primera-division-card:hover .primera-division-image img {
  transform: scale(1.05);
}

.primera-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primera-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.primera-badge.destacado {
  background: var(--primary-red);
}

.primera-badge.categoria {
  background: #007bff;
}

.primera-division-content {
  padding: 25px;
}

.primera-division-title-card {
  color: #333;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.primera-division-card:hover .primera-division-title-card {
  color: var(--primary-red);
}

.primera-division-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  font-size: 13px;
}

.primera-division-author {
  color: var(--primary-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primera-division-author::before {
  content: "👤";
  font-size: 12px;
}

.primera-division-date {
  color: #6c757d;
  font-style: italic;
}

.primera-division-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 15px;
}

.primera-division-sidebar-card:hover {
  background: #fff5f5;
  border-color: var(--primary-red);
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.1);
}

.primera-division-sidebar-image {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #f8f9fa, #dee2e6);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.primera-division-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primera-division-sidebar-content h5 {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.primera-division-sidebar-card:hover h5 {
  color: var(--primary-red);
}

.primera-division-sidebar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.primera-division-sidebar-meta .author {
  color: var(--primary-red);
  font-weight: 600;
}

.primera-division-sidebar-meta .date {
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .primera-division-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .primera-division-title {
    font-size: 2rem;
  }

  .primera-division-image {
    height: 180px;
  }

  .primera-division-image.featured {
    height: 220px;
  }

  .primera-division-sidebar-card {
    flex-direction: column;
    text-align: center;
  }

  .primera-division-sidebar-image {
    width: 100%;
    height: 120px;
  }
}

/* AGREGAR AL FINAL DE TU ARCHIVO index.css */

/* Estilos para el Mega Menu Liga Nacional */
/*.liga-nacional-mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: white;
    padding: 30px 0;
    margin: 0;
    transform: none !important;
    z-index: 9999;
}*/

.liga-nacional-mega-menu {
  display: none !important;
}

.teams-grid {
  margin-top: 20px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 15px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
  border: 2px solid #f8f9fa;
  margin-bottom: 15px;
}

.team-card:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
  text-decoration: none;
  border-color: var(--primary-red);
}

.team-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #e9ecef;
  transition: all 0.3s ease;
}

.team-card:hover .team-logo {
  border-color: white;
  transform: scale(1.1);
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.section-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  padding: 20px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  text-align: center;
}

.section-link:hover {
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

.section-link i {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-link span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item.dropdown:hover .dropdown-menu:not(.liga-nacional-mega-menu) {
  display: block;
}

.dropdown-menu {
  display: none;
}

/* Responsive para el dropdown */
@media (max-width: 768px) {
  .liga-nacional-mega-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none;
    padding: 20px 15px;
  }

  .teams-grid .col-2 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .team-card {
    margin-bottom: 10px;
    padding: 10px 5px;
  }

  .team-logo {
    width: 50px;
    height: 50px;
  }

  .team-name {
    font-size: 10px;
  }

  .section-link {
    padding: 15px 10px;
  }

  .section-link i {
    font-size: 20px;
  }

  .section-link span {
    font-size: 11px;
  }
}
.team-card:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
  text-decoration: none;
  border-color: var(--primary-red);
}

.team-card:hover .team-logo {
  border-color: white;
  transform: scale(1.1) rotate(5deg);
}

.section-link:hover {
  background: var(--primary-red);
  color: white;
  text-decoration: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2);
}

/* Animación de aparición más suave para el header del dropdown */
.dropdown-header {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
  margin-bottom: 0;

  /* Animación suave */
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.liga-nacional-mega-menu.show .dropdown-header {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.liga-nacional-mega-menu.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) !important;
}

/* Estilos para iconos de redes sociales */
.social-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-stat-item.facebook .social-icon {
    color: #1877f2;
}

.social-stat-item.instagram .social-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-stat-item:hover .social-icon {
    transform: scale(1.1);
}

.social-stat-item.facebook:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-color: #1877f2;
}

.social-stat-item.instagram:hover {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border-color: #e6683c;
}


.estadisticas-mega-menu .dropdown-header {
  color: var(--primary-red);
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
  margin-bottom: 0;
}

/* Animación de aparición para el dropdown */
.estadisticas-mega-menu.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) !important;
}

/* Efectos hover mejorados */
.estadisticas-section:hover .section-title {
  color: var(--dark-red);
}

.estadisticas-link:hover {
  background: linear-gradient(45deg, var(--primary-red), var(--light-red));
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.2);
}

.estadisticas-sub-link:hover {
  background: linear-gradient(45deg, var(--primary-red), var(--light-red));
  box-shadow: 0 1px 4px rgba(255, 0, 0, 0.2);
}

/* AGREGAR ESTAS REGLAS AL FINAL DE TU ARCHIVO index.css */

/* Responsive mejorado para artículos pequeños de "Lo Más Leído" */
.mas-leido-small-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start; /* Cambio: alineación superior */
  gap: 15px;
}

.mas-leido-small-card:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: var(--primary-red);
  transform: translateX(10px);
}

.mas-leido-small-image {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #333, #555);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0; /* Importante: evita que se reduzca */
}

.mas-leido-small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mas-leido-small-content {
  flex: 1; /* Ocupa el espacio restante */
  min-width: 0; /* Permite que el texto se ajuste */
}

.mas-leido-small-content h5 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  word-wrap: break-word; /* Rompe palabras largas */
}

.mas-leido-small-content .mas-leido-small-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap; /* Permite salto de línea si es necesario */
}

.mas-leido-small-content .mas-leido-small-meta .author {
  color: var(--primary-red);
  font-weight: 600;
}

.mas-leido-small-content .mas-leido-small-meta .date {
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive mejorado para artículos pequeños de "Primera División" */
.primera-division-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: flex-start; /* Cambio: alineación superior */
  gap: 15px;
}

.primera-division-sidebar-card:hover {
  background: #fff5f5;
  border-color: var(--primary-red);
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.1);
}

.primera-division-sidebar-image {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #f8f9fa, #dee2e6);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0; /* Importante: evita que se reduzca */
}

.primera-division-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primera-division-sidebar-content {
  flex: 1; /* Ocupa el espacio restante */
  min-width: 0; /* Permite que el texto se ajuste */
}

.primera-division-sidebar-content h5 {
  color: #333;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
  word-wrap: break-word; /* Rompe palabras largas */
}

.primera-division-sidebar-card:hover h5 {
  color: var(--primary-red);
}

.primera-division-sidebar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap; /* Permite salto de línea si es necesario */
}

.primera-division-sidebar-meta .author {
  color: var(--primary-red);
  font-weight: 600;
}

.primera-division-sidebar-meta .date {
  color: #6c757d;
}

/* RESPONSIVE ESPECÍFICO PARA MÓVILES */
@media (max-width: 768px) {
  
  /* Artículos de "Lo Más Leído" en móvil */
  .mas-leido-small-card {
    flex-direction: column; /* Cambia a columna en móvil */
    text-align: center;
    padding: 15px;
    gap: 12px;
  }

  .mas-leido-small-image {
    width: 100%; /* Ancho completo en móvil */
    height: 120px;
    align-self: center;
  }

  .mas-leido-small-content h5 {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
  }

  .mas-leido-small-content .mas-leido-small-meta {
    justify-content: center;
    gap: 10px;
  }
  
  /* Artículos de "Primera División" en móvil */
  .primera-division-sidebar-card {
    flex-direction: column; /* Cambia a columna en móvil */
    text-align: center;
    padding: 15px;
    gap: 12px;
  }

  .primera-division-sidebar-image {
    width: 100%; /* Ancho completo en móvil */
    height: 120px;
    align-self: center;
  }

  .primera-division-sidebar-content h5 {
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
  }

  .primera-division-sidebar-meta {
    justify-content: center;
    gap: 10px;
  }
}

/* RESPONSIVE PARA TABLETS (768px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
  .logo-container {
    padding: 9px 18px;
    font-size: 18px;
    letter-spacing: 1.5px;
  }
}

/* Para móviles medianos */
@media (max-width: 576px) {
  .logo-container {
    padding: 6px 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 5px;
  }
}

/* Para móviles muy pequeños */
@media (max-width: 480px) {
  .logo-container {
    padding: 5px 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-radius: 4px;
  }
}

/* Para móviles extra pequeños */
@media (max-width: 360px) {
  .logo-container {
    padding: 4px 8px;
    font-size: 11px;
    letter-spacing: 0.2px;
    border-radius: 4px;
  }
}

/* RESPONSIVE PARA PANTALLAS MUY PEQUEÑAS (menos de 480px) */
@media (max-width: 480px) {
  
  .mas-leido-small-card {
    padding: 12px;
    margin-bottom: 15px;
  }

  .mas-leido-small-image {
    height: 100px;
  }

  .mas-leido-small-content h5 {
    font-size: 13px;
    line-height: 1.2;
  }

  .primera-division-sidebar-card {
    padding: 12px;
    margin-bottom: 15px;
  }

  .primera-division-sidebar-image {
    height: 100px;
  }

  .primera-division-sidebar-content h5 {
    font-size: 13px;
    line-height: 1.2;
  }
}

/* Estilos para el botón Scroll to Top */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red, #ff0000);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--dark-red, #cc0000);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* Animación del icono */
.scroll-to-top-btn i {
    transition: transform 0.2s ease;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}