/* ====================================================
   RESET Y VARIABLES GLOBALES
   ==================================================== */
   *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    /* Paleta de colores */
    --primary: #4A90E2;        /* Azul principal */
    --secondary: #50E3C2;      /* Verde menta */
    --dark: #333333;          /* Texto oscuro */
    --light: #FFFFFF;         /* Blanco */
    --background: #F5F5F5;     /* Fondo general */
    --footer-bg: #1C1C1C;      /* Fondo del footer */
  
    /* Tipografía */
    --font-base: 'Poppins', sans-serif;
  
    /* Transiciones y animaciones */
    --transition-speed: 0.3s;
    --transition: all var(--transition-speed) ease;
  }
  
  /* ====================================================
     ESTILOS GLOBALES
     ==================================================== */
  body {
    font-family: var(--font-base);
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
  }
  
  /* ====================================================
     NAVBAR
     ==================================================== */
/* Variables para colores y transiciones */
:root {
  --primary-blue: #0d6efd;
  --hover-blue: #0b5ed7;
  --light-blue: rgba(255, 255, 255, 0.1);
  --text-white: #ffffff;
  --transition-speed: 0.3s;
}

/* Estilos base de la navbar */
.navbar {
  background-color: var(--primary-blue);
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

/* Logo styles */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-white) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0.5rem 1rem;
}

.navbar-brand:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-white);
  transition: width var(--transition-speed) ease;
}

.navbar-brand:hover:after {
  width: 100%;
}

/* Menú principal */
.navbar-nav .nav-item {
  position: relative;
  margin: 0 0.2rem;
}

.nav-link {
  color: var(--text-white) !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 25px;
  transition: all var(--transition-speed) ease;
}

.nav-link:hover {
  background-color: rgb(43, 144, 206);
  transform: translateY(-1px);
}

/* Dropdown menus */
.dropdown-menu {
  background-color: var(--text-white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-speed) ease;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #333;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.dropdown-item i {
  font-size: 1.1rem;
  color: var(--primary-blue);
  transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.05);
  color: var(--primary-blue);
  padding-left: 2rem;
}

.dropdown-item:hover i {
  transform: scale(1.2);
}

/* Separador en dropdowns */
.dropdown-divider {
  border-color: rgba(0, 0, 0, 0.1);
  margin: 0.5rem 0;
}

/* Botones de autenticación */
.auth-buttons .nav-link {
  padding: 0.5rem 1.2rem !important;
}

.btn-login {
  position: relative;
  overflow: hidden;
}

.btn-login:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover:before {
  width: 300px;
  height: 300px;
}

.btn-register {
  background-color: var(--text-white);
  color: var(--primary-blue) !important;
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--text-white);
}

/* Elementos especiales */
.badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  transition: all var(--transition-speed) ease;
}

/* Efectos de hover para botones con iconos */
.nav-link i {
  transition: transform var(--transition-speed) ease;
}

.nav-link:hover i {
  transform: scale(1.2);
}

/* Animaciones para el dropdown */
@keyframes dropdownAnimation {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.dropdown-menu.show {
  animation: dropdownAnimation var(--transition-speed) ease forwards;
}

/* Responsive designs */
@media (max-width: 991.98px) {
  .navbar-collapse {
      background-color: var(--primary-blue);
      padding: 1rem;
      border-radius: 0 0 15px 15px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
      padding: 0.8rem 1rem !important;
  }

  .dropdown-menu {
      background-color: rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      margin: 0.5rem 0;
      padding: 0.5rem;
  }

  .dropdown-item {
      color: var(--text-white);
      padding: 0.8rem 1rem;
  }

  .dropdown-item:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: var(--text-white);
  }

  .dropdown-divider {
      border-color: rgba(255, 255, 255, 0.1);
  }

  .auth-buttons {
      margin-top: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
  }

  .btn-register {
      margin-top: 0.5rem;
  }
}

/* Efectos de scroll */
.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: var(--hover-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
      transition: none !important;
      animation: none !important;
  }
}
  /* ====================================================
     HERO SECTION (PORTADA)
     ==================================================== */
/* Estilos para el hero section */
.hero-section {
  position: relative;
  height: 100vh; /* Ajusta la altura según tus necesidades */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Video de fondo */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Asegura que el video cubra todo el espacio */
  z-index: -1; /* Coloca el video detrás del contenido */
}

