/* Contenedor de todas las colecciones */
.colecciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas */
  gap: 70px; /* espacio entre filas y columnas */
  justify-items: center; /* centra cada item en su columna */
  padding: 40px;
}

/* Enlace de cada colección */
.coleccion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit; /* hereda el color del texto */
  transition: transform 0.3s;
}

/* Imagen de cada colección */
.coleccion-item img {
  width: 150px;      /* tamaño uniforme para todas */
  height: 150px;     /* cuadrado uniforme */
  object-fit: cover; /* mantiene proporción y recorta si es necesario */
  border-radius: 10px;
  transition: transform 0.3s;
}

/* Efecto hover sobre la imagen */
.coleccion-item:hover img {
  transform: scale(1.05);
}

/* Título debajo de la imagen */
.coleccion-item span {
  margin-top: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
}

/* Responsivo: columnas ajustables en pantallas más pequeñas */
@media (max-width: 1200px) {
  .colecciones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .colecciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .colecciones-grid {
    grid-template-columns: 1fr;
  }
}










.titulo-general {
  text-align: center;
  margin-bottom: 20px; /* espacio antes de las colecciones */
  margin-top: 30px;
}

.titulo-general h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0c3c78; /* puedes cambiarlo */
  margin-bottom: 10px;
}

.flecha-abajo {
  font-size: 40px;
  color: #0c3c78;
  animation: bajar-subir 1.5s infinite ease-in-out;
}

/* Animación de flecha */
@keyframes bajar-subir {
  0% { transform: translateY(0); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}











/* CONTENEDOR DE LOGOS EN LÍNEA */
.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;               /* separación entre logos */
  flex-wrap: nowrap;       /* 🔹 evita que se bajen de línea */
  overflow-x: auto;        /* 🔹 si hay demasiados, permite desplazarse horizontalmente */
  padding: 15px 10px;
  scrollbar-width: thin;   /* scroll estilizado */
}

/* ESTILO DE LOS LOGOS */
.logos-container img {
  height: 100px;             /* 🔹 tamaño uniforme */
  width: auto;
  transition: transform 0.3s ease, 
              filter 0.3s ease,
              box-shadow 0.3s ease;
  filter: grayscale(20%);   /* tono elegante */
  cursor: pointer;
}

/* EFECTO AL PASAR EL CURSOR */
.logos-container img:hover {
  transform: scale(1.15);    /* agranda suavemente */
  filter: grayscale(0%);     /* recupera color */
  box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
}

/* OPCIONAL: ocultar barra de scroll */
.logos-container::-webkit-scrollbar {
  height: 6px;
}
.logos-container::-webkit-scrollbar-thumb {
  background: #0077cc;
  border-radius: 4px;
}








.nav-botones {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 10px 0;
}

