/* 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: 10px;
}

.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); }
}




.carousel-360 {
  margin-top: -120px;
}

/* FONDO GENERAL DEL SITIO */
body {
  background-color: #e6f1f8; /* azul claro policial */
}















/* CONTENEDOR GENERAL */
.bienvenida-con-avatar {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
}

/* TEXTO */
.bienvenida-texto {
  flex: 1;
}

.bienvenida-texto p {
  text-align: justify;
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
}

/* AVATAR */
.bienvenida-avatar {
  flex: 0 0 160px;
  text-align: center;
}

.bienvenida-avatar img {
  max-width: 160px;
  height: auto;
}
.bienvenida-avatar {
  flex: 0 0 120px;   /* ancho del espacio del avatar */
}

.bienvenida-avatar img {
  max-width: 100px; /* tamaño real del GIF */
  height: auto;
}











.institucional-container {
  max-width: 1200px;
  margin: auto;
  padding: 5px 20px;
  text-align: center;
}

.institucional-titulo {
  font-size: 36px;
  font-weight: bold;
  color: #0b2c5f;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.institucional-descripcion {
  font-size: 18px;
  color: #555;
  margin-bottom: 50px;
}

.institucional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.institucional-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.institucional-card h2 {
  color: #0b2c5f;
  margin-bottom: 15px;
  border-left: 5px solid #caa400;
  padding-left: 10px;
}

.institucional-card p {
  color: #444;
  line-height: 1.6;
  font-size: 16px;
}

.institucional-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.institucional-card p {
  color: #444;
  line-height: 1.7;
  font-size: 16px;
  text-align: justify;
}












.descripcion-unph {
  max-width: 1200px;
  margin: 40px auto;
  padding: 35px 45px;
  background-color: #ffffff;
  border-left: 6px solid #0b2c5f; /* Azul institucional */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.descripcion-unph p {
  font-size: 18px;
  line-height: 1.9;
  color: #333;
  text-align: justify;
  margin: 0;
}














.libro-horizontal {
  display: flex;
  gap: 25px;
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  align-items: flex-start;
}

/* 📘 Portada */
.imagen {
  position: relative;
  width: 200px;
}

.imagen img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
}

/* 🔵 Botón centrado sobre la portada */
.btn-centro {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  background: black;
  color: white !important; /* 👈 fuerza blanco */
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;

  opacity: 1;
  transition: 0.3s;
}

/* 🔧 Quitar azul en enlaces */
.btn-centro:link,
.btn-centro:visited,
.btn-centro:hover,
.btn-centro:active {
  color: white !important;
  text-decoration: none;
}

/* Animación suave */
.btn-centro {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el mouse */
.btn-centro:hover {
  transform: translate(-50%, -55%) scale(1.08); /* 👈 sube y crece */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);       /* 👈 sombra elegante */
}

/* 📄 Información */
.info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 📖 texto justificado */
.descripcion {
  text-align: justify;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}







/* 📱 RESPONSIVE PARA CELULAR */
@media (max-width: 768px) {

  .libro-horizontal {
    flex-direction: column; /* 👈 pasa de horizontal a vertical */
    align-items: center;
    text-align: center;
  }

  .imagen {
    width: 100%;
    max-width: 250px;
  }

  .imagen img {
    height: auto; /* 👈 evita deformación */
  }

  .info {
    width: 100%;
  }

  .descripcion {
    text-align: justify; /* mantiene estilo libro */
  }

  /* Botón siempre visible en celular */
  .btn-centro {
    position: static; /* 👈 quita el overlay */
    transform: none;
    margin-top: 10px;
    display: inline-block;
    opacity: 1;
  }




/* Ajustar espacio del título */
.info h2 {
  margin-bottom: 2px;  /* 👈 reduce separación */
  line-height: 1.3;
}

/* Ajustar espacio de la descripción */
.descripcion {
  margin-top: 0; /* 👈 elimina espacio extra */
}
}
















.libro-box{
    max-width:900px;
    margin:40px auto;
    padding:40px;
    background:linear-gradient(135deg,#ffffff,#f4f9ff);
    border-radius:30px;
    box-shadow:0 15px 40px rgba(0,0,0,.10);
    transition:.4s;
}

.libro-box:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 50px rgba(0,0,0,.15);
}

.portada-libro{
    text-align:center;
}

.portada-libro img{
    width:100%;
    max-width:500px;
    border-radius:20px;
    box-shadow:0 15px 30px rgba(0,0,0,.20);
    transition:.4s;
}

.portada-libro img:hover{
    transform:scale(1.03);
}

