/* === Hero Header Moderno for Contacto === */
.contacto-hero {
  position: relative;
  width: 100vw;
  min-height: 44vh;
  height: 44vh;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contacto-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: background-image 0.4s;
}

.contacto-main {
  position: relative;
  min-height: 60vh;
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
  background: none;
  margin-top: -30px;
  padding-bottom: 60px;
}

.contacto-form-card {
  position: relative;
  z-index: 3;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  margin-top: 0;
}

.contacto-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -1px;
}

.contacto-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.08rem;
  font-family: inherit;
  background: #f7f8fa;
  color: #222;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: #1536F2;
  box-shadow: 0 2px 8px 0 rgba(21,54,242,0.08);
}
.contacto-form textarea {
  min-height: 120px;
  max-height: 260px;
}
.contacto-form button {
  background: #000000;
  color: #fff;
  padding: 0.95rem 1.1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  letter-spacing: 0.01em;
}
.contacto-form button:hover {
  background: #333333;
}
@media (max-width: 600px) {
  .contacto-form-card {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }
  .contacto-title {
    font-size: 1.4rem;
  }
  .contacto-hero {
    min-height: 28vh;
    height: 28vh;
    max-height: 220px;
  }
}

/* === WPForms Modern Minimal Styling === */
.wpforms-container,
div.wpforms-container-full {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wpforms-form,
div.wpforms-container-full .wpforms-form {
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wpforms-field-container,
div.wpforms-container-full .wpforms-form .wpforms-field-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.wpforms-field,
div.wpforms-container-full .wpforms-form .wpforms-field {
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.wpforms-field-label,
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #333 !important;
  margin-bottom: 0.4rem !important;
  letter-spacing: 0.01em !important;
}

.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select,
div.wpforms-container-full .wpforms-form .wpforms-field input[type=text],
div.wpforms-container-full .wpforms-form .wpforms-field input[type=email],
div.wpforms-container-full .wpforms-form .wpforms-field input[type=number],
div.wpforms-container-full .wpforms-form .wpforms-field input[type=tel],
div.wpforms-container-full .wpforms-form .wpforms-field textarea,
div.wpforms-container-full .wpforms-form .wpforms-field select {
  width: 100% !important;
  padding: 0.85rem 1.1rem !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 10px !important;
  font-size: 1.08rem !important;
  font-family: inherit !important;
  background: #f7f8fa !important;
  color: #222 !important;
  transition: border 0.2s, box-shadow 0.2s !important;
  outline: none !important;
  resize: vertical !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus,
div.wpforms-container-full .wpforms-form .wpforms-field input:focus,
div.wpforms-container-full .wpforms-form .wpforms-field textarea:focus,
div.wpforms-container-full .wpforms-form .wpforms-field select:focus {
  border-color: #1536F2 !important;
  box-shadow: 0 2px 8px 0 rgba(21,54,242,0.08) !important;
}

.wpforms-field textarea,
div.wpforms-container-full .wpforms-form .wpforms-field textarea {
  min-height: 120px !important;
  max-height: 260px !important;
}

.wpforms-submit-container,
div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  padding: 0 !important;
  margin-top: 1.5rem !important;
  display: flex !important;
  justify-content: center !important;
  clear: both !important;
  width: 100% !important;
}

.wpforms-submit,
div.wpforms-container-full .wpforms-form .wpforms-submit,
button.wpforms-submit {
  background: #000000 !important;
  color: #fff !important;
  padding: 0.95rem 2rem !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08) !important;
  letter-spacing: 0.01em !important;
  margin: 0 auto !important;
  min-width: 200px !important;
}

.wpforms-submit:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover,
button.wpforms-submit:hover {
  background: #333333 !important;
}

.wpforms-error, 
.wpforms-field-error,
div.wpforms-container-full .wpforms-form .wpforms-error,
div.wpforms-container-full .wpforms-form .wpforms-field-error {
  color: #ff3b3b !important;
  background: none !important;
  border: none !important;
  font-size: 0.98rem !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0.2rem !important;
}

.wpforms-confirmation-container,
div.wpforms-container-full .wpforms-confirmation-container {
  background: #000000 !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 1.2rem 1rem !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  margin-top: 1.5rem !important;
  border: none !important;
}

/* Make sure wpforms in the main section have proper margins */
.contacto-form-card div.wpforms-container-full {
  margin: 1rem 0 !important;
}

@media (max-width: 600px) {
  .wpforms-form,
  div.wpforms-container-full .wpforms-form {
    width: 100% !important;
    padding: 0 !important;
  }
  
  .wpforms-submit,
  div.wpforms-container-full .wpforms-form .wpforms-submit,
  button.wpforms-submit {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
  }
}

/* Extra overrides for stronger specificity */
body div.wpforms-container-full .wpforms-form div.wpforms-submit-container {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0 !important;
}

body div.wpforms-container-full .wpforms-form div.wpforms-submit-container button.wpforms-submit {
  margin: 0 auto !important;
  display: block !important;
  width: auto !important;
  min-width: 200px !important;
  text-align: center !important;
  padding: 0.95rem 2rem !important;
  border-radius: 10px !important;
  background: #1536F2 !important;
  color: #fff !important;
  border: none !important;
}

body .contacto-form-card div.wpforms-container-full {
  width: 100% !important;
  max-width: 100% !important;
}

/* Important: Reset any floats WPForms might apply */
.wpforms-submit-container::after,
.wpforms-submit-container::before,
.wpforms-form::after,
.wpforms-form::before {
  content: none !important;
  display: none !important;
}

/* Sobrescribe el max-width de WPForms para los campos medium */
.wpforms-container input.wpforms-field-medium,
.wpforms-container select.wpforms-field-medium,
.wpforms-container textarea.wpforms-field-medium {
  max-width: 100% !important;
  width: 100% !important;
} 