/* /equipo/ y /equipo/<slug>/ — mosaico de asesores + perfil.
   Lo escribe buildEquipo()/buildEquipoPerfil() en _generator-lib.js; los datos
   salen de content/equipo.json. Se carga ENCIMA de styles.css (extraStyles) y
   reutiliza de ahí .h26-wrap, .wpfs2-eyebrow y .wpfs2-btn, así que botones,
   márgenes y tipografía son los del resto del sitio. Hoja propia y no bloque
   dentro de styles.css para que cambiar esto no obligue a subir ASSET_VER en
   las ~1.100 páginas que no lo usan. */

body.eq-page, .eq{ background:#fff; }
.eq{ color:var(--h26-navy); padding-bottom:0; }
.eq a{ text-decoration:none; }

/* Migas */
.eq-bc{ padding:24px 0 0; font-size:14px; line-height:20px; color:var(--h26-slate); }
.eq-bc a{ color:var(--h26-blue-ink); font-weight:600; }
.eq-bc a:hover{ text-decoration:underline; }
.eq-bc span{ margin:0 8px; color:var(--h26-mist); }

/* ── Listado ─────────────────────────────────────────────────────────── */
.eq-head{ padding:32px 0 24px; }
.eq-head__row{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px; }
.eq .eq-head h1{ font-size:40px; line-height:44px; font-weight:700; letter-spacing:-.4px; color:var(--h26-navy); text-transform:none; margin:0; max-width:680px; }
.eq-head p{ margin:12px 0 0; font-size:16px; line-height:24px; color:var(--h26-grey); max-width:620px; }

.eq-filtros{ display:flex; flex-wrap:wrap; gap:8px; }
.eq-filtros[hidden]{ display:none; }
.eq-chip{
  height:44px; padding:0 18px; border-radius:8px; border:1px solid var(--h26-mist);
  background:#fff; color:var(--h26-navy); font:600 14px/1 var(--font); cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.eq-chip:hover{ border-color:var(--h26-navy); }
.eq-chip[aria-pressed="true"]{ background:var(--h26-navy); border-color:var(--h26-navy); color:#fff; }

.eq-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(176px, 1fr)); gap:12px;
  padding-bottom:56px;
}
.eq-tile{
  position:relative; display:block; aspect-ratio:1 / 1.12; overflow:hidden;
  border-radius:12px; background:linear-gradient(160deg, var(--h26-mist), #eef2f7);
  color:#fff;
}
.eq-tile[hidden]{ display:none; }
.eq-tile img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 15%; transition:transform .4s ease; }
.eq-tile__ini{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font:700 56px/1 var(--font-head); color:var(--h26-navy); opacity:.28;
}
.eq-tile__shade{ position:absolute; inset:0; background:linear-gradient(to top, rgba(3,20,32,.88) 0%, rgba(3,20,32,0) 55%); }
.eq-tile__id{ position:absolute; left:14px; right:14px; bottom:12px; }
.eq-tile__n{ display:block; font-size:17px; line-height:20px; font-weight:700; }
.eq-tile__r{ display:block; margin-top:3px; font-size:12px; line-height:16px; color:var(--h26-gold); }
.eq-tile__z{ display:none; margin-top:4px; font-size:12px; line-height:16px; color:var(--h26-mist); }

/* Capa del hover: zona + idiomas + "Ver perfil". Solo donde hay hover de verdad;
   en táctil la zona va como línea bajo el nombre (.eq-tile__z), porque ahí no
   hay forma de "pasar el cursor" y el dato quedaría escondido. */
.eq-tile__over{
  position:absolute; inset:0; padding:16px; box-sizing:border-box;
  display:flex; flex-direction:column; justify-content:space-between;
  background:rgba(3,20,32,.93); opacity:0; transition:opacity .2s ease;
}
.eq-tile__over small{ display:block; font-size:12px; line-height:16px; letter-spacing:1px; text-transform:uppercase; color:var(--h26-gold); }
.eq-tile__over strong{ display:block; margin-top:6px; font-size:16px; line-height:21px; font-weight:600; }
.eq-tile__over em{ display:block; margin-top:10px; font-size:13px; line-height:18px; font-style:normal; color:var(--h26-mist); }
.eq-tile__go{ padding-top:12px; border-top:1px solid rgba(209,216,229,.3); font-size:15px; line-height:20px; font-weight:600; }
@media (hover:hover){
  .eq-tile:hover .eq-tile__over, .eq-tile:focus-visible .eq-tile__over{ opacity:1; }
  .eq-tile:hover img{ transform:scale(1.05); }
}
@media (hover:none){
  .eq-tile__over{ display:none; }
  .eq-tile__z{ display:block; }
}
.eq-tile:focus-visible{ outline:3px solid var(--h26-blue); outline-offset:2px; }

/* Banda final */
.eq-cta{ background:var(--h26-deep); color:#fff; }
.eq-cta__in{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:56px 0; }
.eq .eq-cta h2{ color:#fff; margin:0; max-width:620px; }
.eq-cta p{ margin:10px 0 0; font-size:16px; line-height:24px; color:var(--h26-mist); max-width:620px; }

/* ── Perfil ──────────────────────────────────────────────────────────── */
.eq-hero{ display:flex; flex-wrap:wrap; gap:56px; align-items:flex-start; padding:32px 0 56px; }
.eq-hero__foto{
  flex:1 1 360px; max-width:480px; min-width:260px; aspect-ratio:4 / 5; overflow:hidden;
  border-radius:16px; background:linear-gradient(160deg, var(--h26-mist), #eef2f7); position:relative;
}
.eq-hero__foto img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 15%; }
.eq-hero__foto .eq-tile__ini{ font-size:120px; }
.eq-hero__tx{ flex:1 1 420px; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:18px; padding-top:8px; }
.eq-badge{ background:var(--h26-deep); color:var(--h26-gold); font-size:12px; line-height:16px; font-weight:600; letter-spacing:.5px; padding:7px 14px; border-radius:6px; }
.eq .eq-hero h1{ margin:0; font-size:52px; line-height:54px; font-weight:700; letter-spacing:-.8px; color:var(--h26-navy); text-transform:none; }
.eq-zona{ display:flex; gap:8px; font-size:17px; line-height:24px; color:var(--h26-slate); }
.eq-zona svg{ flex:none; width:20px; height:20px; margin-top:2px; fill:none; stroke:#866b44; stroke-width:2; }
.eq-bio{ margin:0; font-size:17px; line-height:28px; color:var(--h26-slate); }
.eq-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.eq-tags li{ padding:8px 14px; border-radius:6px; background:var(--ivory); font-size:14px; line-height:20px; font-weight:500; }
.eq-contacto{ display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }
.eq-contacto .wpfs2-btn{ height:52px; }
.eq-rrss{ font-size:15px; line-height:22px; color:var(--h26-slate); }
.eq-rrss a{ color:var(--h26-blue-ink); font-weight:600; }

.eq-datos{ background:var(--ivory); }
.eq-datos__in{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:20px; padding:48px 0; }
.eq-dato{ background:#fff; border-radius:12px; padding:28px; }
.eq-dato h2{ margin:0; font-size:12px; line-height:16px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:#866b44; }
.eq .eq-dato p{ margin:12px 0 0; font-size:17px; line-height:24px; font-weight:600; color:var(--h26-navy); }
.eq .eq-dato p + p{ margin-top:8px; font-size:15px; line-height:22px; font-weight:400; color:var(--h26-slate); }

.eq-otros{ padding:56px 0 72px; }
.eq-otros__hd{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; }
.eq .eq-otros h2{ margin:0; }
.eq-otros__hd a{ font-size:15px; font-weight:600; color:var(--h26-blue-ink); }
.eq-otros__grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; margin-top:24px; }
.eq-mini{ display:flex; gap:14px; align-items:center; padding:14px; border:1px solid var(--h26-mist); border-radius:12px; color:var(--h26-navy); }
.eq-mini:hover{ border-color:var(--h26-navy); }
.eq-mini__f{ position:relative; flex:none; width:64px; height:64px; border-radius:50%; overflow:hidden; background:var(--h26-mist); }
.eq-mini__f img{ width:100%; height:100%; object-fit:cover; object-position:center 15%; }
.eq-mini__f b{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:20px; opacity:.4; }
.eq-mini__n{ display:block; font-size:17px; line-height:22px; font-weight:700; }
.eq-mini__z{ display:block; margin-top:2px; font-size:13px; line-height:18px; color:var(--h26-slate); }

@media (max-width:900px){
  .eq .eq-head h1{ font-size:32px; line-height:36px; }
  .eq .eq-hero h1{ font-size:38px; line-height:42px; }
  .eq-hero{ gap:28px; padding-bottom:40px; }
  .eq-hero__foto{ max-width:none; flex-basis:100%; aspect-ratio:1 / 1.1; }
  .eq-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .eq-tile__n{ font-size:15px; line-height:18px; }
  .eq-cta__in .wpfs2-btn, .eq-contacto .wpfs2-btn{ width:100%; white-space:normal; }
}
