/**
* Template Name: Ediciones Esangui
* Template URL: https://bootstrapmade.com/constructo-bootstrap-construction-template/
* Updated: Aug 30 2025 with Bootstrap v5.3.8
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/
body {
    font-family: 'Georgia', serif;
}/* --- HERO SLIDER 1200x600 --- */
.hero-slider {
  
    height: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Elimina cualquier margen superior que empuje el nav */
    padding: 0 !important;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 600px;
}

/* ZOOM EFFECT */
.hero-slider .carousel-item img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    transition: transform 10s ease-in-out;
}

.hero-slider .carousel-item.active img {
    transform: scale(1.15);
}

/* EL ÚNICO OVERLAY QUE NECESITAS (Gradiente Moderno) */
.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Oscurece de abajo hacia arriba para resaltar el texto */
    background:linear-gradient(to top, rgba(7, 9, 93, 0.96) 0%, rgba(33, 5, 5, 0.2) 60%, #00000073 100%);
    z-index: 1;
}

/* TEXTO Y ANIMACIÓN */
.hero-slider .carousel-caption {
    z-index: 2;
    bottom: 12% !important;
}

.hero-slider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* BOTÓN DORADO */
.btn-gold {
    background-color: #c8a46b;
    color: white;
    border-radius: 25px;
    padding: 10px 25px;
}

.btn-gold:hover {
    background-color: #a88952;
    color: white;
}

/* TEXTO DORADO */
.text-gold {
    color: #c8a46b;
    text-decoration: none;
}

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

/* CARDS */
.card img {
    object-fit: cover;
}


/* NAVBAR TRANSPARENTE */
#mainNav {
    transition: all 0.4s ease;
    background: transparent;
    padding: 20px 0;
    text-transform: uppercase;
  font-weight: bolder;
}

#mainNav.scrolled {
    background: white;
    padding: 0px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#mainNav.scrolled .nav-link,
#mainNav.scrolled .navbar-brand {
    color: #fff !important;
}


/* BOTÓN */
.btn-gold {
    background-color: #c8a46b;
    color: white;
    border-radius: 30px;
    padding: 10px 25px;
}

.btn-gold:hover {
    background-color: #a88952;
}


/* --- Preloader Estilizado --- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 3px solid #c5a059; /* Color de la editorial */
  border-right: 3px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Botón Scroll Top --- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: #c5a059;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  color: #fff;
  text-decoration: none;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top i {
  font-size: 28px;
  line-height: 0;
}

.scroll-top:hover {
  background: #a88548;
  color: #fff;
  transform: translateY(-5px); /* Efecto de elevación */
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}


/* ================================================================
   GRID CAROUSEL DE LIBROS (ESTRUCTURA)
   ================================================================ */

/* Ajuste para que los botones de navegación se vean fuera si es necesario */
#bookGridCarousel {
    overflow: visible;
    position: relative;
}

/* Configuración de 4 ítems en línea para Desktop */
@media (min-width: 768px) {
    #bookGridCarousel .carousel-inner {
        display: flex !important;
    }
    #bookGridCarousel .carousel-item {
        margin-right: 0;
        flex: 0 0 25%; /* 4 libros visibles (100/4) */
        display: block;
    }
}

/* ================================================================
   TARJETA DEL LIBRO (CARD BOOK)
   ================================================================ */

.card-book {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 10px; /* Espaciado entre tarjetas */
}

/* Efecto Push al hacer clic */
.card-book:active {
    transform: scale(0.95) !important;
}

/* Imagen del libro */
.card-book img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-book:hover img {
    transform: scale(1.05);
}

/* ================================================================
   OVERLAY Y BOTONES (HOVER)
   ================================================================ */

.card-book .book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.card-book:hover .book-overlay {
    opacity: 1;
}

/* Botones dentro del overlay */
.btn-book-action {
    width: 80%;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px); /* Empieza abajo */
    transition: all 0.3s ease;
}

.card-book:hover .btn-book-action {
    transform: translateY(0); /* Sube al entrar */
}

/* ================================================================
   CONTROLES DE NAVEGACIÓN (FLECHAS)
   ================================================================ */

.custom-nav, 
#bookGridCarousel .carousel-control-prev,
#bookGridCarousel .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 10;
}

/* Arrimamos las flechas hacia afuera para no tapar los libros */
#bookGridCarousel .carousel-control-prev {
    left: -60px;
}

#bookGridCarousel .carousel-control-next {
    right: -60px;
}

/* Iconos de flecha (Círculos) */
.carousel-control-prev-icon, 
.carousel-control-next-icon {
    background-size: 40%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s ease;
}

.carousel-control-prev-icon:hover, 
.carousel-control-next-icon:hover {
    background-color: #d4af37 !important; /* Color Oro */
    border-color: #d4af37;
}

