/* ===================== Wizard Moderno - Variables ===================== */
:root {
  --wizard-primary: #066fdf;
  --wizard-secondary: #0056b3;
  --wizard-success: #28a745;
  --wizard-rojo: #eb2a11;
  --wizard-naranja: #fd7e14;
  --wizard-text: #333;
  --wizard-text-light: #6c757d;
  --wizard-bg: #ffffff;
  --wizard-bg-light: #f8f9fa;
  --wizard-border: #e9ecef;
  --wizard-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --wizard-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --wizard-radius: 16px;
  --wizard-radius-sm: 8px;
}

/* ===================== Progress Stepper ===================== */
.wizard-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem auto 4rem;
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, #e9ecef 0%, #e9ecef 100%);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  z-index: 1;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--wizard-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wizard-text-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-circle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
  z-index: -1;
}

.step.active .step-circle {
  background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
  border-color: var(--wizard-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(6, 111, 223, 0.4);
}

.step.active .step-circle::before {
  opacity: 1;
  transform: scale(1.2);
  animation: pulse 2s ease-in-out infinite;
}

.step.completed .step-circle {
  background: linear-gradient(135deg, var(--wizard-success), #1e8e3e);
  border-color: var(--wizard-success);
  color: white;
}

.step.completed .step-circle i {
  display: block;
  animation: checkmark 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.step-label {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wizard-text-light);
  transition: color 0.3s ease;
  text-align: center;
}

.step.active .step-label {
  color: var(--wizard-primary);
}

.step.completed .step-label {
  color: var(--wizard-success);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1.2);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.4);
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ===================== Wizard Container ===================== */
.wizard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.wizard-step {
  background: var(--wizard-bg);
  padding: 3rem;
  border-radius: var(--wizard-radius);
  box-shadow: var(--wizard-shadow);
  animation: fadeInUp 0.6s ease;
  border: 1px solid rgba(6, 111, 223, 0.1);
}

.wizard-step h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wizard-text);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wizard-step > p {
  font-size: 1.1rem;
  color: var(--wizard-text-light);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== Form Styles ===================== */
.wizard-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--wizard-text);
  transition: color 0.3s ease;
}

.form-group label i {
  margin-right: 0.5rem;
  color: var(--wizard-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--wizard-border);
  border-radius: var(--wizard-radius-sm);
  font-size: 1rem;
  color: var(--wizard-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--wizard-bg);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wizard-primary);
  box-shadow: 0 4px 16px rgba(6, 111, 223, 0.15);
  transform: translateY(-2px);
}

.form-group input::placeholder {
  color: #adb5bd;
}

/* ===================== Plan Cards ===================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.plan-card {
  background: white;
  border: 3px solid var(--wizard-border);
  border-radius: var(--wizard-radius);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 111, 223, 0.05) 0%, rgba(0, 86, 179, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--wizard-primary);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card.selected {
  border-color: var(--wizard-primary);
  border-width: 3px;
  box-shadow: 0 12px 32px rgba(6, 111, 223, 0.2);
  transform: translateY(-8px);
}

.plan-card.selected::before {
  opacity: 1;
}

.plan-card.selected .plan-header {
  color: var(--wizard-primary);
}

.badge-popular {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, var(--wizard-naranja), #e85d04);
  color: white;
  padding: 0.5rem 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4);
  z-index: 10;
}

.plan-header {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--wizard-text);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.plan-features li {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--wizard-text);
  border-bottom: 1px solid #f1f3f5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li i {
  color: var(--wizard-primary);
  font-size: 1.1rem;
  min-width: 20px;
}

.plan-features li strong {
  font-weight: 600;
  margin-right: 0.25rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: auto;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 2px solid var(--wizard-border);
  position: relative;
  z-index: 1;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--wizard-radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-secondary));
  color: white;
  box-shadow: 0 6px 20px rgba(6, 111, 223, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(6, 111, 223, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--wizard-primary);
  border: 2px solid var(--wizard-primary);
}

.btn-secondary:hover {
  background: var(--wizard-bg-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.wizard-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .wizard-progress {
    padding: 0 1rem;
    margin: 2rem auto 3rem;
  }

  .wizard-progress::before {
    left: 15%;
    right: 15%;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-label {
    font-size: 0.8rem;
  }

  .wizard-step {
    padding: 2rem 1.5rem;
  }

  .wizard-step h2 {
    font-size: 1.5rem;
  }

  .wizard-step > p {
    font-size: 1rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .plan-card {
    padding: 1.5rem;
  }

  .plan-header {
    font-size: 1.3rem;
  }

  .plan-price {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    padding: 1rem;
  }

  .wizard-form-actions {
    flex-direction: column;
  }
}

/* ===================== Success/Error Messages ===================== */
.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.messages li {
  padding: 1rem 1.5rem;
  border-radius: var(--wizard-radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.4s ease;
}

.messages li::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.2rem;
}

.messages .success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(30, 142, 62, 0.1));
  border-left: 4px solid var(--wizard-success);
  color: #155724;
}

.messages .success::before {
  content: '\f058';
  color: var(--wizard-success);
}

.messages .error {
  background: linear-gradient(135deg, rgba(235, 42, 17, 0.1), rgba(196, 30, 10, 0.1));
  border-left: 4px solid var(--wizard-rojo);
  color: #721c24;
}

.messages .error::before {
  content: '\f06a';
  color: var(--wizard-rojo);
}

.messages .warning {
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.1), rgba(232, 93, 4, 0.1));
  border-left: 4px solid var(--wizard-naranja);
  color: #856404;
}

.messages .warning::before {
  content: '\f071';
  color: var(--wizard-naranja);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
