/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo y fuente */
body {
  background-color: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  padding-top: 80px; /* espacio para navbar fija */
}

/* Contenido centrado */
.contenido {
  max-width: none;
  margin: 0;
  padding: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: -5px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 2rem;
  z-index: 1000;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-links {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  margin-left: 2rem;
  margin-right: 2rem;
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
}


.navbar-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #fff;
}

/* Íconos */
.icono-redondo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.icono-articulo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Header principal */
header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.subtitulo {
  color: #aaa;
  font-weight: 300;
}

/* Artículos del index */
.articulos article {
  background-color: #111;
  border: 1px solid #222;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: transform 0.2s ease;
}

.articulos article:hover {
  transform: scale(1.01);
}

.articulos a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.articulos h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.articulos p {
  color: #ccc;
  margin-bottom: 0.5rem;
}

.fecha {
  font-size: 0.9rem;
  color: #666;
}

/* Artículos individuales */
.art-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.art-header .meta {
  text-align: center;
  color: #888;
  margin-bottom: 2rem;
}

.art-header .meta a {
  color: #aaa;
  text-decoration: none;
}

.art-header .meta a:hover {
  color: #fff;
}

/* Galería de imágenes */
.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.galeria img {
  flex: 1 1 calc(33.33% - 1rem);
  max-width: calc(33.33% - 1rem);
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


/* Sección de texto del artículo */
article .contenido {
  color: #ddd;
  font-size: 1.05rem;
}

article .contenido p {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  color: #666;
  margin-top: 4rem;
  font-size: 0.9rem;
}
.galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.galeria img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.grupo-articulos a {
  color: inherit;
  text-decoration: none;
  display: block;
  background-color: #111;
  border: 1px solid #222;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}
.art-footer a {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid #fff;
  margin-top: 2rem;
}

.art-footer a:hover {
  background-color: #f0f0f0;
  color: #000;
  border-color: #ccc;
}

.grupo-articulos a:hover {
  transform: scale(1.01);
  background-color: #181818;
}

.grupo-articulos h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.grupo-articulos p {
  color: #ccc;
  margin-bottom: 0.5rem;
}

.grupo-articulos .fecha {
  font-size: 0.9rem;
  color: #888;
}
.layout-articulo {
  display: grid;
  grid-template-columns: minmax(600px, 900px) 300px; /* Artículo máx 900px, mínimo 600px */
  justify-content: center; /* Centra la grilla en la pantalla */
  gap: 30px;
}

.contenido-articulo {
  background: rgba(0, 0, 0, 0.9);
  padding: 25px;
  border-radius: 6px;
}

.recomendados {
  background: rgba(0, 0, 0, 0.9);
  padding: 15px;
  
  border-radius: 6px;
}

.recomendados h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.recomendados article {
  margin-bottom: 20px;
  
}

.recomendados img {
  color: white;
  text-decoration: none;
  width: 100%;
  height: auto;
  display: block;
  outline: none;
  border-radius: 4px;
}

.recomendados h3 {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  outline: none;
  margin: 8px 0 0;
}
.recomendados p {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  margin: 5px 0 0;
  outline: none;
}

/* Quitar subrayado y color azul en sección recomendados */
.recomendados a {
  text-decoration: none;
  color: inherit;
}

.recomendados a:hover {
  color: #fff; /* O el color que uses para resaltar */
}

/* Estilo para links dentro de los artículos */
.contenido article .contenido a {
  color: #4da3ff; /* Color que resalte sobre el fondo oscuro */
  text-decoration: none;
}

.contenido article .contenido a:hover {
  color: #80c1ff;
  text-decoration: underline;
}

/* Más espacio entre párrafos y títulos dentro del contenido del artículo */
.contenido article .contenido p {
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.contenido article .contenido h1,
.contenido article .contenido h2,
.contenido article .contenido h3 {
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

/* Más espacio entre artículos recomendados */
.recomendados article {
  margin-bottom: 50px;
}




@media (max-width: 768px) {
  .galeria img {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