/* Responsivo para Tablets y Móviles */
@media (max-width: 1300px) {
    #bookGridCarousel .carousel-control-prev { left: -10px; }
    #bookGridCarousel .carousel-control-next { right: -10px; }
    
    #bookGridCarousel .carousel-inner {
        padding: 0 40px; /* Margen interno para que las flechas no pisen las cards */
    }
}




/* Estilos base del preloader para que el JS funcione visualmente */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #d4af37;
  border-vertical: 6px solid #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll Top Style */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #000;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  color: #fff;
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*    navbar*/
.navbar { transition: 0.4s; }
.navbar.scrolled {
  background-color: rgba(0,0,0,0.85) !important;
  padding: 10px 0;
}

.navbar-toggler { border:none; }

.navbar-toggler-icon {
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Añade esto a tu bloque <style> */
.btn-xs {
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: .2rem;
  width: 50%; /* Ocupa la mitad del contenedor */
  display: block; /* Necesario para que el margin auto funcione */
  margin: 10px auto !important; /* Centrado horizontal y margen arriba/abajo */
  text-align: center;
}
@media (max-width: 991.98px) {
    /* 1. FORZAR ESTADO INICIAL: Negro y Fijo */
    #mainNav, .navbar {
        background-color: #000000 !important; /* Fondo negro real */
        position: fixed !important; 
        top: 0 !important;
        width: 100%;
        z-index: 1050; /* Por encima de todo */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 10px 0 !important;
        border-bottom: 2px solid #d4af37;
    }

    /* 2. ELIMINAR TRANSPARENCIAS: Evita que el JS de scroll lo oculte */
    #mainNav.navbar-transparent, 
    #mainNav.bg-transparent {
        background-color: #000000 !important;
    }

    /* 3. MENÚ DESPLEGABLE: Estilo moderno al abrir */
    .navbar-collapse {
        background: rgba(15, 15, 15, 0.98) !important;
        backdrop-filter: blur(10px);
        margin-top: 8px;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        border: 1px solid rgba(212, 175, 55, 0.2);
    }

    /* 4. ENLACES: Texto blanco y flecha dorada */
    #mainNav .nav-link {
        color: #ffffff !important;
        padding: 15px 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #mainNav .nav-link::after {
        content: '→';
        color: #d4af37;
        opacity: 0.7;
    }

    /* 5. TOGGLER (Hamburguesa): Siempre visible */
    .navbar-toggler {
        border: 1px solid #d4af37 !important;
        display: block !important; /* Asegura que no se oculte */
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23d4af37' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    }

    /* 6. COMPENSACIÓN: Para que el contenido no se meta bajo el nav */
    body {
        padding-top: 70px !important;
    }
}
/**************************************************************
breadcrunbs
**************************************************************/.inner-banner {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1c50a4);
  color: #fff;
  overflow: hidden;
}

/* efecto decorativo suave */
.inner-banner::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(248,193,70,0.15), transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 1;
}

.inner-banner::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  bottom: -200px;
  left: -200px;
  z-index: 1;
}

.w3l-breadcrumb {
  position: relative;
  z-index: 2;
}

.inner-text-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* breadcrumbs modernos */
.breadcrumbs-custom-path {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}

.breadcrumbs-custom-path li {
  color: rgba(255,255,255,0.7);
}

.breadcrumbs-custom-path a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.breadcrumbs-custom-path a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: #f8c146;
  transition: width 0.3s ease;
}

.breadcrumbs-custom-path a:hover::after {
  width: 100%;
}

.breadcrumbs-custom-path .active {
  color: #f8c146;
  font-weight: 500;
}

/* icono separador */
.breadcrumbs-custom-path i {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* responsive */
@media (max-width: 768px) {
  .inner-banner {
    padding: 70px 0;
  }

  .inner-text-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .breadcrumbs-custom-path {
    flex-wrap: wrap;
  }
}

/******************************
libros list csss
*******************************/
.books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.books-list li {
  list-style: none;
  padding: 12px 15px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* efecto hover moderno */
.books-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #f8c146;
}

/* barra decorativa lateral */
.books-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f8c146, #ffb400);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.books-list li:hover::before {
  opacity: 1;
}

/* título */
.books-list li h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

.books-list li:hover h6 {
  color: #000;
}

/* icono opcional */
.books-list li i {
  color: #f8c146;
  margin-right: 8px;
}

/* modo oscuro opcional */
@media (prefers-color-scheme: dark) {
  .books-list li {
    background: #1e293b;
    border-color: #334155;
  }

  .books-list li h6 {
    color: #e2e8f0;
  }

  .books-list li:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }
}


.book-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #eee;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* título */
.book-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

/* info */
.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.price {
  font-weight: 700;
  color: #f8c146;
}

.stock {
  color: #28a745;
  font-weight: 500;
}

/* botón */
.btn-buy {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8c146, #ffb400);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-buy:hover {
  opacity: 0.9;
  transform: scale(1.02);
}