/* =========================================================
   WORKFLOW CIRCULAR SLIDER (BASED ON CHIEF'S DESIGN)
   ========================================================= */

.workflow-wrapper {
  position: relative;
  /* El height lo manejará GSAP ScrollTrigger internamente o podemos forzar un min-height pero es mejor dejar que ScrollTrigger calcule el end */
  min-height: 300vh;
  background: #f7f1e7; /* Fondo principal del sitio para transicionar suave */
}

.workflow-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #f7f1e7; /* Color inicial antes de cambiar */
}

/* Slides */
.w-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  transform-origin: calc(100% + 95px) -95px;
  will-change: transform;
}

/* Colores de fondo de las diapositivas para que destaquen como el diseño */
.w-slide.slide-a { background: #2563eb; } /* Azul */
.w-slide.slide-b { background: #f97316; } /* Naranja */
.w-slide.slide-c { background: #16a34a; } /* Verde */

.w-slide-content {
  display: grid;
  gap: 22px;
  text-align: center;
  place-items: center;
  padding: 24px;
}

.w-slide-content h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.w-slide-content p {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  max-width: 560px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.w-scene-card {
  width: min(520px, 90vw);
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.25);
  margin-top: 1rem;
}

.w-scene-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: left;
}

.w-skeleton-line {
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.w-skeleton-line.short {
  width: 65%;
}

.w-scene-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: white;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.w-scene-element {
  will-change: transform, opacity;
}

/* Donut - fixed top-right */
.workflow-donut-hub {
  position: absolute; /* absolute dentro del container anclado, pero lo manejamos con GSAP */
  top: -95px;
  right: -95px;
  width: 190px;
  height: 190px;
  z-index: 120;
  pointer-events: none;
}

/* Ajuste: Para que se quede fijo en pantalla mientras el pin está activo, lo pondremos absolute dentro del .workflow-slider */
.workflow-slider .workflow-donut-hub {
  position: absolute;
}

.workflow-donut {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    conic-gradient(
      #fff 0deg 35deg,
      #38bdf8 35deg 80deg,
      #fff 80deg 120deg,
      #facc15 120deg 170deg,
      #fff 170deg 215deg,
      #fb7185 215deg 270deg,
      #fff 270deg 315deg,
      #22c55e 315deg 360deg
    );
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  will-change: transform;
}

.workflow-donut::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  background: #f7f1e7; /* El color principal del body de SoftForge */
}

/* Progress label */
.workflow-progress-label {
  position: absolute; /* Usamos absolute dentro del slider pinneado para que no quede fixed en el resto de la página */
  left: 32px;
  bottom: 32px;
  z-index: 100;
  color: white;
  font-size: 14px;
  font-weight: 900;
  opacity: 0.75;
}

@media (max-width: 720px) {
  .workflow-progress-label {
    left: 20px;
    bottom: 20px;
  }
}
