/* Estilos generales */
body {
  font-family: "Roboto", "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Título principal */
.catalogo-titulo {
  font-family: "Montserrat", sans-serif; /* Una fuente moderna y elegante */
  text-align: center;
  margin: 60px 0 40px;
  padding: 20px;
  background-color: #f8f8f8; /* Un fondo muy suave */
  position: relative;
}

.catalogo-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #0066cc, #00cc99); /* Gradiente sutil */
}

.catalogo-titulo h2 {
  font-size: 2.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  text-transform: none; /* Quitamos las mayúsculas */
  letter-spacing: -0.5px; /* Espaciado negativo para un look moderno */
}

.catalogo-titulo span {
  font-size: 1.3em;
  font-weight: 300; /* Más ligero para contraste */
  color: #555;
  display: block;
  margin-top: 10px;
  font-style: normal; /* Quitamos la cursiva */
  line-height: 1.4;
}

/* Contenedor principal */
.catalogo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Sección de género */
.genero-seccion {
  margin-bottom: 40px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.genero-seccion:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.genero-titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6em;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding: 20px 25px;
  background-color: #f8f8f8;
  border-bottom: 2px solid #e0e0e0;
  position: relative;
  overflow: hidden;
}

.genero-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #0066cc, #00cc99);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.genero-seccion:hover .genero-titulo::after {
  transform: scaleX(1);
}

/* Galería de libros */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 25px;
  padding: 25px;
}

/* Estilos para cada libro */
.libro {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.libro:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.libro img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.libro .title {
  padding: 15px;
  background: #f8f8f8;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.libro .title h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9em;
  font-weight: 500;
  margin: 0;
  text-align: center;
  color: #333;
}

/* Botón de llamada a la acción */
#cta-button {
  position: fixed;
  bottom: 80px; /* Aumentamos esto de 20px a 80px */
  right: 20px;
  background-color: #0066cc;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 999; /* Aseguramos que esté por encima de otros elementos, pero por debajo del botón de flecha */
}
#cta-button:hover {
  background-color: #0052a3;
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .catalogo-titulo {
    font-size: 2em;
  }

  .genero-titulo {
    font-size: 1.5em;
  }

  .catalogo-titulo h2 {
    font-size: 1.8em;
  }
  .catalogo-titulo span {
    font-size: 1em;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
