/* 1. Base independiente: no modifica los estilos del banner. */
* {
  box-sizing: border-box;
}
.profiles-page {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #0c192c;
}
.profiles {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 6vw, 7rem)
    clamp(2.5rem, 4vw, 4rem);
  background: radial-gradient(
    ellipse at 84% 35%,
    transparent 0 20%,
    #ff8fa325 20.2% 29%,
    transparent 29.2%
  );
  /* radial-gradient(ellipse at 30% 6%, #ffb8c56b, transparent 39%),
    radial-gradient(ellipse at -5% 105%, #ff9caf80, transparent 37%), #f8fafc; */
}
.profiles-inner {
  max-inline-size: 90rem;
  margin-inline: auto;
}
/* 2. Cabecera: tamaños fluidos y saltos naturales en pantallas pequeñas. */
.profiles-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1rem;
  color: #ef142a;
  font-size: 0.875rem;
  font-weight: 700;
}
.profiles-eyebrow::before {
  content: "";
  flex: 0 0 2rem;
  block-size: 0.2rem;
  background: currentColor;
}
.profiles-heading h2 {
  margin: 0 0 0.875rem;
  max-inline-size: 65rem;
  font-size: clamp(1.9rem, 1.1rem + 2vw, 3.15rem);
  letter-spacing: -0.035em;
  line-height: 1.13;
}
.profiles-intro {
  margin: 0;
  color: #56647a;
  font-size: clamp(1rem, 0.7rem + 0.7vw, 1.4rem);
  line-height: 1.5;
}
/* 3. Tarjetas y conectores en una fila Flexbox.
   Las insignias se elevan con margen negativo, sin salir del flujo. */
.profiles-list {
  display: flex;
  align-items: stretch;
  margin-block: 5rem 2.5rem;
}
.profile {
  --profile-color: #ef142a;
  --profile-tint: #ffe7ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-inline-size: 0;
  padding: 0 clamp(1rem, 2vw, 2rem) 1.25rem;
  border: 0.0625rem solid #e8ecf2;
  border-radius: 1.3rem;
  background:
    radial-gradient(
      ellipse at 110% 115%,
      var(--profile-tint) 0 30%,
      transparent 30.3%
    ),
    #ffffffed;
  box-shadow: 0 0.6rem 2rem #24344a06;
  text-align: center;
}
.profile--distributor {
  --profile-color: #4b719a;
  --profile-tint: #eaf1f8;
}
.profile--client {
  --profile-color: #08b88c;
  --profile-tint: #e5f9f3;
}
.profile-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  inline-size: clamp(4rem, 6vw, 6rem);
  aspect-ratio: 1;
  margin-block: -2rem 1.25rem;
  border-radius: 1rem;
  color: #fff;
  background:
    linear-gradient(135deg, #ffffff18, transparent), var(--profile-color);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}
.profile h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 0.8rem + 1vw, 1.8rem);
  letter-spacing: -0.025em;
}
.profile p {
  margin: 0;
  color: #5a6780;
  font-size: clamp(0.95rem, 0.7rem + 0.5vw, 1.2rem);
  line-height: 1.55;
}
.profile-icon {
  align-self: flex-end;
  inline-size: 4rem;
  block-size: 4rem;
  margin-block-start: 1.5rem;
  color: var(--profile-color);
  opacity: 0.35;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(1.5rem, 5vw, 5.5rem);
  align-self: center;
  color: #f7475d;
  font-size: 1.8rem;
  line-height: 0.15;
  background: linear-gradient(90deg, #f7475d, #4b719a) center / 100% 0.2rem
    no-repeat;
}
.connector--second {
  color: #4b719a;
  background-image: linear-gradient(90deg, #4b719a, #08b88c);
}
/* 4. Nota de seguridad: icono y texto flexibles, sin altura fija. */
.profiles-security {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 1.25rem 1.75rem;
  border-radius: 1.3rem;
  background: #edf3f9e6;
}
.security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 4.5rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  color: #ef142a;
  background: #ffe5eb;
}
.security-icon svg {
  inline-size: 2.5rem;
  block-size: 2.5rem;
  fill: #fff;
  stroke: currentColor;
  stroke-width: 3;
}
.profiles-security p {
  margin: 0;
  color: #56647a;
  font-size: clamp(0.95rem, 0.7rem + 0.5vw, 1.2rem);
  line-height: 1.55;
}
.profiles-security strong {
  color: #0c192c;
  font-weight: 650;
}
/* 5. En móvil, los perfiles se apilan y se retiran los conectores. */
@media (max-width: 47.5rem) {
  .profiles-heading br,
  .profile br,
  .profiles-security br {
    display: none;
  }
  .profiles-list {
    flex-direction: column;
    gap: 3.75rem;
    margin-block-start: 4rem;
  }
  .profile {
    flex-basis: auto;
    inline-size: 100%;
    max-inline-size: 32rem;
    align-self: center;
    padding-inline: 1.5rem;
  }
  .profile-connector {
    display: none;
  }
  .profile-letter {
    inline-size: 4.5rem;
  }
  .profile-icon {
    inline-size: 3.5rem;
    block-size: 3.5rem;
    margin-block-start: 1rem;
  }
  .profiles-security {
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }
  .security-icon {
    flex-basis: 3rem;
  }
  .security-icon svg {
    inline-size: 1.875rem;
    block-size: 1.875rem;
  }
}
.profile,
.profiles-security {
  overflow-wrap: anywhere;
}
