/* =========================
   NOSOTROS - PROCESO
========================= */

.nosotros-process {
  position: relative;
  padding: 54px 0 62px;
  overflow: hidden;
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 107, 255, 0.08), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(210, 112, 255, 0.10), transparent 28%),
    radial-gradient(circle at 50% 92%, rgba(122, 91, 255, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f6ff 54%, #ffffff 100%);
}

.nosotros-process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.40;
  background:
    radial-gradient(circle at 18% 24%, rgba(100, 124, 255, 0.06) 1px, transparent 1.8px),
    radial-gradient(circle at 78% 34%, rgba(196, 122, 255, 0.06) 1px, transparent 1.8px),
    radial-gradient(circle at 52% 74%, rgba(124, 96, 255, 0.045) 1px, transparent 1.8px);
  background-size: 54px 54px, 62px 62px, 70px 70px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.nosotros-process::after {
  content: "";
  position: absolute;
  right: -220px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(191, 95, 255, 0.10), transparent 62%),
    radial-gradient(circle, rgba(79, 107, 255, 0.08), transparent 74%);
  filter: blur(28px);
}

.nosotros-process .container {
  position: relative;
  z-index: 2;
}

/* =========================
   HEADING
========================= */

.nosotros-process-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.nosotros-process-heading .section-label {
  margin-bottom: 14px;
}

.nosotros-process-heading h2 {
  margin: 0;
  color: #091338;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -1.35px;
  font-weight: 800;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 26px rgba(116, 92, 255, 0.07);
}

