        .biblioteca-container {
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .biblioteca-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .biblioteca-header h1 {
            font-size: 2.5rem;
            color: #F59E0B;
            margin-bottom: 10px;
        }

        .biblioteca-header p {
            font-size: 1.1rem;
            color: #666;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .book-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .book-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .book-image {
            width: 100%;
            height: 300px;
            background: linear-gradient(135deg, #1D4ED8 0%, #1D4ED8 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .book-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .book-image-placeholder {
            width: 80%;
            height: 80%;
            background: rgba(255,255,255,0.1);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
        }

        .book-info {
            padding: 20px;
        }

        .book-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #333;
            margin-bottom: 8px;
        }

        .book-author {
            font-size: 0.95rem;
            color: #1D4ED8;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .book-quantity {
            display: inline-block;
            font-size: 0.9rem;
            background: #f0f0f0;
            padding: 6px 12px;
            border-radius: 20px;
            color: #666;
        }

        .book-quantity.available {
            background: #d4edda;
            color: #155724;
        }

        .book-quantity.unavailable {
            background: #f8d7da;
            color: #721c24;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .empty-state h2 {
            color: #666;
            margin-bottom: 10px;
        }

        @media screen and (max-width: 768px) {
            .biblioteca-header h1 {
                font-size: 2rem;
            }

            .books-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 20px;
            }
        }

.pagination {
    text-align: center;
    margin-top: 20px;
    white-space: nowrap;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.pagination a:hover {
    background: #1D4ED8;
    color: white;
}

.pagination a.active {
    background: #F59E0B;
    color: white;
}

.pagination .dots {
    padding: 8px;
    color: #888;
}


/* ===== SEARCH FORM ===== */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* INPUT */
.search-input {
    padding: 12px 16px;
    width: 320px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: #1D4ED8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* BUTTON SEARCH */
.search-btn {
    padding: 12px 18px;
    background: #1D4ED8;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.search-btn:hover {
    background: #163bb5;
    transform: translateY(-2px);
}

/* CLEAR BUTTON */
.clear-btn {
    padding: 12px 18px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .search-input {
        width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn,
    .clear-btn {
        width: 100%;
    }
}