/* ============================================================
   events.css — Event reports (blog), Tier 2. Design: Blog Variant A.
   Loaded only on pages with hero_json layout='event' (see _boot.php).
   Pilot scope: open article (.bp-a + event-* blocks).
   Index grid (.bi-a) will be appended when /eventos/ index is built.
   ============================================================ */

/* Event pages render blocks inside <main class="container stack">.
   Take full control of horizontal rhythm via per-block .ev-wrap. */
/* Pull <main> up into the hero so the facts card can overlap it. We do the
   overlap HERE (not via a negative margin on the card) because <main> has
   overflow-x:hidden — which computes overflow-y to `auto` and CLIPS anything
   poking above main's box. With main pulled up, the card sits at main's top
   edge, stays inside the clip box, and its z-index:5 paints it over the hero. */
body.page-type-event main.container { width: 100%; padding: 0 0 40px; margin: -44px 0 0; display: block; }

.ev-wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 30px); }
/* Scoped under body.page-type-event so these win the specificity battle with
   the global .container / .stack rules (a lone .ev-wrap class would lose). */
body.page-type-event .ev-wrap--facts { margin-top: 0; position: relative; z-index: 5; }
body.page-type-event .ev-wrap--body { margin-top: 72px; }
body.page-type-event .ev-wrap--gallery { margin-top: 64px; }
@media (max-width: 900px) {
  body.page-type-event main.container { margin-top: -32px; }
  body.page-type-event .ev-wrap--facts { margin-top: 0; }
  body.page-type-event .ev-wrap--body { margin-top: 48px; }
  body.page-type-event .ev-wrap--gallery { margin-top: 44px; }
}

/* ---- 2b. Hero (full-bleed cinematic) ---- */
.bp-a__hero { position: relative; min-height: 540px; background: #0e0e0e; overflow: hidden; display: flex; align-items: flex-end; }
@media (max-width: 900px) { .bp-a__hero { min-height: 460px; } }
.bp-a__hero-media { position: absolute; inset: 0; }
.bp-a__hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.bp-a__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45) 60%, rgba(0,0,0,.85)); pointer-events: none; }
/* Copy uses the same 1180 centred column as the article body, so the hero
   heading left-aligns with the facts/reading content below (was a narrower
   920 column that read as centred/indented). */
