/* ==========================================================================
   TANGO eCOMMERCE � FORMULARIO HERO DE CONTACTO
   Identidad visual oficial: #333333, #f3c108, #ffeeac, #fff7db, #ffffff
   ========================================================================== */

/* 1. CONTENEDOR GENERAL */
.hero-form-card,
#contacto.hero-form-card {
  background-color: #ffffff !important;
  color: #333333 !important;
  border-radius: 20px !important;
  padding: 2.25rem 2rem !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(51, 51, 51, 0.06) !important;
  width: 100% !important;
  max-width: 480px !important;
  box-sizing: border-box !important;
  align-self: flex-start !important;
  position: relative !important;
  z-index: 10 !important;
}

@media (max-width: 992px) {
  .hero-form-card,
  #contacto.hero-form-card {
    max-width: 520px !important;
    margin: 0 auto !important;
  }
}

/* 2. T�TULO DEL FORMULARIO */
.hero-form-card h2,
.hero-form-card h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  color: #333333 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.3px !important;
}

/* 3. BAJADA */
.hero-form-card p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.48 !important;
  color: #333333 !important;
  margin: 0 0 22px 0 !important;
}

/* 4. GRID DESKTOP / MOBILE */
.hero-form-card form,
.hero-form-card .purple-form,
#landing-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 16px !important;
  row-gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 5. ESTRUCTURA DE CAMPOS */
.hero-form-card .field-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.hero-form-card .field-full {
  grid-column: span 2 !important;
}

/* 6. LABELS */
.hero-form-card .field-group label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #333333 !important;
  letter-spacing: 0.1px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  pointer-events: auto !important;
  cursor: default !important;
  line-height: 1.25 !important;
  display: block !important;
}

.hero-form-card .field-group label span {
  color: #d32f2f !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}

/* 7. INPUTS */
.hero-form-card .field-input,
.hero-form-card input.field-input,
.hero-form-card input[type="text"].field-input,
.hero-form-card input[type="email"].field-input,
.hero-form-card input[type="tel"].field-input,
#landing-form input[type="text"],
#landing-form input[type="email"],
#landing-form input[type="tel"] {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  background-color: #fff7db !important;
  border: 1px solid rgba(51, 51, 51, 0.18) !important;
  border-radius: 9px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #333333 !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 44px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

/* Placeholders */
.hero-form-card .field-input::placeholder,
.hero-form-card input::placeholder,
.hero-form-card textarea::placeholder {
  color: #767676 !important;
  font-size: 0.86rem !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* Focus State */
.hero-form-card .field-input:focus,
.hero-form-card input.field-input:focus,
.hero-form-card input[type="text"].field-input:focus,
.hero-form-card input[type="email"].field-input:focus,
.hero-form-card input[type="tel"].field-input:focus,
.hero-form-card select.field-input:focus,
.hero-form-card textarea.field-input:focus,
#landing-form input:focus,
#landing-form select:focus,
#landing-form textarea:focus {
  border-color: #f3c108 !important;
  box-shadow: 0 0 0 3px rgba(243, 193, 8, 0.22) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* 8. SELECTS */
.hero-form-card select.field-input,
#landing-form select.field-input,
#landing-form select {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 38px 0 14px !important;
  margin: 0 !important;
  background-color: #fff7db !important;
  border: 1px solid rgba(51, 51, 51, 0.18) !important;
  border-radius: 9px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #333333 !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 44px !important;
  display: block !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1 2.5L7 8.5L13 2.5' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.hero-form-card select.field-input option {
  background-color: #ffffff;
  color: #333333;
}

/* 9. PREGUNTA: "�YA SOS CLIENTE DE TANGO SOFTWARE?" */
.hero-form-card .radio-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px 18px !important;
  align-items: center !important;
  margin-top: 4px !important;
}