.btn-nav {
    display: inline-block;
    background: #175DE8; /* azul institucional */
    color: #FFFFFF;
    padding: 6px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-nav:hover {
    background: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.btn-atras::before {
    content: "⟵ ";
}

.btn-siguiente::after {
    content: " ⟶";
}















/* CONTENEDOR GENERAL */
.carousel-360 {
  width: 50%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  margin: 60px auto;
}

/* ANILLO GIRATORIO */
.carousel-ring {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  animation: giro360 25s linear infinite;
}

/* ITEMS */
.carousel-item {
  position: absolute;
  width: 160px;
  height: 200px;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
}

/* IMÁGENES */
.carousel-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* TÍTULOS */
.carousel-item span {
  display: block;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

/* POSICIÓN CIRCULAR (5 ELEMENTOS = 72°) */
.carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(260px); }
.carousel-item:nth-child(2) { transform: rotateY(72deg) translateZ(260px); }
.carousel-item:nth-child(3) { transform: rotateY(144deg) translateZ(260px); }
.carousel-item:nth-child(4) { transform: rotateY(216deg) translateZ(260px); }
.carousel-item:nth-child(5) { transform: rotateY(288deg) translateZ(260px); }

/* ANIMACIÓN */
@keyframes giro360 {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* PAUSA AL PASAR EL MOUSE */
.carousel-ring:hover {
  animation-play-state: paused;
}



.carousel-360 {
  margin-top: -120px;
}

/* FONDO GENERAL DEL SITIO */
body {
  background-color: #e6f1f8; /* azul claro policial */
}



















/* ELIMINAR EN CASO QUE NO SE HAGA DESCRIPCIÓN EN CADA FICHA*/
.recurso-card{
    max-width:950px;
    margin:40px auto;
    background:#ffffff;
    border-radius:24px;
    padding:40px;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
    transition:all .35s ease;
    border:1px solid #e5e7eb;
    position:relative;
    overflow:hidden;
}

/* EFECTO HOVER */

.recurso-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 45px rgba(0,0,0,0.12);
}

/* LINEA SUPERIOR */

.recurso-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(90deg,#1d4ed8,#0f172a);
}

/* BADGE */

.recurso-badge{
    display:inline-block;
    background:#dbeafe;
    color:#1d4ed8;
    padding:8px 18px;
    border-radius:40px;
    font-size:14px;
    font-weight:700;
    margin-bottom:22px;
}

/* TÍTULO */

.recurso-titulo{
    font-size:20px;
    line-height:1.25;
    color:#0f172a;
    margin-bottom:20px;
    font-weight:800;
}

/* META */

.recurso-meta{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
    margin-bottom:30px;
    color:#475569;
    font-size:16px;
}

/* DESCRIPCIÓN */

.recurso-descripcion{
    background:#f8fafc;
    border-left:5px solid #2563eb;
    padding:25px;
    border-radius:16px;
    font-size:17px;
    line-height:1.9;
    color:#334155;
    margin-bottom:35px;
}

/* BOTONES */

.recurso-botones{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

/* BOTÓN PDF */

.btn-pdf{
    display:inline-block;
    background:linear-gradient(135deg,#dc2626,#991b1b);
    color:#fff !important;
    text-decoration:none;
    padding:15px 28px;
    border-radius:14px;
    font-weight:700;
    transition:all .3s ease;
    box-shadow:0 10px 25px rgba(220,38,38,.25);
}

.btn-pdf:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 35px rgba(220,38,38,.35);
}

/* BOTÓN ONLINE */

.btn-online{
    display:inline-block;
    background:linear-gradient(135deg,#0f172a,#2563eb);
    color:#fff !important;
    text-decoration:none;
    padding:15px 28px;
    border-radius:14px;
    font-weight:700;
    transition:all .3s ease;
    box-shadow:0 10px 25px rgba(37,99,235,.25);
}

.btn-online:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 35px rgba(37,99,235,.35);
}

/* RESPONSIVE */

@media(max-width:768px){

    .recurso-card{
        padding:25px;
    }

    .recurso-titulo{
        font-size:28px;
    }

    .recurso-meta{
        flex-direction:column;
        gap:10px;
    }

}







/* UNPH: ocultar descarga y compartir en Universal Viewer */
.uv.universal-viewer .download.btn,
.uv.universal-viewer .share.btn {
    display: none !important;
}









/* ===== PRUEBA DIRECTA DEL ENCABEZADO UNPH ===== */

header {
    position: relative !important;
    min-height: 180px !important;
    box-sizing: border-box !important;
    padding: 30px 25px 30px 155px !important;

    background-color: #08264b !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 27, 55, 0.90),
            rgba(5, 35, 68, 0.45)
        ),
        url("https://repositorio.unph.edu.hn/files/asset/62a25b4a979da7c0a607cf4b97fd2e21132320c6.jpg") !important;

    background-position: center, center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;

    border-bottom: 4px solid #ffffff !important;
}

/* Escudo oficial */
header::before {
    content: "" !important;
    position: absolute !important;
    left: 22px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    display: block !important;
    width: 105px !important;
    height: 125px !important;

    background-image: url("https://repositorio.unph.edu.hn/files/asset/51ac9bf5563f72629dcd06ed86cfb7aa88ba732e.png") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;

    z-index: 10 !important;
    pointer-events: none !important;
}

/* Texto sobre la fotografía */
header h1,
header h2,
header h3,
header .site-title,
header #site-title {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75) !important;
}

/* Adaptación móvil */
@media (max-width: 600px) {
    header {
        padding: 145px 18px 24px !important;
        min-height: 230px !important;
    }

    header::before {
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 85px !important;
        height: 105px !important;
    }
}




















/* ==========================================================
   UNIVERSIDAD NACIONAL DE LA POLICIA DE HONDURAS
   SISTEMA BIBLIOTECARIO UNPH
   ENCABEZADO INSTITUCIONAL - VERSION ELEGANTE
   OMEKA S | TEMA DEFAULT
   ========================================================== */

:root {
    --unph-azul: #102F52;
    --unph-azul-profundo: #071D35;
    --unph-azul-medio: #1C4770;
    --unph-dorado: #C9A227;
    --unph-dorado-claro: #F0D987;
    --unph-blanco: #FFFFFF;
}

/* ==========================================================
   1. ENCABEZADO PRINCIPAL
   ========================================================== */

header {
    position: relative !important;
    min-height: 205px !important;
    box-sizing: border-box !important;

    padding: 35px 35px 35px 175px !important;

    background-color: var(--unph-azul-profundo) !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(7, 29, 53, 0.97) 0%,
            rgba(12, 46, 79, 0.91) 48%,
            rgba(12, 46, 79, 0.60) 100%
        ),
        url("https://repositorio.unph.edu.hn/files/asset/62a25b4a979da7c0a607cf4b97fd2e21132320c6.jpg") !important;

    background-position: center, center 43% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;

    border: none !important;
    border-bottom: 5px solid var(--unph-dorado) !important;

    box-shadow: 0 5px 18px rgba(0,0,0,.18) !important;
}

