/* ════════════════════════════════════════════
   HAYEQUIPO.CSS — Estilos exclusivos de la
   página Hay Equipo (presentación del equipo).
   Se carga DESPUÉS de base.css y subpaginas.css
   ════════════════════════════════════════════ */


/* ── CONTENEDOR ───────────────────────────────
   Sin gap ni padding lateral: los bloques
   llegan de borde a borde como en las demás
   subpáginas de contenido denso.
   ─────────────────────────────────────────── */

.subpage-container {
  gap: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}


/* ── HERO BANNER ──────────────────────────────
   Franja negra con texto celeste.
   Usada dos veces: sobre y bajo la ilustración.
   ─────────────────────────────────────────── */

.he-hero-block { display: flex; flex-direction: column; }

.he-hero-banner {
  background: var(--black);
  color: var(--bg);
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.he-hero-banner h2 {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Flor decorativa — esquina derecha de la franja superior */
.he-flower-icon {
  position: absolute;
  right: 1.5rem;
  font-size: 1.8rem;
}

/* Ilustración del equipo — fondo celeste (transparente sobre --bg) */
.he-hero-img-wrap {
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg);
}

.he-hero-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* ── TIMELINE HORIZONTAL ──────────────────────
   Línea naranja con 4 puntos naranjas.
   Integrantes 1 y 3 (Negro, Cecilia) arriba.
   Integrantes 2 y 4 (Nancy, Matías) abajo.
   Fondo blanco.

   Estructura de cada .he-member:
     .he-member-above  — zona arriba de la línea
       .he-member-avatar  (solo si va arriba)
       .he-member-name
       .he-role
     .he-member-dot    — punto naranja sobre la línea
     .he-member-below  — zona abajo de la línea
       .he-member-name
       .he-role
       .he-member-avatar  (solo si va abajo)
   ─────────────────────────────────────────── */

.he-timeline-section {
  background: var(--white);
  width: 100%;
  padding: 0 2rem 1.5rem;      /* Menos padding inferior — menos blanco sobrante */
}

/* Wrapper de la línea y los 4 integrantes */
.he-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Línea horizontal negra — posición fija en vez de 50%,
   porque ahora todos los integrantes van arriba y la
   zona "below" quedó sin alto (ver .he-member-below) */
.he-timeline::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 250px;
  height: 4px;
  background: var(--black);
  transform: translateY(-50%);
  z-index: 0;
}

/* Columna de cada integrante */
.he-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Zona arriba de la línea — altura aumentada para fotos más grandes */
.he-member-above {
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.6rem;
  gap: 0.4rem;
}

/* Punto naranja — sin borde */
.he-member-dot {
  width: 20px; height: 20px;
  background: var(--orange);
  border-radius: 50%;            /* Sin border: solo naranja puro */
  flex-shrink: 0;
  z-index: 2;
}

/* Zona abajo de la línea — sin alto: todos los integrantes
   van arriba por ahora, esta zona queda vacía (ver HTML) */
.he-member-below {
  height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

/* Avatar circular — más grande, borde celeste con transición para hover */
.he-member-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 4px solid var(--bg);       /* Celeste por defecto */
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey);
  transition: border-color 0.25s;    /* Transición suave al hover */
}

/* Hover: borde cambia a naranja */
.he-member:hover .he-member-avatar { border-color: var(--orange); }

.he-member-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Nombre — más grande */
.he-member-name {
  font-family: var(--font);
  font-size: 1.2rem;               /* Subido desde 0.95rem */
  font-weight: 900;
  text-transform: uppercase;
  background: var(--black);
  color: var(--bg);
  padding: 0.3rem 0.7rem;
  text-align: center;
  line-height: 1.2;
}

/* Rol — DM Sans pequeño, semitransparente */
.he-role {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  text-align: center;
}


/* ── FUN FACTS ────────────────────────────────
   Separado del timeline con margen superior.
   Fondo gris, borde naranja izquierdo.
   ─────────────────────────────────────────── */

