/* ========================================
   ONBOARDING CAROUSEL - GeoIPT
   ======================================== */

/* Overlay oscuro */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Contenedor del carousel */
.carousel-container {
  position: relative;
  width: 90%;
  max-width: 700px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  z-index: 9999;
}

/* Slides */
.carousel-slides {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide {
  display: none;
  padding: 40px 30px;
  text-align: center;
  animation: slideIn 0.4s ease-out;
}

.slide.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Contenedor de imagen */
.slide-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(56, 189, 248, 0.3);
}

.slide-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Textos */
.slide-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #38bdf8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.slide-subdescription {
  font-size: 0.9rem;
  color: #94a3b8;
  font-style: italic;
}

/* Indicadores de progreso */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #38bdf8;
  width: 32px;
  border-radius: 5px;
}

/* Botones de navegación */
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px 30px;
  gap: 16px;
}

.btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-skip {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
}

.btn-skip:hover {
  background: #1e293b;
  color: #cbd5e1;
}

.btn-next {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
  flex: 1;
  max-width: 200px;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.5);
}

.btn-finish {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  flex: 1;
}

.btn-finish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}

/* Botón cerrar */
.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: rotate(90deg);
}

/* Badge de paso */
.step-badge {
  position: absolute;
  top: 20px;
  left: 30px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Animación de cierre */
.onboarding-overlay.closing {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  .carousel-container {
    width: 95%;
    max-width: none;
  }

  .slide {
    padding: 30px 20px;
  }

  .slide-title {
    font-size: 1.4rem;
  }

  .slide-description {
    font-size: 0.95rem;
  }

  .carousel-controls {
    padding: 0 20px 20px;
    flex-wrap: wrap;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-skip {
    order: 2;
    flex: 1;
  }

  .btn-next,
  .btn-finish {
    order: 1;
    flex: 1;
    max-width: 100%;
  }
}