.bp-a__hero-copy { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin-inline: auto; padding: 32px 30px 89px; display: flex; flex-direction: column; gap: 13px; color: #fff; }
@media (max-width: 900px) { .bp-a__hero-copy { padding: 26px 20px 52px; gap: 11px; } }
.bp-a__hero-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.88); background: rgba(0,0,0,.28); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; }
.bp-a__hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal, #51ABB2); }
.bp-a__hero-h { margin: 0; font-size: clamp(34px, 5.5vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: #fff; max-width: 20ch; text-wrap: balance; overflow-wrap: break-word; }
.bp-a__hero-sub { margin: 0; font-size: 17px; font-style: italic; color: rgba(255,255,255,.82); max-width: 54ch; line-height: 1.45; }
@media (max-width: 900px) {
  .bp-a__hero-h { font-size: clamp(26px, 7vw, 38px); max-width: 16ch; }
  .bp-a__hero-sub { font-size: 14.5px; }
}
.bp-a__hero-byline { margin: 2px 0 0; font-size: 12.5px; color: rgba(255,255,255,.72); }
.bp-a__hero-byline b { font-weight: 600; color: rgba(255,255,255,.9); }

/* "‹ Eventos" back-link inside the hero copy — clear way back to /eventos/. */
.bp-a__hero-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.82); text-decoration: none; transition: color .15s ease, transform .15s ease; }
.bp-a__hero-back:hover { color: #fff; }
.bp-a__hero-back:hover svg { transform: translateX(-2px); }
.bp-a__hero-back svg { width: 16px; height: 16px; transition: transform .15s ease; }

/* ---- 2c. Facts strip ---- */
.event-facts { background: #fff; border: 1px solid var(--hairline, #ECECEC); border-radius: var(--radius, 22px); box-shadow: 0 22px 50px rgba(0,0,0,.10); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
@media (max-width: 900px) { .event-facts { grid-template-columns: repeat(2, 1fr); } }
.event-facts__item { padding: 22px 24px; border-left: 1px solid var(--hairline, #ECECEC); }
.event-facts__item:first-child { border-left: 0; }
@media (max-width: 900px) {
  .event-facts__item:nth-child(2n+1) { border-left: 0; }
  .event-facts__item:nth-child(n+3) { border-top: 1px solid var(--hairline, #ECECEC); }
}
.event-facts__label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6B6B6B); margin-bottom: 9px; }
.event-facts__label svg { width: 13px; height: 13px; color: var(--teal, #51ABB2); flex: none; }
.event-facts__value { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; color: var(--text, #111); }
.event-facts__value a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.event-facts__value a:hover { color: var(--teal, #51ABB2); border-bottom-color: currentColor; }
.event-facts__sub { margin-top: 5px; font-size: 12.5px; color: var(--muted, #6B6B6B); line-height: 1.4; }

/* ---- 2d. Body (reading + sticky reel) ---- */
.event-body { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .event-body { grid-template-columns: 1fr; gap: 26px; } }
.event-body__reading { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.event-body__lede { margin: 0; padding: 16px 20px; border-left: 3px solid var(--teal, #51ABB2); background: var(--cream, #faf8f3); border-radius: 0 var(--radius-sm, 14px) var(--radius-sm, 14px) 0; font-size: 18px; font-style: italic; line-height: 1.5; color: #222; }
.event-body__reading p:not(.event-body__lede) { margin: 0; font-size: 16.5px; line-height: 1.7; color: #333; }
@media (max-width: 900px) { .event-body__reading p:not(.event-body__lede) { font-size: 15.5px; } }
.event-body__reading h2 { margin: 6px 0 -6px; font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--text, #111); text-wrap: balance; }
.event-body__pull { margin: 6px 0; padding: 16px 20px; border-left: 3px solid var(--teal, #51ABB2); background: var(--cream, #faf8f3); border-radius: 0 var(--radius-sm, 14px) var(--radius-sm, 14px) 0; font-size: 18px; font-style: italic; line-height: 1.5; color: #222; }
.event-body__pull cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted, #6B6B6B); }
/* Read-more: desktop shows the whole article; on mobile the lower part
   (everything after the 'fold' marker) collapses behind "Leer más". */
.event-body__more { display: flex; flex-direction: column; gap: 22px; }
.event-body__more-toggle { display: none; }
@media (max-width: 900px) {
  .bp-a__hero-byline { display: none; }
  .event-body__more { display: none; }
  .event-body.is-expanded .event-body__more { display: flex; }
  .event-body__more-toggle { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 2px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--hairline, #ECECEC); background: #fff; font-size: 14.5px; font-weight: 600; color: var(--text, #111); cursor: pointer; }
  .event-body__more-toggle:hover { border-color: #bbb; }
}
.event-body__side { align-self: start; }
@media (min-width: 901px) { .event-body__side { position: sticky; top: 24px; } }
.event-reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius, 22px); overflow: hidden; background: #0e0e0e; box-shadow: 0 22px 50px rgba(0,0,0,.12); }
.event-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-reel__flag { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; pointer-events: none; }
.event-reel__flag svg { width: 9px; height: 9px; }
/* Sound toggle (top-right) — mirrors the city-page .vr-card-b__mute look.
   Reel autoplays muted; always-visible button lets the visitor unmute. */
.event-reel__mute { position: absolute; top: 12px; right: 12px; z-index: 4; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease; }
.event-reel__mute:hover { background: rgba(0,0,0,.78); }
.event-reel__mute-icon { display: none; }
.event-reel__mute-icon--on { display: block; }
.event-reel.is-muted .event-reel__mute-icon--on { display: none; }
.event-reel.is-muted .event-reel__mute-icon--off { display: block; }
.event-reel__label { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted, #6B6B6B); text-align: center; }

/* ---- 2e. Gallery ---- */
.event-gallery__h { margin: 0 0 18px; font-size: 24px; font-weight: 700; letter-spacing: -.015em; color: var(--text, #111); }
.event-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .event-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.event-gallery__grid figure { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--radius-sm, 14px); overflow: hidden; background: var(--soft, #F6F6F6); }
.event-gallery__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.event-gallery__grid figure:hover img { transform: scale(1.04); }

/* ---- Final CTA on event pages ---- */
body.page-type-event .editorial-cta-final { max-width: 1180px; margin: 72px auto 0; }

/* ============================================================
   /eventos/ index (Blog Variant A, screen 1) — LIGHT.
   ============================================================ */
/* The index isn't `is-editorial`, so .container would otherwise cap at the
   narrow default (~900px). Override to full width so the hero is full-bleed and
   the inner content can reach its own 1180 max-width (≈ the /fotomaton/ hero). */
body.page-type-event_index main.container { width: 100%; max-width: none !important; padding: 0; margin: 0; display: block; }

.bi-a { background: #fff; }

/* Hero */
.bi-a__hero { background: linear-gradient(180deg, var(--cream, #faf8f3), #fff); border-bottom: 1px solid var(--hairline, #ECECEC); padding: 64px 0 36px; }
@media (max-width: 900px) { .bi-a__hero { padding: 92px 0 24px; } }
.bi-a__hero-inner { padding-inline: 30px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: end; }
@media (max-width: 900px) { .bi-a__hero-inner { grid-template-columns: 1fr; } }
.bi-a__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal, #51ABB2); margin-bottom: 14px; }
.bi-a__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--teal, #51ABB2); }
.bi-a__title { margin: 0; font-size: clamp(34px, 6vw, 64px); font-weight: 700; line-height: .98; letter-spacing: -.025em; color: var(--text, #111); text-wrap: balance; }
@media (max-width: 900px) { .bi-a__title { font-size: clamp(30px, 8.5vw, 40px); } }
.bi-a__title em { font-style: italic; font-weight: 500; color: var(--teal, #51ABB2); }
.bi-a__lede { margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: #333; max-width: 52ch; }
@media (max-width: 900px) { .bi-a__lede { font-size: 14.5px; } }
.bi-a__counters { display: flex; gap: 26px; justify-content: flex-end; }
@media (max-width: 900px) { .bi-a__counters { display: none; } }
.bi-a__counter { display: flex; flex-direction: column; padding-left: 26px; border-left: 1px solid var(--hairline, #ECECEC); }
.bi-a__counter:first-child { border-left: 0; padding-left: 0; }
.bi-a__counter b { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bi-a__counter small { margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6B6B6B); }

/* Sticky chip filters */
.bi-a__filters { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline, #ECECEC); }
.bi-a__filters-inner { display: flex; align-items: center; gap: 16px; overflow-x: auto; padding: 12px 30px; scrollbar-width: none; }
.bi-a__filters-inner::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .bi-a__filters-inner { padding: 10px 16px; } }
.bi-a__fgroup { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.bi-a__fgroup + .bi-a__fgroup { padding-left: 16px; border-left: 1px solid var(--hairline, #ECECEC); }
.bi-a__flabel { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6B6B6B); }
.bi-a .chip { flex: none; font-size: 12.5px; font-weight: 500; color: #444; background: var(--soft, #F6F6F6); border: 1px solid var(--hairline, #ECECEC); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.bi-a .chip.is-active { background: #111; border-color: #111; color: #fff; }
.bi-a .chip:hover:not(.is-active) { border-color: #bbb; background: #fff; }
.bi-a__clear { margin-left: auto; flex: none; background: none; border: 0; font-size: 12px; color: var(--muted, #6B6B6B); text-decoration: underline; cursor: pointer; }

/* 12-col mixed grid */
.bi-a__grid { display: flex; gap: 28px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: 30px; padding: 36px 30px 50px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.bi-a__grid::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .bi-a__grid { display: block; overflow: visible; padding: 22px 16px 36px; } }
.bi-a__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline, #ECECEC); border-radius: var(--radius, 22px); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.bi-a__card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.10); }
.bi-a__card--feature { grid-column: span 8; grid-row: span 2; }
.bi-a__card--tall { grid-column: span 4; grid-row: span 2; }
.bi-a__card--m { grid-column: span 4; }
@media (max-width: 900px) { .bi-a__card--feature, .bi-a__card--tall, .bi-a__card--m { grid-column: auto; grid-row: auto; } }
.bi-a__visual { position: relative; overflow: hidden; background: #0e0e0e; }
.bi-a__card--m .bi-a__visual { aspect-ratio: 4 / 3; }
.bi-a__visual--tall { aspect-ratio: 9 / 16; }
.bi-a__card--feature .bi-a__visual { flex: 1 1 0; min-height: 220px; }
.bi-a__card--feature .bi-a__visual img { position: absolute; inset: 0; }
@media (max-width: 900px) { .bi-a__card--feature .bi-a__visual { aspect-ratio: 4 / 3; flex: none; min-height: 0; } .bi-a__card--feature .bi-a__visual img { position: static; } }
/* Covers are portrait people-photos cropped to a landscape box → bias the crop UP so faces
   survive (centre crop cut them). Override per event via card.cover_focus → inline --cf. */
.bi-a__visual img { width: 100%; height: 100%; object-fit: cover; object-position: var(--cf, 50% 22%); display: block; transition: transform .4s ease; }
.bi-a__visual video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.bi-a__card:hover .bi-a__visual img { transform: scale(1.04); }
.bi-a__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)); pointer-events: none; }
.bi-a__chiprow { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.bi-a__chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 999px; padding: 5px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #222; }
.bi-a__chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--teal, #51ABB2); }
.bi-a__chip[data-type="corporativo"] .bi-a__chip-dot { background: #8B6755; }
.bi-a__chip[data-type="gala"] .bi-a__chip-dot { background: #b08adb; }
.bi-a__chip[data-type="cumpleanos"] .bi-a__chip-dot, .bi-a__chip[data-type="fiesta"] .bi-a__chip-dot { background: #e2a23c; }
.bi-a__vflag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.bi-a__vflag svg { width: 9px; height: 9px; }
.bi-a__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.bi-a__card--feature .bi-a__body { padding: 22px 26px 24px; }
.bi-a__h { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--text, #111); }
.bi-a__card--feature .bi-a__h { font-size: clamp(22px, 2.4vw, 26px); }
.bi-a__excerpt { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted, #6B6B6B); }
.bi-a__svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.bi-a__svc { font-size: 10.5px; color: #666; background: var(--cream, #faf8f3); border: 1px solid var(--hairline, #ECECEC); border-radius: 999px; padding: 3px 9px; }
.bi-a__meta { font-size: 12px; color: var(--muted, #6B6B6B); }
.bi-a__meta b { color: #333; font-weight: 600; }
.bi-a__card.is-hidden { display: none; }

/* Each event keeps its ORIGINAL featured presentation: wide photo+text card
   (8fr) + tall 9:16 video (4fr), original size. The .bi-a__grid strip scrolls
   horizontally on desktop — one event fills the view, scroll to the next.
   Mobile (below) stacks photo-card above video, one event after another. */
.bi-a__ev { flex: 0 0 min(1102px, calc(100vw - 130px)); scroll-snap-align: start; display: grid; grid-template-columns: 8fr 4fr; gap: 20px; align-items: stretch; }
.bi-a__ev--solo { grid-template-columns: 1fr; }
.bi-a__ev .bi-a__card--feature, .bi-a__ev .bi-a__card--tall { grid-column: auto; grid-row: auto; }
.bi-a__ev.is-hidden { display: none; }
@media (max-width: 900px) {
  .bi-a__ev { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
  .bi-a__ev:last-child { margin-bottom: 0; }
}
.bi-a__empty { max-width: 1180px; margin: 56px auto; padding: 0 30px; text-align: center; color: var(--muted, #6B6B6B); font-size: 16px; }
.bi-a__pager { max-width: 1180px; margin-inline: auto; padding: 0 30px 56px; text-align: center; }
.bi-a__pager-count { font-size: 13px; color: var(--muted, #6B6B6B); }

/* Desktop: shift index content right so the floating FAB sits in the left
   gutter and never overlaps the heading (same approach as /fotomaton/ + city
   pages: margin-left 40 + padding-left 48 → content starts at ~88px, clearing
   the 28–80px FAB). */
@media (min-width: 901px) {
  /* Hero, filters and strip are all full-bleed (no max-width) and share the same
     left gutter (88px) so the FAB never overlaps and content uses the full width. */
  body.page-type-event_index .bi-a__hero-inner,
  body.page-type-event_index .bi-a__filters-inner,
  body.page-type-event_index .bi-a__grid {
    padding-left: 88px;
  }
  body.page-type-event_index .bi-a__grid { scroll-padding-left: 88px; }
}

/* ---- 3. Index "Más eventos" tile grid (events 3+; the top 2 stay in the featured strip) ---- */
.bi-a__rest-wrap { padding: 8px 30px 56px; }   /* full-bleed, same gutter as the hero/filters/strip (not centred) */
.bi-a__rest-title { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--text, #111); }
.bi-a__rest { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.bi-a__tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline, #ECECEC); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; }
.bi-a__tile-visual { position: relative; aspect-ratio: 4/3; background: #0e0e0e; overflow: hidden; }
/* img is absolutely filled (like .bi-a__visual) so the <picture> wrapper can't override the 4:3 box height */
.bi-a__tile-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--cf, 50% 22%); display: block; }
.bi-a__tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.bi-a__tile.is-hidden { display: none; }
/* same left gutter under the FAB as the hero/filters/strip */
@media (min-width: 901px) { body.page-type-event_index .bi-a__rest-wrap { padding-left: 88px; } }
