:root {
  --color-primary: #874EE3;
  /* morado principal */
  --color-primary-rgb: 135, 78, 227;
  /* para sombras rgba */
  --color-secondary: #c9b9e0;
  /* lila claro */
  --color-border: #e5e7eb;
  /* gris suave para bordes neutros */
  --color-text: #111827;
  /* gris muy oscuro (texto) */
  --color-muted: #6b7280;
  /* gris medio (labels) */
  --color-error: #e53935;
  /* rojo para errores */
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* Mantén section-grid (lo usas en el markup), pero sin la malla */
.section-grid {
  position: relative;
}

/* Asterisco en campos requeridos */
.required::after {
  content: " *";
  color: var(--color-error);
}

/* ===== Floating labels ===== */
.form-floating {
  position: relative;
}

.form-floating .form-control,
.form-floating .form-select,
.form-floating textarea.form-control {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: all .3s ease;
}

.form-floating .form-control::placeholder,
.form-floating textarea.form-control::placeholder {
  color: transparent;
}

.form-floating label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 14px;
  color: var(--color-muted);
  pointer-events: none;
  transition: all .15s ease;
  padding: 0 4px;
  background: transparent;
}

.form-floating .form-control:focus+label,
.form-floating textarea.form-control:focus+label,
.form-floating .form-control:not(:placeholder-shown)+label,
.form-floating textarea.form-control:not(:placeholder-shown)+label,
.form-floating .form-select.filled+label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: var(--color-primary);
  background: #fff;
}

.form-floating .form-control:focus,
.form-floating .form-select:focus,
.form-floating textarea.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .18);
  outline: none;
  transform: scale(1.02);
}

/* Hover suave sobre el wrapper de cada campo */
.form-floating:hover .form-control,
.form-floating:hover .form-select,
.form-floating:hover textarea.form-control {
  border-color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), .08);
}

.error-message {
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-error);
}

/* ===== Animaciones (usadas en tu HTML) ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-header {
  opacity: 0;
  animation: fadeInUp .8s ease-out forwards;
}

.animate-form {
  opacity: 0;
  animation: slideInLeft .6s ease-out forwards;
}

.animate-testimonial {
  opacity: 0;
  animation: slideInRight .6s ease-out forwards;
}

.animate-step {
  opacity: 0;
  animation: fadeInUp .6s ease-out forwards;
}

.animate-image {
  opacity: 0;
  animation: scaleIn .8s ease-out forwards;
}

.animate-process-content {
  opacity: 0;
  animation: slideInRight .6s ease-out forwards;
}

.stagger-1 {
  animation-delay: .1s;
}

.stagger-2 {
  animation-delay: .2s;
}

.stagger-3 {
  animation-delay: .3s;
}

.stagger-4 {
  animation-delay: .4s;
}

.stagger-5 {
  animation-delay: .5s;
}

.stagger-6 {
  animation-delay: .6s;
}

/* ===== Tarjetas y pasos ===== */
.step-card {
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  border-left: 2px solid var(--color-secondary);
}

.step-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--color-primary);
}

/* ===== Botón enviar ===== */
.btn-submit {
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.btn-submit:hover {
  filter: brightness(.95);
  box-shadow: 0 8px 20px rgba(var(--color-primary-rgb), .30);
  transform: translateY(-2px);
}

.btn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .25);
}

/* ===== Responsive ===== */
@media (max-width:768px) {
  .container {
    padding: 2rem 1rem;
  }

  .animate-form,
  .animate-testimonial,
  .animate-process-content {
    animation-name: fadeInUp;
  }
}