.page-contacto {
  --paper: #f4fbf0;
  --violet: #88409b;
  --coral: #ee7182;
}

.page-contacto .hero::before {
  inset: 64px -8vw auto !important;
  height: min(32vh, 290px) !important;
  background-size: 108% 100% !important;
  background-position: center top !important;
  opacity: .74 !important;
  filter: drop-shadow(0 18px 24px rgba(36, 22, 45, .11)) saturate(1.1);
  transform-origin: top center;
  animation: upper-showpiece 8.2s ease-in-out infinite !important;
}

.page-contacto .hero::before {
  inset: 82px 0 auto !important;
  height: min(28vh, 250px) !important;
  background: url("../images/decor/contacto-top.svg") top center / 100% 100% no-repeat !important;
  opacity: .68 !important;
  animation: theme-top-float 6.2s ease-in-out infinite !important;
}

.page-contacto .hero {
  min-height: 90vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(168, 204, 69, .22) 0 130px, transparent 132px),
    radial-gradient(circle at 82% 18%, rgba(114, 209, 208, .22) 0 150px, transparent 152px),
    linear-gradient(180deg, #f4fbf0 0%, #fff7e2 60%, #f4ffe9 100%);
}

.page-contacto .hero::before {
  inset: 0 0 auto;
  height: min(31vh, 270px);
  background:
    linear-gradient(135deg, rgba(37, 211, 102, .26), rgba(37, 211, 102, .1)) 12% 42% / 168px 82px no-repeat,
    conic-gradient(from 180deg at 18% 100%, rgba(37, 211, 102, .2) 0 40deg, transparent 41deg) 12% 42% / 168px 82px no-repeat,
    radial-gradient(circle at 34% 50%, rgba(255, 255, 255, .86) 0 7px, transparent 8px) 12% 42% / 168px 82px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .86) 0 7px, transparent 8px) 12% 42% / 168px 82px no-repeat,
    radial-gradient(circle at 66% 50%, rgba(255, 255, 255, .86) 0 7px, transparent 8px) 12% 42% / 168px 82px no-repeat,
    linear-gradient(135deg, rgba(114, 209, 208, .24), rgba(114, 209, 208, .08)) 46% 34% / 176px 86px no-repeat,
    conic-gradient(from 180deg at 82% 100%, rgba(114, 209, 208, .18) 0 40deg, transparent 41deg) 46% 34% / 176px 86px no-repeat,
    radial-gradient(circle at 34% 50%, rgba(255, 255, 255, .82) 0 7px, transparent 8px) 46% 34% / 176px 86px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .82) 0 7px, transparent 8px) 46% 34% / 176px 86px no-repeat,
    radial-gradient(circle at 66% 50%, rgba(255, 255, 255, .82) 0 7px, transparent 8px) 46% 34% / 176px 86px no-repeat,
    linear-gradient(135deg, rgba(238, 113, 130, .18), rgba(238, 113, 130, .07)) 78% 44% / 158px 78px no-repeat,
    conic-gradient(from 180deg at 18% 100%, rgba(238, 113, 130, .14) 0 40deg, transparent 41deg) 78% 44% / 158px 78px no-repeat,
    linear-gradient(180deg, rgba(244, 251, 240, .78), transparent 72%);
  opacity: .92;
  animation: message-cloud-drift 5.4s ease-in-out infinite;
}

.page-contacto .hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 12%;
  z-index: -1;
  width: 260px;
  height: 190px;
  border-radius: 34px 34px 34px 6px;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 50%, rgba(255, 255, 255, .88) 0 10px, transparent 11px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .88) 0 10px, transparent 11px),
    radial-gradient(circle at 68% 50%, rgba(255, 255, 255, .88) 0 10px, transparent 11px),
    linear-gradient(135deg, rgba(37, 211, 102, .45), rgba(114, 209, 208, .2));
  opacity: .72;
  animation: message-pop 3.4s ease-in-out infinite alternate;
}

@keyframes message-cloud-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.page-contacto .hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(330px, .72fr);
}

.contact-signal {
  display: grid;
  gap: 14px;
  perspective: 1000px;
}

.contact-signal a {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(23, 20, 33, .1);
  box-shadow: 0 22px 56px rgba(23, 20, 33, .12);
  backdrop-filter: blur(16px);
  transform: rotateY(-8deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-signal a:nth-child(2) {
  transform: rotateY(6deg) translateX(24px);
}

.contact-signal a:nth-child(3) {
  transform: rotateY(-5deg) translateX(8px);
}

.contact-signal a:hover {
  box-shadow: 0 28px 68px rgba(23, 20, 33, .18);
  transform: translateY(-6px);
}

.contact-signal span {
  color: var(--muted);
  font-weight: 850;
}

.contact-signal strong {
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
}

@media (max-width: 1080px) {
  .page-contacto .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-contacto .hero {
    background:
      radial-gradient(circle at 16% 8%, rgba(168, 204, 69, .25) 0 84px, transparent 86px),
      radial-gradient(circle at 86% 30%, rgba(114, 209, 208, .18) 0 116px, transparent 118px),
      linear-gradient(180deg, #f4fbf0, #fff7e2 58%, #f4ffe9);
  }

  .page-contacto .hero-grid {
    padding-top: 40px;
  }

  .page-contacto .hero-grid > .reveal:first-child {
    order: 1;
  }

  .page-contacto .hero::after {
    right: -8%;
    bottom: 28%;
    width: 160px;
    height: 118px;
  }

  .contact-signal {
    order: 2;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .contact-signal::-webkit-scrollbar {
    display: none;
  }

  .contact-signal a,
  .contact-signal a:nth-child(2),
  .contact-signal a:nth-child(3) {
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: center;
    transform: none;
  }
}

.page-contacto .hero::before {
  inset: 64px -8vw auto !important;
  height: min(32vh, 290px) !important;
  background-size: 108% 100% !important;
  background-position: center top !important;
  opacity: .74 !important;
  filter: drop-shadow(0 18px 24px rgba(36, 22, 45, .11)) saturate(1.1);
  transform-origin: top center;
  animation: upper-showpiece 8.2s ease-in-out infinite !important;
}
