/* 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;
}
.news-template-default {
  background: #181a1b;
  color: #fff;
  border-left: 8px solid #5865f2;
}
.news-template-dark {
  background: #23272f;
  color: #7dd7ff;
  border-left: 8px solid #34afe4;
}
.news-template-fire {
  background: #2b160c;
  color: #ffe6d5;
  border-left: 8px solid #e43d42;
}
.news-template-gold {
  background: #241a09;
  color: #ffe96b;
  border-left: 8px solid #ffd700;
}
.video-embed {
  margin: 1.2rem 0;
  text-align: center;
}
.video-embed iframe {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 12px #111;
}
.video-embed iframe {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
}
body {
  background: #1a1d22 url('/assets/img/news_bg.jpg') center center / cover no-repeat;
  min-height: 100vh;
}
.news-detail-card {
  max-width: 800px;
  margin: 40px auto 30px auto;
  background: rgba(18, 20, 28, 0.92);
  border-radius: 18px;
  box-shadow: 0 6px 32px #000b;
  overflow: hidden;
  padding: 0 0 24px 0;
}
.news-video, .news-image {
  width: 100%;
  border-radius: 18px 18px 0 0;
  display: block;
  box-shadow: 0 0 18px #111a;
  margin-bottom: 0;
}
.news-video iframe {
  width: 100%;
  min-height: 360px;
  border-radius: 18px 18px 0 0;
}
.news-detail-content {
  padding: 30px 32px 10px 32px;
}
.news-detail-content h2 {
  font-size: 2.1rem;
  font-weight: bold;
  color: #ffc700;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px #141;
}
.news-meta {
  font-size: 15px;
  color: #bbb;
  margin-bottom: 18px;
}
.news-meta strong {
  color: #7ee287;
  font-weight: bold;
}
.news-content {
  font-size: 17px;
  color: #e9e9e9;
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn-back-news {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 22px;
  background: #232b38;
  color: #ffc700;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 7px #000a;
  border: 1px solid #323a46;
  transition: background .15s;
}
.btn-back-news:hover {
  background: #1d2230;
  color: #fff;
}
@media (max-width: 900px) {
  .news-detail-card { max-width: 97vw; }
  .news-detail-content { padding: 18px 8vw 7px 8vw; }
  .news-video iframe { min-height: 220px; }
}
