/* =========================================================
   EQUIPO — reglas propias de equipo.html
   (header, nav, footer y testimonios viven en css/common.css)
   ========================================================= */

.equipo {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 6%;
  background: #fff;
  flex-wrap: wrap;
}

.eq-imagen {
  flex: 1 1 320px;
}

.eq-imagen img {
  width: 100%;
  max-width: 65vh;
  aspect-ratio: 1 / 1;
  object-position: 45%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.eq-texto {
  flex: 1 1 320px;
}

.eq-linea {
  width: 60px;
  height: 4px;
  background: #2dbf9b;
  margin-bottom: 1rem;
}

.eq-texto h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3.2rem);
  font-weight: 700;
  color: #27124D;
  margin-bottom: 1.8rem;
}

.eq-texto p {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.6rem);
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.4rem;
}

/* ── CONFIANZA ── */
.confianza {
  background: #27124D;
  padding: 5rem 6%;
  text-align: center;
}

.confianza h2 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 3.2rem);
  line-height: 1.4;
}

.confianza h2 strong {
  font-family: Georgia, serif;
  font-weight: 700;
}

/* ── EQUIPO FUNDADORES ── */
.equipo-fundadores {
  background: #f5f0e8;
  padding: 1rem 6%;
}

.ef-fila {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.ef-fila-top {
  margin-bottom: 1rem;
  gap: 2rem;
  transition: gap 0.4s ease;
}

.ef-fila-bottom {
  background: #fff;
  margin: 0 -6%;
  padding: 1rem 6% 1rem;
  gap: 2rem;
}

/* ── CARDS FILA TOP ── */
.ef-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 28%;
  min-width: 190px;
  position: relative;
  padding-top: 5%;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.ef-card-top.activo-izq {
  transform: translateX(-30px);
}

.ef-card-top.activo-der {
  transform: translateX(30px);
}

.ef-fondo-top {
  width: 100%;
  height: 20vh;
  min-height: 140px;
  background: #2d3fa0;
  border-radius: 16px;
  position: relative;
  margin-bottom: 1rem;
  overflow: visible;
}

.ef-foto-top {
  width: auto;
  height: 130%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ── CARDS FILA BOTTOM ── */
.ef-card-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 25%;
  min-width: 170px;
  position: relative;
  padding-top: 5%;
}

.ef-fondo-bottom {
  width: 100%;
  height: 20vh;
  min-height: 130px;
  background: #2d3fa0;
  border-radius: 16px;
  position: relative;
  margin-bottom: 1rem;
  overflow: visible;
}

.ef-foto-bottom {
  width: auto;
  height: 130%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ── TEXTOS Y LINKEDIN (compartido) ── */
.ef-card-top h3,
.ef-card-bottom h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.ef-card-top p,
.ef-card-bottom p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.ef-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2d3fa0;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ef-linkedin:hover {
  background: #24327f;
}

.ef-testimonio-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height 0.4s ease, opacity 0.4s ease;
}

.ef-testimonio {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  color: #1a1a2e;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ef-testimonio.activo {
  display: block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .equipo {
    padding: 3.5rem 6%;
    gap: 2.5rem;
    text-align: center;
  }

  .ef-card-top {
    width: 45%;
  }

  .ef-card-bottom {
    width: 45%;
  }

  .ef-fila-bottom {
    margin: 0 -6%;
    padding: 3rem 6%;
  }
}

@media (max-width: 640px) {
  .ef-card-top,
  .ef-card-bottom {
    width: 100%;
    max-width: 280px;
  }

  .ef-fila-top {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .equipo {
    padding: 3rem 5.5%;
  }

  .confianza {
    padding: 3.5rem 5.5%;
  }

  .ef-testimonio {
    padding: 1.5rem;
    font-size: 0.95rem;
  }
}
