
/* =========================================================
   PANEL ADMINISTRACIÓN - NUEVO DISEÑO
   ========================================================= */

.admin-page {
    width: min(1480px, calc(100% - 50px));
    margin: 30px auto 60px;
    color: #eeeeee;
}

/* =========================================================
   USUARIO ACTUAL
   ========================================================= */

.admin-user {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-bottom: 22px;
    font-size: 15px;
}

.admin-user strong {
    color: #ffd600;
}

.admin-user-icon {
    color: #ffd600;
    font-size: 18px;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.admin-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px;
    margin-bottom: 20px;
    background: linear-gradient(145deg, #090d14, #05070b);
    border: 1px solid #303846;
    border-radius: 9px;
}

.toolbar-button {
    min-height: 43px;
    padding: 0 20px;
    border-radius: 6px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s, border-color .2s;
}

.toolbar-button span:first-child {
    margin-right: 7px;
    font-size: 17px;
}

.toolbar-button:hover {
    transform: translateY(-2px);
}

.toolbar-user {
    color: #ffd600;
    border: 1px solid #ffd600;
}

.toolbar-user:hover {
    background: rgba(255,214,0,.08);
}

.toolbar-reader {
    color: #ffffff;
    border: 1px solid #a970ff;
}

.toolbar-reader:hover {
    background: rgba(169,112,255,.08);
}

.toolbar-view {
    color: #ffffff;
    border: 1px solid #a970ff;
}

.toolbar-view.active {
    color: #ffd600;
    border-color: #ffd600;
}

.toolbar-view:hover {
    background: rgba(169,112,255,.08);
}

/* =========================================================
   HEADER LIBROS
   ========================================================= */

.books-header {
    background: linear-gradient(145deg, #090d14, #05070b);
    border: 1px solid #303846;
    border-radius: 9px;
    padding: 25px 32px;
    margin-bottom: 15px;
}

.books-title-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.books-title-icon {
    font-size: 47px;
}

.books-title-area h1 {
    margin: 0 0 5px;
    font-size: 29px;
    line-height: 1.2;
}

.books-title-area p {
    margin: 0;
    color: #aeb4c0;
    font-size: 15px;
}

/* =========================================================
   FILTROS
   ========================================================= */

.books-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    margin-bottom: 14px;
    background: linear-gradient(145deg, #090d14, #060910);
    border: 1px solid #303846;
    border-radius: 9px;
}

.books-search {
    position: relative;
    width: 65%;
}

.books-search > span {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    pointer-events: none;
}

.books-search input {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 50px;
    background: #111620;
    border: 1px solid #454c59;
    border-radius: 6px;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
}

.books-search input::placeholder {
    color: #7d8594;
}

.books-search input:focus {
    border-color: #ffd600;
    box-shadow: 0 0 0 2px rgba(255,214,0,.08);
}

.books-limit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.books-limit label {
    font-size: 16px;
    font-weight: 700;
}

.books-limit select {
    min-width: 110px;
    height: 48px;
    padding: 0 15px;
    background: #111620;
    color: #ffffff;
    border: 1px solid #454c59;
    border-radius: 6px;
    outline: none;
    font-size: 15px;
}

/* =========================================================
   LISTA DE LIBROS
   ========================================================= */

.books-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================================
   TARJETA
   ========================================================= */

.book-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 500px;
    align-items: center;
    gap: 20px;
    min-height: 150px;
    padding: 16px 24px;
    background: linear-gradient(145deg, #101620, #0c1119);
    border: 1px solid #303846;
    border-radius: 8px;
    transition: transform .2s, border-color .2s;
}

.book-card:hover {
    border-color: #4b5565;
    transform: translateY(-1px);
}

/* =========================================================
   PORTADA - VISTA LISTA
   ========================================================= */

.book-cover {
    width: 110px;
    aspect-ratio: 2 / 3;
    height: auto;
    overflow: hidden;
    border-radius: 6px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   INFORMACIÓN
   ========================================================= */

.book-info {
    min-width: 0;
}

.book-info h2 {
    margin: 0 0 7px;
    font-size: 23px;
    color: #eeeeee;
}

.book-author {
    margin-bottom: 9px;
    color: #ffd600;
    font-size: 15px;
}

.book-info p {
    margin: 0;
    color: #d6d9df;
    font-size: 15px;
    line-height: 1.5;
}

/* =========================================================
   ACCIONES
   ========================================================= */

.book-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.book-action {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.book-action:hover {
    transform: translateY(-2px);
}

.book-action span:first-child {
    font-size: 19px;
}

.book-action.read {
    color: #ffd600;
    border: 1px solid #ffd600;
}

.book-action.read:hover {
    background: rgba(255,214,0,.08);
}

.book-action.author-bio {
    color: #b2a5ee;
    border: 1px solid #b2a5ee;
    text-align: center;
}

.book-action.author-bio:hover {
    background: rgba(77,204,99,.08);
}

.book-action.dispositivos {
    color: #ffd600;
    border: 1px solid #ffd600;
}

.book-action.dispositivos:hover {
    background: rgba(77,204,99,.08);
}

.book-action.comprar {
    color: #4dcc63;
    border: 1px solid #4dcc63;
}

.book-action.comprar:hover {
    background: rgba(77,204,99,.08);
}

.book-action.edit {
    color: #4dcc63;
    border: 1px solid #4dcc63;
}

.book-action.edit:hover {
    background: rgba(77,204,99,.08);
}

.book-action.asignar {
    color: #ffd600;
    border: 1px solid #ffd600;
}

.book-action.asignar:hover {
    background: rgba(77,204,99,.08);
}

.book-action.reporte {
    color: #a39af8;
    border: 1px solid #a39af8;
}

.book-action.reporte:hover {
    background: rgba(77,204,99,.08);
}

.book-action.delete {
    color: #ff5058;
    border: 1px solid #ff5058;
}

.book-action.delete:hover {
    background: rgba(255,80,88,.08);
}

/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.no-books {
    display: none;
    text-align: center;
    padding: 70px 20px;
    color: #8e96a4;
}

.no-books.visible {
    display: block;
}

.no-books-icon {
    margin-bottom: 15px;
    font-size: 48px;
}

.no-books h3 {
    margin-bottom: 7px;
    color: #ffffff;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.paginacion-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
}

.paginacion-botones button {
    min-width: 43px;
    height: 45px;
    padding: 0 12px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.paginacion-botones button:hover {
    background: #1b222e;
}

.paginacion-botones button.active {
    background: #ffd600;
    color: #000000;
    font-weight: 700;
}

.paginacion-botones button.disabled {
    color: #59616f;
    cursor: not-allowed;
}

.paginacion-botones .next {
    color: #ffd600;
    font-weight: 700;
}

.paginacion-botones .dots {
    padding: 0 8px;
    color: #777f8d;
}

/* =========================================================
   VISTA GRID
   ========================================================= */

.books-list.grid-view {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.books-list.grid-view .book-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
}

/* Portadas verticales 2:3 en Grid */

.books-list.grid-view .book-cover {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 2 / 3;
    height: auto;
    margin: 0 auto;
}

.books-list.grid-view .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.books-list.grid-view .book-actions {
    width: 100%;
    margin-top: auto;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .book-card {
        grid-template-columns: 110px minmax(0, 1fr) 390px;
        gap: 15px;
    }

    .book-actions {
        gap: 7px;
    }

    .book-action {
        font-size: 14px;
    }

    .books-list.grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .admin-page {
        width: calc(100% - 20px);
        margin: 15px auto 40px;
    }

    .admin-user {
        justify-content: flex-start;
        margin-bottom: 15px;
        font-size: 13px;
    }

    .admin-toolbar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px;
    }

    .toolbar-button {
        width: 100%;
        padding: 0 7px;
        font-size: 13px;
    }

    .books-header {
        padding: 20px;
    }

    .books-title-area {
        align-items: flex-start;
        gap: 12px;
    }

    .books-title-icon {
        font-size: 34px;
    }

    .books-title-area h1 {
        font-size: 24px;
    }

    .books-title-area p {
        font-size: 13px;
        line-height: 1.4;
    }

    .books-filters {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .books-search {
        width: 100%;
    }

    .books-limit {
        justify-content: space-between;
    }

    /* LIBRO MÓVIL - VISTA LISTA */

    .book-card {
        display: grid;
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 15px;
        padding: 18px;
    }

    .book-cover {
        width: 125px;
        aspect-ratio: 2 / 3;
        height: auto;
    }

    .book-info h2 {
        font-size: 20px;
    }

    .book-author {
        font-size: 14px;
    }

    .book-info p {
        font-size: 13px;
        line-height: 1.45;
    }

    .book-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .book-action {
        height: 52px;
        flex-direction: column;
        gap: 1px;
        font-size: 13px;
    }

    .book-action span:first-child {
        font-size: 17px;
    }

    /* GRID EN MÓVIL */

.books-list.grid-view {
    grid-template-columns: 1fr;
}

    .books-list.grid-view .book-card {
        display: flex;
        flex-direction: column;
    }

    .books-list.grid-view .book-cover {
        width: 100%;
        max-width: 180px;
        aspect-ratio: 2 / 3;
        height: auto;
        margin: 0 auto;
    }

    /* PAGINACIÓN */

    .paginacion-botones {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        overflow-x: visible;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        gap: 8px;
        padding-bottom: 5px;
    }
}

/* =========================================================
   TELÉFONOS PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .admin-page {
        width: calc(100% - 12px);
    }

    .admin-toolbar {
        padding: 10px;
    }

    .toolbar-button {
        font-size: 12px;
    }

    .books-header {
        padding: 17px;
    }

    .books-title-icon {
        font-size: 29px;
    }

    .books-title-area h1 {
        font-size: 21px;
    }

    .books-title-area p {
        font-size: 12px;
    }

    .book-card {
        grid-template-columns: 90px minmax(0, 1fr);
        padding: 14px;
        gap: 11px;
    }

    .book-cover {
        width: 90px;
        aspect-ratio: 2 / 3;
        height: auto;
    }

    .book-info h2 {
        font-size: 17px;
    }

    .book-author {
        font-size: 12px;
    }

    .book-info p {
        font-size: 12px;
    }

    .book-actions {
        gap: 4px;
    }

    .book-action {
        height: 48px;
        font-size: 11px;
    }

    .book-action span:first-child {
        font-size: 15px;
    }

    .books-list.grid-view .book-cover {
        max-width: 150px;
        aspect-ratio: 2 / 3;
        height: auto;
    }
}

/* =========================================================
   TABLAS
   ========================================================= */

.users-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #eee;
}

.users-table th,
.users-table td {
    border: 1px solid #303846;
    padding: 10px;
    text-align: left;
}

.users-table th {
    background: #090d14;
    color: #ffd600;
}

.users-table tr:nth-child(even) {
    background: #11151d;
}

.users-table tr:hover {
    background: rgba(255,214,0,0.08);
}

/* RESPONSIVE TABLAS */

@media (max-width: 768px) {

    .users-table table,
    .users-table thead,
    .users-table tbody,
    .users-table th,
    .users-table td,
    .users-table tr {
        display: block;
        width: 100%;
    }

    .users-table tr {
        margin-bottom: 15px;
        border: 1px solid #303846;
        border-radius: 6px;
        padding: 10px;
        background: #1e1e2a;
    }

    .users-table td {
        border: none;
        padding: 6px 0;
    }

    .users-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #ffd600;
    }

    .users-table th {
        display: none;
    }
}

/* ==========================================
   MODAL CONFIRMACIÓN ELIMINAR USUARIO
   ========================================== */

.modal-confirmar-eliminar {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-confirmar-contenido {
    width: 100%;
    max-width: 420px;
    background: #11151d;
    border: 1px solid #303846;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    animation: aparecerModalEliminar 0.2s ease-out;
}

.modal-confirmar-icono {
    font-size: 42px;
    margin-bottom: 10px;
}

.modal-confirmar-contenido h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 24px;
}

.modal-confirmar-contenido p {
    margin: 8px 0;
    color: #ddd;
    font-size: 16px;
}

.modal-confirmar-aviso {
    color: #999 !important;
    font-size: 14px !important;
}

.modal-confirmar-botones {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.modal-confirmar-cancelar,
.modal-confirmar-eliminar-btn {
    border: none;
    border-radius: 6px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-confirmar-cancelar {
    background: #303846;
    color: #fff;
}

.modal-confirmar-cancelar:hover {
    background: #414b5c;
}

.modal-confirmar-eliminar-btn {
    background: #d32f2f;
    color: #fff;
}

.modal-confirmar-eliminar-btn:hover {
    background: #b71c1c;
}

@keyframes aparecerModalEliminar {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {

    .modal-confirmar-contenido {
        padding: 25px 20px;
    }

    .modal-confirmar-botones {
        flex-direction: column;
    }

    .modal-confirmar-cancelar,
    .modal-confirmar-eliminar-btn {
        width: 100%;
    }
}
/* PORTADAS GRANDES Y PROPORCIONALES */
.books-list.grid-view .book-cover {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    overflow: hidden;
}

.books-list.grid-view .book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

/* MÓVILES: una tarjeta por fila */
@media (max-width: 700px) {
    .books-list.grid-view {
        grid-template-columns: 1fr;
    }

    .books-list.grid-view .book-cover {
        width: 100%;
        max-width: 360px;
        aspect-ratio: 2 / 3;
        margin: 0 auto;
    }
}

/* ==========================================
   CATÁLOGOS DE LIBROS - TELÉFONOS
========================================== */

@media screen and (max-width: 600px) {

    .book-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .book-card .book-cover {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .book-card .book-cover img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .book-card .book-info {
        width: 100% !important;
        box-sizing: border-box;
    }

    .book-card .book-actions {
        width: 100% !important;
        box-sizing: border-box;
    }
}





/* ==========================================
   DESCRIPCIONES EXPANDIBLES DE LIBROS
========================================== */

/* CONTENEDOR GENERAL */

.book-card .book-info .book-description-toggle {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VISTA PREVIA */

.book-card .book-info .book-description-toggle summary {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
    text-align: left;
}

.book-card .book-info .book-description-toggle summary::-webkit-details-marker {
    display: none;
}

.book-card .book-info .book-description-toggle summary::marker {
    content: "";
}

.book-card .book-info .description-preview {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #d6d9df;
    font-size: 15px;
    line-height: 1.5;
    text-align: justify !important;
    text-justify: inter-word;
    overflow-wrap: break-word;
}

/* ENLACE LEE MÁS */

.book-card .book-info .description-more {
    display: inline-block;
    margin-top: 6px;
    color: #60a5fa;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.book-card .book-info .description-more:hover,
.book-card .book-info .description-less:hover {
    text-decoration: underline;
}

/* OCULTAR VISTA PREVIA AL EXPANDIR */

.book-card .book-info .book-description-toggle[open] > summary {
    display: none;
}

/* BIOGRAFÍA COMPLETA */

.book-card .book-info .description-full {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 0;
    box-sizing: border-box;
    color: #d6d9df;
    font-size: 15px;
    line-height: 1.5;
    text-align: justify !important;
    text-justify: inter-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
}

/* JUSTIFICACIÓN DE CADA PÁRRAFO */

.book-card .book-info .description-full p,
.book-card .book-info .description-full .description-paragraph {
    display: block;
    width: 100%;
    margin: 0 0 16px !important;
    padding: 0;
    color: #d6d9df;
    font-size: inherit;
    line-height: inherit;
    text-align: justify !important;
    text-justify: inter-word;
    overflow-wrap: break-word;
}

/* CONSERVAR LOS SALTOS DE LÍNEA */

.book-card .book-info .description-full .description-line {
    display: inline;
}

/* LEER MENOS */

.book-card .book-info .description-less {
    display: inline-block;
    margin: 10px 0 12px;
    padding: 0;
    border: none;
    background: transparent;
    color: #60a5fa;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .book-card .book-info .description-preview,
.book-card .book-info .description-full,
.book-card .book-info .description-full p,
.book-card .book-info .description-full .description-paragraph {
    font-size: 16px !important;
}

    .book-card .book-info .description-more,
    .book-card .book-info .description-less {
        font-size: 1px;
    }
}

@media (max-width: 480px) {
    .book-card .book-info .description-preview,
    .book-card .book-info .description-full,
    .book-card .book-info .description-full p,
    .book-card .book-info .description-full .description-paragraph {
        font-size: 16px;
    }
}


/* CORREGIR ENLACES LEER MÁS / LEER MENOS EN MÓVILES */

.book-card .book-info .book-description-toggle {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.book-card .book-info .book-description-toggle summary {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.book-card .book-info .description-preview {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.book-card .book-info .description-more,
.book-card .book-info .description-less {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 8px;
    font-size: 16px !important;
}

/* EVITAR QUE EL TEXTO DEL ENLACE SE CORTE */

.book-card .book-info .description-more {
    white-space: nowrap;
}


/* DESCRIPCIONES: LECTURA Y DISTRIBUCIÓN */

.book-card .book-info .description-preview,
.book-card .book-info .description-full,
.book-card .book-info .description-full .description-paragraph {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px !important;
    line-height: 1.55;
    text-align: justify !important;
    overflow-wrap: normal;
    word-break: normal;
}

.book-card .book-info .description-full .description-paragraph {
    margin: 0 0 16px !important;
    padding: 0;
}

.book-card .book-info .description-more,
.book-card .book-info .description-less {
    font-size: 16px !important;
}


/**/

/* =====================================================
   DESCRIPCIÓN DE MIS LIBROS
===================================================== */

.book-card .book-info .book-description-toggle {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color: #d6d9df;
    font-size: 16px;
    line-height: 1.55;
    text-align: justify;
    overflow-wrap: normal;
    word-break: normal;
}

/* =====================================================
   VISTA PREVIA DE LA DESCRIPCIÓN
===================================================== */

.book-card .book-info .description-preview {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #d6d9df;
    font-size: 16px !important;
    line-height: 1.55;
    text-align: justify !important;
    overflow-wrap: normal;
    word-break: normal;
}

/* =====================================================
   CONTENEDOR LEER MÁS / LEER MENOS
===================================================== */

.book-card .book-info .book-description-toggle details {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Ocultar vista previa cuando se despliega la descripción */

.book-card .book-info .book-description-toggle:has(details[open]) .description-preview {
    display: none;
}

/* =====================================================
   BOTÓN LEER MÁS / LEER MENOS
===================================================== */

.book-card .book-info .book-description-toggle details > summary {
    display: block;
    width: fit-content;
    margin: 8px 0 0;
    padding: 0;
    cursor: pointer;
    list-style: none;
    color: #4da3ff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    user-select: none;
}

.book-card .book-info .book-description-toggle details > summary::-webkit-details-marker {
    display: none;
}

.book-card .book-info .book-description-toggle details > summary::marker {
    content: "";
}

/* Estado cerrado */

.book-card .book-info .book-description-toggle .read-more {
    display: inline;
}

.book-card .book-info .book-description-toggle .read-less {
    display: none;
}

/* Estado abierto */

.book-card .book-info .book-description-toggle details[open] > summary .read-more {
    display: none;
}

.book-card .book-info .book-description-toggle details[open] > summary .read-less {
    display: inline;
}

/* =====================================================
   DESCRIPCIÓN COMPLETA
===================================================== */

.book-card .book-info .description-full {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 0;
    box-sizing: border-box;
    color: #d6d9df;
    font-size: 16px !important;
    line-height: 1.55;
    text-align: justify !important;
    overflow-wrap: normal;
    word-break: normal;
}

/* =====================================================
   PÁRRAFOS DE LA DESCRIPCIÓN
===================================================== */

.book-card .book-info .description-full .description-paragraph {
    display: block;
    width: 100%;
    margin: 0 0 16px !important;
    padding: 0;
    box-sizing: border-box;
    color: inherit;
    font-size: 16px !important;
    line-height: 1.55;
    text-align: justify !important;
    overflow-wrap: normal;
    word-break: normal;
}

.book-card .book-info .description-full .description-paragraph:last-child {
    margin-bottom: 0 !important;
}
/* LEER MENOS DEBE QUEDAR DEBAJO DE LA DESCRIPCIÓN */

.book-card .book-info .book-description-toggle details[open] {
    display: flex;
    flex-direction: column;
}

.book-card .book-info .book-description-toggle details[open] > summary {
    order: 2;
    margin-top: 8px;
}

.book-card .book-info .book-description-toggle details[open] > .description-full {
    order: 1;
}



/* ==========================================
   DESCRIPCIÓN DE LIBROS
   JUSTIFICADA Y EXPANDIBLE
========================================== */

.book-info .book-description-toggle {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
}

.book-info .book-description {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-align: justify;
    font-size: 16px;
    line-height: 1.55;
}

.book-info .book-description.collapsed {
    max-height: 7.75em;
}

.book-info .book-description .description-paragraph {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    text-align: justify;
    line-height: 1.55;
    overflow-wrap: normal;
    word-break: normal;
}

.book-info .book-description .description-paragraph:last-child {
    margin-bottom: 0;
}

.book-info .description-toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.book-info .description-toggle:hover {
    text-decoration: underline;
}