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