/* ═══════════════════════════════════════════════════════
   sections/flow-spotlight.css — AJG AI Solutions
   Flow spotlight sticky scroll section
   ═══════════════════════════════════════════════════════ */

.flow-section {
  height: 320vh;
  position: relative;
  background: linear-gradient(to bottom, transparent 0px, #050816 120px);
}

.flow-sticky {
  position: sticky !important;
  top: 0;
  height: 100vh;
  display: grid !important;
  grid-template-columns: 42% 52% !important;
  gap: 6% !important;
  align-items: center !important;
  padding: 0 6% !important;
  overflow: hidden !important;
  flex-direction: unset !important;
  justify-content: unset !important;
}

.flow-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  color: #f8fbff;
}
.h2-light {
  font-weight: 300;
  background: linear-gradient(135deg, #505050 0%, #a0a0a8 35%, #636363 60%, #b0b0b8 80%, #505050 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-gradient 6s ease-in-out infinite;
}

.flow-indicators {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flow-ind {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.3;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.flow-ind.active { opacity: 1; }

.flow-ind-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #38bdf8;
  min-width: 20px;
}

.flow-ind-line {
  width: 0;
  height: 1px;
  background: #38bdf8;
  transition: width 0.5s ease;
}
.flow-ind.active .flow-ind-line { width: 24px; }

.flow-ind-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

.flow-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Flow card */
.flow-card-step-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(56,189,248,0.8);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.flow-card-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fbff;
  margin-bottom: 1rem;
  display: block;
}
.flow-card-title.highlight-grey {
  color: transparent;
}
.flow-card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(248,251,255,0.65);
  margin-bottom: 1.5rem;
}
.flow-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flow-card-pill {
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(56,189,248,0.75);
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 4px;
  padding: 3px 8px;
}

/* Flow metrics label — mobile/tablet only */
.flow-metrics-label {
  display: none;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(56,189,248,0.80);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
@media (max-width: 900px) {
  .flow-metrics-label { display: block !important; }
}

/* Flow metrics */
.flow-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow-metrics.visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-metric {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
}

@media (hover: hover) {
  .flow-metrics:hover > .flow-metric:hover {
    transform: scale(1.08);
  }
  .flow-metrics:hover > .flow-metric:not(:hover) {
    filter: blur(3px);
    transform: scale(0.94);
    opacity: 0.55;
  }
}
.flow-metric-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fbff;
}
.flow-metric-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.58);
  margin-top: 4px;
}

/* Flow tag pill */
.flow-pill {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 4px !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
  padding: 3px 8px !important;
  color: rgba(255,255,255,0.6) !important;
}

/* ══════════════════════════════════════════════════════
   Flow V2 — Sticky stacking card layout
   ══════════════════════════════════════════════════════ */

.flow-section-v2 {
  position: relative;
  background: linear-gradient(to bottom, transparent 0px, #050816 120px);
}

/* Jalar la sección siguiente para tapar el espacio vacío al final del flow */
#flowSection + .section {
  padding-top: 0;
  margin-top: -180px;
  position: relative;
  z-index: 6;
}

/* Fade en la parte superior de la sección siguiente para suavizar la transición */
#flowSection + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #050816 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.flow-v2-grid {
  position: relative;
}

/* Left panel: hidden (title moved into card stack) */
.flow-v2-left { display: none; }

/* Title card variant */
.flow-v2-card--title {
  max-width: 480px;
}

.flow-v2-title-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top-color: rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.flow-v2-heading {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f8fbff;
  margin: 0;
}

/* Right: stacking cards column */
.flow-v2-right {
  position: relative;
}

.flow-v2-card-wrap {
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6%;
}

.flow-v2-card-wrap:nth-child(1) { z-index: 1; }
.flow-v2-card-wrap:nth-child(2) { z-index: 2; }
.flow-v2-card-wrap:nth-child(3) { z-index: 3; }
.flow-v2-card-wrap:nth-child(4) { z-index: 4; }
.flow-v2-card-wrap:nth-child(5) { z-index: 5; }

.flow-v2-card {
  background: rgba(10,16,38,0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.18);
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Card header: icon + step label */
.flow-v2-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 1.75rem 0;
}

.flow-v2-card-icon {
  width: 34px;
  height: 34px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Card visual: big decorative number */
.flow-v2-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem 1.5rem;
}

.flow-v2-card-bignum {
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #dde9ff 0%, #35d8ff 30%, #1e50d0 60%, #35d8ff 85%, #dde9ff 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-gradient 6s ease-in-out infinite;
  filter: drop-shadow(0 0 48px rgba(56,189,248,0.25));
  user-select: none;
}

/* Card body: title + desc + pills */
.flow-v2-card-body {
  padding: 0 1.75rem 1.75rem;
}

/* ── Floating step pill (right side) ── */
.flow-v2-pill {
  position: fixed;
  right: calc(50% - 330px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  background: rgba(8,13,32,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.40);
}
.flow-v2-pill.show {
  opacity: 1;
  pointer-events: auto;
}

.flow-v2-pill-step {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
  cursor: default;
}
.flow-v2-pill-step.active {
  background: rgba(56,189,248,0.14);
}

.flow-v2-pill-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.52);
  transition: color 0.3s;
}
.flow-v2-pill-step.active .flow-v2-pill-num {
  color: #38bdf8;
}

.flow-v2-pill-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  margin: 1px 0;
}

/* ── Tablet (640–900px) ── */
@media (max-width: 900px) {
  .flow-v2-grid { display: block; }

  .flow-v2-left {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 2rem 5% 1rem;
    gap: 0.75rem;
  }

  .flow-v2-title-card { padding: 1.75rem; }

  .flow-v2-heading { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  .flow-v2-right {
    padding: 0 5% 2rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .flow-v2-card-wrap {
    height: auto;
    position: relative;
    padding: 0;
    display: block;
  }

  .flow-v2-card-wrap:nth-child(1),
  .flow-v2-card-wrap:nth-child(2),
  .flow-v2-card-wrap:nth-child(3),
  .flow-v2-card-wrap:nth-child(4) { z-index: auto; }

  .flow-v2-card {
    max-width: 100%;
    border-color: rgba(255,255,255,0.16);
    border-top-color: rgba(255,255,255,0.24);
  }

  .flow-v2-card-bignum { font-size: clamp(4rem, 18vw, 7rem); }

  /* Pill: hidden on tablet/mobile (no sticky scroll, pill no longer tracks position) */
  .flow-v2-pill { display: none !important; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .flow-v2-left { padding: 3rem 5% 1.5rem; }

  .flow-v2-right { padding: 0 4% 4rem; }

  .flow-v2-card-header { padding: 1.25rem 1.25rem 0; }

  .flow-v2-card-visual { padding: 1.25rem 1.25rem 1rem; }

  .flow-v2-card-body { padding: 0 1.25rem 1.25rem; }

  .flow-v2-card-bignum { font-size: clamp(3.5rem, 20vw, 6rem); }

  .flow-metrics { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .flow-metric { min-width: 0; overflow: visible; padding: 0.5rem 0.3rem; }
  .flow-metric-num { font-size: clamp(0.9rem, 4vw, 1.1rem) !important; }
  .flow-metric-label { letter-spacing: 0.02em; font-size: 0.46rem; }
}