/* Overlay para oscurecer el video */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad según tus necesidades */
  z-index: 0; /* Coloca el overlay sobre el video pero detrás del contenido */
}

/* Contenido del header */
.container.text-center {
  position: relative;
  z-index: 1; /* Asegura que el contenido esté sobre el video y el overlay */
}

.display-4 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-description {
  margin-top: 1.5rem;
}

.main-description {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.secondary-description {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta-container {
  margin-top: 2rem;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #efa810;
}
  /* ====================================================
     SECCIÓN DE BÚSQUEDA
     ==================================================== */
/* Estilos para la sección de búsqueda */
#search {
  background-color: #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  overflow: hidden;
}

#search-input {
  flex: 1;
  padding: 15px 25px;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#search-input::placeholder {
  color: #aaa;
  opacity: 0.7;
}

.clear-search {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 22px;
  cursor: pointer;
  display: none;
  padding: 5px;
  transition: color 0.2s;
}

.clear-search:hover {
  color: #333;
}

#search-input:not(:placeholder-shown) + .clear-search {
  display: block;
}

.btn-search {
  padding: 12px 30px;
  background: linear-gradient(45deg, #0d6efd, #404f8d);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-search:hover {
  background: linear-gradient(45deg, #0d6efd, #1531a2);
  box-shadow: 0 5px 15px rgba(74, 107, 255, 0.4);
}

.btn-search i {
  margin-right: 5px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .search-wrapper {
    flex-direction: column;
    border-radius: 15px;
  }
  
  #search-input {
    width: 100%;
    padding: 15px 20px;
  }
  
  .clear-search {
    right: 20px;
  }
  
  .btn-search {
    width: 100%;
    border-radius: 0;
  }
}

/* Estilo elegante para carrusel de libros*/
.container.mt-4 {
  padding: 3rem 0;
  max-width: 1200px;
}

/* Título con efecto de gradiente */
.container.mt-4 h2.text-center.mb-4 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem !important;
  background: linear-gradient(90deg, #1a2a6c, #b21f1f, #fdbb2d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  width: 100%;
  position: relative;
}

.container.mt-4 h2.text-center.mb-4::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1a2a6c, #b21f1f, #fdbb2d);
  border-radius: 4px;
}

/* Carrusel mejorado */
#booksCarousel {
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: white;
  margin-bottom: 3rem;
}

/* Contenedor de cada libro */
.carousel-item .container {
  padding: 0;
}

.carousel-item .row {
  margin: 0;
  padding: 2rem;
}

/* Columna de imagen */
.carousel-item .col-md-6:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item .col-md-6:first-child .p-4 {
  width: 100%;
}

/* Imagen del libro con efectos */
.carousel-item img {
  max-height: 450px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  filter: brightness(1.05);
  transform: perspective(1000px) rotateY(5deg);
}

.carousel-item:hover img {
  transform: perspective(1000px) rotateY(0deg) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Texto del libro */
.carousel-item .col-md-6:last-child .p-4 {
  padding: 2rem !important;
}

.carousel-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.carousel-item h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: #1a2a6c;
  transition: width 0.3s ease;
}

.carousel-item:hover h3::after {
  width: 100%;
}

.carousel-item p.text-muted {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.carousel-item p.mt-3 {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
}

/* Badges mejorados */
.carousel-item .badge {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.carousel-item .badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  z-index: 1;
}

.carousel-item .badge:hover::before {
  left: 100%;
}

.carousel-item .badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.carousel-item .badge.bg-primary {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f) !important;
}

/* Botón Ver Detalle mejorado */
.carousel-item .btn.btn-primary {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(26, 42, 108, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.carousel-item .btn.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.carousel-item .btn.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(26, 42, 108, 0.4);
}

.carousel-item .btn.btn-primary:hover::before {
  left: 100%;
}

/* Controles del carrusel modernos */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -30px;
}

