/* =========================
   NOSOTROS - EQUIPO
========================= */

.nosotros-team {
  position: relative;
  padding: 58px 0 66px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(79, 107, 255, 0.09), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(210, 112, 255, 0.11), transparent 28%),
    radial-gradient(circle at 52% 92%, rgba(122, 91, 255, 0.07), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8f6ff 52%, #ffffff 100%);
}

.nosotros-team::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  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-team::after {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(79, 107, 255, 0.11), transparent 62%),
    radial-gradient(circle, rgba(191, 95, 255, 0.09), transparent 74%);
  filter: blur(28px);
}

.nosotros-team .container {
  position: relative;
  z-index: 2;
}

/* =========================
   HEADING
========================= */

.nosotros-team-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.nosotros-team-heading .section-label {
  margin-bottom: 16px;
}

.nosotros-team-heading h2 {
  margin: 0;
  color: #091338;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.45px;
  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-team-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);
}

.nosotros-team-heading p {
  max-width: 650px;
  margin: 16px auto 0;
  color: rgba(25, 33, 72, 0.72);
  font-size: 16px;
  line-height: 1.68;
}

/* =========================
   GRID
========================= */

.nosotros-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================
   CARDS
========================= */

.nosotros-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border-radius: 28px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
    #ffffff;
  border: 1px solid rgba(97, 99, 255, 0.10);
  box-shadow:
    0 22px 54px rgba(82, 88, 170, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.nosotros-team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 107, 255, 0.09), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(216, 108, 255, 0.10), transparent 30%);
  transition: opacity 0.25s ease;
}

.nosotros-team-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #5a6fff, #8d5cff, #cf8dff);
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.nosotros-team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 111, 255, 0.20);
  box-shadow:
    0 30px 74px rgba(82, 88, 170, 0.17),
    0 0 34px rgba(140, 108, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.nosotros-team-card:hover::before {
  opacity: 1;
}

.nosotros-team-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* =========================
   PHOTO
========================= */

.nosotros-team-photo {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(88, 128, 255, 0.34), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(217, 107, 255, 0.30), transparent 34%),
    linear-gradient(135deg, #07193f 0%, #173b97 38%, #435dff 68%, #c35fff 100%);
}

.nosotros-team-photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter:
    saturate(1.03)
    contrast(1.02);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

/* Quitamos el recuadro transparente grande y dejamos solo una capa elegante */
.nosotros-team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 19, 56, 0.02) 0%, rgba(8, 19, 56, 0.12) 100%),
    linear-gradient(135deg, rgba(20, 48, 140, 0.16), rgba(199, 92, 255, 0.12));
}

.nosotros-team-photo::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -38%;
  z-index: 3;
  width: 34%;
  height: 220%;
  pointer-events: none;
  opacity: 0.28;
  transform: rotate(18deg);
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  transition:
    left 0.78s ease,
    opacity 0.25s ease;
}

.nosotros-team-card:hover .nosotros-team-photo::after {
  left: 120%;
  opacity: 0.58;
}

.nosotros-team-card:hover .nosotros-team-photo img {
  transform: scale(1.045);
  filter:
    saturate(1.08)
    contrast(1.04);
}

/* =========================
   INFO
========================= */

.nosotros-team-info {
  flex: 1;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.99));
}

.nosotros-team-role {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #5a61e8;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background:
    linear-gradient(145deg, rgba(79, 107, 255, 0.10), rgba(184, 108, 255, 0.08));
  border: 1px solid rgba(97, 99, 255, 0.08);
}

.nosotros-team-info h3 {
  margin: 0;
  color: #091338;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.45px;
  font-weight: 800;
}

.nosotros-team-info p {
  margin: 12px 0 0;
  color: rgba(25, 33, 72, 0.68);
  font-size: 15px;
  line-height: 1.65;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .nosotros-team {
    padding: 56px 0 64px;
  }

  .nosotros-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
  }

  .nosotros-team-card:last-child {
    grid-column: 1 / -1;
    max-width: 380px;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .nosotros-team {
    padding: 50px 0 58px;
  }

  .nosotros-team-heading {
    max-width: 520px;
    margin-bottom: 28px;
  }

  .nosotros-team-heading h2 {
    font-size: clamp(31px, 7.8vw, 42px);
    line-height: 1.06;
    letter-spacing: -1.15px;
  }

  .nosotros-team-heading p {
    font-size: 15.5px;
    line-height: 1.66;
  }

  .nosotros-team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
  }

  .nosotros-team-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .nosotros-team-photo {
    min-height: 230px;
  }

  .nosotros-team-info h3 {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .nosotros-team {
    padding: 46px 0 52px;
  }

  .nosotros-team-heading h2 {
    max-width: 340px;
    margin: 0 auto;
    font-size: clamp(28px, 8vw, 35px);
  }

  .nosotros-team-heading p {
    max-width: 340px;
    font-size: 15px;
  }

  .nosotros-team-grid {
    max-width: none;
  }

  .nosotros-team-card {
    border-radius: 23px;
  }

  .nosotros-team-photo {
    min-height: 215px;
  }

  .nosotros-team-info {
    padding: 22px;
  }

  .nosotros-team-info h3 {
    font-size: 20px;
  }

  .nosotros-team-info p {
    font-size: 14.5px;
  }
}