/* ============================================
   CORE · Página EQUIPO (equipo.html)
   Usa las variables y componentes de styles.css
   (la cabecera viene de .page-hero)
   ============================================ */

/* Letra manuscrita (Caveat, licencia libre OFL) para la carta del fundador */
@font-face{
  font-family: 'Caveat';
  src: url('assets/fonts/caveat-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* HERO: solo la imagen */
.eq-hero{ --hero-img: url('assets/equipo/hero-equipo.webp'); --hero-pos: right 12%; }

/* Bloques de dos columnas (texto + imagen) */
.eq-dos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.eq-h2{ font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 22px; }
.eq-lead{
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted-dark);
  max-width: 52ch;
}

/* Fotos: si la imagen aún no existe, queda un fondo oscuro con degradado de marca */
.eq-foto{
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(242,118,46,.35), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(198,35,104,.35), transparent 60%),
    var(--bg-dark);
}
.eq-foto img{ width: 100%; height: 100%; object-fit: cover; }
.eq-foto-ancha{ aspect-ratio: 16 / 10; }
.eq-foto-retrato{ aspect-ratio: 4 / 5; max-width: 460px; justify-self: end; width: 100%; }

/* 2. Una mirada compartida */
.eq-mirada{ padding: 110px 0; }

/* 3. Fundador */
.eq-fundador{
  position: relative;
  padding: 110px 0;
  background: #efe8dd;
  overflow: hidden;
}
.eq-fundador::before,
.eq-fundador::after{               /* círculos finos de fondo, como en el boceto */
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
}
.eq-fundador::before{
  right: -140px;
  width: 640px; height: 640px; margin-top: -320px;
  border: 1px solid rgba(242,118,46,.35);
}
.eq-fundador::after{
  right: -230px;
  width: 820px; height: 820px; margin-top: -410px;
  border: 1px solid rgba(198,35,104,.18);
}
.eq-fundador .wrap{ position: relative; z-index: 1; }
.eq-nombre{ font-size: clamp(34px, 3.8vw, 52px); margin-bottom: 8px; }
.eq-cargo{ font-size: 17px; color: var(--text-dark); margin-bottom: 26px; }
.eq-fundador .eq-lead{ margin-bottom: 24px; }
.eq-carta{                          /* la frase como una nota escrita a mano */
  margin: 8px 0 32px;
  max-width: 34em;
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 27px);
  line-height: 1.35;
  color: var(--text-dark);
  text-align: center;
}
.eq-carta p::before{ content: "«"; }
.eq-carta p::after{ content: "»"; }
.nowrap{ white-space: nowrap; }
.eq-carta footer{
  margin-top: 12px;
  font-size: 1.15em;
  color: var(--orange);
  text-align: right;
}
.eq-fundador .link-arrow{ color: var(--orange); font-size: 15px; }

/* 4. Las personas que te acompañan */
.eq-personas{ padding: 110px 0 40px; }
.eq-personas-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.eq-personas-head .eyebrow{ margin-bottom: 0; }
.eq-personas-sub{ font-size: 16px; color: var(--text-muted-dark); max-width: 42ch; }
.eq-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.eq-card{
  background: #fff;
  border: 1px solid #ece4d8;
  padding: 0 0 22px;
  text-align: center;
}
.eq-card-foto{
  position: relative;
  margin: 0 0 18px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(242,118,46,.35), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(198,35,104,.35), transparent 60%),
    var(--bg-dark);
}
.eq-card-foto::before{               /* iniciales cuando no hay foto */
  content: attr(data-ini);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 44px;
  font-weight: 200;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
}
.eq-card-foto img{ position: relative; width: 100%; height: 100%; object-fit: cover; }
.eq-card h3{ font-size: 19px; font-weight: 400; margin-bottom: 4px; }
.eq-card p{ font-size: 14px; color: var(--text-muted-dark); margin-bottom: 18px; }
.eq-card .btn{ color: var(--orange); font-size: 14px; padding: 9px 22px; }
.eq-card .btn:hover, .eq-card .btn.is-active{ background: rgba(242,118,46,.08); }

/* 5. Ficha del profesor */
.eq-ficha{ padding: 70px 0 110px; scroll-margin-top: 90px; }
.eq-ficha-nombre{ font-size: clamp(28px, 3vw, 40px); margin-bottom: 6px; }
.eq-ficha .eq-cargo{ color: var(--text-muted-dark); margin-bottom: 36px; }
.eq-ficha-cuerpo{ align-items: start; gap: 56px; }

