@import url('https://fontlibrary.org/face/amstelvar');
@import url('https://fonts.google.com/specimen/Manrope');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    line-height: 1.5;
    background-color: #f2f3ec; /*fondo para todo el sitio*/
}

/*TIPO DE LETRA*/
.obj_monograph_summary .title {
    font-family: "Manrope", sans-serif;
}
.pkp_structure_main h2 {
    font-family: "Manrope", sans-serif;
}
.page .series .series-item h2 a {
    font-family: "Manrope", sans-serif;
}

    /*reeteo de fondo por defecto en titulos*/
.cmp_monographs_list>.title {
    background: unset;
}

/*TITULO PPAL DE TODAS LAS PAGE*/
.pkp_structure_main .page h1 {
    text-align: center;
    font-family: 'Manrope', sans-serif!important;
    font-size: 4rem;
    font-weight: 400;
    position: relative;
    margin-bottom: 6rem;
}
/*LINEA DEBAJO DEL TITULO DE CADA SECCION*/
.page h1::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 50px;
    background-color: orange;
}
/*ENLACES A NIVEL GRAL*/
a { 
    color: #113545;
}
a:hover { 
    color: #2a7696;
}
.pkp_navigation_user>li>a:focus {
    background: #113545;
}
/*BOTONES*/
.cmp_button, .cmp_button, .cmp_download_link, .cmp_download_link, .page_login .buttons button, .page_login .buttons button, .page_lost_password .buttons button, .page_lost_password .buttons button, .page_search .cmp_search button, .page_search .cmp_search button, .obj_monograph_full .files .link a, .obj_monograph_full .files .pub_format_remote a, .obj_monograph_full .files .pub_format_single a, .obj_monograph_full .files .link a, .obj_monograph_full .files .pub_format_remote a, .obj_monograph_full .files .pub_format_single a {
    border: none;
    border-top-color: none;
    border-radius: 3rem;
    color: #ffffff;
    text-shadow: none;
    background: #113545;
}
.cmp_form .buttons button {
    border: none;
    border-top-color: none;
    border-radius: 3rem;
    color: #ffffff;
    text-shadow: none;
    background: #113545;
}
.cmp_button:hover, .cmp_button:focus, .cmp_download_link:hover, .cmp_download_link:focus, .page_login .buttons button:hover, .page_login .buttons button:focus, .page_lost_password .buttons button:hover, .page_lost_password .buttons button:focus, .page_search .cmp_search button:hover, .page_search .cmp_search button:focus, .obj_monograph_full .files .link a:hover, .obj_monograph_full .files .pub_format_remote a:hover, .obj_monograph_full .files .pub_format_single a:hover, .obj_monograph_full .files .link a:focus, .obj_monograph_full .files .pub_format_remote a:focus, .obj_monograph_full .files .pub_format_single a:focus {
    background: #1f5a74;
    border-color: #1f5a74;
}
.cmp_form .buttons button:hover {
    background: #1f5a74;
    border-color: #1f5a74;
    color: #ffffff;
    cursor: pointer;
}

/*NAV*/
header {
    font-weight: 300;
}
.pkp_head_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}
header .pkp_head_wrapper .pkp_navigation_user_wrapper {
    left: unset;
}
header .pkp_head_wrapper .pkp_site_name_wrapper {
    width: 50%;
}
/*Hover del menú*/
.pkp_navigation_primary>li>a:hover {
    border-color: rgb(17 53 69);
}
.pkp_navigation_primary>li>a:focus {
    background: rgb(43 74 87);
}

/*CATALOGO*/
.page_catalog .pkp_series_nav_menu {
    border-top: none;
}

.pkp_structure_main .page .monograph_count {
    display: none;
}
    /*Bordes*/
