/* ── Layout ── */
.equipo-section {
  padding: 60px 20px 80px;
}

.equipo-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Heading block ── */
.equipo-heading-block {
  text-align: center;
  padding: 20px 0 50px;
}

.equipo-title {
  font-size: 48px;
  font-weight: 800;
  color: #0b1c2d;
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.equipo-subtitle {
  font-size: 18px;
  color: #475569;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .equipo-title { font-size: 32px; letter-spacing: -0.5px; }
  .equipo-subtitle { font-size: 16px; }
}

/* ── Story wrapper ── */
.mh-story-wrapper {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  max-width: 800px;
  margin: 0 auto 70px;
  text-align: center;
}

.mh-story-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 20px;
  color: #0b1c2d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
}

.mh-story-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  background-color: #0b1c2d;
  color: #ffffff;
}

.mh-story-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.mh-story-content.is-open {
  max-height: 600px;
  opacity: 1;
}

.mh-story-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 20px 0;
  font-weight: 500;
}

/* ── Section label ── */
.equipo-team-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #2b7cff;
  text-align: center;
  margin-bottom: 12px;
}

.equipo-team-title {
  font-size: 32px;
  font-weight: 800;
  color: #0b1c2d;
  text-align: center;
  margin: 0 0 50px;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .equipo-team-title { font-size: 24px; margin-bottom: 36px; }
}

/* ── Team container ── */
.mh-team-container {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.mh-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* LinkedIn wrapper */
.mh-team-photo-link {
  display: block;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mh-team-photo-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(43, 124, 255, 0.25);
}
.mh-team-photo-link:hover .mh-team-name-overlay {
  background: linear-gradient(to top, rgba(43,124,255,0.92), transparent);
}

/* Photo card */
.mh-team-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, #1a3a5c 0%, #0b1c2d 100%);
}

.mh-team-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder for photo cards without a photo */
.mh-team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #0b1c2d 100%);
}

.mh-team-photo-placeholder i {
  font-size: 90px;
  color: rgba(255, 255, 255, 0.15);
}

.mh-team-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 25px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  text-align: center;
}

.mh-team-name {
  color: #ffffff;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Empty / description card */
.mh-team-empty-card {
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e8edf5;
}

.mh-team-empty-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 14px;
  font-weight: 400;
}

.mh-team-empty-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .mh-team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mh-team-empty-card {
    min-height: 250px;
    margin-bottom: 10px;
  }
  .mh-team-container { padding: 10px 0; }
}

/* =====================================================
   Professional Animations — Equipo
   (keyframes y .reveal base viven en styles.css)
   ===================================================== */

/* ── Heading on-load (above the fold) ── */
.equipo-heading-block .equipo-title    { animation: fadeUp .70s cubic-bezier(.22,1,.36,1) .15s both; }
.equipo-heading-block .equipo-subtitle { animation: fadeUp .60s cubic-bezier(.22,1,.36,1) .32s both; }

/* ── Team grid: reveal + stagger ── */
.mh-team-grid { perspective: 1000px; }

.mh-team-photo-link:nth-child(1).reveal { transition-delay: 0s;   }
.mh-team-empty-card:nth-child(2).reveal { transition-delay: .08s; }
.mh-team-photo-link:nth-child(3).reveal { transition-delay: .14s; }
.mh-team-empty-card:nth-child(4).reveal { transition-delay: .22s; }
.mh-team-photo-link:nth-child(5).reveal { transition-delay: .28s; }
.mh-team-empty-card:nth-child(6).reveal { transition-delay: .36s; }

/* El link tiene su propia transition (sin opacity); la regla de 2 clases
   garantiza que el fade del reveal anime y conserva su hover. */
.mh-team-photo-link.reveal {
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}

/* ── Shimmer sweep en las fotos (tarjeta oscura) ── */
.mh-team-photo-card::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 50%; height: 220%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left .55s ease;
  z-index: 2;
}
.mh-team-photo-link:hover .mh-team-photo-card::after { left: 130%; }

/* ── Inner glow en las tarjetas de descripción (claras) ── */
.mh-team-empty-card { position: relative; overflow: hidden; }
.mh-team-empty-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(43,124,255,0.09) 0%, transparent 68%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.mh-team-empty-card:hover::before { opacity: 1; }
