/* ══════════════════════════════════════════════
   NOSOTROS.CSS — Estilos exclusivos de nosotros.php
   ══════════════════════════════════════════════ */

/* ─── HERO NOSOTROS ──────────────────────────── */
.hero--nosotros .hero-bg-img--nosotros {
  object-position: center center;
  opacity: 0.25;
}

/* ─── EQUIPO ─────────────────────────────────── */
.equipo-section { background: var(--beige); }
.equipo-section .section-header h2 { color: var(--azul); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.team-member {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(6,36,59,0.07);
  transition: transform .3s, box-shadow .3s;
}
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(6,36,59,0.10);
}
.team-member--founder {
  border-color: rgba(227,156,0,0.5);
  box-shadow: 0 4px 24px rgba(227,156,0,0.15);
}
.team-member--founder:hover {
  box-shadow: 0 20px 56px rgba(227,156,0,0.25);
}

/* Foto */
.team-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--azul-mid) 0%, var(--azul) 100%);
  overflow: hidden;
}
.team-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  transition: transform .4s ease;
}
.team-member:hover .team-photo { transform: scale(1.04); }

/* Iniciales como fallback cuando no hay foto */
.team-photo-initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'YoungestSerif', serif;
  font-size: 48px; color: rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 0;
}
.team-photo-wrap:not(.team-photo--placeholder) .team-photo-initials {
  display: none;
}
.team-photo--placeholder .team-photo-initials {
  display: flex;
  color: rgba(255,255,255,0.35);
}

/* Info */
.team-info {
  padding: 20px 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.team-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px; color: var(--azul);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.team-member--founder .team-name { color: var(--amarillo-dark); }

.team-role {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray);
  font-family: 'NotoBalinese', Georgia, serif;
  display: block;
}

.team-stats-row { margin-top: 10px; }
.team-stat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--beige);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11.5px; color: var(--azul);
  font-family: 'Inter', sans-serif;
}
.team-stat-badge i { color: var(--amarillo-dark); font-size: 10px; }
.team-member--founder .team-stat-badge {
  background: rgba(227,156,0,0.1);
  border-color: rgba(227,156,0,0.4);
  color: var(--amarillo-dark);
}

/* Barra de retención */
.team-retention-bar {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 40px;
  border: 1px solid rgba(6,36,59,0.07);
}
.team-retention-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 18px; color: var(--azul);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.team-retention-label i { color: var(--amarillo-dark); font-size: 20px; }

.team-retention-track {
  background: rgba(6,36,59,0.06);
  border-radius: 100px;
  height: 10px; overflow: hidden;
  margin-bottom: 14px;
}
.team-retention-fill {
  height: 100%; width: 0;
  background: linear-gradient(to right, var(--amarillo-dark), var(--amarillo));
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; position: relative;
}
.team-retention-pct {
  position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  background: var(--azul); color: var(--white);
  font-size: 10px; font-family: 'Inter', sans-serif;
  padding: 2px 7px; border-radius: 100px;
  white-space: nowrap;
}
.team-retention-note {
  font-size: 13px; color: var(--gray);
  font-family: 'NotoBalinese', Georgia, serif;
  font-style: italic;
}

/* ─── ACREDITACIONES ─────────────────────────── */
.acreditaciones-section { background: var(--azul); }
.acreditaciones-section .section-label { color: var(--amarillo); }
.acreditaciones-section .section-header h2 { color: var(--white); }
.acreditaciones-section .section-header p { color: rgba(255,255,255,0.6); }

.acred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.acred-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 36px 24px 28px;
  text-align: center;
  transition: background .3s, border-color .3s, transform .3s;
}
.acred-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(227,156,0,0.35);
  transform: translateY(-6px);
}
.acred-card--highlight {
  background: rgba(227,156,0,0.08);
  border-color: rgba(227,156,0,0.3);
}
.acred-card--highlight:hover { border-color: var(--amarillo); }

/* Ícono con animación float */
.acred-icon-wrap {
  margin-bottom: 20px;
}
.acred-icon {
  font-size: 52px;
  color: var(--amarillo);
  display: block;
  animation: acred-float 3.2s ease-in-out infinite;
}
.acred-card--highlight .acred-icon { animation-delay: .4s; }
.acred-card:nth-child(3) .acred-icon { animation-delay: .8s; }
.acred-card:nth-child(4) .acred-icon { animation-delay: 1.2s; }
.acred-card:nth-child(5) .acred-icon { animation-delay: 1.6s; }

@keyframes acred-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

.acred-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 17px; color: var(--white);
  margin-bottom: 10px; line-height: 1.3;
  letter-spacing: -0.01em;
}
.acred-card--highlight .acred-title { color: var(--amarillo); }

.acred-desc {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .acred-grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media (max-width: 768px) {
  .acred-grid { grid-template-columns: repeat(2, 1fr); }
  .team-retention-bar { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .acred-grid { grid-template-columns: 1fr; }
}
