/**
 * Cambio de Clave WiFi — Wizard Carousel Premium
 * INSTANET Ecuador
 * 
 * @package WellOnly
 * @since 4.1.0
 */

/* ============================================= */
/* VARIABLES / DESIGN TOKENS                     */
/* ============================================= */
:root {
  --wiz-primary: #F7931E;
  --wiz-primary-dark: #E07A0E;
  --wiz-accent: #00D4AA;
  --wiz-accent-blue: #4285F4;
  --wiz-bg: #06091a;
  --wiz-bg-card: rgba(255, 255, 255, 0.03);
  --wiz-border: rgba(247, 147, 30, 0.12);
  --wiz-text: #e2e8f0;
  --wiz-text-muted: #7b8ca8;
  --wiz-gradient: linear-gradient(135deg, #F7931E 0%, #FF6B35 50%, #00D4AA 100%);
  --wiz-glow-orange: 0 0 60px rgba(247, 147, 30, 0.08);
  --wiz-glow-green: 0 0 60px rgba(0, 212, 170, 0.06);
  --wiz-radius: 24px;
  --wiz-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================= */
/* FULL-SCREEN WIZARD WRAPPER                    */
/* ============================================= */
.wiz {
  position: relative;
  min-height: 100vh;
  background: var(--wiz-bg);
  overflow: hidden;
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--wiz-text);
}

/* Fondo con partículas de red */
.wiz__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wiz__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 20% 10%, rgba(247, 147, 30, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 90%, rgba(0, 212, 170, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(66, 133, 244, 0.03) 0%, transparent 50%);
}

/* Cuadrícula sutil */
.wiz__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================= */
/* PROGRESS BAR (ARRIBA)                         */
/* ============================================= */
.wiz__progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 100;
}

.wiz__progress-bar {
  height: 100%;
  background: var(--wiz-gradient);
  border-radius: 0 4px 4px 0;
  transition: width 0.6s ease;
  box-shadow: 0 0 20px rgba(247, 147, 30, 0.4);
}

/* ============================================= */
/* SLIDES CONTAINER                              */
/* ============================================= */
.wiz__viewport {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.wiz__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px) scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
  will-change: transform, opacity;
}

.wiz__slide--active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.wiz__slide--left {
  transform: translateX(-80px) scale(0.96);
  opacity: 0;
  visibility: hidden;
}

/* ============================================= */
/* SLIDE CONTENT (MAX WIDTH CARD)                */
/* ============================================= */
.wiz__card {
  width: 100%;
  max-width: 680px;
  background: var(--wiz-bg-card);
  border: 1px solid var(--wiz-border);
  border-radius: var(--wiz-radius);
  box-shadow: var(--wiz-glow-orange);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  animation: cardPop 0.6s ease-out;
}

@keyframes cardPop {
  from {
    transform: scale(0.95);
    opacity: 0.5;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================= */
/* SLIDE: INTRO (Portada)                        */
/* ============================================= */
.wiz__intro {
  text-align: center;
  padding: 60px 40px;
}

.wiz__intro-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 147, 30, 0.08);
  border: 2px solid rgba(247, 147, 30, 0.2);
  border-radius: 28px;
  font-size: 2.5rem;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.wiz__intro-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #fff;
}

.wiz__intro-title span {
  background: var(--wiz-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wiz__intro-sub {
  font-size: 1.05rem;
  color: var(--wiz-text-muted);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.wiz__intro-steps {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.wiz__intro-step-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--wiz-text-muted);
  transition: all 0.3s;
}

.wiz__intro-step-pill i {
  color: var(--wiz-primary);
  font-size: 0.9rem;
}

/* ============================================= */
/* STEP CARD CONTENT                             */
/* ============================================= */
.wiz__step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wiz__step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wiz-gradient);
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 20px rgba(247, 147, 30, 0.35);
}

.wiz__step-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.wiz__step-body {
  padding: 28px 32px 32px;
}

.wiz__step-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--wiz-text);
}

.wiz__step-desc strong,
.wiz__step-desc b {
  color: #fff;
}

