/* ===========================
   NUESTRO EQUIPO
=========================== */

.page-heading-equipo {
  background-image: url(../../Imagenes-copy/team-foto-t4c.png);
  background-position: center top;
  padding: 60px 0px;
  min-height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .page-heading-equipo {
    /* Mobile gets its own portrait team photo instead of the wide desktop
       collage, which doesn't crop well at phone proportions */
    background-image: url(../../Imagenes-copy/equipo-tres.png);
    background-position: center 12%;
    min-height: 170px;
  }
}

.page-heading-equipo .page-heading-hero-text {
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(0, 0, 0, 0.45);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-top: 140px;
}

@media (max-width: 767px) {
  .page-heading-equipo .page-heading-hero-text {
    font-size: 20px !important;
    padding: 0 !important;
    transform: translate(0px, 24px);
  }
}

.equipo {
  padding: 80px 0px;
}

@media (max-width: 767px) {
  .equipo {
    padding-top: 30px;
  }
}

.equipo-intro {
  max-width: 1000px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
  text-align: left;
}

.equipo-intro-cite {
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .equipo-intro-cite {
    padding-top: 0px;
    padding-bottom: 20px;
  }
}

.equipo-intro-body {
  background: linear-gradient(135deg, #0b1a30 0%, #1e3f6e 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 50px 60px;
  margin-bottom: 40px;
  box-shadow: 0 12px 30px rgba(11, 26, 48, 0.3);
}

.equipo-intro-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .equipo-intro-body {
    padding: 0px 24px;
    border-radius: 16px;
    transform: translate(0px, 0px);
    margin-top: 20px;
  }
}

.equipo-intro p {
  font-size: 24px;
  line-height: 1.7;
  color: #c3d0e4;
  margin-bottom: 22px;
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 767px) {
  .equipo-intro p {
    font-size: 16px;
    line-height: 1.5;
    transform: translate(0px, 0px);
    text-align: left;
  }
}

.equipo-intro p:last-of-type {
  margin-bottom: 34px;
}

.equipo-intro-highlight {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: #f3f6fb;
}

.equipo-founders {
  display: flex;
  /* stretch (not center) so both text panels match height; photos opt back
     into vertical centering individually via align-self below */
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 80px;
}

/* Photo + name/role caption, grouped so the caption sits above the head
   and the pair moves/aligns together as one flex item. */
.equipo-photo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}

.equipo-photo-caption {
  text-align: center;
  margin-bottom: 14px;
}

.equipo-photo-caption h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #f3f6fb;
}

.equipo-photo-caption h6 {
  color: #2b6cc4;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Photos: bigger, flush against each other as one merged pair in the middle.
   Fixed height (not width) so both photos match height regardless of their
   own crop ratio. Each is a masked window — the "photo rise" reveal animates
   the <img> inside it, not the box, so it looks like the photo slides into a
   fixed frame. */
.equipo-photo {
  flex: 0 0 auto;
  height: 480px;
  overflow: hidden;
}

.equipo-photo img {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

/* Dario rises top -> bottom, JC rises bottom -> top */
.equipo-photo-dario img {
  transform: translateY(-100%);
}

.equipo-photo-jc img {
  transform: translateY(100%);
}

.equipo-photo-dario.is-visible img,
.equipo-photo-jc.is-visible img {
  opacity: 1;
  transform: translateY(0);
}

/* Photos overlap slightly to sit closer together; text panels sit closer to
   the photos too (Dario's on the far left, JC's on the far right) */
.equipo-photo-group-dario { order: 2; }
.equipo-founders-text-dario { order: 1; margin-right: 24px; }
.equipo-photo-group-jc { order: 3; margin-left: -30px; }
.equipo-founders-text-jc { order: 4; margin-left: 24px; }

/* Text side — plain paragraphs (no bullets), same size the old <li> bullets had */
.equipo-founders-text-dario p,
.equipo-founders-text-jc p {
  font-size: 20px;
  line-height: 28px;
  color: #c3d0e4;
  margin-bottom: 12px;
}

.equipo-founders-text-dario p:last-child,
.equipo-founders-text-jc p:last-child {
  margin-bottom: 0;
}

.equipo-founders-text-dario,
.equipo-founders-text-jc {
  flex: 1 1 280px;
  max-width: 440px;
  padding: 36px 20px;
  background: linear-gradient(135deg, #0b1a30 0%, #1e3f6e 100%);
  border: 1px solid rgba(79, 154, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(11, 26, 48, 0.3);
  opacity: 0;
  /* Both panels stretch to the same height (see .equipo-founders); align
     content to the top so both bios start at the same height regardless
     of paragraph count */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Text follows slightly after the photos slide up */
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
  font-size: 16px;
    line-height: 1.5;
    text-align: left;
  
}

.equipo-founders-text-dario {
  transform: translateX(-60px);
}

.equipo-founders-text-jc {
  transform: translateX(60px);
}

.equipo-founders-text-dario.is-visible,
.equipo-founders-text-jc.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767px) {
  .equipo-founders {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    margin-bottom: 50px;
  }

  /* Each person's photo directly above their own text */
  .equipo-photo-group-dario { order: 1; }
  .equipo-founders-text-dario { order: 2; margin-right: 0; }
  .equipo-photo-group-jc { order: 3; margin-left: 0; }
  .equipo-founders-text-jc { order: 4; margin-left: 0; }

  .equipo-photo {
    height: 340px;
  }

  .equipo-founders-text-dario,
  .equipo-founders-text-jc {
    max-width: 100%;
    padding: 24px 20px;
  }

  .equipo-photo-caption h3 {
    font-size: 19px;
  }

  .equipo-founders-text-dario p,
  .equipo-founders-text-jc p {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
  }
}

/* Final quote */
.equipo-text-final {
  text-align: center;
  padding: 40px 15%;
  margin-top: 40px;
}

.equipo-text-final h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: #f3f6fb;
  line-height: 40px;
  font-style: italic;
  margin-bottom: 40px;
}

.equipo-text-final-cta-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 22px;
  color: #f3f6fb;
  margin-bottom: 24px;
  margin-top: -50px;
}
