/**
 * Equipo Oficial Frecuencia Vital — tarjetas uniformes.
 * Scope: .fv-equipo
 */

.fv-equipo {
  --fv-equipo-bg: #fafafa;
  --fv-equipo-card: #ffffff;
  --fv-equipo-ink: #1b4332;
  --fv-equipo-ink-soft: #3d3835;
  --fv-equipo-gold: #9a7b4a;
  --fv-equipo-muted: #6b6560;
  --fv-equipo-photo-h: clamp(14rem, 38vw, 17.5rem);
  --fv-equipo-desc-lines: 4;
  --fv-equipo-desc-lh: 1.65;

  padding: clamp(3.5rem, 7vw, 5.25rem) clamp(1.25rem, 3.5vw, 2rem);
  background: var(--fv-equipo-bg);
}

.fv-equipo__wrap {
  max-width: 68rem;
  margin: 0 auto;
}

.fv-equipo__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  margin: 0 auto clamp(2.75rem, 5.5vw, 3.75rem);
  text-align: center;
}

.fv-equipo__title {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fv-equipo-ink);
  width: 100%;
}

@media (min-width: 768px) {
  .fv-equipo__head {
    max-width: none;
    width: 100%;
  }

  .fv-equipo__title {
    white-space: nowrap;
    font-size: clamp(1.35rem, 1.75vw, 1.85rem);
    letter-spacing: 0.11em;
    width: auto;
  }
}

.fv-equipo__rule {
  width: clamp(2.75rem, 8vw, 3.5rem);
  height: 1px;
  margin: 0 auto 1.15rem;
  background: var(--fv-equipo-gold);
  border: 0;
  flex-shrink: 0;
}

.fv-equipo__lead {
  margin: 0;
  width: 100%;
  max-width: 36rem;
  text-align: center;
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  line-height: 1.7;
  color: var(--fv-equipo-muted);
}

@media (min-width: 768px) {
  .fv-equipo__lead {
    max-width: 52rem;
  }
}

.fv-equipo__grid {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

@media (min-width: 640px) {
  .fv-equipo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .fv-equipo__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fv-equipo__item {
  display: flex;
  min-width: 0;
  height: 100%;
}

.fv-equipo__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--fv-equipo-card);
  border: none;
  border-radius: 10px;
  box-shadow:
    0 3px 8px rgba(26, 23, 21, 0.04),
    0 16px 36px rgba(26, 23, 21, 0.07);
}

.fv-equipo__card-inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.35rem, 3vw, 1.65rem) clamp(1.15rem, 2.5vw, 1.45rem) clamp(1.5rem, 3vw, 1.75rem);
  text-align: center;
}

.fv-equipo__photo-frame {
  flex: 0 0 auto;
  width: 100%;
  max-width: 15.5rem;
  margin: 0 auto 1.15rem;
}

.fv-equipo__photo {
  display: block;
  width: 100%;
  height: var(--fv-equipo-photo-h);
  object-fit: cover;
  object-position: center 16%;
  border: none;
  outline: none;
  border-radius: 6px;
  transform: scale(1.02);
  transform-origin: center center;
  filter: none;
  image-rendering: auto;
}

.fv-equipo__photo--empty {
  background: linear-gradient(145deg, #eceae7 0%, #e4e0db 100%);
}

.fv-equipo__name {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fv-equipo-ink);
}

.fv-equipo__role {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--fv-equipo-gold);
}

.fv-equipo__desc {
  margin: 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(var(--fv-equipo-desc-lh) * 1em * var(--fv-equipo-desc-lines));
  font-family: Lora, "Libre Baskerville", Georgia, serif;
  font-size: 0.92rem;
  line-height: var(--fv-equipo-desc-lh);
  color: var(--fv-equipo-ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--fv-equipo-desc-lines);
  overflow: hidden;
}

.fv-equipo__desc:empty {
  visibility: hidden;
}

.fv-equipo__more {
  margin: 0.9rem 0 0;
  flex: 0 0 auto;
}

.fv-equipo__more-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fv-equipo-ink-soft);
  transition: color 0.2s ease;
}

.fv-equipo__more-link:hover {
  color: var(--fv-equipo-ink);
}