.wiz__step-desc a {
  color: var(--wiz-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(247, 147, 30, 0.4);
  transition: all 0.2s;
}

.wiz__step-desc a:hover {
  color: var(--wiz-accent);
  border-color: var(--wiz-accent);
}

/* ============================================= */
/* ILLUSTRATION (PHONE MOCKUP IN SVG)            */
/* ============================================= */
.wiz__illustration {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wiz__illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================= */
/* CODE / PASSWORD BOX                           */
/* ============================================= */
.wiz__code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(247, 147, 30, 0.08);
  border: 1.5px solid rgba(247, 147, 30, 0.3);
  border-radius: 12px;
  font-family: 'Courier New', 'Fira Code', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wiz-primary);
  letter-spacing: 1.5px;
  user-select: all;
  cursor: pointer;
  transition: all 0.3s;
}

.wiz__code:hover {
  background: rgba(247, 147, 30, 0.15);
  border-color: var(--wiz-primary);
  box-shadow: 0 0 25px rgba(247, 147, 30, 0.15);
  transform: translateY(-1px);
}

.wiz__code-icon {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.wiz__code:hover .wiz__code-icon {
  opacity: 1;
}

.wiz__code--copied {
  background: rgba(0, 212, 170, 0.1) !important;
  border-color: rgba(0, 212, 170, 0.5) !important;
  color: var(--wiz-accent) !important;
}

/* ============================================= */
/* TIP / WARNING BOXES                           */
/* ============================================= */
.wiz__tip,
.wiz__warn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 18px;
}

.wiz__tip {
  background: rgba(0, 212, 170, 0.05);
  border: 1px solid rgba(0, 212, 170, 0.15);
}

.wiz__tip-icon {
  flex-shrink: 0;
  color: var(--wiz-accent);
  font-size: 1.15rem;
  margin-top: 1px;
}

.wiz__warn {
  background: rgba(255, 69, 58, 0.05);
  border: 1px solid rgba(255, 69, 58, 0.15);
}

.wiz__warn-icon {
  flex-shrink: 0;
  color: #ff453a;
  font-size: 1.15rem;
  margin-top: 1px;
}

/* ============================================= */
/* GOOGLE PLAY BADGE                             */
/* ============================================= */
.wiz__play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s;
}

.wiz__play-badge:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.wiz__play-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.wiz__play-badge-sm {
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.wiz__play-badge-lg {
  font-size: 1rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

/* ============================================= */
/* NAVIGATION CONTROLS (BOTTOM BAR)              */
/* ============================================= */
.wiz__nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(6, 9, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dots / Indicadores */
.wiz__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wiz__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.wiz__dot:hover {
  background: rgba(255, 255, 255, 0.25);
}

.wiz__dot--active {
  width: 28px;
  border-radius: 5px;
  background: var(--wiz-primary);
  box-shadow: 0 0 12px rgba(247, 147, 30, 0.4);
}

/* Buttons */
.wiz__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  line-height: 1.2;
}

.wiz__btn--prev {
  background: rgba(255, 255, 255, 0.06);
  color: var(--wiz-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wiz__btn--prev:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.wiz__btn--next {
  background: var(--wiz-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(247, 147, 30, 0.3);
}

.wiz__btn--next:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(247, 147, 30, 0.45);
}

.wiz__btn--next i {
  transition: transform 0.3s;
}

.wiz__btn--next:hover i {
  transform: translateX(3px);
}

.wiz__btn--start {
  padding: 16px 40px;
  font-size: 1.05rem;
  background: var(--wiz-gradient);
  color: #fff;
  box-shadow: 0 6px 25px rgba(247, 147, 30, 0.35);
}

.wiz__btn--start:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(247, 147, 30, 0.5);
}

.wiz__btn--whatsapp {
  background: #25D366;
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.wiz__btn--whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.wiz__btn--open-ip {
  background: var(--wiz-gradient);
  color: #fff;
  padding: 16px 32px;
  font-size: 1.05rem;
  box-shadow: 0 6px 25px rgba(247, 147, 30, 0.35);
  justify-content: center;
  width: 100%;
  max-width: 340px;
}

.wiz__btn--open-ip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(247, 147, 30, 0.5);
  color: #fff;
}

.wiz__btn--call {
  background: rgba(66, 133, 244, 0.12);
  color: var(--wiz-accent-blue);
  border: 1.5px solid rgba(66, 133, 244, 0.3);
  padding: 14px 32px;
  font-size: 1rem;
}

.wiz__btn--call:hover {
  background: rgba(66, 133, 244, 0.2);
  border-color: var(--wiz-accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(66, 133, 244, 0.25);
  color: var(--wiz-accent-blue);
}

/* ============================================= */
/* SUPPORT OPTIONS (FINAL SLIDE)                 */
/* ============================================= */
.wiz__support-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.wiz__support-options .wiz__btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.wiz__btn--hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ============================================= */
/* FINAL SLIDE                                   */
/* ============================================= */
.wiz__final {
  text-align: center;
  padding: 50px 40px;
}

.wiz__final-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 170, 0.1);
  border: 2px solid rgba(0, 212, 170, 0.3);
  border-radius: 50%;
  font-size: 2.2rem;
  animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.2);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(0, 212, 170, 0);
  }
}

