/* =========================
   CONTACTO INFO
========================= */

.contacto-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 84px 0 88px;
  background:
    radial-gradient(circle at 12% 14%, rgba(90, 118, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(210, 112, 255, 0.14), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(255, 174, 226, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 52%, #fbf7ff 100%);
}

.contacto-info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 28% 38%, rgba(86, 120, 255, 0.08), transparent 30%),
    radial-gradient(circle at 58% 24%, rgba(174, 91, 255, 0.08), transparent 32%);
}

.contacto-info::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -190px;
  z-index: -1;
  width: 900px;
  height: 340px;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(118, 99, 255, 0.16), transparent 62%),
    radial-gradient(circle at 72% 34%, rgba(255, 139, 219, 0.14), transparent 56%);
  filter: blur(26px);
  transform: translateX(-50%);
}

/* =========================
   HEADING
========================= */

.contacto-section-heading {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.contacto-info-heading .section-label,
.contacto-social-heading .section-label {
  color: #5a64ff;
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(101, 111, 255, 0.20);
  box-shadow:
    0 14px 36px rgba(87, 103, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contacto-section-heading h2 {
  max-width: 660px;
  margin: 18px auto 0;
  color: #071234;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.contacto-section-heading h2 span,
.contacto-social-heading h3 span {
  color: transparent;
  background: linear-gradient(115deg, #4f6fff 0%, #8f62ff 44%, #d86fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.contacto-section-heading p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(12, 23, 58, 0.66);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.7;
}

/* =========================
   EFECTO GENERAL DE LUZ
========================= */

.contacto-card-shine {
  position: absolute;
  top: -55%;
  left: -90%;
  z-index: 2;
  width: 54%;
  height: 220%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.72s ease,
    opacity 0.28s ease;
}

.contacto-info-card:hover .contacto-card-shine,
.contacto-phone-box:hover .contacto-card-shine,
.contacto-social-card:hover .contacto-card-shine {
  left: 126%;
  opacity: 1;
}

/* =========================
   EFECTO GENERAL DE ÍCONOS
========================= */

.contacto-icon-motion {
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease;
}

.contacto-icon-motion img {
  transition: transform 0.32s ease;
}

.contacto-info-card:hover .contacto-icon-motion,
.contacto-phone-box:hover .contacto-icon-motion,
.contacto-social-card:hover .contacto-icon-motion {
  transform: translateY(-3px) scale(1.08);
}

.contacto-info-card:hover .contacto-icon-motion img,
.contacto-phone-box:hover .contacto-icon-motion img,
.contacto-social-card:hover .contacto-icon-motion img {
  transform: scale(1.04);
}

/* =========================
   CARDS PRINCIPALES
========================= */

.contacto-info-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contacto-info-card {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(137, 151, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(9, 16, 48, 0.98), rgba(17, 20, 62, 0.96));
  box-shadow:
    0 26px 70px rgba(13, 26, 74, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease;
}

.contacto-info-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 29px;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 70% 88%, rgba(92, 124, 255, 0.14), transparent 42%);
}

.contacto-info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(182, 154, 255, 0.42);
  box-shadow:
    0 34px 86px rgba(56, 71, 172, 0.22),
    0 0 34px rgba(167, 94, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contacto-info-bg-mark {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 0;
  width: 110px;
  height: 110px;
  opacity: 0.11;
  pointer-events: none;
  transition:
    transform 0.32s ease,
    opacity 0.32s ease;
}

.contacto-info-card:hover .contacto-info-bg-mark {
  transform: scale(1.05);
  opacity: 0.14;
}

.contacto-info-bg-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contacto-info-icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(8, 16, 46, 0.18);
}

.contacto-info-card:hover .contacto-info-icon {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 36px rgba(8, 16, 46, 0.22),
    0 0 24px rgba(166, 96, 255, 0.10);
}

.contacto-info-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.contacto-info-card-content {
  position: relative;
  z-index: 3;
}

.contacto-info-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  color: #c8d1ff;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contacto-info-card h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 1.14rem;
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.contacto-info-card p {
  margin: 11px 0 0;
  color: rgba(236, 240, 255, 0.72);
  font-size: 0.89rem;
  font-weight: 500;
  line-height: 1.6;
}

.contacto-info-meta {
  display: block;
  margin-top: 15px;
  color: #ffffff;
  font-size: 0.87rem;
  font-weight: 850;
  line-height: 1.4;
}

.contacto-info-extra {
  display: block;
  margin-top: 4px;
  color: rgba(236, 240, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
}

/* =========================
   LINKS DE CARDS AZULES
========================= */

.contacto-info-card .contacto-info-link-action {
  position: relative;
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.24s ease,
    transform 0.24s ease;
}

.contacto-info-card .contacto-info-link-action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition:
    width 0.24s ease,
    background 0.24s ease;
}

.contacto-info-card .contacto-info-link-action:hover {
  color: #d9a8ff;
  transform: translateX(2px);
}

.contacto-info-card .contacto-info-link-action:hover::after {
  width: 100%;
  background: linear-gradient(90deg, #9db5ff 0%, #b985ff 50%, #ffc0e5 100%);
}

/* =========================
   TELÉFONO
========================= */

.contacto-phone-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 25px 30px;
  border: 1px solid rgba(137, 151, 255, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 42%, rgba(210, 112, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(248, 250, 255, 0.78));
  box-shadow:
    0 24px 70px rgba(45, 56, 140, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease;
}

.contacto-phone-box:hover {
  transform: translateY(-6px);
  border-color: rgba(170, 126, 255, 0.34);
  box-shadow:
    0 30px 84px rgba(45, 56, 140, 0.16),
    0 0 34px rgba(180, 95, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.contacto-phone-icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.46), transparent 34%),
    linear-gradient(135deg, #5a74ff 0%, #8f62ff 55%, #d86fff 100%);
  box-shadow:
    0 18px 42px rgba(91, 106, 255, 0.28),
    0 0 26px rgba(208, 112, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.contacto-phone-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.contacto-phone-content {
  position: relative;
  z-index: 3;
}

.contacto-phone-content .contacto-info-label {
  color: #5a64ff;
}

.contacto-phone-content h3 {
  margin: 0;
  color: #071234;
  font-family: "Manrope", sans-serif;
  font-size: 1.32rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.contacto-phone-content p {
  max-width: 610px;
  margin: 7px 0 0;
  color: rgba(12, 23, 58, 0.62);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.contacto-phone-links {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.contacto-phone-links a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f6fff 0%, #8f62ff 52%, #d86fff 100%);
  box-shadow:
    0 14px 34px rgba(92, 110, 255, 0.24),
    0 0 24px rgba(208, 112, 255, 0.16);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.contacto-phone-links a::before {
  content: "";
  position: absolute;
  top: -55%;
  left: -82%;
  z-index: 1;
  width: 50%;
  height: 220%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 34%,
    rgba(255, 255, 255, 0.60) 50%,
    rgba(255, 255, 255, 0.10) 66%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.62s ease,
    opacity 0.24s ease;
}

.contacto-phone-links a:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 44px rgba(92, 110, 255, 0.30),
    0 0 30px rgba(208, 112, 255, 0.22);
}

.contacto-phone-links a:hover::before {
  left: 126%;
  opacity: 1;
}

/* =========================
   REDES SOCIALES
========================= */

.contacto-social-block {
  margin-top: 58px;
}

.contacto-social-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.contacto-social-heading h3 {
  max-width: 680px;
  margin: 18px auto 0;
  color: #071234;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.contacto-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contacto-social-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(137, 151, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 16%, rgba(210, 112, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(249, 250, 255, 0.78));
  box-shadow:
    0 22px 62px rgba(45, 56, 140, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease;
}

.contacto-social-card:hover {
  transform: translateY(-7px);
  border-color: rgba(170, 126, 255, 0.34);
  box-shadow:
    0 30px 78px rgba(45, 56, 140, 0.15),
    0 0 34px rgba(180, 95, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.contacto-social-icon {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow:
    0 16px 38px rgba(45, 56, 140, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.contacto-social-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.contacto-social-content {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.contacto-social-content .contacto-info-label {
  color: #5a64ff;
}

.contacto-social-card h4 {
  margin: 0;
  color: #071234;
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.contacto-social-card p {
  margin: 10px 0 0;
  color: rgba(12, 23, 58, 0.62);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
}

.contacto-social-card .contacto-info-link-action {
  position: relative;
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: #5a64ff;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.24s ease,
    transform 0.24s ease;
}

.contacto-social-card .contacto-info-link-action::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f6fff 0%, #8f62ff 100%);
  transition:
    width 0.24s ease,
    background 0.24s ease;
}

.contacto-social-card .contacto-info-link-action:hover {
  color: #8f62ff;
  transform: translateX(2px);
}

.contacto-social-card .contacto-info-link-action:hover::after {
  width: 100%;
  background: linear-gradient(90deg, #4f6fff 0%, #8f62ff 52%, #d86fff 100%);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1120px) {
  .contacto-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacto-info-card {
    min-height: 290px;
  }

  .contacto-phone-box {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .contacto-phone-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 86px;
  }
}

@media (max-width: 900px) {
  .contacto-social-grid {
    grid-template-columns: 1fr;
  }

  .contacto-social-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .contacto-info {
    padding: 74px 0 78px;
  }

  .contacto-section-heading {
    margin-bottom: 34px;
  }

  .contacto-section-heading h2 {
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -0.055em;
  }

  .contacto-info-grid {
    grid-template-columns: 1fr;
  }

  .contacto-info-card {
    min-height: auto;
  }

  .contacto-phone-box {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .contacto-phone-links {
    padding-left: 0;
  }

  .contacto-phone-links a {
    flex: 1 1 190px;
  }
}

@media (max-width: 520px) {
  .contacto-info {
    padding: 66px 0 70px;
  }

  .contacto-info-card {
    padding: 20px;
    border-radius: 26px;
  }

  .contacto-info-card::before {
    border-radius: 25px;
  }

  .contacto-phone-box {
    border-radius: 24px;
  }

  .contacto-social-block {
    margin-top: 48px;
  }

  .contacto-social-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
  }

  .contacto-social-heading h3 {
    font-size: clamp(28px, 8vw, 38px);
  }
}