body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #000000;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* Logo */
.logo {
  width: 150px;
  height: auto;
  max-width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(52, 152, 219, 0.7));
}

/* Navegación */
nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #3498db;
}

/* Menú desplegable */
.menu-toggle {
  margin-left: 15px;
  cursor: pointer;
  font-size: 24px;
  user-select: none;
}

#menu-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
}

#menu-options.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#menu-options li {
  padding: 10px 15px;
  transition: background 0.3s;
}

#menu-options li:hover {
  background: #f5f5f5;
}

#menu-options a {
  text-decoration: none;
  color: #333;
  display: block;
}

/* Banner */

.banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #ddd;
  height: 400px;
}

.carousel img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s;
}

.carousel img.active {
  opacity: 1;
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.banner-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.banner-btn.left {
  left: 20px;
}

.banner-btn.right {
  right: 20px;
}

/* Contenido principal */
.content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
  padding: 30px;
  align-items: start;
}

.section-title {
  font-size: 24px;
  margin: 0 0 25px 0;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #3498db;
}

/* Grid de artículos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.card h3 {
  margin: 15px 20px 10px;
}

.card h3 a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.card p {
  color: #555;
  margin: 0 20px 20px;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: #3498db;
}

.card:hover h3 a {
  color: #3498db;
}

/* Aside - Artículos populares */
aside {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 100px;
}

.popular-articles h3, 
.social-section h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
}

.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  margin-bottom: 12px;
}

.popular-list a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  padding: 5px 0;
}

.popular-list a:hover {
  color: #3498db;
  transform: translateX(5px);
}

/* Redes sociales */
.social-section {
  margin-top: 30px;
}

.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-links a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s;
  padding: 5px 10px;
}

.social-links a:hover {
  background: #3498db;
  color: white !important;
  border-radius: 4px;
}

   /* YouTube hover efecto en rojo */
   .social-links a[href*="youtube"]:hover {
    background-color: #ff0000;
    color: white;
  }
  
  /* Telegram hover efecto azul */
    .social-links a[href*="t.me"]:hover {
    background-color: #0088cc;
    color: white;
  }
  

/* Footer */
footer {
  background: #ffffff;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 14px;
  border-top: 1px solid #ddd;
  margin-top: 40px;
  flex-wrap: wrap;
}

footer a {
  color: #000;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

footer a:hover {
  color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  aside {
    position: static;
    order: -1;
  }
  
  header {
    padding: 15px 20px;
  }
  
  nav a {
    margin: 0 8px;
    font-size: 14px;
  }
}

/* Estilos para cards clickeables */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-content {
  padding: 20px;
}

.card h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  transition: color 0.3s;
}

.card:hover h3 {
  color: #3498db;
}

.card p {
  color: #555;
  margin: 0;
}

.popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popular-list li {
  margin-bottom: 12px;
  padding-left: 0; /* Eliminamos el espacio para el "|" */
}

.popular-list a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.popular-list a:hover {
  color: #3498db;
  padding-left: 5px; /* Efecto hover más limpio */
}

.popular-list small {
  display: block;
  color: #777;
  font-size: 0.8rem;
  margin-top: 2px;
}

/* Estilos para la sección de populares */
.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-title {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid #3498db;
  transition: all 0.3s;
}

.sidebar-list a {
  color: #333;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}

.sidebar-list a:hover {
  color: #3498db;
  transform: translateX(5px);
}

.sidebar-list small {
  display: block;
  color: #777;
  font-size: 0.8rem;
  margin-top: 3px;
}
/* Estilos del Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a3e72;
  color: white;
  padding: 15px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
  font-family: Arial;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #f1d600;
  color: #000;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}
.cookie-btn:hover {
  transform: scale(1.05);
}
.cookie-banner a {
  color: #f1d600;
  text-decoration: underline;
}

/* Banner principal destacado #0a2c4c */
.highlight-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px;
  margin: 2.5rem auto;
  padding: 3rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  max-width: 1300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Efecto hover elegante */
.highlight-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Contenedor interno: texto + imagen */
.highlight-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Texto del banner */
.highlight-text {
  max-width: 700px;
}

.highlight-text h1 {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white; /* Se asegura que todo el título sea blanco por defecto */
}

.highlight-text h1 span {
  color: #3498db; /* Azul brillante para destacar parte del título */
}

.highlight-text p {
  font-size: 1.3rem;
  color: #cfd8dc;
}


/* Imagen del banner con tamaño fijo */
.highlight-image img {
  width: 340px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Hover para imagen también, opcional */
.highlight-banner:hover .highlight-image img {
  transform: scale(1.03);
}

/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Estilo general del contenedor destacado   background-color: #072c4e;*/
.highlight {
  background-color: #072c4e;
  color: white;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Contenedor interno */
.highlight-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.highlight-text {
  flex: 1;
}

.highlight-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: white;
}

.highlight-text h2 span {
  color: #00cfff;
}

.highlight-text p {
  font-size: 1.1rem;
  color: #d0d0d0;
}

/* Imagen */
.highlight-image {
  flex-shrink: 0;
}

.highlight-image img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Hover efecto solo en escritorio */
@media (min-width: 769px) {
  .highlight:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
}

/* ----------------------------
   RESPONSIVE (móviles)
----------------------------- */
@media (max-width: 768px) {
  html, body {
    padding: 0;
    margin: 0;
  }

  header {
    margin-bottom: 0;
  }

  .highlight {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    margin: 0; /* Quitar márgenes para que esté pegado arriba */
    border-radius: 0 0 12px 12px; /* Solo bordes inferiores */
  }

  .highlight-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .highlight-text h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .highlight-text p {
    font-size: 1rem;
  }

  .highlight-image img {
    width: 90%;
    max-width: 320px;
    min-width: 250px;
    height: auto;
    margin: 0 auto;
  }
}

/* Estilos del banner destacado */


.highlight-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.highlight-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.highlight-text h1 {
  color: white;
  font-size: rem;
  margin: 0;
  line-height: 1.3;
}

.highlight-text h1 span {
  color: #3498db; /* Azul brillante */
}

.highlight-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  font-size: 1.1rem;
}

.highlight-image img {
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .highlight-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .highlight-image img {
    max-height: 140px;
  }
}

/* Contenedor principal de anuncios */
.ad-container {
  width: 100%;
  margin: 30px 0;
  text-align: center;
  overflow: hidden;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 15px 0;
}

/* Anuncios en artículos */
.ad-article {
  margin: 40px auto;
  max-width: 1200px;
}

/* Estilos específicos para AdSense */
.adsbygoogle {
  display: block;
  margin: 0 auto;
}

/* Media Queries para diferentes dispositivos */
@media (max-width: 768px) {
  .ad-container {
    margin: 25px 0;
    padding: 10px 0;
  }
  
  .ad-article {
    margin: 30px auto;
    padding: 0 15px;
  }
  
  .adsbygoogle {
    min-height: 100px;
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ad-container {
    margin: 35px 0;
  }
  
  .adsbygoogle {
    min-height: 90px;
  }
}

@media (min-width: 1025px) {
  .adsbygoogle {
    min-height: 250px;
  }
}