/* 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;
    }
}



















/* ==========================================================
   NUEVO ENCABEZADO INSTITUCIONAL — UNPH
   Omeka S | Diseño inspirado en el encabezado de Koha
   Agregar al final del CSS existente
   ========================================================== */

:root {
    --unph-azul: #12345a;
    --unph-azul-oscuro: #0b2545;
    --unph-azul-texto: #174b80;
    --unph-dorado: #c5a04a;
    --unph-blanco: #ffffff;
}

/* ENCABEZADO INSTITUCIONAL */
#site-header,
.site-header,
header.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 32, 60, 0.96) 0%,
            rgba(15, 52, 88, 0.88) 48%,
            rgba(15, 52, 88, 0.48) 100%
        ),
        url("https://repositorio.unph.edu.hn/files/asset/62a25b4a979da7c0a607cf4b97fd2e21132320c6.jpg") !important;
    background-size: cover !important;
    background-position: center 42% !important;
    background-repeat: no-repeat !important;
    border-bottom: 4px solid var(--unph-dorado) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

/* LOGO OFICIAL UNPH */
#site-header::before,
.site-header::before,
header.site-header::before {
    content: "";
    display: block;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(24px, calc((100% - 1180px) / 2));
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    background-image: url("https://repositorio.unph.edu.hn/files/asset/51ac9bf5563f72629dcd06ed86cfb7aa88ba732e.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* ÁREA DEL TÍTULO */
#site-header .site-title,
.site-header .site-title,
#site-header .site-branding,
.site-header .site-branding {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    padding-left: 145px !important;
}

/* TÍTULO DEL REPOSITORIO */
#site-header .site-title a,
.site-header .site-title a {
    color: #ffffff !important;
    font-size: clamp(19px, 2.2vw, 30px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* DESCRIPCIONES Y TEXTOS DEL ENCABEZADO */
#site-header p,
.site-header p,
#site-header .site-description,
.site-header .site-description {
    color: #f4f7fb !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* MENÚ DE NAVEGACIÓN */
#site-header nav,
.site-header nav,
#site-navigation,
.site-navigation,
.site-nav {
    position: relative;
    z-index: 4;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid rgba(197, 160, 74, 0.45);
}

/* ENLACES DEL MENÚ */
#site-header nav a,
.site-header nav a,
#site-navigation a,
.site-navigation a,
.site-nav a {
    color: var(--unph-azul-texto) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, background 0.2s ease;
}

/* EFECTO AL PASAR EL CURSOR */
#site-header nav a:hover,
.site-header nav a:hover,
#site-navigation a:hover,
.site-navigation a:hover,
.site-nav a:hover {
    color: var(--unph-azul-oscuro) !important;
    background: #edf3f9 !important;
}

/* EVITAR QUE EL ENCABEZADO TAPE LOS ELEMENTOS */
#site-header,
.site-header,
header.site-header {
    scroll-margin-top: 15px;
}

/* ADAPTACIÓN A TELÉFONOS */
@media screen and (max-width: 700px) {
    #site-header::before,
    .site-header::before,
    header.site-header::before {
        left: 12px;
        width: 58px;
        height: 58px;
    }

    #site-header .site-title,
    .site-header .site-title,
    #site-header .site-branding,
    .site-header .site-branding {
        padding-left: 80px !important;
    }

    #site-header .site-title a,
    .site-header .site-title a {
        font-size: 16px !important;
    }

    #site-header,
    .site-header,
    header.site-header {
        background-position: center !important;
    }
}







/* ==================================================
   UNPH: COLOR DE OPCIONES DE BÚSQUEDA Y NAVEGACIÓN
   ================================================== */

/* Opciones y enlaces del menú del encabezado */
#site-header nav a,
.site-header nav a,
#site-navigation a,
.site-navigation a,
.site-nav a,
header nav a {
    color: #FFFFFF !important;
    background-color: transparent !important;
}

/* Opciones de búsqueda: campos y listas desplegables */
#site-header input,
.site-header input,
#site-header select,
.site-header select,
#site-header button,
.site-header button,
#site-header .search-form,
.site-header .search-form {
    color: #FFFFFF !important;
}

/* Fondo blanco para los campos de búsqueda */
#site-header input,
.site-header input,
#site-header select,
.site-header select {
    background-color: #ffffff !important;
    border: 1px solid #FAD607 !important;
}

/* Texto de las opciones desplegables */
#site-header select option,
.site-header select option {
    color: #174b80 !important;
    background-color: #ffffff !important;
}

/* Hover de los enlaces del menú */
#site-header nav a:hover,
.site-header nav a:hover,
#site-navigation a:hover,
.site-navigation a:hover,
.site-nav a:hover,
header nav a:hover {
    color: #000000 !important;
    background-color: #FFE342 !important;
}

/* Botones de búsqueda */
#site-header button,
.site-header button {
    color: #ffffff !important;
    background-color: #FFE342 !important;
}




/* Cambiar el color del título superior del sitio UNPH */
#site-header .site-title a,
.site-header .site-title a,
header .site-title a,
.site-title a,
.site-title,
#site-title a,
header h1 a,
header h2 a {
    color: #FFE342 !important;
}

/* Evitar que el título cambie de color al pasar el cursor */
#site-header .site-title a:hover,
.site-header .site-title a:hover,
.site-title a:hover,
#site-title a:hover {
    color: #05B7ED !important;
}







/* Separador vertical dorado ajustable sin mover la búsqueda */
#site-header .site-title,
.site-header .site-title,
header .site-title {
    position: relative !important;
    border-left: none !important;
    padding-left: 25px !important;
    margin-left: 20px !important;
    min-height: 0 !important;
    height: auto !important;
    align-self: stretch;
}

#site-header .site-title::before,
.site-header .site-title::before,
header .site-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 125%;
    transform: translateY(-50%);
    width: 4px;
    height: 90px;
    background-color: #C9A227;
    border-radius: 2px;
}


















/* ==========================================
   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;
    }
}

