/* =========================
   CONTACTO - FORMULARIO
========================= */

.contacto-formulario {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 82px 0 88px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 111, 255, 0.34), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(216, 95, 255, 0.28), transparent 30%),
    radial-gradient(circle at 74% 86%, rgba(255, 153, 222, 0.16), transparent 34%),
    linear-gradient(145deg, #050b24 0%, #091135 48%, #120b32 100%);
}

.contacto-formulario::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 38%),
    radial-gradient(circle at 38% 42%, rgba(124, 99, 255, 0.18), transparent 36%),
    radial-gradient(circle at 58% 22%, rgba(255, 132, 220, 0.10), transparent 34%);
}

.contacto-formulario::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 11, 36, 0) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

/* =========================
   DECORACIÓN
========================= */

.contacto-formulario .contacto-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.contacto-formulario-glow-one {
  position: absolute;
  left: -140px;
  top: 80px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(73, 112, 255, 0.34);
  filter: blur(70px);
  opacity: 0.72;
}

.contacto-formulario-glow-two {
  position: absolute;
  right: -110px;
  top: 30px;
  width: 370px;
  height: 370px;
  border-radius: 999px;
  background: rgba(198, 83, 255, 0.28);
  filter: blur(78px);
  opacity: 0.72;
}

.contacto-formulario-glow-three {
  position: absolute;
  right: 22%;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 146, 218, 0.20);
  filter: blur(72px);
  opacity: 0.62;
}

.contacto-formulario-orb-one {
  position: absolute;
  right: 9%;
  top: 94px;
  width: 108px;
  height: 108px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.55), transparent 24%),
    linear-gradient(135deg, rgba(107, 132, 255, 0.34), rgba(214, 96, 255, 0.30));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 70px rgba(120, 103, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  opacity: 0.72;
}

.contacto-formulario-wave-one {
  position: absolute;
  left: -280px;
  bottom: 20px;
  width: 760px;
  height: 240px;
  border: 1px solid rgba(173, 191, 255, 0.12);
  border-radius: 50%;
  transform: rotate(-10deg);
  opacity: 0.48;
}

/* =========================
   LAYOUT
========================= */

