/* === acreditaciones.css === */
html, body {
  height: 100hv; /* cambia de min-height a height */
  margin: 0;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
}
/* Contenedor principal */
main.acreditaciones-main {
  flex: 1;
  padding: 160px 20px 100px;
  margin-top: 100px;
  text-align: center;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.acreditaciones-main h1 {
  color: #0033a0;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.acreditaciones-subtitulo {
  color: #0e0e0f;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Grid de tarjetas */
.acreditaciones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
  
}

/* logo oj */
.logo-pj{
  margin-bottom: 20px;
}

/* === Tarjetas estilo persiana lateral === */
.tarjeta-acreditacion {
  position: relative;
  width: 280px;
  height: 280px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.tarjeta-acreditacion .frente,
.tarjeta-acreditacion .atras {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease-in-out;
  backface-visibility: hidden;
}

.tarjeta-acreditacion .frente {
  z-index: 2;
  background-color: #ffffff;
}

.tarjeta-acreditacion .atras {
  z-index: 1;
  background-color: #ffffff;
  transform: translateX(-100%);
}

.tarjeta-acreditacion:hover .frente {
  transform: translateX(100%);
}

.tarjeta-acreditacion:hover .atras {
  transform: translateX(0);
}

/* Imagen del logo */
.tarjeta-acreditacion img {
  max-height: 80px;
  margin-bottom: 12px;
  object-fit: contain;
}



/* Texto frente */
.tarjeta-acreditacion .frente h3 {
  font-size: 1.3rem;
  color: #0033a0;
  margin: 8px 0;
}

.tarjeta-acreditacion .frente p {
  font-size: 0.95rem;
  color: #333;
  margin: 2px 0;
}

/* Texto atrás */
.tarjeta-acreditacion .atras h3 {
  font-size: 1.2rem;
  color: #0a3a5a;
  margin-bottom: 20px;
  padding: 0 10px;
  text-align: center;
}

/* Botón descarga */
.boton-descarga {
  background-color: #c8102e;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.boton-descarga:hover {
  background-color: #a50d24;
}

/* Responsive */
@media (max-width: 768px) {
  .tarjeta-acreditacion {
    width: 90%;
    height: auto;
  }

  .tarjeta-acreditacion img {
    max-height: 80px;
  }

  .tarjeta-acreditacion .frente h3,
  .tarjeta-acreditacion .atras h3 {
    font-size: 1.1rem;
  }

  .tarjeta-acreditacion .frente p {
    font-size: 0.9rem;
  }

  .boton-descarga {
    font-size: 13px;
    padding: 10px 16px;
  }
}


