.heraldica-cards {
  position: relative;
  padding: 10px 20px;
  border-radius: 12px;
  overflow: hidden;
}

/* Escudo de fondo con tonalidad fija */
.escudo-fondo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: 0;
  max-width: 500px;
  width: 100%;
  filter: grayscale(0%) contrast(140%);
}

.escudo-central {
  width: 100%;
  height: auto;
}

h2{
  color: #1b4573;
  font-weight: 600;
}
/* Tarjetas explicativas */
.explicacion {
  background-color: transparent;
  border: 2px dashed #1b4573;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover solo si ya es visible */
.explicacion.visible:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Títulos y texto */
.explicacion h5 {
  font-size: 1.1rem;
  color: #C38033;
  font-weight: 600;
}

.explicacion p {
  font-size: 1rem;
  color: #000;
  line-height: 1.5;
}

/* Banda inferior */
.banda-inferior {
  font-size: 1rem;
  color: #444;
  font-style: italic;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

.explicacion {
  background-color: transparent;
  text-align: justify;
  border: 2px dashed #1b4573;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Animación de entrada */
.explicacion.animada {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.explicacion.animada.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover: elevación vertical sin escala */
.explicacion.visible:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #720F3C;
}