﻿/* ── Equipo ──────────────────────────────────────────────────── */

/* --- Sección oportunidad (fondo navy) --- */
.cp-team-opportunity {
  position: relative;
  overflow: hidden;
  padding: 80px 0 84px;
  background:
    radial-gradient(circle at 80% 20%, rgba(139,220,101,.07), transparent 24%),
    linear-gradient(180deg, #162133 0%, #0e1826 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cp-team-opportunity__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.cp-team-opportunity__media {
  display: flex;
  justify-content: center;
}

.cp-team-opportunity__media img {
  width: 100%;
  max-width: 450px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 22px 32px rgba(0,0,0,.32);
  transition: transform .35s ease;
}

.cp-team-opportunity__media img:hover {
  transform: translateY(-8px);
}

.cp-team-opportunity__placeholder {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/3;
  background: rgba(139,220,101,.06);
  border: 1px solid rgba(139,220,101,.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(139,220,101,.4);
  font-size: 5rem;
}

.cp-team-opportunity__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cp-team-opportunity__copy h1 {
  max-width: 580px;
  margin: 0 0 38px;
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 800;
  text-transform: uppercase;
}

.cp-team-opportunity__actions {
  width: 100%;
  max-width: 320px;
  display: grid;
  gap: 16px;
}

.cp-team-opp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 999px;
  background: #8bdc65;
  color: #162133;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.cp-team-opp-btn:hover {
  background: #7ecc59;
  transform: translateY(-2px);
}

/* --- Sección miembros (fondo claro) --- */
.cp-team-members {
  padding: 96px 0 110px;
  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('../img/fondo.jpg');
  background-size: 520px auto;
  background-repeat: repeat;
}

.cp-team-members__header {
  margin-bottom: 68px;
}

.cp-team-members__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #9ca3af;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.cp-team-members__title {
  margin: 0;
  color: #162133;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.cp-team-members__title span {
  font-weight: 300;
}

.cp-team-members__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.cp-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.cp-team-member__avatar-shell {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
  transition: border-color .35s ease;
}

.cp-team-member:hover .cp-team-member__avatar-shell {
  border-color: #8bdc65;
}

.cp-team-member__avatar-shell::before,
.cp-team-member__avatar-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(139,220,101,.4);
  z-index: 0;
  pointer-events: none;
}

.cp-team-member:hover .cp-team-member__avatar-shell::before {
  animation: cp-team-pulse 2s infinite cubic-bezier(.215,.61,.355,1);
}

.cp-team-member:hover .cp-team-member__avatar-shell::after {
  animation: cp-team-pulse 2s infinite cubic-bezier(.215,.61,.355,1);
  animation-delay: 1s;
}

.cp-team-member__avatar {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f5e9;
  filter: grayscale(100%) contrast(1.1);
  transition: filter .35s ease, transform .45s cubic-bezier(.175,.885,.32,1.275);
}

.cp-team-member:hover .cp-team-member__avatar {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.12);
}

.cp-team-member__initials {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #2e7d32;
}

.cp-team-member h3 {
  margin: 0 0 4px;
  color: #162133;
  font-size: 1.15rem;
  font-weight: 700;
  transition: color .25s ease;
}

.cp-team-member:hover h3 {
  color: #5aac32;
}

.cp-team-member p {
  margin: 0;
  color: #6b7280;
  font-size: .92rem;
  font-weight: 500;
}

.cp-team-members__empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 0;
}

@keyframes cp-team-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(139,220,101,.55); }
  100% { box-shadow: 0 0 0 40px rgba(139,220,101,0); }
}

@media (max-width: 1100px) {
  .cp-team-opportunity__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cp-team-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 38px;
  }
}

@media (max-width: 768px) {
  .cp-team-opportunity {
    padding: 64px 0;
  }
  .cp-team-opportunity__copy h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 28px;
  }
  .cp-team-members {
    padding: 78px 0 88px;
  }
  .cp-team-members__header {
    margin-bottom: 48px;
  }
  .cp-team-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
  }
}