/* ==========================================================
   2. ESCUDO INSTITUCIONAL
   Conservamos el método que ya funciona
   ========================================================== */

header::before {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;
    left: 30px !important;

    transform: translateY(-50%) !important;

    display: block !important;

    width: 112px !important;
    height: 135px !important;

    background-color: rgba(255,255,255,.96) !important;

    background-image:
        url("https://repositorio.unph.edu.hn/files/asset/51ac9bf5563f72629dcd06ed86cfb7aa88ba732e.png") !important;

    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;

    border: 2px solid var(--unph-dorado) !important;
    border-radius: 14px !important;

    box-shadow: 0 5px 16px rgba(0,0,0,.30) !important;

    z-index: 20 !important;
    pointer-events: none !important;
}

/* ==========================================================
   3. TITULO INSTITUCIONAL
   ========================================================== */

#site-title,
.site-title,
header h1 {
    position: relative !important;
    z-index: 3 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
}

#site-title a,
.site-title a,
header h1 a {
    color: var(--unph-blanco) !important;

    font-family: "Helvetica Neue", Arial, sans-serif !important;

    font-size: clamp(23px, 2.5vw, 35px) !important;
    font-weight: 800 !important;

    line-height: 1.25 !important;
    letter-spacing: .6px !important;

    text-decoration: none !important;

    text-shadow: 0 3px 8px rgba(0,0,0,.55) !important;

    transition: color .25s ease !important;
}

#site-title a:hover,
.site-title a:hover,
header h1 a:hover {
    color: var(--unph-dorado-claro) !important;
}

/* Descripcion institucional existente */

header p,
header .site-description {
    position: relative;
    z-index: 3;

    color: #F0F3F8 !important;

    font-size: 16px !important;
    font-weight: 400;

    letter-spacing: .4px;

    text-shadow: 0 2px 5px rgba(0,0,0,.55);
}

/* Detalle decorativo dorado */

header::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 45%;
    height: 5px;

    background: linear-gradient(
        90deg,
        var(--unph-dorado),
        var(--unph-dorado-claro),
        transparent
    );

    z-index: 5;
    pointer-events: none;
}

/* ==========================================================
   4. MENU DE NAVEGACION
   ========================================================== */

