/* =====================================================
   home.css — Estilos específicos de la homepage
   ===================================================== */

/* --------------------------------------------------
   Hero Team Showcase — Trío Portrait Vertical Tech
-------------------------------------------------- */
.hero-team-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  position: relative;
}

/* Ambient glow detrás del ensamble */
.hero-team-showcase::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 5%;
  right: 5%;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.25) 0%,
    rgba(45, 127, 249, 0.18) 45%,
    transparent 70%
  );
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

/* Header superior del panel de líderes */
.hero-leadership-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-leadership-header__title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-300);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-leadership-header__title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 10px var(--accent-400);
}

.hero-leadership-header__badge {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--weight-medium);
}

/* Grid de las 3 tarjetas Portrait */
.hero-portraits-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
}

.hero-portrait-card {
  background: linear-gradient(
    180deg,
    rgba(13, 27, 48, 0.85) 0%,
    rgba(6, 14, 26, 0.95) 100%
  );
  border: 1px solid rgba(45, 127, 249, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    box-shadow 0.28s var(--ease-out);
  animation: fadeSlideIn 0.6s var(--ease-out) both;
  min-width: 0;
}

.hero-portrait-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.7);
  box-shadow: 0 16px 32px -6px rgba(20, 184, 166, 0.3);
}

.hero-portrait-card:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-portrait-card:nth-child(2) {
  animation-delay: 0.25s;
}
.hero-portrait-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* Contenedor de la foto con fade inferior */
.hero-portrait-media {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #091322;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s var(--ease-out);
  display: block;
}

.hero-portrait-card:hover .hero-portrait-img {
  transform: scale(1.06);
}

/* Gradiente sobre la imagen para fusionar con el texto */
.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(6, 14, 26, 0.8) 85%,
    rgba(6, 14, 26, 1) 100%
  );
  pointer-events: none;
}

/* Contenido de la tarjeta portrait */
.hero-portrait-body {
  padding: var(--space-2) var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  gap: 3px;
  min-width: 0;
}

.hero-portrait-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-portrait-role {
  font-size: 0.65rem;
  color: var(--accent-300);
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Botón de LinkedIn dentro de la tarjeta portrait */
.hero-portrait-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(10, 102, 194, 0.2);
  border: 1px solid rgba(10, 102, 194, 0.55);
  color: #8ac4ff;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  margin-top: auto;
}

.hero-portrait-linkedin svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero-portrait-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  box-shadow: 0 0 12px rgba(10, 102, 194, 0.7);
  transform: translateY(-1px);
}

/* Tira de Autoridad y Métricas */
.hero-authority-strip {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-authority-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-authority-item strong {
  color: #ffffff;
  font-weight: var(--weight-semibold);
}

/* Mini flujo metodológico */
.hero-flow-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(20, 99, 230, 0.15) 0%,
    rgba(20, 184, 166, 0.12) 100%
  );
  border: 1px solid rgba(45, 127, 249, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.hero-flow-step {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-flow-step strong {
  color: #ffffff;
}

.hero-flow-arrow {
  color: var(--accent-300);
  font-size: 0.75rem;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   Responsive Home Hero
-------------------------------------------------- */
@media (max-width: 900px) {
  .hero-team-showcase {
    max-width: 440px;
  }
  .hero-portrait-media {
    height: 140px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: auto;
    padding-block: var(--space-16) var(--space-12);
  }

  .hero-portraits-grid {
    gap: var(--space-2);
  }

  .hero-portrait-media {
    height: 110px;
  }

  .hero-portrait-name {
    font-size: 0.74rem;
  }

  .hero-portrait-role {
    font-size: 0.6rem;
  }

  .hero-authority-strip {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }

  .hero-flow-pill {
    display: none;
  }
}
