/* 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;
}







/* 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 */
}
}













/* CONTENEDOR GENERAL */
.equipo-investigacion {
    width: 100%;
    padding: 50px 25px;
    box-sizing: border-box;
}

/* TITULO */
.titulo-equipo {
    text-align: center;
    font-size: 40px;
    color: #1d3557;
    margin-bottom: 60px;
    font-weight: bold;
}

/* GRID */
.grid-investigadores {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 50px 40px;
}

/* TARJETAS */
.investigador {
    background: #ffffff;

    border-radius: 22px;

    padding: 30px 20px;

    text-align: center;

    box-shadow: 0 5px 18px rgba(0,0,0,0.08);

    transition: all 0.3s ease;
}

/* EFECTO HOVER */
.investigador:hover {
    transform: translateY(-10px);

    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* IMAGEN */
.investigador img {

    width: 170px;
    height: 170px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #1d3557;

    margin-bottom: 22px;
}

/* NOMBRE */
.investigador h3 {

    font-size: 19px;

    color: #222;

    margin-bottom: 14px;

    line-height: 1.5;
}

/* TEXTOS */
.investigador p {

    margin: 10px 0;

    font-size: 14px;
}

/* ENLACES */
.investigador a {

    text-decoration: none;

    color: #0066cc;

    word-break: break-word;
}

.investigador a:hover {

    text-decoration: underline;
}

/* BOTON GOOGLE SCHOLAR */
.scholar a {

    display: inline-block;

    margin-top: 10px;

    padding: 8px 15px;

    background: #4285F4;

    color: #fff !important;

    border-radius: 10px;

    font-size: 13px;

    font-weight: bold;

    transition: 0.3s ease;
}

.scholar a:hover {

    background: #2b6ad8;

    transform: scale(1.05);

    text-decoration: none;
}

/* RESPONSIVE */

/* TABLET */
@media (max-width: 1200px) {

    .grid-investigadores {

        grid-template-columns: repeat(3, 1fr);
    }
}

/* MOVIL */
@media (max-width: 768px) {

    .grid-investigadores {

        grid-template-columns: repeat(2, 1fr);
    }

    .investigador img {

        width: 140px;
        height: 140px;
    }
}

/* MOVIL PEQUEÑO */
@media (max-width: 480px) {

    .grid-investigadores {

        grid-template-columns: 1fr;
    }
}














/* CONTENEDOR */
.contenedor-logo {

    position: relative;

    width: 100%;
}

/* LOGO */
.logo-laurel {

    position: absolute;

    top: -30px;

    left: 40px;
 

    z-index: 10;

    transition: 0.0s ease;
}

/* IMAGEN */
.logo-laurel img {

    width: 180px;

    height: auto;

    display: block;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.20);
}

/* EFECTO */
.logo-laurel:hover {

    transform: scale(1.05);
}

/* CELULAR */
@media (max-width: 768px) {

    .logo-laurel {

        top: 5px;

        left: 10px;
    }

    .logo-laurel img {

        width: 80px;
    }
}