/* ==========================================================================
   Maqueta · Ilustre Municipalidad de Pica
   coat-of-arms.css — Nuestra Comuna · Escudo: historia junto al escudo y
   explorador de símbolos. El encabezado y los títulos están en commune.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Historia junto al escudo
   -------------------------------------------------------------------------- */
.crest-story {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--pm-navy-950) 0%, var(--pm-navy-900) 100%);
}

.crest-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.crest-story__emblem {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
}

.crest-story__halo {
  position: absolute;
  inset: 6% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 191, 203, .32) 0%, rgba(247, 209, 56, .12) 40%, transparent 70%);
  filter: blur(18px);
}

.crest-story__emblem img {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(3, 12, 28, .55));
}

.crest-story__placeholder {
  position: relative;
  color: var(--pm-gold-500);
  font-size: 12rem;
}

/* El escudo flota suavemente una vez que aparece */
@media (prefers-reduced-motion: no-preference) {
  .crest-story__emblem.is-visible img {
    animation: crest-float 7s ease-in-out 1s infinite;
  }
}

@keyframes crest-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

.crest-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.crest-facts li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .85rem;
  border: 1px solid rgba(251, 231, 154, .35);
  border-radius: 999px;
  background: rgba(247, 209, 56, .08);
  font-size: .84rem;
}

.crest-facts i {
  color: var(--pm-gold-400);
}

.crest-award {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(247, 209, 56, .4);
  border-left: 5px solid var(--pm-gold-500);
  border-radius: 14px;
  background: rgba(247, 209, 56, .07);
}

.crest-award__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pm-gold-500);
  color: var(--pm-navy-900);
  font-size: 1.3rem;
}

.crest-award__title {
  display: block;
  margin-bottom: .2rem;
  color: var(--pm-gold-400);
  font-size: 1.05rem;
}

.crest-award__text {
  margin: 0;
  color: var(--pm-text);
  font-size: .92rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Tablet y celular
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .crest-story__grid {
    grid-template-columns: 1fr;
  }

  .crest-story__emblem img {
    width: min(70%, 340px);
  }
}