#top-nav,
#site-navigation,
.site-navigation,
.site-nav,
header nav {
    background: var(--unph-azul-profundo) !important;

    border: none !important;
    border-bottom: 1px solid rgba(201,162,39,.65) !important;

    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

#top-nav a,
#site-navigation a,
.site-navigation a,
.site-nav a,
header nav a {
    display: inline-block;

    color: #FFFFFF !important;
    background: transparent !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    padding: 15px 18px !important;

    transition: all .25s ease !important;
}

#top-nav a:hover,
#site-navigation a:hover,
.site-navigation a:hover,
.site-nav a:hover,
header nav a:hover {
    color: var(--unph-dorado-claro) !important;
    background: rgba(255,255,255,.09) !important;
}

/* ==========================================================
   5. BUSCADOR
   ========================================================== */

header input[type="search"],
header input[type="text"],
#top-nav input[type="search"] {
    background: #FFFFFF !important;
    color: var(--unph-azul-profundo) !important;

    border: 1px solid var(--unph-dorado) !important;
    border-radius: 7px !important;

    padding: 10px 13px !important;
}

header button,
header input[type="submit"] {
    background: var(--unph-dorado) !important;
    color: var(--unph-azul-profundo) !important;

    border: none !important;
    border-radius: 7px !important;

    font-weight: 700 !important;
    padding: 10px 16px !important;

    cursor: pointer;
}

/* ==========================================================
   6. ADAPTACION A TABLETAS Y TELEFONOS
   ========================================================== */

@media screen and (max-width: 768px) {

    header {
        min-height: 165px !important;
        padding: 28px 15px 25px 105px !important;

        background-position: center, 65% center !important;
    }

    header::before {
        left: 12px !important;

        width: 75px !important;
        height: 95px !important;

        border-radius: 10px !important;
    }

    #site-title a,
    .site-title a,
    header h1 a {
        font-size: 20px !important;
    }

    header p,
    header .site-description {
        font-size: 13px !important;
    }

    #top-nav a,
    #site-navigation a,
    .site-navigation a,
    .site-nav a,
    header nav a {
        font-size: 13px !important;
        padding: 10px 9px !important;
    }
}

@media screen and (max-width: 420px) {

    header {
        min-height: 145px !important;
        padding-left: 88px !important;
    }

    header::before {
        width: 65px !important;
        height: 80px !important;
    }

    #site-title a,
    .site-title a,
    header h1 a {
        font-size: 17px !important;
    }
}

/* ==========================================================
   FIN DEL ENCABEZADO INSTITUCIONAL UNPH
   ========================================================== */

















/* ==========================================
   UNPH - PERSONALIZACIÓN DEL LECTOR PDF
   Azul institucional y dorado
   ========================================== */

/* Fondo general de las páginas con documentos */
body:has(iframe),
body:has(embed),
body:has(object) {
    background-color: #f1f4f8;
}

/* Marco del visor PDF */
iframe[src*=".pdf"],
iframe[src*="pdf"],
embed[type="application/pdf"],
object[type="application/pdf"] {
    display: block;
    width: 100% !important;
    max-width: 1200px;
    min-height: 850px;
    margin: 20px auto !important;
    border: 2px solid #C9A227 !important;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 31, 63, 0.15);
}

/* Contenedor de documentos */
.media-render,
.media-embeds,
.resource-media,
.media-list {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

/* Enlaces para abrir documentos */
.resource-link a,
.media-render a,
.resource-media a {
    color: #174b80 !important;
    font-weight: 600;
}

/* Efecto al pasar el cursor sobre los enlaces */
.resource-link a:hover,
.media-render a:hover,
.resource-media a:hover {
    color: #C9A227 !important;
}

/* Adaptación a pantallas pequeñas */
@media screen and (max-width: 768px) {
    iframe[src*=".pdf"],
    iframe[src*="pdf"],
    embed[type="application/pdf"],
    object[type="application/pdf"] {
        min-height: 600px;
        width: 100% !important;
        border-radius: 3px;
    }
}







/* ==================================================
   PIE DE PAGINA INSTITUCIONAL - UNPH
   OMEKA S / TEMA DEFAULT
   ================================================== */

:root {
    --unph-footer-azul: #0B2340;
    --unph-footer-oscuro: #061629;
    --unph-footer-dorado: #D5A629;
    --unph-footer-texto: #E8EDF4;
}

/* Contenedor principal */

footer {
    position: relative;
    background: var(--unph-footer-azul) !important;
    color: var(--unph-footer-texto) !important;
    padding: 45px 30px 20px !important;
    border-top: 5px solid var(--unph-footer-dorado) !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,.12);
    margin-top: 50px;
}