.nosotros-process-heading h2 span {
  color: transparent;
  background: linear-gradient(
    135deg,
    #5a6fff 0%,
    #6b63ff 28%,
    #8d5cff 58%,
    #b566ff 82%,
    #cf8dff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 800;
  text-shadow: none;
  filter: saturate(0.96);
}

/* =========================
   LINEA DE PROCESO
========================= */

.nosotros-process-line {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 4px;
}

.nosotros-process-item {
  position: relative;
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

.nosotros-process-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #715cff;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(145deg, rgba(118, 104, 255, 0.13), rgba(204, 118, 255, 0.11));
  border: 1px solid rgba(126, 111, 255, 0.14);
  box-shadow:
    0 18px 46px rgba(104, 97, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.nosotros-process-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.54);
  pointer-events: none;
}

.nosotros-process-icon svg {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  filter:
    drop-shadow(0 0 8px rgba(103, 209, 255, 0.20))
    drop-shadow(0 0 10px rgba(198, 88, 255, 0.18));
}

.nosotros-process-content {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.nosotros-process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #5a6fff 0%, #8d5cff 54%, #c76cff 100%);
  box-shadow:
    0 12px 26px rgba(104, 97, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.nosotros-process-content h3 {
  max-width: 190px;
  margin: 0;
  color: #091338;
  font-size: 17px;
  line-height: 1.18;
  letter-spacing: -0.35px;
  font-weight: 800;
  text-wrap: balance;
}

/* =========================
   FLECHAS DESKTOP
========================= */

.nosotros-process-arrow {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  margin-top: -54px;
  background-image: linear-gradient(
    90deg,
    rgba(100, 99, 255, 0.58) 0 8px,
    transparent 8px 15px
  );
  background-size: 15px 2px;
  background-repeat: repeat-x;
}

.nosotros-process-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid rgba(100, 99, 255, 0.62);
  border-right: 2px solid rgba(100, 99, 255, 0.62);
  transform: translateY(-50%) rotate(45deg);
}

/* =========================
   HOVER
========================= */

.nosotros-process-item:hover .nosotros-process-icon {
  transform: translateY(-5px);
  color: #9b63ff;
  border-color: rgba(160, 125, 255, 0.26);
  box-shadow:
    0 24px 58px rgba(104, 97, 255, 0.18),
    0 0 28px rgba(190, 110, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.nosotros-process-item:hover .nosotros-process-number {
  box-shadow:
    0 16px 34px rgba(104, 97, 255, 0.28),
    0 0 22px rgba(191, 112, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 1100px) {
  .nosotros-process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
    max-width: 760px;
  }

  .nosotros-process-arrow {
    display: none;
  }

  .nosotros-process-item {
    padding: 20px 18px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(126, 111, 255, 0.10);
    box-shadow:
      0 18px 44px rgba(82, 88, 170, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }
}

/* =========================
   RESPONSIVE MOVIL
========================= */

@media (max-width: 720px) {
  .nosotros-process {
    padding: 50px 0 58px;
  }

  .nosotros-process-heading {
    max-width: 520px;
    margin-bottom: 28px;
  }

  .nosotros-process-heading h2 {
    font-size: clamp(31px, 7.8vw, 42px);
    line-height: 1.06;
    letter-spacing: -1.15px;
  }

  .nosotros-process-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 360px;
    gap: 0;
    padding: 6px 0 0;
  }

  .nosotros-process-item {
    width: 100%;
    max-width: 250px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
    justify-items: center;
  }

  .nosotros-process-item:nth-of-type(odd) {
    align-self: flex-start;
  }

  .nosotros-process-item:nth-of-type(even) {
    align-self: flex-end;
  }

  .nosotros-process-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 12px;
  }

  .nosotros-process-icon::before {
    inset: 8px;
  }

  .nosotros-process-icon svg {
    width: 34px;
    height: 34px;
  }

  .nosotros-process-content {
    gap: 7px;
  }

  .nosotros-process-number {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .nosotros-process-content h3 {
    max-width: 180px;
    font-size: 16px;
    line-height: 1.2;
  }

  /* flechas tipo mapa */
  .nosotros-process-arrow {
    display: block;
    width: 118px;
    height: 42px;
    margin: 4px 0 8px;
    background: none;
    position: relative;
  }

  .nosotros-process-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
  }

  .nosotros-process-arrow::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    top: auto;
    transform: rotate(45deg);
  }

  /* 1ra flecha: izquierda hacia derecha */
  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(1) {
    align-self: center;
    transform: translateX(26px);
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(1)::before {
    border-right: 2px dashed rgba(108, 97, 255, 0.52);
    border-bottom: 2px dashed rgba(108, 97, 255, 0.52);
    border-bottom-right-radius: 36px;
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(1)::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid rgba(108, 97, 255, 0.58);
    border-bottom: 2px solid rgba(108, 97, 255, 0.58);
  }

  /* 2da flecha: derecha hacia izquierda */
  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(2) {
    align-self: center;
    transform: translateX(-26px);
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(2)::before {
    border-left: 2px dashed rgba(108, 97, 255, 0.52);
    border-bottom: 2px dashed rgba(108, 97, 255, 0.52);
    border-bottom-left-radius: 36px;
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(2)::after {
    left: -1px;
    bottom: -1px;
    border-left: 2px solid rgba(108, 97, 255, 0.58);
    border-bottom: 2px solid rgba(108, 97, 255, 0.58);
  }

  /* 3ra flecha: izquierda hacia derecha */
  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(3) {
    align-self: center;
    transform: translateX(26px);
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(3)::before {
    border-right: 2px dashed rgba(108, 97, 255, 0.52);
    border-bottom: 2px dashed rgba(108, 97, 255, 0.52);
    border-bottom-right-radius: 36px;
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(3)::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid rgba(108, 97, 255, 0.58);
    border-bottom: 2px solid rgba(108, 97, 255, 0.58);
  }
}

@media (max-width: 480px) {
  .nosotros-process {
    padding: 46px 0 52px;
  }

  .nosotros-process-heading h2 {
    max-width: 340px;
    margin: 0 auto;
    font-size: clamp(28px, 8vw, 35px);
  }

  .nosotros-process-line {
    max-width: 320px;
  }

  .nosotros-process-item {
    max-width: 220px;
  }

  .nosotros-process-icon {
    width: 76px;
    height: 76px;
  }

  .nosotros-process-icon svg {
    width: 31px;
    height: 31px;
  }

  .nosotros-process-content h3 {
    max-width: 170px;
    font-size: 15.5px;
  }

  .nosotros-process-arrow {
    width: 102px;
    height: 38px;
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(1) {
    transform: translateX(22px);
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(2) {
    transform: translateX(-22px);
  }

  .nosotros-process-line > .nosotros-process-arrow:nth-of-type(3) {
    transform: translateX(22px);
  }
}