.cmp_monographs_list {
    border-top: none;
}
.cmp_monographs_list .obj_monograph_summary:first-child {
    border-right: none;
}
.cmp_monographs_list .obj_monograph_summary+.obj_monograph_summary {
    border-left: none;
}
.pkp_structure_main:before, .pkp_structure_main:after {
    width: 0px;
}
.cmp_monographs_list .row:after,
.cmp_monographs_list .row:before {
    content: unset;
}
.cmp_monographs_list .row {
    border-bottom: none;
}
.cmp_monographs_list .obj_monograph_summary {
    border-bottom: none;
}
/*Vista de libros*/
.obj_monograph_summary>*, .obj_monograph_summary .title {
    margin-left: 0;
}
.obj_monograph_summary .cover {
    width: 100%;
}
/* Estilo general para el contenedor principal */
.cmp_monographs_list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Mínimo 200px por libro */
    gap: 16px; /* Espaciado entre libros */
}

/* Estilo individual para cada libro */
.obj_monograph_summary {
display: flex;
flex-direction: column;
padding: 16px;
text-align: center;
transition: transform 0.2s;
}

/* Oculta el bloque que contiene la fecha */
.obj_monograph_summary .date {
display: none;
}

/* Asegura un tamaño consistente para las imágenes */
.obj_monograph_summary .cover img {
max-width: 100%;
height: auto;
border-radius: 4px;
}

/* Estilo para el título del libro */
.obj_monograph_summary .title {
margin-top: 12px; 
font-size: 1rem;
font-weight: bold;
color: #333;
}

/* Estilo para el autor */
.obj_monograph_summary .author {
margin-top: 8px; 
font-size: 0.9rem;
color: #555;
}

/* Oculta las filas extra para evitar separación innecesaria */
.row {
display: contents;
}
/*Ancho del contenido del libro*/
.cmp_monographs_list .obj_monograph_summary {
width: 100%;
}