.carousel-control-next {
  right: -30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  opacity: 1;
  box-shadow: 0 8px 25px rgba(26, 42, 108, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 25px;
  height: 25px;
  filter: invert(1) grayscale(100%);
  transition: transform 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  filter: brightness(10);
}

.carousel-control-prev:hover .carousel-control-prev-icon {
  transform: translateX(-3px);
}

.carousel-control-next:hover .carousel-control-next-icon {
  transform: translateX(3px);
}

/* Indicadores del carrusel */
.carousel-indicators {
  bottom: -30px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  border: none;
  opacity: 0.6;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  opacity: 1;
  width: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(26, 42, 108, 0.3);
}

/* Mensaje si no hay libros */
.alert.alert-info {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #333;
  border: none;
  border-radius: 15px;
  padding: 2.5rem;
  text-align: center;
  font-size: 1.2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.alert.alert-info::before {
  content: '📚';
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsividad mejorada */
@media (max-width: 992px) {
  .container.mt-4 h2.text-center.mb-4 {
    font-size: 2.2rem;
  }
  
  .carousel-item img {
    max-height: 380px;
  }
  
  .carousel-item h3 {
    font-size: 2rem;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .container.mt-4 h2.text-center.mb-4 {
    font-size: 1.8rem;
  }
  
  .carousel-item .row {
    flex-direction: column;
    padding: 1.5rem;
  }
  
  .carousel-item .col-md-6 {
    width: 100%;
  }
  
  .carousel-item img {
    max-height: 320px;
    margin: 0 auto 1.5rem;
    transform: perspective(800px) rotateY(0);
  }
  
  .carousel-item h3 {
    font-size: 1.8rem;
    text-align: center;
    display: block;
  }
  
  .carousel-item h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .carousel-item p.text-muted,
  .carousel-item p.mt-3 {
    text-align: center;
  }
  
  .carousel-item .badge {
    display: table;
    margin: 0 auto 1rem;
  }
  
  .carousel-item .btn.btn-primary {
    display: block;
    margin: 0 auto;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    max-height: 280px;
  }
  
  .carousel-item h3 {
    font-size: 1.5rem;
  }
  
  .carousel-item p.text-muted {
    font-size: 1rem;
  }
  
  .carousel-item p.mt-3 {
    font-size: 0.95rem;
  }
  
  .carousel-item .btn.btn-primary {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
  }
}
   


h1 {
  background: linear-gradient(120deg, #2c3e50, #3498db, #2980b9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin: 2rem 0;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3498db, transparent);
}

/* Estilos generales para el contenedor del carrusel */
.container.mt-4 {
  padding: 3rem 0;
  position: relative;
}

/* Título del carrusel */
.text-center.mb-4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #dc5106, #00bfff, #1e90ff); /* Degradado azul */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.text-center.mb-4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #00bfff, #1e90ff); /* Línea azul */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.text-center.mb-4:hover {
  letter-spacing: 4px;
}

.text-center.mb-4:hover::after {
  width: 100%;
  background: linear-gradient(90deg, #1e90ff, #00bfff); /* Línea azul al hacer hover */
}
/* Carrusel de libros */
#booksCarousel {
    background-color: #faf9f8; /* Fondo claro para el carrusel */
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Sombra suave */
    overflow: hidden; /* Evita que el contenido se desborde */
}

/* Indicadores del carrusel */
.carousel-indicators {
    bottom: -40px; /* Posición de los indicadores */
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%; /* Indicadores redondos */
    background-color: #3498db; /* Color azul para los indicadores */
    border: none;
    opacity: 0.5; /* Opacidad por defecto */
    transition: opacity 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1; /* Indicador activo más visible */
}

/* Items del carrusel */
.carousel-item {
    padding: 2rem;
}

/* Imagen del libro */
.carousel-item img {
    max-height: 400px;
    width: auto;
    border-radius: 10px; /* Bordes redondeados para la imagen */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Sombra para la imagen */
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

/* Contenido del libro (título, autor, descripción) */
.carousel-item h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50; /* Color oscuro para el título */
    margin-bottom: 1rem;
}

.carousel-item p.text-muted {
    font-size: 1.1rem;
    color: #666; /* Color gris para el autor */
    margin-bottom: 1rem;
}

.carousel-item p {
    font-size: 1rem;
    color: #555; /* Color gris oscuro para la descripción */
    line-height: 1.6;
}

/* Badges (Gratis o Precio) */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px; /* Bordes redondeados */
    font-weight: 600;
}

.badge.bg-success {
    background-color: #28a745 !important; /* Verde para "Gratis" */
}

.badge.bg-primary {
    background-color: #3498db !important; /* Azul para el precio */
}

/* Botón "Ver Detalle" */
.btn.btn-primary {
    background-color: #3498db; /* Color azul */
    border: none;
    border-radius: 25px; /* Bordes redondeados */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn.btn-primary:hover {
    background-color: #2980b9; /* Color azul más oscuro al pasar el mouse */
    transform: translateY(-2px); /* Efecto de elevación */
}

/* Controles del carrusel (flechas) */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.3); /* Fondo semi-transparente */
    border-radius: 50%; /* Bordes redondeados */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1; /* Más visible al pasar el mouse */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Flechas blancas */
}

/* Alerta si no hay libros */
.alert.alert-info {
    background-color: #e9ecef; /* Fondo gris claro */
    color: #495057; /* Texto oscuro */
    border: none;
    border-radius: 10px; /* Bordes redondeados */
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
}



/* Estilos para el grid de libros */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Tarjeta de libro */
.book-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Contenedor de la imagen */
.book-cover {
  width: 100%;
  height: 280px;
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge de precio */
.price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0D6EFD;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-free {
  background: #10B981;
}

/* Botón de acción */
.book-action {
  padding: 0.8rem;
  text-align: center;
  background: white;
}

.btn-action {
  display: block;
  width: 100%;
  padding: 8px;
  background: #0D6EFD;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-action:hover {
  background: #0B5ED7;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .books-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
  }

  .book-cover {
      height: 220px;
  }
}



/* Efecto de partículas de fondo */
.publish-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      radial-gradient(circle at 25% 25%, rgba(13, 110, 253, 0.05) 1px, transparent 1px),
      radial-gradient(circle at 75% 75%, rgba(13, 110, 253, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

/* Título principal con efectos */
.publish-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  background: linear-gradient(45deg, #e8aa1a, #0d47a1, #1a73e8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 3s ease infinite;
}

.publish-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #1a73e8, transparent);
  animation: lineWidth 3s ease-in-out infinite;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lineWidth {
  0%, 100% { width: 150px; opacity: 0.5; }
  50% { width: 200px; opacity: 1; }
}

/* Grid de beneficios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tarjetas de beneficios */
.benefit-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Efecto de brillo en hover */
.benefit-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.benefit-card:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

/* Iconos */
.benefit-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #1a73e8, #0d47a1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: rotateY(360deg);
}

.benefit-icon i {
  font-size: 2rem;
  color: white;
}

/* Texto de beneficios */
.benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-title {
  color: #1a73e8;
}

/* Efectos de animación para entrada */
.benefit-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.benefit-card:nth-child(1) { animation-delay: 0.2s; }
.benefit-card:nth-child(2) { animation-delay: 0.4s; }
.benefit-card:nth-child(3) { animation-delay: 0.6s; }
.benefit-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .benefits-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
  }

  .publish-title {
      font-size: 2.5rem;
  }

  .benefit-card {
      padding: 2rem;
  }
}


  
  /* ====================================================
     SECCIÓN "CÓMO FUNCIONA"
     ==================================================== */
  /* Sección principal */
.how-it-works {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

/* Título principal con efecto */
.how-it-works-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  background: linear-gradient(45deg, #1a73e8, #0d47a1, #1a73e8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s ease infinite;
}

.how-it-works-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #1a73e8, transparent);
  animation: lineExpand 3s ease-in-out infinite;
}

/* Contenedor de pasos */
.steps-container {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Línea conectora entre pasos */
.steps-container::before {
  content: '';
  position: absolute;
  top: 100px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8 50%, #ddd 50%);
  background-size: 20px 3px;
  animation: borderMove 20s linear infinite;
}

/* Tarjetas de pasos */
.step-card {
  flex: 1;
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  max-width: 350px;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Iconos */
.step-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #1a73e8, #0d47a1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.5s ease;
  position: relative;
}

.step-icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #1a73e8, #0d47a1);
  opacity: 0.3;
  animation: pulseRing 2s infinite;
}

.step-icon i {
  font-size: 2.5rem;
  color: white;
  transition: all 0.5s ease;
}

.step-card:hover .step-icon {
  transform: rotateY(360deg);
}

/* Títulos de pasos */
.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.step-card:hover .step-title {
  color: #1a73e8;
}

/* Descripción */
.step-description {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Animaciones */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes lineExpand {
  0%, 100% { width: 100px; opacity: 0.5; }
  50% { width: 150px; opacity: 1; }
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.3; }
}

@keyframes borderMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

/* Efectos de entrada */
.step-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .steps-container {
      flex-direction: column;
      align-items: center;
      gap: 3rem;
  }

  .steps-container::before {
      display: none;
  }

  .how-it-works-title {
      font-size: 2.5rem;
  }

  .step-card {
      width: 100%;
      max-width: 300px;
  }
}
  
  /* ====================================================
     SECCIÓN DE TESTIMONIOS
     ==================================================== */
