/* ============================= */
/* General */
body {
    font-family: 'Roboto', sans-serif;
    color: #444;
}

/* Contenedor */
.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Títulos */
h4 {
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* Sidebar filtros */
.filtros-libros {
    transition: all 0.3s ease;
}

.filtros-libros select.form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.filtros-libros label {
    color: #555;
}

.filtros-libros .btn-dark {
    background-color: #ff9f1c;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filtros-libros .btn-dark:hover {
    background-color: #ff7f00;
    transform: scale(1.05);
}

/* Overlay (si se usa) */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: none;
    z-index: 1050;
}

/* Cards de libros */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}


/* Imagen dentro de card */
.hover-card img {
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.hover-card img:hover {
    transform: scale(1.05);
}



.hover-card h5 {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hover-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.hover-card .precio {
    font-weight: 700;
    color: #ff9f1c;
    font-size: 1.05rem;
}

/* Paginación */
#paginacion .page-link {
    color: #000000;
    border-color: #ddd;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#paginacion .page-link:hover {
    background-color: #ffa527;
    color: #000000;
}

#paginacion .page-item.active .page-link {
    background-color: #ff7f00;
    border-color: #ff7f00;
    color: #fff;
}
/* Hover y sombra para tarjetas dinámicas */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* Imagen de la tarjeta */
.hover-card .card-img-top {
    border-bottom: 1px solid #eee;
    object-fit: cover;
    height: 250px;
}

/* Cuerpo de la tarjeta */
.hover-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Título y texto */
.hover-card .card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.hover-card small.text-muted {
    font-size: 0.8rem;
    color: #777 !important;
}

.hover-card p.fw-bold {
    color: #ff9f1c;
    font-size: 0.95rem;
}

/* Botón "Ver más" */
.hover-card .btn-outline-dark {
    background-color: #ff9f1c;
    border-color: #ff9f1c;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}


/* Paginación */
.pagination .page-link {
    color: #ff9f1c;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: #ff9f1c;
    border-color: #ff9f1c;
    color: #fff;
}

.pagination .page-link:hover {
    background-color: #ff7f00;
    color: #fff;
    border-color: #ff7f00;
}

/* Botón de aplicar filtros */
.btn-dark {
    background-color: #ff9f1c;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: #ff7f00;
}
.back-icon{
    color: #ff9f1c;
}
.back-icon:hover{
    color: #ff7f00 !important;
}
hr{
    color: #ff7f00 !important;
    size: 3px !important;
    border-top: 1px solid !important;
    opacity: 1 !important;
}
/* Responsive ajustes */
@media (max-width: 992px) {
    #filtros-libros {
        display: none;
    }
}

@media (max-width: 576px) {
    h4 {
        font-size: 1.2rem;
    }
}