.wiz__final-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.wiz__final-text {
  font-size: 1rem;
  color: var(--wiz-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 28px;
}

/* ============================================= */
/* KEYBOARD HINT                                 */
/* ============================================= */
.wiz__keyboard-hint {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--wiz-text-muted);
}

.wiz__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--wiz-text-muted);
}

/* ============================================= */
/* SWIPE INDICATOR (MOBILE)                      */
/* ============================================= */
.wiz__swipe-hint {
  display: none;
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--wiz-text-muted);
  animation: swipeHint 3s ease-in-out infinite;
}

@keyframes swipeHint {

  0%,
  30%,
  100% {
    opacity: 0.6;
  }

  15% {
    opacity: 1;
  }
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (min-width: 1024px) {
  .wiz__keyboard-hint {
    display: flex;
  }
}

@media (max-width: 767px) {
  .wiz__slide {
    padding: 30px 12px 100px;
    align-items: flex-start;
    padding-top: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wiz__card {
    border-radius: 18px;
  }

  .wiz__intro {
    padding: 36px 24px;
  }

  .wiz__intro-title {
    font-size: 1.6rem;
  }

  .wiz__step-header {
    padding: 18px 20px;
  }

  .wiz__step-num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .wiz__step-title {
    font-size: 1rem;
  }

  .wiz__step-body {
    padding: 20px;
  }

  .wiz__nav {
    padding: 12px 16px;
  }

  .wiz__btn {
    padding: 10px 20px;
    font-size: 0.88rem;
  }

  .wiz__btn--start {
    padding: 13px 28px;
    font-size: 0.95rem;
  }

  .wiz__swipe-hint {
    display: flex;
  }

  .wiz__intro-steps {
    gap: 8px;
  }

  .wiz__intro-step-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .wiz__intro {
    padding: 28px 16px;
  }

  .wiz__step-body {
    padding: 16px;
  }
}

/* ============================================= */
/* SLIDE COUNTER (top right)                     */
/* ============================================= */
.wiz__counter {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wiz-text-muted);
}

.wiz__counter-current {
  color: var(--wiz-primary);
}

/* ============================================= */
/* HOME BUTTON (TOP LEFT → instanet.ec)          */
/* ============================================= */
.wiz__home-btn {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--wiz-text-muted);
  text-decoration: none;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s;
}

.wiz__home-btn:hover {
  background: rgba(247, 147, 30, 0.1);
  border-color: rgba(247, 147, 30, 0.3);
  color: var(--wiz-primary);
  transform: translateY(-1px);
}

.wiz__home-btn i {
  font-size: 0.85rem;
  color: var(--wiz-primary);
}

@media (max-width: 767px) {
  .wiz__home-btn span {
    display: none;
  }

  .wiz__home-btn {
    padding: 10px 12px;
    border-radius: 10px;
  }
}

/* ============================================= */
/* CONFETTI (SUCCESS ANIMATION)                  */
/* ============================================= */
.wiz__confetti {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: none;
}

.wiz__confetti--active {
  display: block;
}

.wiz__confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}