/* CSS con enfoque mobile-first para la sección de testimonios */
.testimonials-section {
    padding: 40px 10px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.testimonials-title {
    text-align: center;
    color: #0d6efd;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

#testimonialCarousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
}

.carousel-inner {
    width: 100%;
}

.carousel-item {
    width: 100%;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    margin: 0 auto;
    width: calc(100% - 30px);
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    box-sizing: border-box;
}

.quote-icon {
    color: #0d6efd;
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.5;
    text-align: center;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0d6efd;
    margin-right: 10px;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #212529;
    font-weight: 600;
}

.author-info p {
    font-size: 0.8rem;
    margin: 0;
    color: #6c757d;
}

/* Controles de carrusel optimizados para móvil */
.carousel-control-prev,
.carousel-control-next {
    width: 35px;
    height: 35px;
    background-color: #0d6efd;
    border-radius: 50%;
    top: calc(50% - 25px);
    opacity: 0.8;
    z-index: 10;
    position: absolute;
}

.carousel-control-prev {
    left: 5px;
}

.carousel-control-next {
    right: 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 15px;
    height: 15px;
    background-size: 100%;
}

/* Indicadores */
.carousel-indicators {
    position: absolute;
    bottom: 0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 3px;
    background-color: #dee2e6;
    opacity: 0.5;
    border: 0;
    padding: 0;
}

.carousel-indicators button.active {
    background-color: #0d6efd;
    opacity: 1;
}

/* Fix para autor en pantallas muy pequeñas */
@media (max-width: 350px) {
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 0 10px 0;
    }
    
    .author-info {
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        top: calc(40% - 17.5px);
    }
}

