/* ── Wizard Survey Styles ── */
.wizard-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  position: relative;
  z-index: 1;
}

/* Pasos ocultos/visibles */
.wstep { display: none; width: 100%; max-width: 640px; }
.wstep.active { display: flex; justify-content: center; animation: fadeSlide .4s ease; }

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

/* Tarjeta del wizard */
.wcard {
  background: rgba(31, 41, 55, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 3rem 2.5rem;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-card { text-align: center; }
.success-wcard { text-align: center; }

/* Badge de paso */
.w-step-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-light);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Barra de progreso */
.w-progress {
  height: 5px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.w-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light), var(--orange));
  border-radius: 999px;
  transition: width .6s ease;
}

/* Icono grande */
.w-icon-big {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.w-sun { font-size: 5rem; display: block; margin-bottom: 1.25rem; }
.anim-bounce { animation: bounce 1s infinite alternate; }
@keyframes bounce { from {transform:translateY(0);} to {transform:translateY(-10px);} }

/* Títulos */
.wcard h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .75rem;
  background: linear-gradient(135deg,#fff 20%,var(--green-light) 60%,var(--orange-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
.wcard h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .65rem; line-height: 1.4; text-align: center; }
.w-sub  { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; }
.w-desc { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; text-align: center; line-height: 1.6; }
.w-privacy { text-align:center; font-size:.72rem; color:var(--text-muted); margin-top:1rem; }

/* Grid info bienvenida */
.w-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 2rem;
}
.w-info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  justify-content: center;
}
.w-info-item.done { color: var(--green-light); background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.25); }

/* Campos de texto */
.w-fields { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.w-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.w-field { display: flex; flex-direction: column; gap: .4rem; }
.w-field label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.w-field input,
.w-field select {
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family: 'Poppins',sans-serif;
  font-size: .92rem;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none; appearance: none;
}
.w-field input:focus, .w-field select:focus {
  border-color: var(--green);
  background: rgba(16,185,129,.07);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.w-field select option { background: var(--bg2); color: var(--text); }

/* Opciones de respuesta */
.w-options { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.5rem; }
.w-opt {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.w-opt:hover { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.06); transform: translateY(-3px) scale(1.01); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.w-opt.selected { 
  border-color: var(--green); 
  background: rgba(16,185,129,0.12); 
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 12px 30px rgba(16,185,129,0.25);
  z-index: 2;
}
.w-opt-emoji { font-size: 1.6rem; flex-shrink: 0; }
.w-opt-text { flex: 1; }
.w-opt-text strong { display: block; font-size: .92rem; color: var(--text); margin-bottom: .1rem; }
.w-opt-text small  { font-size: .78rem; color: var(--text-muted); }
.w-opt-check {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: transparent;
  flex-shrink: 0; transition: var(--transition);
}
.w-opt.selected .w-opt-check { background: var(--green); border-color: var(--green); color: #fff; }

/* Botones de navegación */
.w-nav { display: flex; gap: .75rem; }
.w-btn-next, .w-btn-send {
  flex: 1;
  padding: .95rem 1.5rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: #fff;
  font-family: 'Poppins',sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.w-btn-next:hover:not(:disabled), .w-btn-send:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16,185,129,.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.w-btn-next:disabled, .w-btn-send:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(50%); }
.w-btn-back {
  padding: .95rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Poppins',sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.w-btn-back:hover { color: var(--text); border-color: var(--green); }

/* Pregunta de Valoración (Escala 1-5) */
.w-rating-box {
  margin: 1.5rem 0 2rem;
  display: flex;
  justify-content: center;
}
.w-options-rating {
  display: flex;
  gap: .75rem;
  width: 100%;
  justify-content: center;
}
.w-opt-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.w-opt-circle span { font-size: 1.25rem; font-weight: 700; color: var(--text-muted); }
.w-opt-circle small { 
  position: absolute; 
  bottom: -22px; 
  font-size: .65rem; 
  font-weight: 600; 
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.w-opt-circle:hover { 
  border-color: rgba(16,185,129,0.5); 
  background: rgba(16,185,129,0.08);
  transform: translateY(-4px);
}
.w-opt-circle.selected {
  border-color: var(--green);
  background: rgba(16,185,129,0.2);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1), 0 10px 20px rgba(16,185,129,0.25);
}
.w-opt-circle.selected span { color: var(--green-light); }
.w-opt-circle.selected small { color: var(--green-light); }

/* Responsive */
@media(max-width:520px) {
  .wcard { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .w-field-row { grid-template-columns: 1fr; }
  .w-info-grid { grid-template-columns: 1fr 1fr; }
  .wcard h2 { font-size: 1rem; }
  .w-opt-emoji { font-size: 1.3rem; }
  .w-opt-circle { width: 45px; height: 45px; }
  .w-opt-circle span { font-size: 1.1rem; }
}
