/*
 * =============================================
 *  Hoja de Estilo Base - Versión 1.2
 * =============================================
 */

/*
 * =============================================
 *  1. FUENTES Y PALETA DE COLORES (VARIABLES)
 * =============================================
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --tinto-up: #8A1538;
  --dorado-up: #B59410;
  --texto-principal: #333333;
  --texto-negro: #1b1b1b;
  --texto-claro: #FFFFFF;
  --fondo-claro: #FFFFFF;
}

body {
/*  font-family: 'Lato', sans-serif !important;*/
  font-family: 'baskerville-urw', serif !important;
  color: var(--texto-principal);
}


/*
 * =============================================
 *  2. ENCABEZADOS (H1, H2...)
 * =============================================
 */

h1, h2, h3, h4, h5, h6 {
  font-family: 'baskerville-urw', serif !important;
  color: var(--texto-negro) !important;
}
h1 { font-size: 2.2rem !important; }
h2 { font-size: 1.8rem !important; }
h3 { font-size: 1.4rem !important; }


/*
 * =============================================
 *  3. ENCABEZADO Y BARRA DE NAVEGACIÓN
 * =============================================
 */

.pkp_structure_head {
  background-color: var(--fondo-claro) !important;
}
.pkp_site_nav_menu {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0px !important;
}


/*
 * =============================================
 *  4. MENÚ DE NAVEGACIÓN Y BOTONES DE USUARIO
 * =============================================
 */

.pkp_navigation_primary li a {
  color: var(--texto-principal) !important;
  font-family: 'baskerville-urw', serif !important;
  font-weight: 700 !important;
  font-size: 16px;
  text-transform: uppercase;
  padding: 15px !important;
  margin: 0 10px !important;
  transition: color 0.3s ease;
}
.pkp_navigation_primary li a:hover {
  color: var(--tinto-up) !important;
}

.pkp_navigation_user a {
    color: var(--texto-principal) !important;
    font-weight: 700;
    transition: color 0.3s ease;
}
.pkp_navigation_user a:hover {
    color: var(--tinto-up) !important;
}

.pkp_navigation_user li:last-child a {
  background-color: var(--tinto-up) !important;
  color: var(--texto-claro) !important;
  padding: 10px 20px !important;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.pkp_navigation_user li:last-child a:hover {
  background-color: #6d112c !important;
  color: var(--texto-claro) !important;
}


/*
 * =============================================
 *  5. TÍTULOS DE PUBLICACIONES Y BARRA LATERAL
 * =============================================
 */

/* REDUCCIÓN ADICIONAL para títulos en la sección de Novedades */
.obj_monograph_summary .title a {
    color: var(--dorado-up) !important;
    text-decoration: none !important;
    font-size: 1.3rem !important; /* Se reduce el tamaño aquí */
    line-height: 1.4 !important; /* Se ajusta el interlineado */
}
.obj_monograph_summary .title a:hover {
    color: var(--tinto-up) !important;
}

.pkp_structure_sidebar .pkp_block .title {
    color: var(--texto-negro) !important;
}
.pkp_structure_sidebar a {
    color: var(--texto-negro) !important;
    transition: color 0.3s ease;
}
.pkp_structure_sidebar a:hover {
    color: var(--dorado-up) !important;
}


/*
 * =============================================
 *  6. ESTILOS PARA FORMULARIOS (LOGIN)
 * =============================================
 */

.page_login .buttons button[type="submit"] {
    background-color: var(--tinto-up) !important;
    color: var(--texto-claro) !important;
    border: 1px solid var(--tinto-up) !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    padding: 10px 25px !important;
    border-radius: 5px !important;
    transition: background-color 0.3s ease;
}
.page_login .buttons button[type="submit"]:hover {
    background-color: #6d112c !important;
    border-color: #6d112c !important;
}
.page_login .cmp_form a {
    color: var(--tinto-up) !important;
    text-decoration: underline;
}
.page_login .cmp_form a:hover {
    color: var(--dorado-up) !important;
}
.page_login .cmp_form input[type="text"]:focus,
.page_login .cmp_form input[type="password"]:focus,
.page_login .cmp_form textarea:focus {
    border-color: var(--dorado-up) !important;
    box-shadow: 0 0 5px rgba(181, 148, 16, 0.5) !important;
}

/*
 * =============================================
 *  7. AJUSTES FINALES RESPONSIVE Y DE PÁGINA DE DETALLE
 * =============================================
 */

.pkp_head_wrapper .pkp_site_nav_menu {
    max-width: 1200px;
    margin: 0 auto;
}

/* REDUCCIÓN ADICIONAL para el título principal en la página del libro */
.obj_monograph_full .page-header h1 {
    font-size: 1.8rem !important;
}

/* REDUCCIÓN ADICIONAL para los datos secundarios en la página del libro */
.obj_monograph_full .publication_details .label {
    font-size: 1.1rem !important; /* Se reduce el título de la sección (ej. "Colección") */
    font-weight: 700 !important;
}
.obj_monograph_full .publication_details .value {
    font-size: 1rem !important; /* Se reduce el contenido (ej. "Ingeniería") */
}