/* Página Talentos: hero con collage flotante, grid filtrable y cierre. */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes cardIn {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}

/* ---------- hero ---------- */

.talents-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 56px) 0 clamp(44px, 5.5vw, 80px);
}
.glow--th-tr { top: -160px; right: 5%; width: 560px; height: 520px; opacity: .18; filter: blur(85px); }

.talents-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: center;
  gap: clamp(36px, 4.5vw, 80px);
}

.talents-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.8vw, 24px);
}

.talents-hero__kicker {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid rgba(16, 16, 20, 0.16);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
}

.talents-hero__title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.talents-hero__lede {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18.5px);
  line-height: 1.55;
  color: var(--ink-70);
}

.talents-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.talents-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  margin: clamp(14px, 2vw, 28px) 0 0;
}
.talents-hero__stats > div { margin: 0; }
.talents-hero__stats dt {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.talents-hero__stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6E6C78;
}
.talents-hero__divider { width: 1px; height: 44px; background: rgba(16, 16, 20, 0.16); }

/* ---------- collage ---------- */

.talents-hero__collage { position: relative; min-width: 0; }

.talents-hero__dot { position: absolute; border-radius: 50%; }
.talents-hero__dot--a { top: 6%; right: 2%; width: clamp(14px, 1.6vw, 22px); height: clamp(14px, 1.6vw, 22px); background: #C9B6FF; }
.talents-hero__dot--b { bottom: 8%; right: 8%; width: clamp(18px, 2vw, 28px); height: clamp(18px, 2vw, 28px); background: var(--yellow); }
.talents-hero__dot--c { top: 34%; left: -2%; width: clamp(12px, 1.4vw, 18px); height: clamp(12px, 1.4vw, 18px); background: var(--violet); opacity: .5; }

.talents-hero__photos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.talents-hero__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.12;
  border-radius: 24px;
  background: #E6E4DD;
}
.talents-hero__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Col. 2 se desplaza hacia abajo: crea el patrón escalonado del collage. */
.talents-hero__photo--b,
.talents-hero__photo--d { margin-top: clamp(24px, 3.4vw, 56px); }

.talents-hero__photo--a { animation: floatY 7.4s ease-in-out .2s infinite; }
.talents-hero__photo--b { animation: floatY 8.6s ease-in-out 1.1s infinite; }
.talents-hero__photo--c { animation: floatY 9.2s ease-in-out .7s infinite; }
.talents-hero__photo--d { animation: floatY 8s ease-in-out 1.6s infinite; }

/* ---------- filtros + grid ---------- */

.talents-grid-section {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
}
.glow--tg-tl { top: 12%; left: -180px; width: 600px; height: 540px; opacity: .13; filter: blur(90px); }
.glow--tg-br { bottom: 6%; right: -140px; width: 440px; height: 420px; opacity: .20; filter: blur(90px); }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.filter-pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid rgba(16, 16, 20, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.talents-count { margin: 16px 0 0; font-size: 14px; color: #6E6C78; }

.talent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px);
  margin-top: clamp(24px, 3vw, 40px);
  align-items: start;
}
@media (min-width: 560px) { .talent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .talent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.talent-card { min-width: 0; }
.talent-card.is-in { animation: cardIn .4s ease both; }

.talent-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 3.9;
  border-radius: 16px;
  background: #E6E4DD;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.talent-card__photo:hover { transform: translateY(-6px); }
.talent-card__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

.talent-card__name {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.talent-card__cat {
  margin: 5px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6E6C78;
}