.btn-leer{
    display:inline-block;
    margin-top:25px;
    padding:15px 35px;
    background:linear-gradient(135deg,#0d47a1,#00c9a7);
    color:white;
    text-decoration:none;
    border-radius:50px;
    font-size:20px;
    font-weight:bold;
    transition:.3s;
}

.btn-leer:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,.25);
}

.titulo-libro{
    margin-top:30px;
    text-align:center;
    font-size:2.2rem;
    color:#0d2c54;
    line-height:1.4;
}

.linea-decorativa{
    width:120px;
    height:5px;
    margin:20px auto 30px;
    background:linear-gradient(to right,#0d47a1,#00c9a7);
    border-radius:10px;
}

.descripcion-libro{
    font-size:1.2rem;
    line-height:2;
    text-align:justify;
    color:#444;
}

@media(max-width:768px){

    .libro-box{
        padding:20px;
    }

    .titulo-libro{
        font-size:1.6rem;
    }

    .descripcion-libro{
        font-size:1rem;
    }
}

.portada-libro{
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.portada-libro img{
    width:100%;
    max-width:500px; /* Ajusta el tamaño máximo */
    height:auto;
    border-radius:20px;
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.titulo-libro{
    margin-top:35px;
    text-align:center;
    font-size:1rem; /* Más pequeño */
    font-weight:600;
    color:#0d2c54;
    line-height:1.5;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

@media(max-width:768px){

    .portada-libro img{
        max-width:350px;
    }

    .titulo-libro{
        font-size:1.2rem;
    }

}




.libro-box{
     width:100%;
    max-width:500px;
    height:600px; /* MISMA ALTURA PARA TODOS */
    margin:20px auto;
    padding:25px;
    background:#ABEBFF;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.10);

    display:flex;
    flex-direction:column;
}

.portada-libro{
    text-align:center;
}

.portada-libro img{
    width:100%;
    max-width:300px;
    max-height:450px;
    object-fit:contain;
    border-radius:15px;
    margin:auto;
    display:block;
}

.btn-leer{
    display:inline-block;
    margin-top:15px;
    padding:12px 25px;
    background:#FCF7B1;
    color:#FFFFFF;
    text-decoration:none;
    border-radius:40px;
}

.titulo-libro{
    margin-top:5px;
    text-align:center;
    font-size:1rem; /* MÁS PEQUEÑO */
    line-height:1.4;
    color:#1a1a1a;
}

.linea{
    width:100px;
    height:4px;
    background:#00c9a7;
    margin:5px auto;
    border-radius:10px;
}

/* DESCRIPCIÓN CON SCROLL */
.descripcion-libro{
    flex:1;
    overflow-y:auto;

    font-size:1rem;
    line-height:1.5;
    text-align:justify;

    padding-right:8px;
}

/* BARRA DE DESPLAZAMIENTO */

.descripcion-libro::-webkit-scrollbar{
    width:8px;
}

.descripcion-libro::-webkit-scrollbar-track{
    background:#f1f1f1;
    border-radius:10px;
}

.descripcion-libro::-webkit-scrollbar-thumb{
    background:#0d47a1;
    border-radius:10px;
}


.libro-box{
    box-sizing:border-box;
}


















/*==========================
 HERO
===========================*/

.hero-biblioteca{

width:100%;

padding:50px;

background:linear-gradient(135deg,#0a4d68,#088395,#05bfdb);

border-radius:18px;

box-sizing:border-box;

margin-bottom:40px;

overflow:hidden;

}


.hero-texto{

text-align:center;

color:black;

margin-bottom:30px;

}

.hero-texto h1{

font-size:42px;

margin-bottom:15px;

font-weight:700;

}

.hero-texto p{

font-size:20px;

opacity:.95;

}


/*======================
SLIDER
======================*/

.slider{

max-width:1000px;

margin:auto;

overflow:hidden;

border-radius:18px;

box-shadow:0 15px 40px rgba(0,0,0,.30);

}

.slides{

display:flex;

width:500%;

animation:slide 25s infinite;

}

.slides img{

width:20%;

height:550px;

object-fit:cover;

transition:.5s;

}

.slides img:hover{

transform:scale(1.05);

}


/*======================
ANIMACION
======================*/

@keyframes slide{

0%{

margin-left:0;

}

15%{

margin-left:0;

}

20%{

margin-left:-100%;

}

35%{

margin-left:-100%;

}

40%{

margin-left:-200%;

}

55%{

margin-left:-200%;

}

60%{

margin-left:-300%;

}

75%{

margin-left:-300%;

}

80%{

margin-left:-400%;

}

100%{

margin-left:-400%;

}

}


/*=====================
RESPONSIVE
======================*/

@media(max-width:900px){

.hero-texto h1{

font-size:28px;

}

.hero-texto p{

font-size:16px;

}

.slides img{

height:300px;

}

}












































/* ===== 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;
    }
}



