/* Home "Así fue" XXVI Simposio: cifras, galería, visor de fotos y videos.
   Complementa a home-simposio.css (usa sus variables --hs-*). Prefijo af- para no tocar el resto del sitio. */

/* ---------- CIFRAS ---------- */
.af-cifras{background:var(--hs-ink);border-top:1px solid var(--hs-line);padding:clamp(36px,5vw,56px) 0}
.af-cifras-in{list-style:none;margin:0 auto;padding:0 20px;max-width:1120px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:clamp(18px,3vw,32px)}
.af-cifras li{display:flex;flex-direction:column;gap:6px;padding-left:16px;border-left:2px solid var(--hs-cyan)}
.af-cifras b{font-size:clamp(34px,4.4vw,54px);font-weight:800;letter-spacing:-.04em;line-height:1;color:#fff}
.af-cifras li.txt b{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.025em;padding-top:.35em}
.af-cifras span{font-size:14px;line-height:1.35;color:var(--hs-mist)}

/* ---------- GALERÍA ---------- */
.af-galeria{background:#fff;color:var(--hs-ink);padding:clamp(56px,8vw,96px) 0}
.af-wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.af-galhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 24px;margin-bottom:clamp(20px,3vw,32px)}
.hs .af-galhead h2{font-size:clamp(28px,3.4vw,44px);font-weight:800;letter-spacing:-.035em;line-height:1.05;color:var(--hs-ink)}
.hs .af-galhead p{color:#5b6b80;font-size:15px;max-width:42ch}
.af-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.af-foto{display:block;position:relative;overflow:hidden;border-radius:12px;background:#e9eef6;aspect-ratio:4/5}
.af-foto[hidden]{display:none}
.af-foto img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.af-foto:hover img{transform:scale(1.04)}
.af-foto:focus-visible{outline:3px solid var(--hs-blue);outline-offset:2px}
.af-more{display:flex;justify-content:center;margin-top:clamp(22px,3vw,32px)}
.hs .af-more .hs-btn.line{color:var(--hs-ink);border-color:rgba(13,20,51,.35)}
.hs .af-more .hs-btn.line:hover{background:var(--hs-ink);color:#fff}
@media (max-width:900px){.af-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.af-grid{grid-template-columns:repeat(2,1fr);gap:8px}.af-foto{border-radius:9px}}

/* ---------- VISOR ---------- */
.af-lb{position:fixed;inset:0;z-index:200;background:rgba(6,10,28,.94);display:flex;align-items:center;justify-content:center;padding:56px 64px}
.af-lb[hidden]{display:none}
.af-lb img{max-width:100%;max-height:100%;width:auto;height:auto;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.hs .af-lb-x,.hs .af-lb-nav{position:absolute;color:#fff;font-size:34px;line-height:1;width:48px;height:48px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1)}
.hs .af-lb-x:hover,.hs .af-lb-nav:hover{background:rgba(255,255,255,.22)}
.af-lb-x{top:12px;right:12px}
.af-lb-nav{top:50%;transform:translateY(-50%)}
.af-lb-nav.l{left:10px}.af-lb-nav.r{right:10px}
.af-lb-n{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);font-size:13px;color:var(--hs-mist)}
@media (max-width:560px){.af-lb{padding:56px 8px}.af-lb-nav{top:auto;bottom:6px;transform:none}}

/* ---------- MOSAICO de /simposios (última edición) ---------- */
.af-mosaico{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-radius:var(--radius,16px);overflow:hidden;transition:transform .2s}
.af-mosaico:hover{transform:translateY(-3px)}
.af-mosaico img{width:100%;aspect-ratio:4/5;object-fit:cover}

/* ---------- VIDEOS (sección clara de la home) ---------- */
.af-vgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.af-vcard{display:flex;flex-direction:column;gap:4px;color:var(--ink)}
.af-vcard:hover{text-decoration:none}
.af-vthumb{position:relative;display:block;border-radius:12px;overflow:hidden;aspect-ratio:16/9;background:#dfe6f1;margin-bottom:8px}
.af-vthumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.af-vcard:hover .af-vthumb img{transform:scale(1.04)}
.af-vthumb::after{content:"";position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;
  background:rgba(13,20,51,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center/26px no-repeat}
.af-vdur{position:absolute;right:8px;bottom:8px;background:rgba(13,20,51,.8);color:#fff;font-size:12px;font-weight:600;padding:2px 7px;border-radius:6px;z-index:1}
.af-vcard b{font-size:1.02rem;color:var(--navy);line-height:1.3}
.af-vcard small{color:var(--muted);font-size:.86rem}
@media (max-width:900px){.af-vgrid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.af-vgrid{grid-template-columns:1fr}}
