body {  margin: 0;  font-family: Arial, sans-serif;  background: #f8f9fa;  color: #333;}
header {  display: flex;  justify-content: space-between;  align-items: center;  background: #0d6efd;  color: white;  padding: 1rem;}
header h1 {  margin: 0;  font-size: 1.5rem;}
.menu-btn {  font-size: 1.5rem;  cursor: pointer;  background: none;  border: none;  color: white;}
.banner {  text-align: center;  padding: 2rem;  background: #e9ecef;}
.news-container {  display: grid;  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  gap: 1rem;  padding: 1rem;}
.card {  background: white;  border-radius: 8px;  box-shadow: 0 2px 6px rgba(0,0,0,0.1);  padding: 1rem;  cursor: pointer;  transition: transform 0.2s;}
.card:hover {  transform: translateY(-3px);}
.card img {  width: 100%;  border-radius: 6px;  margin-bottom: 0.5rem;}
.card h2 {  margin: 0.5rem 0;  font-size: 1.2rem;}
/* Modal */
.modal {  display: none;  position: fixed;  z-index: 3000; /* Asegúrate de que sea mayor que el menú y las cards */  left: 0;  top: 0;  width: 100%;  height: 100%;  overflow: auto;  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */}
.modal-content {  background: white;  padding: 2rem;  border-radius: 10px;  max-width: 600px;  width: 90%;  position: relative;}
.close-btn {  position: absolute;  top: 15px;  right: 20px;  font-size: 32px;       /* Más grande */  font-weight: bold;  color: #333;  cursor: pointer;  background: #fff;      /* Botón visible */  border-radius: 50%;  padding: 6px 12px;     /* Espacio alrededor */  box-shadow: 0 2px 6px rgba(0,0,0,0.2);  transition: background 0.3s, color 0.3s;  z-index: 5000;         /* Que quede por encima */}
.close-btn:hover {  background: #0d6efd;  color: #fff;}

/* ===== Menú lateral ===== */
.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: rgba(17, 17, 17, 0.9);
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 60px;
  z-index: 2000;
}

.side-menu a {
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1.1rem;
  color: #f1f1f1;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  background-color: #0d6efd;
  color: white;
  border-radius: 5px;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  background: #0d6efd;
  border-radius: 50%;
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.3s, transform 0.2s;
}

.close-menu:hover {
  background: #ff4444;
  transform: scale(1.1);
}

.main-nav {
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
}

/* ===== Noticias dentro del menú ===== */
.menu-news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: #f1f1f1;
  font-size: 0.95rem;
  border-bottom: 1px solid #333;
  transition: background 0.3s;
}

.menu-news-item:hover {
  background-color: #0d6efd;
  color: white;
}

.menu-news-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

footer {  background: #212529;  color: white;  text-align: center;  padding: 1rem;  font-size: 0.9rem;}
@media(max-width:600px){  header h1 { font-size: 1.2rem; }}

/* New styles for sidebar news items */
/* Botón de cerrar dentro del menú */
.sidebar .close-btn {  position: absolute;  top: 15px;  right: 15px;  font-size: 1.5rem;  background: #ff4d4d;  color: #fff;  border: none;  border-radius: 50%;  width: 35px;  height: 35px;  display: flex;  align-items: center;  justify-content: center;  cursor: pointer;  transition: background 0.3s;}
.sidebar .close-btn:hover {  background: #ff1a1a;}
/* Encabezado de noticias en menú */
.sidebar .news-header {  padding: 10px 15px;  font-weight: bold;  color: #fff;  border-top: 1px solid #444;  margin-top: 10px;}
/* Noticias en menú */
.sidebar .news-item {  display: flex;  align-items: center;  padding: 8px 12px;  border-bottom: 1px solid #333;  cursor: pointer;  transition: background 0.2s;}.sidebar .news-item:hover {  background: #222;}.sidebar .news-item img {  width: 40px;  height: 40px;  object-fit: cover;  border-radius: 5px;  margin-right: 10px;}.sidebar .news-item span {  color: #fff;  font-size: 0.9rem;  flex: 1;  white-space: nowrap;  overflow: hidden;  text-overflow: ellipsis;}