/* Contenedor principal de noticias + sidebar */
.main-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 2rem;
}

/* Sección de noticias con imagen de fondo */
.news-section {
  flex: 2;
  position: relative;
  background: url('/assets/images/news.png') no-repeat center center fixed;
  background-size: cover;
  padding: 2rem;
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Degradado sutil para mejorar legibilidad */
.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
}

/* El contenido va por encima del degradado */
.news-overlay,
.news-item,
.sidebar {
  position: relative;
  z-index: 1;
}

/* Estilos para el contenedor interior */
.news-overlay {
  background: transparent;
  padding: 1.5rem;
  border-radius: 10px;
}

/* Cada noticia */
.news-item {
  margin-bottom: 2rem;
}

.news-item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-item h3 {
  color: #ffd700;
  font-size: 1.8em;
  margin-bottom: 0.5rem;
}

.news-item p {
  font-size: 1.1em;
  margin-bottom: 0.5rem;
}

.news-item small {
  color: #ccc;
  display: block;
  margin-bottom: 1rem;
}

/* Botón Leer más */
.btn-leer-mas {
  background-color: #ffd700;
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-leer-mas:hover {
  background-color: #e6c200;
}

/* Estilos del sidebar */
.sidebar {
  flex: 1;
  background: rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  color: white;
}

.sidebar h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 0.75rem;
}

.sidebar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.sidebar ul li a:hover {
  color: #ffd700;
}
