/* ==========================================================================
   Home · Equipo + tarjeta de miembro
   Framer: sección de 100vh con fondo degradado y esquinas inferiores de 56px;
   tarjetas de 318×520 en ticker (50 px/s, gap 10); patrón de puntos abajo a la derecha.
   ========================================================================== */

@layer sections {
  .team {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1926px;
    min-height: 100svh;
    margin-inline: auto;
    padding: 0 12px 120px;
    overflow: clip;
    border-radius: 0 0 56px 56px;
    background: linear-gradient(0deg, rgb(0 0 0 / 7%) 0%, rgb(255 255 255 / 0%) 100%), var(--color-bg);
  }

  .team__top {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  .team__title {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team__accent {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 41px;
    font-weight: 400;
    line-height: 60px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }

  .team__ticker {
    --marquee-gap: 10px;

    position: relative;
    z-index: 1;
    width: 100vw;
    max-width: 1425px;
  }

  .team__item {
    flex: none;
    width: 318px;
  }

  .team__pattern {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1392px;
    max-width: none;
    height: 1004px;
    object-fit: cover; /* caja de Framer (1392×1004) apenas distinta del archivo: recortar, no deformar */
    pointer-events: none;
  }

  /* --- Tarjeta --- */
  .team-card {
    position: relative;
    height: 520px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--palette-charcoal-black) 0%, var(--palette-jet-black) 100%);
  }

  /* Foto dentro del marco (Framer la posiciona a 83/32/4 del borde de la tarjeta):
     así el radio y el overflow del marco recortan sus esquinas */
  .team-card__photo {
    position: absolute;
    inset: 68px 17px 0;
    z-index: 1;
    width: calc(100% - 34px);
    height: calc(100% - 68px);
    object-fit: cover;
    object-position: top center;
  }

  .team-card__frame {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 18px 18px 28px;
    overflow: hidden;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    /* Chrome compone aparte las capas con backdrop-filter y, mientras el ticker se mueve,
       ignora el recorte redondeado del overflow: clip-path sí se aplica a esas capas */
    clip-path: inset(0 round var(--radius-lg));
    isolation: isolate;
    /* Capa "Border" (blanco 10% → 30%) sobre el fondo negro de Framer */
    background:
      linear-gradient(142deg, var(--palette-white-10) 79%, var(--palette-white-30) 100%),
      var(--color-bg);

    /* "Blur": degradado inferior detrás del nombre */
    &::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      z-index: 4;
      height: 132px;
      /* Radio propio (el del marco menos el borde): el desenfoque nunca asoma en las esquinas */
      border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
      background: linear-gradient(180deg, rgb(255 255 255 / 16%) 0%, rgb(0 0 0 / 44%) 100%);
      backdrop-filter: blur(24px);
    }
  }

  .team-card__area,
  .team-card__info {
    position: relative;
    z-index: 5;
  }

  .team-card__area {
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 100px;
    background-color: var(--palette-white-7);
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 24px;
  }

  .team-card__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .team-card__name {
    color: var(--color-text-soft);
    font-size: 32px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.32px;
  }

  .team-card__role {
    color: var(--palette-mercury);
    font-size: 16px;
    line-height: 24px;
  }

  /* El frame va por encima de la foto solo en la zona del nombre y la etiqueta */
  .team-card__frame {
    z-index: auto;
  }

  /* --- Tablet --- */
  @media (min-width: 810px) {
    .team {
      padding-inline: 24px;
    }

    .team__title {
      flex-direction: row;
      gap: 0.25em;
    }

    .team__accent {
      font-size: 51px;
    }
  }

  /* --- Desktop --- */
  @media (min-width: 1440px) {
    .team__accent {
      font-size: 64px;
    }
  }
}
