/* ==========================================================
   TEAM PAGE — assets/css/team.css
   Estilos exclusivos para team.html
========================================================== */


/* =========================================================
   SCROLL REVEAL ANIMATIONS
========================================================= */

.reveal {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-down  { transform: translateY(-28px); }
.reveal.reveal-up    { transform: translateY(32px); }
.reveal.reveal-left  { transform: translateX(-36px); }
.reveal.reveal-right { transform: translateX(36px); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* =========================================================
   HERO DE PÁGINA INTERNA
========================================================= */

.team-page-hero {
  padding: 160px 0 72px;
  background: linear-gradient(160deg, #111a73 0%, #1c2b9c 100%);
  position: relative;
  overflow: hidden;
}

.team-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201, 148, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.team-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-back-link:hover {
  color: #ffffff;
}

.team-page-hero h1 {
  margin: 0 0 16px;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.team-page-hero h1 span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.team-page-hero h1 strong {
  display: block;
  color: #c994ed;
}

.team-page-hero p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Archivo", sans-serif;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
}


/* =========================================================
   ETIQUETA DE SECCIÓN
========================================================= */

.team-section-label {
  margin: 0 0 34px;
  font-family: "Comfortaa", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c994ed;
}

.team-section-label span {
  color: #111a73;
}

.team-section-label strong {
  color: #c994ed;
}


/* =========================================================
   SECCIÓN FUNDADORAS
========================================================= */

.team-founders-section {
  padding: 80px 0 72px;
  background: #f5f5fb;
}

.team-founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 740px;
}


/* =========================================================
   TARJETA DE MIEMBRO
========================================================= */

.team-member-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.11);
}

.team-member-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* Fundadoras: contener imagen sin recortar */
.team-member-founder .team-member-photo-wrap {
  background: #eeeef7;
}
.team-member-founder .team-member-photo {
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}

/* Katie (segunda tarjeta) — ajustar imagen para igualar el tamaño con Maja */
.team-member-founder:last-child .team-member-photo {
  transform: scale(0.92);
  transform-origin: bottom center;
  object-position: center bottom;
}

/* Avatar placeholder cuando no hay foto */
.team-member-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c994ed22 0%, #111a7311 100%);
  color: #c994ed;
  font-size: 72px;
}

.team-member-info {
  padding: 24px 24px 28px;
}

.team-member-info h3 {
  margin: 0 0 4px;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: #111a73;
}

.team-member-role {
  margin: 0 0 12px;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c994ed;
}

.team-member-bio {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

/* Fundadoras: proporción equilibrada */
.team-member-founder .team-member-photo-wrap {
  aspect-ratio: 3 / 2.8;
}


/* =========================================================
   SECCIÓN STAFF
========================================================= */

.team-staff-section {
  padding: 80px 0 72px;
  background: #ffffff;
}

.team-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Loading / empty state */
.team-loading,
.team-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: #aaa;
}

.team-loading i,
.team-empty-state i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.team-loading p,
.team-empty-state p {
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.team-empty-state code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
}


/* =========================================================
   CTA — UNIRSE AL EQUIPO
========================================================= */

.team-join-cta {
  padding: 64px 0;
  background: linear-gradient(160deg, #111a73 0%, #1c2b9c 100%);
}

.team-join-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.team-join-cta h2 {
  margin: 0 0 8px;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  color: #ffffff;
}

.team-join-cta p {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.team-join-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: #91e765;
  color: #111a73;
  font-family: "Comfortaa", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.team-join-btn:hover {
  background: #78d44e;
  color: #111a73;
  transform: translateY(-2px);
}


/* =========================================================
   FOOTER SIMPLIFICADO
========================================================= */

.team-page-footer {
  padding: 28px 0;
  background: #0d1560;
  text-align: center;
}

.team-page-footer p {
  margin: 0 0 6px;
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.team-page-footer a {
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.team-page-footer a:hover {
  color: #ffffff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
  .team-staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .team-founders-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .team-staff-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .team-join-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .team-page-hero {
    padding: 140px 0 56px;
  }
}