body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background: linear-gradient(to bottom, #ffffff, #e6e6e6);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
    }
    

    /* Header general */
header {
  background-color: #333;
  color: white;
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo h1 {
  font-size: 1.5em;
  margin: 0;
  color: white;
  transition: color 0.3s;
}

.logo:hover h1 {
  color: #ffeb3b;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
}

nav a {
  color: white;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

/* Línea animada debajo del enlace */
nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #ffeb3b;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease-in-out;
}

nav a:hover {
  color: #ffeb3b;
}

nav a:hover::after {
  width: 100%;
}
    .promo {
      background: #f7f7f7;
      padding: 2em;
      text-align: center;
    }
    .promo a {
  display: inline-block;
  margin-top: 1em;
  background: linear-gradient(135deg, #007BFF, #005dc1);
  color: white;
  padding: 0.75em 1.8em;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.promo a:hover {
  background: linear-gradient(135deg, #005dc1, #004aad);
  box-shadow: 0 6px 10px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

    .libro {
      display: flex;
      padding: 2em;
      gap: 2em;
      background: #fff;
      align-items: center;
    }
    .libro img {
      max-width: 200px;
      border-radius: 10px;
    }
    .anuncios {
      background: #f0f0f0;
      padding: 2em;
    }
    .anuncios h2 {
      margin-bottom: 1em;
    }
    .foro {
  max-width: 800px;
  margin: 3em auto;
  padding: 2em;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.foro h2 {
  text-align: center;
  margin-bottom: 1.5em;
  color: #333;
}

.post {
  border-bottom: 1px solid #ddd;
  padding: 1em 0;
}

.post:last-child {
  border-bottom: none;
}

.post h3 {
  margin: 0;
  font-size: 1.2em;
}

.post h3 a {
  text-decoration: none;
  color: #007BFF;
}

.post h3 a:hover {
  text-decoration: underline;
}

.meta {
  font-size: 0.9em;
  color: #888;
  margin: 0.3em 0 0.8em 0;
}

.post p {
  margin: 0.5em 0;
  color: #444;
  line-height: 1.5;
}

.leer {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #007BFF;
  text-decoration: none;
}

.leer:hover {
  text-decoration: underline;
}
