/* ─────────────────────────────────────────────────────────────────────────────
   Escala Digital — process.css
   Sección orbital del proceso de trabajo
───────────────────────────────────────────────────────────────────────────── */

.process-section {
  position: relative;
  z-index: 12;
  width: 100%;
  padding: 88px 40px 100px;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #05101E 18%,
    #0A1A33 50%,
    #05101E 82%,
    #000000 100%
  );
  overflow: hidden;
}

/* ─── Texto decorativo fondo ─── */
.process-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(41, 168, 255, 0.03);
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

/* ─── Header ─── */
.process-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 72px;
}

.process-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #29A8FF;
  margin-bottom: 16px;
}

.process-eyebrow::before,
.process-eyebrow::after {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: #29A8FF;
  opacity: 0.65;
}

.process-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #ffffff;
  margin: 0 0 18px;
}

.process-title .accent {
  background: linear-gradient(90deg, #1464FF 0%, #29A8FF 50%, #1464FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

.process-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Stage: orbital izquierda + panel derecha ─── */
.process-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Orbital wrapper ─── */
.orbital-wrap {
  position: relative;
  width: 520px;
  height: 520px;
  flex-shrink: 0;
  cursor: default;
}

/* ─── Orbit ring ─── */
.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(41, 168, 255, 0.18);
  pointer-events: none;
}

/* ─── Center ─── */
.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-center-inner {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Halo azul sutil detrás del logo */
.orbital-center-inner::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,168,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.orbital-center-inner:hover {
  transform: scale(1.07);
}

.orbital-center-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(41, 168, 255, 0.35)) brightness(1.08);
  transition: filter 0.3s ease;
}

.orbital-center-inner:hover img {
  filter: drop-shadow(0 0 28px rgba(41, 168, 255, 0.65)) brightness(1.15);
}

/* ─── Nodes (posicionados por JS) ─── */
.orbital-node {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  will-change: transform, opacity;
}

.orbital-node-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 26, 51, 0.88);
  border: 1px solid rgba(41, 168, 255, 0.32);
  color: rgba(255, 255, 255, 0.70);
  transition:
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    color 0.32s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.orbital-node-circle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.orbital-node-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  transition: color 0.32s ease;
  text-align: center;
}

.orbital-node:hover .orbital-node-circle,
.orbital-node.is-hover .orbital-node-circle {
  background: rgba(20, 100, 255, 0.22);
  border-color: rgba(41, 168, 255, 0.75);
  box-shadow: 0 0 20px rgba(41, 168, 255, 0.35);
  color: #ffffff;
}

.orbital-node.is-active .orbital-node-circle {
  background: rgba(20, 100, 255, 0.32);
  border-color: #29A8FF;
  box-shadow:
    0 0 0 5px rgba(41, 168, 255, 0.14),
    0 0 0 10px rgba(41, 168, 255, 0.06),
    0 0 32px rgba(41, 168, 255, 0.65),
    inset 0 0 16px rgba(41, 168, 255, 0.18);
  color: #ffffff;
}

.orbital-node:hover .orbital-node-label,
.orbital-node.is-active .orbital-node-label,
.orbital-node.is-hover .orbital-node-label {
  color: #29A8FF;
}

/* ─── Panel derecho (wrapper) ─── */
.process-info-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
}

/* ─── Lista de pasos ─── */
.process-steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.process-step-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 16px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: background 0.3s ease;
}

.process-step-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* Barra accent izquierda */
.process-step-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, #1464FF, #29A8FF);
  border-radius: 0 2px 2px 0;
  transition: height 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.process-step-item:hover::before,
.process-step-item.is-hover::before {
  height: 100%;
}

.process-step-item:hover,
.process-step-item.is-hover {
  background: rgba(20, 100, 255, 0.08);
}

.process-step-item:active {
  background: rgba(20, 100, 255, 0.14);
  transition: background 0.1s ease;
}

/* Número */
.step-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(41, 168, 255, 0.45);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 22px;
  transition: color 0.35s ease;
}

.process-step-item:hover .step-number,
.process-step-item.is-hover .step-number {
  color: #29A8FF;
}

/* Icono */
.step-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.32);
  padding-top: 2px;
  transition: color 0.35s ease;
}

.step-icon svg { width: 18px; height: 18px; }

.process-step-item:hover .step-icon,
.process-step-item.is-hover .step-icon {
  color: rgba(41, 168, 255, 0.75);
}

/* Contenido */
.step-content { flex: 1; min-width: 0; }

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.3;
  transition: color 0.35s ease;
}

.process-step-item:hover .step-title,
.process-step-item.is-hover .step-title {
  color: #ffffff;
}

/* Descripción expandible */
.step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.45s cubic-bezier(0.32, 0.72, 0, 1),
    opacity    0.32s ease,
    margin-top 0.32s ease;
}

.process-step-item:hover .step-desc,
.process-step-item.is-hover .step-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 7px;
}

/* ─── Lista blur (cuando se muestra about card) ─── */
#processStepsList {
  width: 100%;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
#processStepsList.is-blurred {
  opacity: 0.08;
  filter: blur(6px);
  pointer-events: none;
}

/* ─── About card (aparece al clickear el logo central) ─── */
.process-about-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(20,100,255,0.13) 0%, rgba(10,26,51,0.68) 100%);
  border: 1px solid rgba(41, 168, 255, 0.2);
  border-top: 1px solid rgba(41, 168, 255, 0.35);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 48px rgba(20,100,255,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.process-about-card.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.about-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 8px rgba(41,168,255,0.2));
}

.about-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.about-body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  margin: 0 0 14px;
}

.about-services-line {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(41, 168, 255, 0.55);
  margin: 0 0 20px;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #29A8FF;
  text-decoration: none;
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.about-cta:hover { gap: 11px; opacity: 0.8; }
.about-cta svg { width: 13px; height: 13px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .process-stage {
    flex-direction: column;
    gap: 48px;
  }
  .process-info-wrap {
    max-width: 500px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .process-section { padding: 72px 24px 88px; }
  .orbital-wrap { width: 360px; height: 360px; }
  .orbital-ring { width: 280px; height: 280px; }
}

@media (max-width: 480px) {
  .process-section { padding: 64px 16px 80px; }
  .orbital-wrap { width: 270px; height: 270px; }
  .orbital-ring { width: 210px; height: 210px; }
  .orbital-node-circle { width: 40px; height: 40px; }
  .orbital-node-circle svg { width: 16px; height: 16px; }
  .orbital-node-label { font-size: 9px; }
  .orbital-center-inner { width: 76px; height: 76px; }
  .step-title { font-size: 16px; }
  .step-desc { font-size: 14px; }
  .process-step-item { padding: 16px 12px 16px 16px; gap: 12px; }
  .process-header { margin-bottom: 52px; }
  .process-sub { font-size: 14px; }
}

/* ─── 320px — teléfonos muy pequeños ─── */
@media (max-width: 320px) {
  .process-section { padding: 56px 12px 72px; }
  .orbital-wrap { width: 240px; height: 240px; }
  .orbital-ring { width: 188px; height: 188px; }
  .orbital-center-inner { width: 68px; height: 68px; }
  .step-title { font-size: 15px; }
  .step-desc { font-size: 13px; }
  .process-step-item { padding: 14px 10px 14px 14px; }
}
