/* ===========================
   NUESTRO EQUIPO
   Tokens and shared hero/quote/button styles live in base/site.css.
   Reveal classes (.is-visible on .equipo-photo / .equipo-text) come from custom.js.
=========================== */

/* Hero: the team collage (1920x320) is shown whole, never cropped */
.page-heading-equipo {
  min-height: 0; aspect-ratio: 1920 / 320; padding: 0;
  margin: 6rem var(--gutter) 0; border-radius: var(--radius-lg);
  background-image: url(../../Imagenes-copy/team-foto-t4c.png); background-position: center; background-size: cover;
}
.page-heading-equipo::before { display: none; }

.equipo { padding: var(--section) 0; }

/* --- Intro --- */
.equipo-intro { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto var(--section); text-align: left; }
.equipo-intro-title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem); font-size: clamp(2.4rem, 5vw, 4.75rem); font-weight: 600;
  letter-spacing: var(--track-display); line-height: 1.05; text-transform: none; text-align: left;
}
.equipo-intro-cite { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.equipo-intro-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem); padding: clamp(2rem, 4vw, 3rem) 0;
  background: none; border: 0; border-block: 1px solid var(--line-dark); border-radius: 0; box-shadow: none;
}
.equipo-intro p { margin: 0; font-size: var(--fs-body); line-height: 1.7; color: var(--mist); text-align: left; }
.equipo-intro-highlight {
  max-width: 30ch; font-family: var(--font-sans); font-style: normal; font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem) !important; letter-spacing: -0.03em; line-height: 1.2;
  color: var(--white); text-align: left !important;
}
.equipo-intro-highlight em { font-style: normal; font-weight: 600 !important; color: var(--blue); text-shadow: none !important; }

/* --- Founders: photo pair in the middle, bios either side --- */
.equipo-founders {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto var(--section);
}
.equipo-photo-group { display: flex; flex-direction: column; align-items: center; align-self: center; }
.equipo-photo-caption { margin-bottom: 1rem; text-align: center; }
.equipo-photo-caption h3 { margin-bottom: .3rem; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--white); }
.equipo-photo-caption h6 { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--blue); }

/* Each photo is a masked window; the reveal slides the <img> inside it */
.equipo-photo { flex: 0 0 auto; height: 500px; overflow: hidden; }
.equipo-photo img {
  width: auto; height: 100%;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.55));
  opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.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: none; }

.equipo-photo-group-dario { order: 2; }
.equipo-founders-text-dario { order: 1; margin-right: 1.5rem; }
.equipo-photo-group-jc { order: 3; margin-left: -30px; }
.equipo-founders-text-jc { order: 4; margin-left: 1.5rem; }

.equipo-founders-text-dario, .equipo-founders-text-jc {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1rem;
  flex: 1 1 280px; max-width: 420px; padding: 1.5rem;
  background: var(--navy); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); box-shadow: none;
  text-align: left; opacity: 0;
  transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s;
}
.equipo-founders-text-dario { transform: translateX(-50px); }
.equipo-founders-text-jc { transform: translateX(50px); }
.equipo-founders-text-dario.is-visible, .equipo-founders-text-jc.is-visible { opacity: 1; transform: none; }
.equipo-founders-text-dario p, .equipo-founders-text-jc p { margin: 0; font-size: 1.1rem; line-height: 1.65; color: var(--mist); }
.equipo-founders-text-dario p:first-child, .equipo-founders-text-jc p:first-child {
  font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; color: var(--white);
}

/* --- Closing quote + CTA --- */
.equipo-text-final { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 0; text-align: left; }
.equipo-text-final h3 {
  max-width: 22ch; margin-bottom: 2.5rem; font-family: var(--font-sans); font-style: normal; font-weight: 600;
  font-size: var(--fs-h2); letter-spacing: var(--track-h2); line-height: 1; color: var(--white);
}
.equipo-text-final .cta-elegant { margin: 0; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .equipo-intro-body { grid-template-columns: 1fr; }
  .equipo-founders { flex-direction: column; align-items: center; gap: 1.5rem; }
  .equipo-photo-group-dario { order: 1; }
  .equipo-founders-text-dario { order: 2; margin: 0; }
  .equipo-photo-group-jc { order: 3; margin: 1.5rem 0 0; }
  .equipo-founders-text-jc { order: 4; margin: 0; }
  .equipo-photo-group { align-self: center; }
  .equipo-photo { height: 360px; }
  .equipo-founders-text-dario, .equipo-founders-text-jc { max-width: 100%; }
}
@media (max-width: 560px) {
  .page-heading-equipo { aspect-ratio: auto; min-height: 180px; background-image: url(../../Imagenes-copy/equipo-tres.png); background-position: center 12%; }
}