.contacto-formulario-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(390px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.contacto-formulario-content {
  max-width: 540px;
}

.contacto-formulario-content .section-label {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contacto-formulario-content h2 {
  max-width: 550px;
  margin: 18px 0 0;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.contacto-formulario-content h2 span {
  color: transparent;
  background: linear-gradient(115deg, #9db5ff 0%, #b985ff 45%, #ffc0e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.contacto-formulario-content > p {
  max-width: 505px;
  margin: 20px 0 0;
  color: rgba(239, 243, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.72;
}

/* =========================
   NOTA IZQUIERDA
========================= */

.contacto-formulario-note {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin-top: 30px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(184, 196, 255, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(92, 124, 255, 0.22), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(214, 96, 255, 0.13), transparent 36%),
    rgba(255, 255, 255, 0.075);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;
}

.contacto-formulario-note::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 25px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 48%),
    radial-gradient(circle at 84% 72%, rgba(188, 105, 255, 0.12), transparent 36%);
}

.contacto-formulario-note-shine {
  position: absolute;
  top: -58%;
  left: -90%;
  z-index: 1;
  width: 42%;
  height: 220%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 34%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.04) 66%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.72s ease,
    opacity 0.28s ease;
}

.contacto-formulario-note:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 159, 255, 0.36);
  background:
    radial-gradient(circle at 0% 0%, rgba(92, 124, 255, 0.26), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(214, 96, 255, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.095);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.23),
    0 0 32px rgba(187, 98, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.contacto-formulario-note:hover .contacto-formulario-note-shine {
  left: 128%;
  opacity: 1;
}

.contacto-formulario-note-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  color: #ffffff;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #4f6fff 0%, #805cff 52%, #d765ff 100%);
  box-shadow:
    0 18px 44px rgba(99, 105, 255, 0.30),
    0 0 24px rgba(194, 95, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.contacto-formulario-note-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.contacto-formulario-note-text {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.contacto-formulario-note-text h3 {
  margin: 0;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.contacto-formulario-note-text p {
  margin: 7px 0 0;
  color: rgba(238, 242, 255, 0.70);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.55;
}

/* =========================
   CARD FORMULARIO
========================= */

.contacto-formulario-card {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(178, 190, 255, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 0%, rgba(91, 122, 255, 0.18), transparent 36%),
    radial-gradient(circle at 100% 8%, rgba(221, 103, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 255, 0.86));
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.24),
    0 0 38px rgba(139, 96, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    transform 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.34s ease;
}

.contacto-formulario-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 31px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.80), transparent 46%),
    radial-gradient(circle at 72% 86%, rgba(91, 122, 255, 0.12), transparent 38%);
}

.contacto-formulario-card:hover {
  transform: translateY(-6px);
  border-color: rgba(183, 139, 255, 0.34);
  box-shadow:
    0 42px 108px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(174, 96, 255, 0.18),
    0 0 64px rgba(255, 136, 218, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.contacto-formulario-card-shine {
  position: absolute;
  top: -62%;
  left: -90%;
  z-index: 1;
  width: 46%;
  height: 230%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(151, 93, 255, 0.00) 24%,
    rgba(151, 93, 255, 0.09) 38%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(208, 122, 255, 0.10) 62%,
    rgba(151, 93, 255, 0.00) 78%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.78s ease,
    opacity 0.3s ease;
}

.contacto-formulario-card:hover .contacto-formulario-card-shine {
  left: 132%;
  opacity: 1;
}

.contacto-formulario-card-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  z-index: 0;
}

.contacto-formulario-card-orb-one {
  right: -42px;
  top: -46px;
  width: 140px;
  height: 140px;
  background: rgba(168, 100, 255, 0.15);
  filter: blur(8px);
}

.contacto-formulario-card-orb-two {
  left: -58px;
  bottom: -68px;
  width: 160px;
  height: 160px;
  background: rgba(79, 111, 255, 0.12);
  filter: blur(10px);
}

.contacto-formulario-card > *:not(.contacto-formulario-card-orb):not(.contacto-formulario-card-shine) {
  position: relative;
  z-index: 2;
}

.contacto-formulario-card-heading {
  margin-bottom: 18px;
}

.contacto-formulario-card-heading .contacto-info-label {
  color: #626dff;
  margin-bottom: 8px;
}

.contacto-formulario-card-heading h3 {
  margin: 0;
  color: #071234;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 1.9vw, 1.62rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.contacto-formulario-card-heading p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(12, 23, 58, 0.62);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.58;
}

/* =========================
   CAMPOS
========================= */

.contacto-form {
  margin: 0;
}

.contacto-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contacto-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contacto-field-full {
  grid-column: 1 / -1;
}

.contacto-field label {
  color: #111a3d;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.contacto-field input,
.contacto-field select,
.contacto-field textarea {
  width: 100%;
  color: #071234;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  border: 1px solid rgba(104, 122, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.88));
  box-shadow:
    0 12px 30px rgba(49, 65, 140, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  outline: none;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease,
    transform 0.24s ease;
}

.contacto-field input,
.contacto-field select {
  min-height: 46px;
  padding: 0 14px;
}

.contacto-field textarea {
  min-height: 118px;
  resize: vertical;
  padding: 13px 14px;
}

.contacto-field input::placeholder,
.contacto-field textarea::placeholder {
  color: rgba(12, 23, 58, 0.38);
  font-weight: 600;
}

.contacto-field select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 255, 0.88)),
    linear-gradient(45deg, transparent 50%, #6b63ff 50%),
    linear-gradient(135deg, #6b63ff 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 20px) 20px,
    calc(100% - 15px) 20px;
  background-size:
    100% 100%,
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.contacto-field input:hover,
.contacto-field select:hover,
.contacto-field textarea:hover {
  border-color: rgba(117, 101, 255, 0.34);
  box-shadow:
    0 14px 34px rgba(70, 83, 170, 0.10),
    0 0 24px rgba(159, 97, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.contacto-field input:focus,
.contacto-field select:focus,
.contacto-field textarea:focus {
  border-color: rgba(120, 97, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(249, 250, 255, 0.96));
  box-shadow:
    0 0 0 4px rgba(120, 97, 255, 0.13),
    0 18px 42px rgba(70, 83, 170, 0.12),
    0 0 28px rgba(189, 96, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* =========================
   BOTÓN
========================= */

.contacto-form-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  min-height: 50px;
  margin-top: 14px;
  border-color: rgba(255, 255, 255, 0.30);
  background: linear-gradient(135deg, #4f6fff 0%, #805cff 52%, #d765ff 100%);
  box-shadow:
    0 18px 44px rgba(99, 105, 255, 0.30),
    0 0 28px rgba(194, 95, 255, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.contacto-form-submit::after {
  content: "";
  position: absolute;
  top: -55%;
  left: -82%;
  width: 52%;
  height: 220%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.10) 34%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0.10) 66%,
    transparent 100%
  );
  transform: rotate(16deg);
  opacity: 0;
  transition:
    left 0.62s ease,
    opacity 0.24s ease;
  z-index: 1;
}

.contacto-form-submit span {
  position: relative;
  z-index: 2;
}

.contacto-form-submit:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 24px 58px rgba(99, 105, 255, 0.38),
    0 0 34px rgba(194, 95, 255, 0.24),
    0 0 48px rgba(255, 149, 226, 0.12);
}

.contacto-form-submit:hover::after {
  left: 126%;
  opacity: 1;
}

.contacto-form-disclaimer {
  margin: 12px 0 0;
  color: rgba(12, 23, 58, 0.46);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.48;
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .contacto-formulario-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contacto-formulario-content {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  .contacto-formulario-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .contacto-formulario-note {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .contacto-formulario-card {
    justify-self: center;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  .contacto-formulario {
    padding: 74px 0 80px;
  }

  .contacto-formulario-content h2 {
    font-size: clamp(34px, 9vw, 46px);
    letter-spacing: -0.055em;
  }

  .contacto-formulario-card {
    padding: 22px;
    border-radius: 30px;
  }

  .contacto-form-grid {
    grid-template-columns: 1fr;
  }

  .contacto-field input,
  .contacto-field select {
    min-height: 46px;
  }
}

@media (max-width: 520px) {
  .contacto-formulario {
    padding: 66px 0 72px;
  }

  .contacto-formulario-note {
    align-items: flex-start;
    gap: 14px;
    max-width: 100%;
    padding: 18px;
    border-radius: 24px;
  }

  .contacto-formulario-note-icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
  }

  .contacto-formulario-note-icon svg {
    width: 26px;
    height: 26px;
  }

  .contacto-formulario-card {
    padding: 20px;
    border-radius: 26px;
  }

  .contacto-formulario-card-heading {
    margin-bottom: 18px;
  }

  .contacto-field textarea {
    min-height: 118px;
  }

  .contacto-form-submit {
    min-height: 50px;
  }
}