@font-face {
    font-family: "Quicksand Book";
    src: url("fonts/Quicksand Book/Quicksand Book.otf");
}

@font-face {
    font-family: "Camber Medium Regular";
    src: url("fonts/Quicksand Book/Camber Medium Regular.otf");
}

@font-face {
    font-family: "Camber SemiBold Regular";
    src: url("fonts/Camber/Emtype Foundry - Camber SemiBold Regular.otf");
}

@font-face {
    font-family: "Archivo Narrow SemiBold";
    src: url("fonts/Archivo_Narrow/ArchivoNarrow-SemiBold.ttf");
}

@font-face {
    font-family: "Archivo Narrow Medium";
    src: url("fonts/Archivo_Narrow/ArchivoNarrow-Medium.ttf");
}

@font-face {
    font-family: "Camber Light Regular";
    src: url("fonts/Camber/Emtype Foundry - Camber Light Regular.otf");
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, th, td {
    margin: 0;
    padding: 0;
}

* {
    font-size: 1rem;
    font-family: "Camber Light Regular", serif;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    background: #fff;
}

/* ESTILO TABLA PUBLICACIONES */
.libros-wrapper {
    overflow-x: auto; /* Permite el scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Suaviza el scroll en dispositivos móviles */
    max-height: 100vh; /* Limita la altura del contenedor para que el scroll vertical funcione */
    overflow-y: auto; /* Permite el scroll vertical */
}

.libros table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.libros th,
.libros td {
    height: 5px;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    word-break: break-word;
    white-space: normal;
}

.libros th {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    text-align: center;
    position: sticky; /* Hace que el encabezado sea sticky */
    top: 0; /* Lo fija en la parte superior */
    z-index: 2; /* Asegura que el encabezado esté por encima del contenido */
}

.libros tr:nth-child(even) {
    background-color: #f9f9f9;
}

.libros tr:hover {
    background-color: #f1f1f1;
}

.libros .libro-portada {
    text-align: center;
    vertical-align: middle;
}

.libros .libro-portada img {
    max-height: 150px;
    width: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.libros .libro-descripcion {
    text-align: justify;
    min-height: 200px;
    height: 150px;
    font-weight: normal;
}

.libros .titulo {
    font-weight: bold;
}

.libros .libro-img {
    max-width: 100px;
}

.btn-link {
    display: inline-block;
    padding: 5px;
    background-color: #148BA6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}
.btn-link:hover {
    background-color: #003E72;
}


.action-buttons {
    text-align: center;
    margin: 20px 0;
}
.pdf-icon {
    margin-right: 5px;
}
.pdf-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}