@import url("../fonts.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ededed;
  padding: 20px 20px 40px;
  font-family: Arial, sans-serif;
  text-align: center;
  width: 100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.contact-header h1 {
  font-size: 2rem;
  color: #143da5;
  margin-bottom: 0.5rem;
  font-family: "Montserrat-Bold";
}

.contact-header p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  font-family: "Poppins-Regular";
}

.contact-flex {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}

.contact-info,
.contact-form {
  flex: 1 1 calc(50% - 20px); /* Cada elemento ocupa 50% del ancho menos la mitad del gap */
  min-width: 45%; /* Mínimo 45% para asegurar que no se hagan muy pequeños */
  box-sizing: border-box;
}

.contact-info h2 {
  color: #143da5;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-family: "Montserrat-Bold";
}

.contact-info h3 {
  padding-top: 10px;
  font-family: "Montserrat-Bold";
}

.contact-info p {
  color: #555;
  margin: 10px 0;
  font-family: "Poppins-Regular";
}

.contact-image {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 20px;
}

.contact-methods p {
  margin: 10px 0;
  font-size: 16px;
  text-align: center;
  font-family: "Poppins-Regular";
}

.contact-methods svg {
  width: 20px;
  position: relative;
  top: 5px;
  margin-right: 10px;
  fill: #143da5;
}

.social-icons {
  margin-top: 20px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.social-icons a {
  height: 100%;
  width: fit-content;
  color: #143da5;
  text-decoration: none;
  justify-content: center;
  align-items: center;
}

.social-icons a svg {
  margin: 0 10px;
  fill: #143da5;
  height: 100%;
  transition: 0.3s;
}

.social-icons a svg:hover {
  fill: #555;
}

.contact-form {
  background: #143da5;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.contact-form h2 {
  color: #f9f9f9;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-family: "Montserrat-Bold";
}

.contact-form p {
  color: #f9f9f9;
  margin-bottom: 0px;
  font-family: "Poppins-Regular";
}

.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inputBox {
  width: 100%;
  padding: 0;
}

.inputBox p {
  text-align: left;
  margin: 0;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  width: 100%;
  font-family: "Poppins-Regular";
}

.checkbox {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: #f9f9f9;
  max-width: 100%;
}

.checkbox label {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Poppins-Regular";
  line-height: normal; /* ✅ Define line-height primero */ /* 1lh = 1.5em (asumiendo font-size: 1em) */
}

.checkbox label a {
  color: white; /* 1lh = 1.5em (asumiendo font-size: 1em) */
}

.checkbox label a:hover {
  color: #cccccc; /* 1lh = 1.5em (asumiendo font-size: 1em) */
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transform: translateY(0.1em);
  margin: 0;
  padding: 0;
}

.privacy-link {
  color: #f9f9f9;
  text-decoration: underline;
  margin-left: 4px;
}

.privacy-link:hover {
  color: #dddddd;
}

#SubmitBtn[type="submit"] {
  padding: 12px 50px;
  background: #444;
  color: #f9f9f9;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  width: auto;
  font-family: "Poppins-Regular";
}

#SubmitBtn[type="submit"]:hover {
  background: #333;
  font-family: "Poppins-Bold";
}

#SubmitBtn {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#SubmitBtn[style*="none"] {
  display: none !important;
}

.Mapiframe {
  height: 250px;
  width: 100%;
  border-radius: 8px;
}

.alert-success {
  z-index: 1;
  background: #143da5;
  color: #fff;
  font-size: 1.2rem;
  padding: 20px 40px;
  min-width: 420px;
  position: fixed;
  font-family: "Montserrat-Bold";
  right: 0;
  top: 110px;
  border-radius: 5px;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    /* Sombra exterior */ inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* Borde interior sutil */
}

.alert-error {
  z-index: 1;
  background: #143da5;
  color: #fff;
  font-size: 1.2rem;
  padding: 20px 40px;
  min-width: 420px;
  position: fixed;
  font-family: "Montserrat-Bold";
  right: 0;
  top: 90px;
  border-radius: 5px;
  max-width: 100vw;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
    /* Sombra exterior */ inset 0 0 0 1px rgba(255, 255, 255, 0.2); /* Borde interior sutil */
}

/* Media Queries */
@media (max-width: 1024px) {
  .contact-section {
    padding: 30px 25px;
  }

  .contact-flex {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .alert-success,
  .alert-error {
    font-size: 0.9rem;
    min-width: auto;
    padding: 15px 25px;
    left: 0;
    right: 0;
    top: 80px;
    margin: 0 auto;
    text-align: center;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  #HideMobile {
    display: none;
  }

  .checkbox label {
    font-family: "Poppins-Regular";
    line-height: normal; /* ✅ Define line-height primero */
    margin-block: none; /* 1lh = 1.5em (asumiendo font-size: 1em) */
    padding: 0;
    margin: 0;
    width: fit-content;
  }

  .checkbox label a {
    font-family: "Poppins-Regular";
    line-height: normal; /* ✅ Define line-height primero */
    margin-block: none; /* 1lh = 1.5em (asumiendo font-size: 1em) */
    padding: 0;
    margin: 0;
  }

  .contact-flex {
    max-width: 600px;
    flex-direction: column-reverse;
    align-items: center;
    gap: 30px;
    display: flex;
    align-items: flex-start;
    margin-top: 0px;
  }

  .contact-info,
  .contact-form {
    min-width: 100%;
    max-width: 100%;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-header h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 1.7rem;
  }

  .contact-info h2,
  .contact-form h2 {
    font-size: 1.4rem;
  }

  .contact-form p {
    font-size: 0.9rem;
  }

  .social-icons a {
    font-size: 20px;
  }

  #SubmitBtn[type="submit"] {
    font-size: 14px;
    padding: 10px 30px;
  }

  .contact-methods p {
    font-size: 14px;
  }

  .contact-image {
    height: 200px;
  }
}