/* Estilos para tablet */
@media (min-width: 576px) {
    .testimonials-section {
        padding: 50px 20px;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .testimonial-card {
        padding: 25px;
        width: 85%;
        max-width: 550px;
    }
    
    .testimonial-text {
        font-size: 1.1rem;
    }
    
    .quote-icon {
        font-size: 28px;
    }
    
    .author-image {
        width: 55px;
        height: 55px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* Estilos para desktop */
@media (min-width: 992px) {
    .testimonials-section {
        padding: 60px 20px;
    }
    
    .testimonials-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }
    
    .testimonial-card {
        padding: 30px;
        max-width: 750px;
    }
    
    .testimonial-text {
        font-size: 1.25rem;
        line-height: 1.6;
    }
    
    .quote-icon {
        font-size: 30px;
    }
    
    .author-image {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
    
    .author-info p {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
}


/* Indicadores del carrusel */

  /* ====================================================
     SECCIÓN NEWSLETTER / CALL-TO-ACTION
     ==================================================== */
  /* Sección de newsletter */
.newsletter-section {
  padding: 6rem 0;
  background: linear-gradient(rgba(13, 110, 253, 0.9), rgba(13, 110, 253, 0.8)),
              url('imagenes/newsletter-bg.jpg') center/cover;
  position: relative;
  overflow: hidden;
}

/* Efecto de ondas en el fondo */
.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
      linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
      linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  opacity: 0.1;
  animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Contenedor del contenido */
.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  color: white;
}

/* Título */
.newsletter-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  animation: fadeInDown 0.8s ease-out;
}

/* Descripción */
.newsletter-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* Formulario */
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

/* Input del correo */
.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.1rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Botón de suscripción */
.subscribe-button {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  background: white;
  color: #0d6efd;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.subscribe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  background: #f8f9fa;
}

/* Animaciones */
@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Media queries */
@media (max-width: 768px) {
  .newsletter-section {
      padding: 4rem 1rem;
  }

  .newsletter-title {
      font-size: 2.5rem;
  }

  .newsletter-description {
      font-size: 1.1rem;
      padding: 0 1rem;
  }

  .newsletter-form {
      flex-direction: column;
      padding: 0 1rem;
  }

  .newsletter-input,
  .subscribe-button {
      width: 100%;
      text-align: center;
  }
}
  /* ====================================================
     FOOTER
     ==================================================== */
  footer {
    background: var(--footer-bg);
    color: var(--light);
    padding: 2rem 1rem;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
  }
  
  footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light);
  }
  
  footer p,
  footer ul,
  footer a {
    font-size: 0.9rem;
    color: #bbb;
    text-decoration: none;
    line-height: 1.5;
  }
  
  footer ul {
    list-style: none;
    padding: 0;
  }
  
  footer ul li {
    margin-bottom: 0.5rem;
  }
  
  footer ul li a:hover {
    color: var(--primary);
  }
  
  footer .social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  footer .social a {
    font-size: 1.5rem;
    color: var(--light);
    transition: var(--transition);
  }
  
  footer .social a:hover {
    color: var(--accent);
  }
  
  footer .copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
  }
  
  /* ====================================================
     AJUSTES RESPONSIVOS
     ==================================================== */
  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2.5rem;
    }
    .hero-content p {
      font-size: 1rem;
    }
    #search .input-group {
      width: 90%;
    }
  }
  
