/* =========================================================
   CONTACT PAGE — MM Agency
   Layout NoGood-style: hero morado plano + form card flotando
   ========================================================= */

.contact-main {
  position: relative;
  min-height: 100vh;
  padding-bottom: 120px;
  background: #0B0B0F;
  overflow: hidden;
}

/* Gradient morado empieza JUSTO debajo del nav, no detrás */
.contact-main::before {
  content: "";
  position: absolute;
  top: 80px; /* altura aprox del nav */
  left: 0;
  right: 0;
  height: 900px;
  background:
    radial-gradient(ellipse 70% 45% at 15% 10%, rgba(180, 138, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 25%, rgba(140, 90, 240, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #5B2EE8 0%, #4A24C8 25%, #3A1F9E 50%, #1F0F55 78%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Nav mantiene su frosted glass translúcido — no override */

/* =========================================================
   HERO — solo contenedor de layout, sin background propio
   ========================================================= */
.contact-hero {
  position: relative;
  padding: 140px 0 100px;
  z-index: 1;
}

.contact-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* LEFT — copy */
.contact-hero-left {
  padding-top: 20px;
}

.contact-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.contact-intro {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin: 32px 0 0;
}

/* RIGHT — form card flota sobre el borde inferior del hero */
.contact-hero-right {
  position: relative;
  z-index: 2;
}

.contact-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px 48px 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.contact-form-title {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0B0B0F;
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0B0B0F;
}

.contact-req {
  color: #0B0B0F;
  margin-left: 1px;
}

.contact-input,
.contact-select,
.contact-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #0B0B0F;
  background: transparent;
  border: none;
  border-bottom: 1px solid #D4D4DC;
  border-radius: 0;
  padding: 8px 0 8px;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-bottom-color: #5B2EE8;
  border-bottom-width: 2px;
}

.contact-input:invalid:not(:placeholder-shown):not(:focus),
.contact-select:invalid:not(:focus),
.contact-textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-bottom-color: #E53E3E;
}

.contact-field-error {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #E53E3E;
  margin-top: 4px;
  display: none;
}

.contact-input:invalid:not(:placeholder-shown):not(:focus) ~ .contact-field-error,
.contact-select:invalid:not(:focus) ~ .contact-field-error {
  display: block;
}

.contact-textarea {
  resize: vertical;
  min-height: 48px;
}

.contact-select-wrap {
  position: relative;
}

.contact-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
  color: #6A6A78;
}

.contact-select:valid {
  color: #0B0B0F;
}

.contact-select-arrow {
  position: absolute;
  right: 4px;
  top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #0B0B0F;
  pointer-events: none;
  line-height: 1;
}

.contact-submit {
  margin-top: 16px;
  width: 100%;
  background: #0B0B0F !important;
  color: #fff !important;
  border-color: #0B0B0F !important;
}

.contact-submit::before {
  background: #5B2EE8 !important;
}

.contact-submit:hover {
  color: #fff !important;
}

.contact-form-note {
  display: none;
}

/* Success state */
.contact-success {
  text-align: center;
  padding: 32px 16px;
}

.contact-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B2EE8 0%, #8A5CFF 100%);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-success-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #0B0B0F;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.contact-success-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #6A6A78;
  line-height: 1.6;
  margin: 0;
}

.contact-success-text a {
  color: #5B2EE8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   CLIENTS SECTION — fondo negro, card oscura flotando
   ========================================================= */
.contact-clients-card {
  margin-top: 40px;
  background: #2A2A30;
  border-radius: 24px;
  padding: 44px 56px 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-clients-label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.contact-clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 40px;
  column-gap: 56px;
  align-items: center;
  justify-items: center;
}

.contact-client-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.contact-client-logo {
  max-height: 38px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.contact-client-logo.contact-client-logo--lg {
  max-height: 60px;
  max-width: 200px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .contact-hero {
    padding: 120px 0 100px;
  }

  .contact-hero-inner {
    gap: 48px;
    padding: 0 32px;
  }

  .contact-title {
    font-size: clamp(40px, 6vw, 60px);
  }

  .contact-clients-section {
    padding: 0 32px;
  }
}

@media (max-width: 820px) {
  .contact-hero {
    padding: 100px 0 80px;
  }

  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-hero-left {
    padding-top: 0;
  }

  .contact-form-card {
    margin-bottom: 0;
    padding: 36px 28px 32px;
  }

  .contact-clients-section {
    margin-top: 40px;
    grid-template-columns: 1fr;
  }

  .contact-clients-card {
    grid-column: 1;
    padding: 28px 24px;
  }

  .contact-clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .contact-main {
    padding-bottom: 80px;
  }

  .contact-hero {
    padding: 88px 0 64px;
  }

  .contact-hero-inner {
    padding: 0 20px;
  }

  .contact-title {
    font-size: 36px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-clients-section {
    padding: 0 20px;
  }

  .contact-clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
