.content_contact {
  width: 75%;
  height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  padding: 1%;
  border-radius: 24px;
  box-shadow: rgba(62, 76, 88, 0.48) 6px 2px 16px 0px, rgba(0, 0, 0, 0.8) -6px -2px 16px 0px;
}

.form_contact {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--black);
  padding: 0% 2%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid var(--grey);
}

.header_form {
  width: 100%;
  height: auto;
  padding: 2% 0%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header_form h2 {
  width: 40%;
  color: var(--white);
  background-image: linear-gradient(45deg, var(--white) 15%, var(--dark-grey) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 5rem;
  font-weight: 300;
}

.header_form .social_links {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.header_form .social_links a {
  border: 1px solid var(--grey);
  padding: 1rem;
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
}

.header_form .social_links a:hover {
  background-color: transparent;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white);
}

.header_form .social_links a:hover i {
  color: var(--white);
}

.form_contact .dots-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.form_contact>*:not(.dots-bg-canvas) {
  position: relative;
  z-index: 1;
}

.form_content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.form_contact_data {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-around;
  padding: 2%;
}

.form_contact_data h2 {
  color: var(--white);
  font-size: 4rem;
  font-weight: 600;
}

.form_contact_data p {
  color: var(--grey);
  font-size: 1.2rem;
  font-weight: 400;
  padding: 2%;
  background-color: transparent;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

.form_inputs {
  width: 100%;
  padding: 2rem 2rem;
  background: rgba(44, 44, 44, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.input_group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input_group label {
  color: var(--grey, #b0b0b0);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.input_group input,
.input_group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  border: 1.2px solid rgba(180, 180, 180, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white, #fff);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.22s,
    background 0.22s,
    box-shadow 0.22s;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
  resize: none;
}

.input_group input:focus,
.input_group textarea:focus {
  border-color: var(--tertiary-color);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 2px var(--tertiary-color, #ffd70033);
}

.input_group textarea {
  min-height: 70px;
  height: 100%;
  line-height: 1.4;
  grid-column: 1 / 2;
  /* Solo la primera columna */
  align-self: stretch;
  resize: none;
  display: block;
}

.input_group .btn {
  grid-column: 2 / 3;
  /* Segunda columna */
  margin-top: 5%;
  height: 100%;
  padding: 0 1.2rem;
  font-size: 1rem;
  border-radius: 10px;
  width: 30%;
  color: var(--black);
  background-color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.25), 0 0 2px 0 rgba(0, 0, 0, 0.1);
  animation: glow-move 2s infinite linear;
  filter: brightness(1);
}

.input_group .btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 18px 4px var(--primary-color);
  animation: subtle-glow-strong 1.2s infinite linear;
  filter: brightness(1.08);
}

.contact_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  gap: 0.7rem;
  animation: fadeInDown 1.2s cubic-bezier(.4, 0, .2, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 1550px) {
  .header_form {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .header_form h2 {
    width: 100%;
    font-size: 5rem;
    text-align: center;
  }

  .header_form .social_links {
    width: 90%;
    gap: 1.5rem;
    justify-content: center;
  }

  .header_form .social_links a,
  i {
    color: var(--white);
  }
}

@media (max-width: 1200px) {
  .header_form {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .header_form h2 {
    font-size: 5rem;
  }
}

@media (max-width: 900px) {
  .content_contact {
    width: 96vw;
    height: auto;
    min-height: 80dvh;
    padding: 2vw;
    box-shadow: none;
  }

  .form_contact {
    margin-top: 15%;
    padding: 2vw 2vw;
    border-radius: 14px;
  }

  .header_form {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .header_form h2 {
    width: 100%;
    font-size: 4rem;
    text-align: center;
  }

  .header_form .social_links {
    width: 100%;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header_form .social_links a {
    padding: 0.7rem;
    width: 20%;
    font-size: 1rem;
  }

  .form_inputs {
    padding: 1.2rem 0.5rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form_inputs {
    padding: 0.3rem 0;
    gap: 0.5rem;
  }

  .input_group .btn {
    font-size: 0.95rem;
    padding: 0 0.4rem;
    height: 5dvh;
    width: 100%;
    color: var(--black);
  }
}

/* Móvil */
@media (max-width: 600px) {
  .content_contact {
    width: 100vw;
    min-height: 100dvh;
    padding: 2%;
    border-radius: 12px;
    box-shadow: none;
  }

  .form_contact {
    border-radius: 12px;
    padding: 0.5rem 0.5rem;
  }

  .header_form {
    padding: 2%;
    gap: 0.7rem;
  }

  .header_form h2 {
    font-size: 3rem;
    padding: 0;
    width: 100%;
    text-align: center;
  }

  .header_form .social_links {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .header_form .social_links a span {
    display: none;
  }

  .header_form .social_links a i {
    font-size: 1.3em;
    color: var(--white);
  }

  .form_inputs {
    padding: 0.7rem 0.5rem;
    gap: 0.7rem;
  }

  .input_group label {
    font-size: 0.95rem;
  }

  .input_group input,
  .input_group textarea {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }

  .form_inputs {
    padding: 0.3rem 0;
    gap: 0.5rem;
  }

  .input_group .btn {
    font-size: 0.95rem;
    padding: 0 0.4rem;
    height: 5dvh;
    width: 100%;
    color: var(--black);
  }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  .header_form h2 {
    font-size: 3rem;
    color: var(--white);
  }

  .header_form .social_links a span {
    display: none;
  }

  .header_form .social_links a i {
    font-size: 1.3em;
    color: var(--white);
  }

  .form_inputs {
    padding: 0.3rem 0;
    gap: 0.5rem;
  }

  .input_group .btn {
    font-size: 0.95rem;
    padding: 0 0.4rem;
    height: 5dvh;
    width: 100%;

  }
}

/* Estilos personalizados para SweetAlert2 */
.mecatecno-alert {
  border-radius: 15px !important;
  box-shadow: 0 10px 30px rgba(160, 52, 255, 0.3) !important;
}

.mecatecno-alert-title {
  color: #a034ff !important;
  font-weight: 600 !important;
}

.mecatecno-alert-content {
  color: #333 !important;
  line-height: 1.6 !important;
}

.mecatecno-btn-confirm {
  background: linear-gradient(135deg, #a034ff, #b72cde) !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 10px 25px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.mecatecno-btn-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(160, 52, 255, 0.4) !important;
}

.mecatecno-btn-cancel {
  background: #6c757d !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 10px 25px !important;
}

/* Animación del spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Estados del botón */
.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Campos con error */
.form_inputs input.error,
.form_inputs textarea.error {
  border-color: #ff4757 !important;
  background-color: rgba(255, 71, 87, 0.1) !important;
}

/* Forzar texto negro en el botón */
.form_inputs .btn,
.form_inputs .btn *,
.form_inputs .btn .btn-text,
.form_inputs .btn-text {
  color: var(--black) !important;
}

.form_inputs .btn:hover,
.form_inputs .btn:hover *,
.form_inputs .btn .btn-text:hover,
.form_inputs .btn-text:hover {
  color: var(--white) !important;
}


/* Durante el estado de carga mantener el texto visible */
.form_inputs .btn:disabled .btn-loading {
  color: var(--black) !important;
}

.form_inputs .btn:disabled .btn-loading i {
  color: var(--black) !important;
}

/* Animación del spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Estados del botón */
.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Campos con error */
.form_inputs input.error,
.form_inputs textarea.error {
  border-color: #ff4757 !important;
  background-color: rgba(255, 71, 87, 0.1) !important;
}