/* Estilos mejorados para la sección de libros destacados */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 30px 0;
  margin: 0 auto;
  max-width: 1400px;
}

.book-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.book-cover {
  position: relative;
  width: 100%;
  height: 320px; /* Altura fija para las portadas */
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cubre todo el espacio disponible */
  transition: transform 0.5s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.05);
}

.price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-free {
  background-color: #28a745;
  color: white;
}

.price-badge:not(.badge-free) {
  background-color: #0066cc;
  color: white;
}

.book-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
  /* Limitar a 2 líneas con puntos suspensivos */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 44px;
}

.book-author {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  /* Limitar a 1 línea con puntos suspensivos */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-action {
  margin-top: auto;
  padding: 15px;
  display: flex;
  justify-content: center;
}

.btn-action, .btn-primary {
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action {
  background-color: #28a745;
  color: white;
}

.btn-action:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.btn-primary {
  background-color: #0066cc;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Título con degradado */
.titulo-destacado {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 50px 0 30px;
  background: linear-gradient(45deg, #4a1942, #7b1e4d, #b21e4b, #e83151, #ff7e54);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 15px;
}

.titulo-destacado::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #4a1942, #ff7e54);
  border-radius: 2px;
}

/* Responsive para dispositivos móviles */
@media (max-width: 768px) {
  .book-grid {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 15px;
  }
  
  .book-cover {
      height: 240px;
  }
  
  .titulo-destacado {
      font-size: 1.8rem;
  }
}


  /* CSS ajustado  para seccion libros educativos*/
/* CSS corregido para visualización completa de portadas */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.book-card {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Contenedor de imagen modificado para mostrar la portada completa */
.book-card > div {
  position: relative;
  width: 100%;
  height: auto; /* Eliminamos la altura fija */
}

.book-card img {
  width: 100%;
  height: auto; /* Altura automática para mantener proporción */
  aspect-ratio: 3/4; /* Proporción estándar para libros */
  object-fit: contain; /* Cambiado a contain para mostrar la imagen completa */
  display: block;
}

/* Aseguramos que las imágenes se vean completas */
.book-card div img {
  max-width: 100%;
  max-height: 300px; /* Altura máxima para uniformidad */
  margin: 0 auto; /* Centrar imagen */
}

.badge-price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bg-success {
  background: linear-gradient(45deg, #28a745, #20c997);
}

.book-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 15px 12px 5px;
  line-height: 1.3;
  height: 2.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.author {
  color: #666;
  font-size: 14px;
  margin: 0 12px 15px;
  font-style: italic;
}

.btn-descargar, .btn-comprar {
  display: block;
  margin: 0 12px 15px;
  padding: 10px 0;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.btn-descargar {
  background: linear-gradient(45deg, #007bff, #0056b3);
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-descargar:hover {
  background: linear-gradient(45deg, #0069d9, #004494);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-comprar {
  background: linear-gradient(45deg, #007bff, #0056b3);
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.btn-comprar:hover {
  background: linear-gradient(45deg, #0069d9, #004494);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Overlay suavizado para mejorar la visibilidad de las etiquetas */
.book-card > div::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px; /* Altura fija para el degradado */
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
  .book-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
  }
  
  .book-card div img {
      max-height: 220px;
  }
  
  .book-title {
      font-size: 14px;
  }
  
  .author {
      font-size: 12px;
  }
  
  .btn-descargar, .btn-comprar {
      font-size: 14px;
      padding: 8px 0;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .book-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
  }
  
  .book-card div img {
      max-height: 180px;
  }
}

/* Estilos para el botón Ver más libros */
.view-more-container {
  width: 100%;
  text-align: center;
  margin: 40px 0 60px;
}

.btn-view-more {
  display: inline-block;
  padding: 12px 35px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
  transition: all 0.3s ease;
}

.btn-view-more:hover {
  background: linear-gradient(45deg, #2980b9, #1a5276);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.btn-view-more i {
  margin-right: 8px;
}

/* Estilo para dispositivos móviles */
@media (max-width: 768px) {
  .btn-view-more {
      padding: 10px 25px;
      font-size: 14px;
  }
}
/* TITULO H1 PARA LIBROS */
.titulo-destacado {
  font-family: 'Cinzel', serif; /* Fuente ultra elegante */
  font-size: 3rem; /* Tamaño grande para impacto visual */
  font-weight: 300; /* Negrita para mayor presencia */
  color: #ffffff; /* Color del texto (blanco) */
  text-align: center; /* Centrar el texto */
  text-transform: uppercase; /* Mayúsculas para elegancia */
  letter-spacing: 6px; /* Espaciado entre letras */
  margin: 80px 0; /* Margen superior e inferior */
  padding: 30px; /* Espaciado interno */
  position: relative; /* Para efectos decorativos */
  background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d); /* Fondo con gradiente dinámico */
  -webkit-background-clip: text; /* Aplicar gradiente al texto */
  background-clip: text;
  color: transparent; /* Hacer el texto transparente para mostrar el gradiente */
  animation: gradientAnimation 8s ease infinite; /* Animación del gradiente */
  transform-style: preserve-3d; /* Efecto 3D */
  perspective: 1000px; /* Perspectiva para el efecto 3D */
}

/* Efecto 3D y sombra */
.titulo-destacado::before {
  content: attr(data-text); /* Usa el texto del atributo data-text */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(0, 0, 0, 0.2); /* Sombra 3D */
  z-index: -1;
  transform: translateZ(-30px); /* Efecto 3D */
}

/* Línea decorativa animada */
.titulo-destacado::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0; /* Inicialmente sin ancho */
  height: 3px; /* Grosor de la línea */
  background: linear-gradient(90deg, #1a2a6c, #b21f1f, #fdbb2d); /* Gradiente para la línea */
  transform: translateX(-50%); /* Centrar la línea */
  transition: width 0.5s ease; /* Animación suave */
}

/* Efecto hover: animación de la línea */
.titulo-destacado:hover::after {
  width: 100%; /* La línea se expande al pasar el mouse */
}

/* Animación del gradiente */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efecto hover: rotación 3D */
.titulo-destacado:hover {
  transform: rotateY(15deg) rotateX(10deg); /* Rotación 3D al pasar el mouse */
  transition: transform 0.5s ease;
}

/* Responsive: ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
  .titulo-destacado {
      font-size: 3rem; /* Tamaño más pequeño para móviles */
      letter-spacing: 3px; /* Menos espaciado entre letras */
      margin: 40px 0; /* Menos margen */
  }
}

/* Sección principal */
.knowledge-areas {
  padding: 5rem 0;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

/* Título principal */
.areas-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.areas-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #3498db, transparent);
  animation: width-pulse 3s ease-in-out infinite;
}

/* Contenedor de la cuadrícula */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tarjetas de área */
.area-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.area-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.area-card:hover::before {
  transform: scaleX(1);
}

/* Ícono principal del área */
.area-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 2rem;
  transition: all 0.3s ease;
}

/* Colores específicos para cada área */
.exactas .area-icon {
  background: linear-gradient(135deg, #3498db20, #3498db40);
  color: #3498db;
}

.naturales .area-icon {
  background: linear-gradient(135deg, #27ae6020, #27ae6040);
  color: #27ae60;
}

.humanidades .area-icon {
  background: linear-gradient(135deg, #e74c3c20, #e74c3c40);
  color: #e74c3c;
}

.sociales .area-icon {
  background: linear-gradient(135deg, #f39c1220, #f39c1240);
  color: #f39c12;
}

/* Título del área */
.area-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

/* Lista de materias */
.subjects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.subject-item:hover {
  transform: translateX(10px);
  color: #3498db;
}

.subject-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1rem;
}

.subject-text {
  font-size: 1rem;
  color: #546e7a;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Animaciones */
@keyframes width-pulse {
  0%, 100% { width: 100px; opacity: 0.5; }
  50% { width: 150px; opacity: 1; }
}

/* Efecto hover en las materias */
.subject-item:hover .subject-icon {
  transform: scale(1.1);
}

.subject-item:hover .subject-text {
  color: #3498db;
}

/* Media queries */
@media (max-width: 768px) {
  .areas-title {
      font-size: 2.5rem;
  }

  .areas-grid {
      grid-template-columns: 1fr;
      padding: 0 1rem;
  }

  .area-card {
      padding: 1.5rem;
  }
}
/* Sección principal */
.commission-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

/* Título principal */
.commission-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: #2d3748;
    position: relative;
}

.commission-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
    animation: expandLine 3s ease-in-out infinite;
}

/* Contenedor de tarjetas */
.commission-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tarjetas individuales */
.commission-card {
    flex: 1;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.commission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0091ff);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.commission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.commission-card:hover::before {
    transform: scaleX(1);
}

/* Porcentaje */
.percentage {
    font-size: 5rem;
    font-weight: 700;
    color: #0d6efd;
    margin: 1rem 0;
    background: linear-gradient(45deg, #0d6efd, #0091ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.percentage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.commission-card:hover .percentage::after {
    opacity: 1;
}

/* Subtítulo "para el autor" */
.commission-subtitle {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Lista de tipos de contenido */
.content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.content-item {
    padding: 0.8rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.content-item::before {
    content: '•';
    color: #0d6efd;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.content-item:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

.content-item:hover::before {
    transform: scale(1.2);
}

/* Animaciones */
@keyframes expandLine {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 150px; opacity: 1; }
}

/* Media queries */
@media (max-width: 768px) {
    .commission-cards {
        flex-direction: column;
        align-items: center;
    }

    .commission-card {
        width: 100%;
    }

    .commission-title {
        font-size: 2.5rem;
    }

    .percentage {
        font-size: 4rem;
    }
}
/* Sección de estadísticas */
.statistics-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  position: relative;
  overflow: hidden;
}

/* Efecto de partículas de fondo */
.statistics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      radial-gradient(circle at 20% 20%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(13, 110, 253, 0.05) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
}

/* Contenedor de las estadísticas */
.stats-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Elemento individual de estadística */
.stat-item {
  text-align: center;
  padding: 2rem;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(13, 110, 253, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-item:hover::before {
  transform: translateX(0);
}

/* Número de la estadística */
.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #0d6efd, #0091ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  animation: fadeInUp 1s ease-out forwards;
}

/* Texto descriptivo */
.stat-text {
  font-size: 1.1rem;
  color: #4a5568;
  margin: 0;
  position: relative;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Línea decorativa */
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #0d6efd, transparent);
  opacity: 0;
  transition: all 0.3s ease;
}

.stat-item:hover::after {
  opacity: 1;
  width: 80px;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes backgroundShift {
  0%, 100% {
      background-position: 0% 0%;
  }
  50% {
      background-position: 100% 100%;
  }
}

/* Contador animado */
.stat-number {
  opacity: 0;
}

.stat-number.animate {
  animation: countUp 2s ease-out forwards,
             fadeInUp 1s ease-out forwards;
}

@keyframes countUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Media queries */
@media (max-width: 768px) {
  .stats-container {
      padding: 0 1rem;
  }

  .stat-item {
      flex: 1;
      min-width: 150px;
      padding: 1.5rem;
  }

  .stat-number {
      font-size: 2.5rem;
  }

  .stat-text {
      font-size: 1rem;
  }
}

