/* =========================
   CONTACTO - HERO
========================= */

.contacto-hero {
  position: relative;
  height: clamp(610px, calc(100vh - 84px), 700px);
  min-height: 610px;
  padding: 0;
  overflow: hidden;
  color: var(--color-white);
  background-image:
    linear-gradient(
      90deg,
      rgba(4, 9, 32, 0.66) 0%,
      rgba(6, 10, 38, 0.44) 34%,
      rgba(44, 16, 92, 0.10) 64%,
      rgba(255, 255, 255, 0.00) 100%
    ),
    url("../../img/contacto/banner-contacto.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.admin-bar .contacto-hero {
  height: clamp(590px, calc(100vh - 116px), 680px);
  min-height: 590px;
}

.contacto-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 22%, rgba(12, 49, 178, 0.16), transparent 32%),
    radial-gradient(circle at 48% 42%, rgba(187, 49, 255, 0.07), transparent 36%),
    radial-gradient(circle at 88% 22%, rgba(255, 214, 242, 0.06), transparent 34%);
  z-index: 0;
}

.contacto-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 34, 0) 0%,
    rgba(5, 10, 34, 0.10) 58%,
    rgba(255, 255, 255, 0.04) 100%
  );
  z-index: 1;
}

.contacto-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 58px;
  padding: 52px 0 64px;
}

.contacto-hero-content {
  max-width: 650px;
}

.contacto-hero .section-label {
  color: #ffffff;
  background: rgba(5, 10, 34, 0.18);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contacto-hero h1 {
  margin: 0;
  max-width: 650px;
  color: #ffffff;
  font-size: clamp(46px, 4.55vw, 68px);
  line-height: 1.01;
  letter-spacing: -2.35px;
  font-weight: 900;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  text-wrap: balance;
}

.contacto-gradient-text {
  display: inline-block;
  color: transparent;
  background: linear-gradient(115deg, #a8baff 0%, #b985ff 42%, #ffc0e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.contacto-hero-content p {
  max-width: 585px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(15.5px, 1.16vw, 17.5px);
  line-height: 1.7;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

.contacto-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.contacto-hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.contacto-hero-actions .btn::after {
  content: "";
  position: absolute;
  top: -42%;
  left: -80%;
  width: 58%;
  height: 190%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 34%,
    rgba(255, 255, 255, 0.54) 50%,
    rgba(255, 255, 255, 0.12) 66%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.68s ease,
    opacity 0.3s ease;
  z-index: 1;
}

.contacto-hero-actions .btn:hover::after {
  left: 125%;
  opacity: 1;
}

.contacto-hero-actions .btn-primary {
  background: linear-gradient(135deg, #4f6fff 0%, #8757ff 48%, #d85fff 100%);
  border-color: rgba(255, 255, 255, 0.28);
}

.contacto-hero-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 62px rgba(112, 107, 255, 0.44),
    0 0 34px rgba(190, 88, 255, 0.30);
}

.contacto-hero-actions .btn-secondary {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(5, 10, 34, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contacto-hero-actions .btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.26),
    0 0 28px rgba(255, 255, 255, 0.14);
}

/* =========================
   HERO VISUAL - IMAGEN
========================= */

.contacto-hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacto-visual-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 650px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.22), transparent 12%),
    radial-gradient(circle at 52% 46%, rgba(214, 98, 255, 0.34), transparent 32%),
    radial-gradient(circle at 66% 62%, rgba(78, 108, 255, 0.30), transparent 38%),
    radial-gradient(circle at 35% 72%, rgba(255, 178, 223, 0.14), transparent 34%);
  filter: blur(34px);
  opacity: 0.58;
}

.contacto-hero-image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(112%, 650px);
  max-height: 510px;
  object-fit: contain;
  filter:
    drop-shadow(0 34px 72px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 34px rgba(164, 103, 255, 0.28));
  transform: translateY(2px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
  .contacto-hero {
    height: clamp(580px, calc(100vh - 84px), 660px);
    min-height: 580px;
  }

  body.admin-bar .contacto-hero {
    height: clamp(560px, calc(100vh - 116px), 640px);
    min-height: 560px;
  }

  .contacto-hero-inner {
    grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.72fr);
    gap: 36px;
  }

  .contacto-hero-content {
    max-width: 600px;
  }

  .contacto-hero h1 {
    max-width: 590px;
    font-size: clamp(40px, 4.15vw, 58px);
  }

  .contacto-hero-visual {
    min-height: 420px;
  }

  .contacto-hero-image {
    width: min(108%, 570px);
    max-height: 440px;
  }
}

@media (max-width: 940px) {
  .contacto-hero {
    height: auto;
    min-height: auto;
    padding: 0;
    background-position: center;
  }

  body.admin-bar .contacto-hero {
    height: auto;
    min-height: auto;
  }

  .contacto-hero-inner {
    height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 60px 0 80px;
  }

  .contacto-hero-content {
    max-width: 760px;
  }

  .contacto-hero h1 {
    max-width: 640px;
  }

  .contacto-hero-content p {
    max-width: 600px;
  }

  .contacto-hero-visual {
    min-height: auto;
    justify-content: center;
  }

  .contacto-hero-image {
    width: min(100%, 540px);
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .contacto-hero {
    background-position: center;
  }

  .contacto-hero-inner {
    padding: 54px 0 76px;
  }

  .contacto-hero h1 {
    max-width: 420px;
    font-size: clamp(38px, 11vw, 50px);
    letter-spacing: -1.7px;
  }

  .contacto-hero-content p {
    max-width: 390px;
    margin-top: 20px;
  }

  .contacto-hero-actions {
    margin-top: 28px;
  }

  .contacto-hero-actions .btn {
    width: 100%;
  }

  .contacto-hero-visual {
    margin-top: -10px;
  }

  .contacto-hero-image {
    width: min(100%, 450px);
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .contacto-hero-inner {
    padding: 48px 0 70px;
  }

  .contacto-hero h1 {
    max-width: 340px;
    font-size: clamp(34px, 10.2vw, 44px);
  }

  .contacto-hero-content p {
    max-width: 330px;
  }

  .contacto-hero-image {
    width: min(100%, 380px);
    max-height: 310px;
  }
}