.contacto-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Cambiado de flex-start a stretch */
  gap: 4vw;
  padding: 40px 1em 20px 1em;
  background: #f6f8fa;
  flex-wrap: wrap;
}

.contacto-img {
  flex: 1 1 480px; /* Igual que el form */
  max-width: 480px;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.contacto-img img {
  width: 100%;
  height: 100%; /* Igualamos la altura */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 5px 24px #e2e2f7;
  background: #fff;
}

/* Formulario */
.contacto-form-card {
  background: #fff;
  padding: 32px 24px 20px 24px;
  border-radius: 14px;
  box-shadow: 0 5px 24px #e2e2f7;
  flex: 1 1 480px; /* Igual que .contacto-img */
  max-width: 480px;
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Para que el botón esté abajo */
}

.contacto-form-card h2 {
  font-size: 1.55em;
  color: #36416b;
  font-weight: 700;
  margin-bottom: 22px;
  text-align: center;
}

.contacto-row {
  display: flex;
  gap: 18px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}

.contacto-field {
  flex: 1 1 74px;
  display: flex;
  flex-direction: column;
}

.contacto-field label {
  font-size: 1em;
  color: #1d2240;
  margin-bottom: 5px;
  font-weight: 500;
}

.contacto-field input,
.contacto-field textarea {
  border: 1.5px solid #e7eaf6;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1em;
  background: #f8fafc;
  transition: border-color 0.2s;
}

.contacto-field input:focus,
.contacto-field textarea:focus {
  outline: none;
  border-color: #2586ff;
  background: #fff;
}

.contacto-actions {
  text-align: right;
  margin-top: auto;
}

.btn-contacto {
  background: #2586ff;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  padding: 10px 30px;
  font-size: 1.07em;
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 1px 8px rgba(198, 239, 207, 0.16);
}

.btn-contacto:hover {
  background: #16552b;
}

/* Responsivo */
@media (max-width: 1000px) {
  .contacto-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px 1em;
  }
  .contacto-img,
  .contacto-form-card {
    max-width: 95vw;
  }
  .contacto-img img {
    height: auto;
    max-height: 400px;
  }
}

@media (max-width: 700px) {
  .contacto-form-card {
    padding: 18px 12px 10px 12px;
    min-width: 0;
  }
  .contacto-row {
    flex-direction: column;
    gap: 10px;
  }
}