/* Títulos */

footer h1,
footer h2,
footer h3,
footer h4 {
    color: #FFFFFF !important;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Párrafos */

footer p,
footer li,
footer span {
    color: #D7E0EB;
    line-height: 1.7;
}

/* Enlaces */

footer a {
    color: #F5D77A !important;
    text-decoration: none !important;
    transition: all .25s ease;
}

footer a:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* Separadores */

footer hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.18);
    margin: 25px 0;
}

/* Franja inferior */

footer .footer-bottom {
    background: var(--unph-footer-oscuro);
    padding: 15px;
    text-align: center;
}

/* Evitar imágenes desproporcionadas */

footer img {
    max-width: 100%;
    height: auto;
}

/* Adaptación móvil */

@media screen and (max-width: 768px) {
    footer {
        padding: 30px 18px 18px !important;
        margin-top: 30px;
    }

    footer h2,
    footer h3 {
        font-size: 18px;
    }

    footer p {
        font-size: 14px;
    }
}





















/* =====================================================
   UNPH - CORRECCION DE DISTRIBUCION DE METADATOS
   OMEKA S - TEMA DEFAULT
   AGREGAR AL FINAL DEL CSS EXISTENTE
   ===================================================== */

/* Identificar el contenedor que agrupa las propiedades */
.resource.show :has(> .property) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Tarjetas individuales */
.resource.show :has(> .property) > .property {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px !important;
    box-sizing: border-box !important;

    background: #ffffff !important;
    border: 1px solid #e1e8ef !important;
    border-left: 5px solid #C9A227 !important;
    border-radius: 9px !important;

    box-shadow: 0 3px 12px rgba(0,0,0,.06) !important;
}

/* Etiquetas bibliográficas */
.resource.show .property-label {
    display: block !important;
    color: #102F52 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
}

/* Valores bibliográficos */
.resource.show .property-values,
.resource.show .property-value {
    color: #333f4d !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere !important;
}

/* Adaptación para móviles */
@media screen and (max-width: 768px) {
    .resource.show :has(> .property) {
        grid-template-columns: 1fr !important;
    }
}








/* ==================================================
   VISOR PDF VIEWERJS - AJUSTE PARA MÓVILES
   ================================================== */

/* Contenedor del visor */
.resource.show iframe[src*="ViewerJs"] {
    width: 80% !important;
    height: 420px !important;
    max-width: 800px !important;
    display: block !important;
    margin: 25px auto !important;
    border: 2px solid #C9A227 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}

/* Adaptación móvil */
@media screen and (max-width: 768px) {
    .resource.show iframe[src*="ViewerJs"] {
        width: 100% !important;
        height: 420px !important;
        max-width: 100% !important;
        margin: 20px auto !important;
        touch-action: pan-x pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }














/* SELLO EDITORIAL - ELIMINAR EFECTO DE FONDO BLANCO */
body.page.site-page-SEUNPH .contenedor-logo {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.page.site-page-SEUNPH .contenedor-logo img {
    background: transparent !important;
    mix-blend-mode: multiply !important;
    display: block !important;
    object-fit: contain !important;
}

/* =====================================================
   SELLO EDITORIAL - AMPLIAR LOGO SIN DESPLAZAR CONTENEDORES
   EXCLUSIVO PARA SEUNPH
   ===================================================== */

body.page.site-page-SEUNPH .contenedor-logo {
    background: transparent !important;
    position: relative !important;
    z-index: 5 !important;
}

body.page.site-page-SEUNPH .contenedor-logo img {
    width: 89px !important;
    height: 40px !important;
    object-fit: contain !important;
    transform: scale(1.7) !important;
    transform-origin: left center !important;
    display: block !important;
}