/*SERIES INDIVIDUALES*/
.page_catalog_series .about_section.has_image.has_description {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.page_catalog_series .about_section.has_image.has_description .cover img {
    width: 100%;
}
.page_catalog_series .about_section.has_image.has_description .description {
    margin-top: 2rem;
}
.page.page_catalog_series h1 {
    font-size: 3.5rem;
    margin-bottom: 10rem;
}
.pkp_structure_main .page .about_section .cover {
    width: 100%;
}

/*Pagina Colecciones*/
  /* Catalog Container */
.pkp_page_colecciones .pkp_structure_main {
    width: 100%;
}

.series {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
padding: 20px;
max-width: 1200px;
width: 100%;
margin-top: 5rem;
}

/* Card Styles */
.series-item {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
height: 300px;
border: 1px solid #ccc;
text-decoration: none;
color: #000;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
border: 1.5px solid #5f5f5f;
}

.series-item h2 {
margin: 0;
font-size: 1.5rem;
text-align: center;
}

.series-item h2 a {
text-decoration: none;
color: #000;
}

.series-item h2 a:hover {
color: #185D74;
}

.series-item .underline {
width: 50px;
height: 2px;
background-color: #185D74;
margin: 10px 0;
}

/* Hover Text */
.hover-text {
position: absolute;
bottom: 20px;
right: 20px; /* Alinea el texto hacia la derecha */
font-size: 0.9rem;
font-weight: bold;
opacity: 0;
color: #185D74;
transition: opacity 0.3s ease, color 0.3s ease;
}

.series-item:hover .hover-text {
opacity: 1; /* Mostrar el texto al hacer hover */
text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
.series {
    grid-template-columns: repeat(2, 1fr); /* Dos tarjetas por fila */
}
}

@media (max-width: 576px) {
.series {
    grid-template-columns: 1fr; /* Una tarjeta por fila */
}
}
  
  




  
/*FOOTER*/
.pkp_structure_footer_wrapper {
    background: unset;
    margin: 0;
}
.pkp_brand_footer {
    display: none;
}
.pkp_structure_footer {
    width: 100%;
    text-align: unset;
    padding-left: 0;
    padding-right: 0;
}
.pkp_footer_content {
    padding: unset;
    text-align: unset;
}

footer {
    background-color: #113545; 
    padding: 20px;
    padding-top: 4rem;
    color: #ffffff;
}

.footer-logo {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

#ft-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

#ft-logo h3{
    margin-left: 1rem;
}

/*Tamaño de logo en footer*/
.footer-logo img {
    max-width: 120px;
}

.footer-social {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-social a {
    transition: all .3s cubic-bezier(.77, 0, .175, 1);
    overflow: hidden;
}

.footer-social a:hover {
    transform: translate(0, -5px);
}

.footer-social a img {
    width: 30px;
    height: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: .5px solid #f7f7f7;
    border-top: .5px solid #f7f7f7;
    margin-top: 100px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-info {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: .5px solid #f7f7f7;;
    padding-bottom: 20px;
}

.footer-info p {
    margin-bottom: 1rem;
}

.footer-info div:nth-child(n+2):nth-child(-n+4) {
    border-left: .5px solid #f7f7f7;
    padding-left: 40px;
}

.footer-info h4 {
    font-size: 9px;
    margin-bottom: 10px;
}

.footer-info a {
    color: #ffffff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 9px;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 1024px) {
    .cmp_monographs_list {
        grid-template-columns: repeat(3, 1fr); /* 3 libros por fila en pantallas medianas */
    }
}
@media (min-width: 992px) {
    /*Bordes btn busqueda nav*/
    .pkp_navigation_search_wrapper {
        border: 1px solid #322a2a;
        border-radius: 4rem;
    }
    .pkp_navigation_search_wrapper a:hover {
        border-color: none!important;
    }
    .pkp_navigation_search_wrapper a:focus {
        background: none;
        color: #000000;
    }
    .pkp_navigation_primary>li:last-child a {
        margin-right: unset;
    }
}

@media (min-width: 769px) {
    /*Cuando hay 1 solo libro cargado la imagen se veia ancha*/
    .obj_monograph_summary .cover img {   
        width: 143px;
    }
    .footer-info {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .footer-logo,
    .footer-links {
        text-align: left;
    }
}

@media (max-width: 768px) {
    /*Catalogo*/
    .cmp_monographs_list {
    grid-template-columns: repeat(2, 1fr); 
    }
    .obj_monograph_summary .cover img {
        max-height: unset;
    }

    /*SERIES DE COLECCIONES*/
    /*Cuando hay 1 solo libro cargado la imagen se veia ancha*/
    .page.page_catalog_series .obj_monograph_summary .cover img {   
        width: 100%;
    }

    /*Footer*/
    .footer-links {
        align-items: center;
        flex-direction: column;
        margin-top: 0;
    }
    .footer-logo {
        align-items: center;
        flex-direction: column;
    }
    .footer-social {
        margin-top: 30px;
    }
    #ft-logo {
        justify-content: center;
    }
}

@media (max-width: 830px) {
    .footer-info div:nth-child(n+2):nth-child(-n+4) {
        border-left: none;
        padding-left: unset;
    }
}

@media (max-width: 991px) {
    /*menú*/
    header .pkp_head_wrapper .pkp_site_name_wrapper {
        width: 100%;
    }
    .pkp_site_name .is_img img {
        max-height: 150px;
        max-width: none;
        height: 70px;
    }
    .pkp_site_name {
        margin-top: -20px;
    }
    #headerNavigationContainer .pkp_head_wrapper{
        height: 80px;
    }
} 

@media (max-width: 576px) {
    .pkp_structure_main .page h1 {
        line-height: normal;
    }
    /*Vista catalogo*/
    .cmp_monographs_list {
    grid-template-columns: 1fr;
    }
    .obj_monograph_summary .cover img {
        width: 100%;
        padding: 0 40px;
    }

    /*Footer*/
    .footer-social {
        width: 100%;
        justify-content: space-between;
    }
    .footer-links {
        grid-row-gap: 20px;
    }
}

