/* 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;
}















