/* Contenedor general */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fafafa;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222; /* oscuro */
  padding: 12px 25px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-menu li a.active,
.nav-menu li a:hover {
  background-color: #f0db4f; /* amarillo dorado */
  color: #222;
  font-weight: 700;
  box-shadow: 0 0 8px #f0db4faa;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  height: 3px;
  width: 28px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Sección Libros */
.libros-section {
  padding: 35px 20px;
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 20px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
}

.libros-section:hover {
  box-shadow: 0 18px 30px rgb(0 0 0 / 0.15);
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 15px;
  text-align: center;
  color: #222;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-shadow: 1px 1px 4px #f0db4f80;
}

.intro-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.15rem;
  color: #555;
  font-weight: 500;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Buscador */
.buscador-libros {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

#busquedaInput {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid #f0db4f; /* amarillo */
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 0 8px #f0db4f55;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: 600;
  letter-spacing: 0.03em;
}

#busquedaInput:focus {
  border-color: #1abc9c; /* turquesa */
  box-shadow: 0 0 14px #1abc9caa;
}

/* Lista de sugerencias */
.sugerencias-lista {
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
  background: #fff;
  border: 2px solid #f0db4f;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.12);
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 20;
}

.sugerencias-lista li {
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
  border-bottom: 1px solid #f0db4f33;
}

.sugerencias-lista li:last-child {
  border-bottom: none;
}

.sugerencias-lista li:hover {
  background-color: #1abc9c;
  color: white;
  font-weight: 700;
  text-shadow: 0 0 6px #fff;
}

/* Libros en cuadrícula */
.libro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.libro-item {
  background: #fcfcfc;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.libro-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgb(0 0 0 / 0.15);
}

.libro-item h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  text-align: center;
  color: #222;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Nueva clase para la descripción */
.libro-descripcion {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
  text-align: center;
  max-width: 90%;
  line-height: 1.3;
}

.libro-item iframe {
  width: 100%;
  height: 320px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 7px #f0db4f22;
  transition: box-shadow 0.3s ease;
}

.libro-item iframe:hover {
  box-shadow: inset 0 0 15px #f0db4faa;
}

.leer-btn {
  display: inline-block;
  background-color: #222;
  color: #f0db4f;
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 8px #f0db4f99;
}

.leer-btn:hover {
  background-color: #1abc9c;
  color: #fff;
  box-shadow: 0 0 12px #1abc9ccc;
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 30px 20px;
  background-color: #f1f1f1;
  border-top: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.05);
  font-weight: 600;
  color: #555;
}

.footer-copy {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.social-link {
  color: #555;
  font-size: 1.8rem;
  transition: color 0.3s;
}

.social-link:hover {
  color: #1abc9c;
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    display: none;
    background-color: #222;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
  }

  .nav-menu.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .libro-item iframe {
    height: 240px;
  }
}



.ver-mas-container {
  text-align: center;
  margin-top: 2rem;
}

.ver-mas-container .leer-btn {
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  font-size: 1rem;
  background-color: #8a4b76;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.ver-mas-container .leer-btn:hover {
  background-color: #6d3a5e;
}