.hero-form-card .radio-option {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #333333 !important;
  cursor: pointer !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background-color: rgba(51, 51, 51, 0.03) !important;
  border: 1px solid rgba(51, 51, 51, 0.1) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
  user-select: none !important;
  margin: 0 !important;
  height: auto !important;
  line-height: normal !important;
}

.hero-form-card .radio-option:hover {
  background-color: rgba(243, 193, 8, 0.15) !important;
  border-color: rgba(243, 193, 8, 0.5) !important;
}

.hero-form-card .radio-option input[type="radio"],
.hero-form-card .radio-group input[type="radio"] {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  margin: 0 !important;
  width: 17px !important;
  height: 17px !important;
  cursor: pointer !important;
  accent-color: #333333 !important;
  flex-shrink: 0 !important;
}

/* 10. TEXTAREA */
.hero-form-card textarea.field-input,
#landing-form textarea.field-input,
#landing-form textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 82px !important;
  height: 82px !important;
  padding: 11px 14px !important;
  margin: 0 !important;
  background-color: #fff7db !important;
  border: 1px solid rgba(51, 51, 51, 0.18) !important;
  border-radius: 9px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #333333 !important;
  resize: vertical !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 1.45 !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

/* 11. BOT�N DE ENV�O (CTA ID�NTICO A LA LANDING) */
.hero-form-card .btn-purple-submit,
#landing-form .btn-purple-submit,
#landing-form button[type="submit"] {
  grid-column: span 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 8px !important;
  padding: 15px 32px !important;
  min-height: 50px !important;
  width: 100% !important;
  border: none !important;
  border-radius: 8px !important;
  background-color: #333333 !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
  box-sizing: border-box !important;
}

.hero-form-card .btn-purple-submit::after,
#landing-form .btn-purple-submit::after,
#landing-form button[type="submit"]::after {
  content: "\2192" !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  display: inline-block !important;
  transition: transform 0.2s ease !important;
}

.hero-form-card .btn-purple-submit:hover,
#landing-form .btn-purple-submit:hover,
#landing-form button[type="submit"]:hover {
  background-color: #000000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.hero-form-card .btn-purple-submit:hover::after,
#landing-form .btn-purple-submit:hover::after,
#landing-form button[type="submit"]:hover::after {
  transform: translateX(4px) !important;
}

.hero-form-card .btn-purple-submit:active,
#landing-form .btn-purple-submit:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* 12. MENSAJES DE ESTADO Y VALIDACI�N */
.hero-form-card span.error,
#landing-form span.error {
  color: #d32f2f !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.hero-form-card .error-message,
#landing-form .error-message {
  color: #721c24 !important;
  background-color: #f8d7da !important;
  border: 1px solid #f5c6cb !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.84rem !important;
  font-family: 'Montserrat', sans-serif !important;
  margin: 0 !important;
}

/* ==========================================================================
   AJUSTES EXCLUSIVOS MOBILE (<= 768px)
   Eliminaci�n de colisi�n de float, espacio vac�o superior y flujo natural
   ========================================================================== */
@media (max-width: 768px) {
  .hero-form-card,
  #contacto.hero-form-card {
    clear: both !important;
    float: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    padding-top: 30px !important;
    padding-bottom: 24px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    border-radius: 0 !important;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    border-left: none !important;
    border-right: none !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .hero-form-card h2,
  .hero-form-card h3 {
    font-size: 22px !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.25 !important;
  }

  .hero-form-card p {
    font-size: 0.88rem !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    line-height: 1.45 !important;
  }

  .hero-form-card form,
  .hero-form-card .purple-form,
  #landing-form {
    grid-template-columns: 1fr !important;
    row-gap: 12px !important;
  }

  .hero-form-card .field-full {
    grid-column: span 1 !important;
  }

  .hero-form-card .btn-purple-submit,
  #landing-form .btn-purple-submit,
  #landing-form button[type="submit"] {
    grid-column: span 1 !important;
    font-size: 0.88rem !important;
    padding: 14px 20px !important;
  }
}
