@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f4f7fc;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    min-height: 100vh;
}

.pagina-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #111827;
}

.logo {
    position: absolute;
    top: 12px;
    left: 20px;
    width: 100px;
    height: auto;
}

/* Contenedor de libros */
.libros-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Estilo de cada libro */
.libro-lista {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.libro-lista:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.libro-lista h2 {
    color: #1e293b;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

/* Estilo de los elementos dentro de cada libro */
.libro-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 15px;
    color: #374151;
}

.libro-item:last-child {
    border-bottom: none;
}

.btn-volver {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-volver:hover {
    background-color: #5a6268;
}

.volver-container {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 30px;
}

/* Botones adicionales */
.botones-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 30px;
}

.btn-ver-usuarios,
.volver-btn {
    flex: 1;
    text-align: end;
    background-color: #e5e7eb;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-ver-usuarios:hover {
    background-color: #cbd5e1;
}

.volver-btn:hover {
    background-color: #d1d5db;
}

/* Responsive */
@media (max-width: 600px) {
    .botones-container {
        flex-direction: column;
    }
}