/* --- LÓGICA DEL MULTIPASO (WIZARD) --- */
.wizard-section {
  padding: 4rem 3rem 0 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh; /* Asegura que la pantalla no salte bruscamente al cambiar de pasos */
  scroll-margin-top: 1rem; /* Compensa la altura del navbar y el sobrante de las imágenes */
}

/* Ocultar todos los pasos por defecto */
.wizard-step {
  display: none;
  animation: fadeInStep 0.5s ease forwards;
}

/* Solo mostrar el paso activo */
.wizard-step.active {
  display: block;
}

/* Animación suave al cambiar de paso */
@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- DISEÑO DEL PASO 1 (HERO) --- */
.wizard-hero {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}

.wizard-content {
  background-color: var(--bg-card); /* Azul oscuro en night mode */
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Fondo claro para el modo día */
[data-theme="light"] .wizard-content {
  background-color: var(--bg-card-2); /* El fondo claro de tus variables */
}

.wizard-title {
  font-size: 3.5rem;
  line-height: 1.1; /* Reducido de 1.15 a 1.1 para igualar a inicio */
  font-weight: 700; /* EL FIX PRINCIPAL: Fuerza el grosor de la tipografía */
  margin: 0;
  color: var(--text-color);
}

.wizard-title .highlight {
  color: var(--text-color);
  font-weight: 700; /* Aseguramos que la palabra resaltada mantenga la fuerza */
  transition: color 0.3s ease;
}

[data-theme="light"] .wizard-title .highlight {
  color: var(--secundario); /* Dorado en modo claro */
}

.wizard-divider {
  width: 60px;
  height: 3px;
  background-color: var(--divisor-color);
  margin: 1.5rem 0;
}

.wizard-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  padding-right: 1rem;
}

/* --- IMÁGENES DEL PASO 1 --- */
.wizard-images {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
}

.wizard-images .img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.wizard-images .img-overlay {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 45%;
  height: 55%;
  object-fit: cover;
  border-radius: 20px;
  border: 15px solid var(--bg-color); /* Efecto de recorte */
  transition: border-color 0.3s ease;
}

/* --- RESPONSIVE PASO 1 --- */
@media (max-width: 992px) {
  .wizard-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .wizard-images {
    height: 400px;
  }
}

@media (max-width: 796px) {
  .wizard-section {
    padding: 2rem 1.5rem;
  }
  .wizard-title {
    font-size: 2.5rem;
  }
  .wizard-content {
    padding: 2.5rem 2rem;
  }
  .wizard-images .img-overlay {
    width: 55%;
    border-width: 10px;
    bottom: -10px;
    right: -10px;
  }
}