.he-funfacts-block {
  background: var(--grey);
  border-left: 6px solid var(--orange);
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  width: 100%;
  margin-top: var(--gap-md);        /* Separación visual respecto al timeline */
}

.he-funfacts-icon {
  font-size: 1.8rem;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.he-funfacts-content h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.he-funfacts-content p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(0,0,0,0.75);
}


/* ── COLABORADORES ────────────────────────────
   Fichas foto+texto chicas, dentro del mismo
   bloque gris de "Un grupo muy grande" (no es
   una sección aparte). Alternan el orden
   (foto-izq/texto-der, foto-der/texto-izq)
   automáticamente vía :nth-child — no hace falta
   tocar el CSS al agregar fichas nuevas.
   ─────────────────────────────────────────── */

.he-colab-lista {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.he-colab-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Fichas pares: foto a la derecha, texto a la izquierda */
.he-colab-item:nth-child(even) {
  flex-direction: row-reverse;
}

.he-colab-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--white);
}

.he-colab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.he-colab-content { flex: 1; }

.he-colab-name {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.he-colab-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(0,0,0,0.7);
}

@media (max-width: 560px) {
  .he-colab-item,
  .he-colab-item:nth-child(even) {
    flex-direction: row;
  }
}


/* ── RESPONSIVE ───────────────────────────────
   768px: timeline pasa a vertical, un integrante
          por fila, todos alineados a la izquierda.
   520px: ajustes menores de padding.
   ─────────────────────────────────────────── */


@media (max-width: 768px) {

  .he-hero-banner h2 { font-size: 1.3rem; }
  .he-timeline-section { padding: 0 1.5rem 2.5rem; }

  /* Timeline vertical: línea a la izquierda */
  .he-timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 2.5rem;
  }

  /* Línea vertical */
  .he-timeline::before {
    top: 0; bottom: 0; left: 0;
    width: 4px; height: 100%;
    right: auto;
    transform: none;
  }

  /* Cada integrante: fila horizontal */
  .he-member {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
  }

  /* En vertical, above y below pasan a ser solo contenedores flex */
  .he-member-above,
  .he-member-below {
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  /* Punto a la izquierda, sobre la línea vertical */
  .he-member-dot {
    position: absolute;
    left: -2.5rem;
    transform: translateX(-50%);
  }

  /* Ocultar ambas zonas por defecto */
  .he-member-above { display: none; }
  .he-member-below { display: none; }

  /* Mostrar la zona con contenido según la posición del miembro */
  .he-pos-above .he-member-above {
    display: flex;
    width: 100%;
  }

  /* Para los "abajo", el DOM tiene: nombre → rol → avatar.
     row-reverse + justify-content: flex-end los reordena a: avatar → rol → nombre */
  .he-pos-below .he-member-below {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .he-timeline-section { padding: 0 1.25rem 2rem; }
  .he-funfacts-block   { padding: 1.5rem 1.25rem; }
  .he-update-block     { padding: 1.5rem 1.25rem; }
}


/* ── SECCIÓN BAILARINES ───────────────────────
   Separador entre el bloque del equipo y la
   sección de autogestión para inscriptos.
   ─────────────────────────────────────────── */

.he-seccion-bailarines {
  background: var(--bg);
  padding: 1.25rem 2rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 3px solid var(--orange);
  margin-top: var(--gap-md);
}

.he-seccion-bailarines i {
  color: var(--orange);
  font-size: 1rem;
}

.he-seccion-bailarines span {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.45);
}


/* ── ACTUALIZAR DATOS ────────────────────────
   Bloque CTA para que los inscriptos puedan
   actualizar su información personal.
   Fondo negro, ícono y botón en naranja.
   ─────────────────────────────────────────── */

.he-update-block {
  background: var(--black);
  color: var(--white);
  padding: 2rem 2rem 2rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  width: 100%;
}

.he-update-icon {
  font-size: 1.8rem;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.he-update-content h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.he-update-content p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.25rem;
}

.he-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.4rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.he-update-btn:hover { opacity: 0.85; }