/* ── Header de página interna (compartible por concepto) ── */
.page-hero {
  padding-top: calc(var(--sp-section) + 60px); /* espacio para el navbar fijo */
  padding-bottom: var(--sp-5);
  
}

.page-hero h1 {
  font-size: var(--fs-hero);
  margin-block: var(--sp-2) var(--sp-3);
  animation: heroIn 0.9s ease both;
}

.page-hero .tag { animation: heroIn 0.9s ease both; }

.page-hero-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 60ch;
  animation: heroIn 0.9s 0.15s ease both;
}

/* Reutiliza la animación del home */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.accent-text {
  background: linear-gradient(90deg, var(--electric), #4DA3FF, var(--electric));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  to { background-position: 200% center; }
}

/* ── Timeline ── */
.timeline {
  position: relative;
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-4);
  padding-left: var(--sp-4);
}

/* Línea vertical conectora */
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--electric), rgba(0, 102, 255, 0.1));
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--sp-4));
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 3px solid var(--electric);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.5);
}

.timeline-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-1);
}

.timeline-content h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-1);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* ── Equipo ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--electric), var(--mist));
}

.team-card h3 {
  font-size: 1.15rem;
}

.team-role {
  display: block;
  color: var(--glow);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-block: 0.3rem var(--sp-2);
}

.team-card p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* ── Valores ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.values-grid h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-1);
}

.values-grid p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ── Manifiesto ── */
.manifesto {
  padding-bottom: var(--sp-4);
}

.manifesto-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-heading);
  max-width: 20ch;
  max-width: 28ch;
}

/* ── Franja de números ── */
.stats-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-surface);
  padding-block: var(--sp-4);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* ── Misión y Visión ── */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.mv-card {
  position: relative;
  padding: var(--sp-4) var(--sp-3) 0;
  border-top: 2px solid var(--border);
}

/* La línea superior se "enciende" en azul */
.mv-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.mv-card:hover::before {
  width: 100%;
}

.mv-num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.mv-card h2 {
  font-size: var(--fs-h2);
  margin-block: var(--sp-1) var(--sp-2);
}

.mv-card p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Equipo: layout horizontal en la cabecera ── */
.team-top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  text-align: left;
}

.team-top .team-avatar {
  margin: 0;
  flex-shrink: 0;
}

/* Línea de acento que crece al hover */
.team-card {
  text-align: left;
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-card:hover::after {
  transform: scaleX(1);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
}