#gutenberg-library-wrapper {
    font-family: sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

#gutenberg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;

    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

#gutenberg-filters input,
#gutenberg-filters select,
#gutenberg-filters button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#gutenberg-search {
    flex: 3;
}
#gutenberg-languages {
    flex: 1;
}
#gutenberg-sort {
    flex: 1;
}
#gutenberg-filters button {
    cursor: pointer;
    background-color: #0073aa;
    color: #fff;
    border: none;
}

#gutenberg-books-grid, .gutenberg-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gutenberg-book-item {
    border: 1px solid #eee;
    /*padding: 15px;*/
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gutenberg-book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.gutenberg-book-item .content
{
    padding: 15px !important;
}
.gutenberg-book-item .content h4
{
    font-size: 1rem !important;
}
.gutenberg-book-item .content h5
{
    font-size: 0.8rem !important;
    margin-top: 10px;
    font-weight: bold;
}
.gutenberg-book-item .buttongutenberg{
    padding: 15px !important;
}
.gutenberg-book-cover, .gutenberg-no-cover {
    width: 100%;
    height: 350px; /* Tamaño fijo para la portada */
    object-fit: cover;
    display: block;
    margin-top: 10px;
    border-radius: 4px;
}

.gutenberg-no-cover {
    background-color: #f0f0f0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#gutenberg-pagination button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px 15px;
    cursor: pointer;
    margin: 0 5px;
}

#gutenberg-pagination button:hover {
    background-color: #e0e0e0;
}

.text-container {
  overflow: hidden; /* Oculta el texto que excede la altura */
  max-height: 2.4em; /* Altura para dos líneas (ajustar según fuente) */
  position: relative; /* Necesario para el "Ver más" */
}

.two-lines {
    /* word-break: break-word;  Opcional, para romper palabras largas */
    /* overflow-wrap: break-word;  También para romper palabras */
    /* O puedes usar estas propiedades en el contenedor si quieres que todo el texto se ajuste */
}

.text-container.expanded {
  max-height: none; /* Elimina el límite para mostrar todo el texto */
}

.ver-mas {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: white; /* Para que el fondo no tape el texto */
  padding-left: 5px;
}

.gutenberg-read-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.gutenberg-read-button:hover {
    background-color: #005f88;
}

.gutenberg-read-button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.libreria-premium-warning{
    color: red; font-size: 0.8em; font-weight: bold; margin:0px !important;
}