.eq-video{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(242,118,46,.35), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(198,35,104,.35), transparent 60%),
    var(--bg-dark);
}
.eq-video img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.eq-video::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16,13,15,.75) 0%, transparent 55%);
}
.eq-play{
  position: absolute;
  left: 50%; top: 50%;
  z-index: 2;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: grid; place-items: center;
  color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.eq-play svg{ width: 26px; height: 26px; margin-left: 3px; }
.eq-video:hover .eq-play{ transform: scale(1.06); background: rgba(255,255,255,.12); }
.eq-video-txt{
  position: absolute;
  left: 28px; bottom: 22px;
  z-index: 2;
  color: var(--text-cream);
  font-size: 17px;
}
.eq-video.sin-video{ cursor: default; }
.eq-video.sin-video .eq-play{ opacity: .45; }
.eq-video.sin-video:hover .eq-play{ transform: none; background: none; }

.eq-acc details{ border-bottom: 1px solid #e4dccf; }
.eq-acc details:first-child{ border-top: 1px solid #e4dccf; }
.eq-acc summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 40px 20px 4px;
  position: relative;
  font-size: 17px;
}
.eq-acc summary::-webkit-details-marker{ display: none; }
.eq-acc summary::after{
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--text-muted-dark);
}
.eq-acc details[open] summary::after{ content: "–"; color: var(--orange); }
.eq-acc-ico svg{
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eq-acc details p{
  padding: 0 40px 22px 50px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted-dark);
}
.eq-acc details p b{ font-weight: 600; color: var(--text-dark); }

/* Cursos que imparte */
.eq-cursos-wrap{ margin-top: 64px; }
.eq-cursos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.eq-curso{
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(242,118,46,.3), transparent 60%),
    var(--bg-dark);
}
.eq-curso img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .4s ease; }
.eq-curso::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16,13,15,.85) 0%, transparent 70%);
}
.eq-curso span{
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 1;
  color: var(--text-cream);
  font-size: 16px;
}
.eq-curso span::after{
  content: "";
  display: block;
  width: 34px; height: 2px;
  margin-top: 10px;
  background: var(--gradient);
}
.eq-curso:hover img{ transform: scale(1.04); }

/* 6. Cómo trabajamos juntos */
.eq-como{ padding: 0 0 110px; }
.eq-como-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}
.eq-como-item{
  display: flex;
  gap: 20px;
  padding: 6px 36px;
  border-left: 1px solid #e4dccf;
}
.eq-como-item:first-child{ padding-left: 0; border-left: none; }
.eq-como-ico svg{
  width: 44px; height: 36px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eq-como-item h3{ font-size: 18px; font-weight: 400; margin-bottom: 6px; }
.eq-como-item p{ font-size: 14.5px; line-height: 1.6; color: var(--text-muted-dark); }

/* 7. De quién aprendemos */
.mae{
  padding: 110px 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(198,35,104,.18), transparent 50%),
    var(--bg-dark);
  color: var(--text-cream);
}
.mae .eyebrow{ color: var(--text-muted-light); }
.mae-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.mae-sub{ max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--text-muted-light); }
.mae-filtros{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.mae-filtro{
  font: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.22);
  background: none;
  color: var(--text-cream);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.mae-filtro:hover{ border-color: var(--orange); }
.mae-filtro.is-active{ background: var(--gradient); border-color: transparent; }
.mae-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 40px 28px;
}
.mae-card{ text-align: center; }
.mae-card[hidden]{ display: none; }
.mae-foto{
  position: relative;
  width: 132px; height: 132px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(242,118,46,.45), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(198,35,104,.45), transparent 60%),
    #241d22;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 0 6px var(--bg-dark), 0 0 0 7px rgba(242,118,46,.35);
}
.mae-foto::before{
  content: attr(data-ini);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 34px; font-weight: 200; letter-spacing: .06em;
  color: rgba(255,255,255,.8);
}
.mae-foto img{
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease, transform .35s ease;
}
.mae-card:hover .mae-foto img{ filter: none; transform: scale(1.04); }
.mae-card h3{ font-size: 17px; font-weight: 400; margin-bottom: 8px; }
.mae-card p{ font-size: 14px; line-height: 1.55; color: var(--text-muted-light); margin-bottom: 10px; }
.mae-libro{ display: block; font-size: 12px; color: var(--orange); }
.mae-libro i{ font-style: italic; }

/* 8. Cierre */
.eq-cta{
  padding: 80px 0;
  background:
    radial-gradient(ellipse at 85% 120%, rgba(242,118,46,.25), transparent 55%),
    var(--bg-dark);
  color: var(--text-cream);
}
.eq-cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.eq-cta h2{ font-size: clamp(28px, 3vw, 42px); margin-bottom: 12px; }
.eq-cta p{ font-size: 16px; color: var(--text-muted-light); }

/* RESPONSIVE */
@media (max-width: 1100px){
  .eq-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px){
  .eq-mirada, .eq-fundador, .eq-personas{ padding: 72px 0; }
  .eq-ficha{ padding: 40px 0 72px; }
  .eq-dos, .eq-ficha-cuerpo{ grid-template-columns: 1fr; gap: 36px; }
  .eq-foto-retrato{ justify-self: start; max-width: 380px; }
  .eq-fundador::before, .eq-fundador::after{ display: none; }
  .eq-cursos{ grid-template-columns: 1fr; }
  .eq-como{ padding-bottom: 72px; }
  .eq-como-grid{ grid-template-columns: 1fr; }
  .eq-como-item{ padding: 22px 0; border-left: none; border-top: 1px solid #e4dccf; }
  .eq-como-item:first-child{ border-top: none; }
  .eq-cta{ padding: 56px 0; }
  .mae{ padding: 72px 0; }
  .mae-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .mae-foto{ width: 104px; height: 104px; }
}
@media (max-width: 560px){
  .eq-grid{ grid-template-columns: 1fr; }
}
