/* Fuente general */
body {
  font-family: 'Noto Sans', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;
}

/* Header */
header {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
}

/* Menú de navegación */
nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  color: #0073e6;
}

/* Contenido principal */
main {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 15px;
}

.book-list {
  list-style: none;
  padding: 0;
}

.book-list li {
  margin: 10px 0;
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  margin-top: 30px;
}

footer a {
  color: #0073e6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive: móvil */
@media (max-width: 600px) {
  nav ul {
    flex-direction: row;
    gap: 10px;
  }
}

/* Centrar los espacios publicitarios */
.ad-desktop,
.ad-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    width: 100%;              /*  Asegura que ocupa todo el ancho del contenedor padre */
    box-sizing: border-box;   /*  Evita desbordes inesperados */
}

.ad-wrapper {
  text-align: center;
  margin: 30px 0;
}

.ad-wrapper > div {
  display: inline-block;
}

li a {
  color: inherit;       /* hereda el color del texto normal */
  text-decoration: none; /* elimina el subrayado */
  font: inherit;        /* hereda tipografía, tamaño, peso */
}



