/* DanceKut Gallery — public page, the Stage look (2026-09-30 rebuild).
   Brand per docs/BRAND.md (K-badge + wordmark, Inter, purple #a855f7 → orange #ff7b00 on
   near-black). The EVENT logo is the protagonist of the page body; DanceKut Galleries● owns
   the top bar. Behind everything, the ambient layer of the Stage wall (galfx.js: aurora,
   dust, light leaks) — dimmed while browsing, lit for the opening and the viewer.

   THEMES: every surface color is a token on :root (dark = default) and body.theme-light
   overrides them. The viewer and the opening stay DARK in both themes on purpose (photos are
   viewed on black; the opening is the brand) — they use literals, never tokens.

   MOTION: every entrance is the same vocabulary as Stage (blur → sharp, a short rise, a
   stagger through --d / --i). Nothing here waits on requestAnimationFrame to DECIDE anything
   (see gallery.js): CSS only paints. Blur filters are switched off below 700px — a phone
   pays for them and cannot show them. */

:root {
  --pur: #a855f7;
  --or: #ff7b00;
  --pink: #ec4899;
  --tx: #f4f4f6;
  --tx2: #a3a8b8;
  --bg: #0a0a0f;
  --card: #14141c;
  --line: #26263a;
  --new: #ff2d92;
  --chip: #1b1b28;                          /* raised chip / secondary button ground */
  --line2: #3a3a55;                         /* stronger border (hover, dashed ad) */
  --card-hov: #33334d;                      /* card hover border */
  --imgbg: #101018;                         /* image placeholder ground */
  --scrim: rgba(5, 5, 10, .62);             /* drawer backdrop */
  --shadow: 0 10px 34px rgba(0, 0, 0, .55); /* floating panels */
  --barh: 60px;                             /* top bar height */
  --glass: rgba(20, 20, 30, .58);           /* glass panels (bar, chips, cards) */
  --glass2: rgba(28, 28, 42, .66);
  --gline: rgba(255, 255, 255, .09);        /* glass hairline */
  --gline2: rgba(255, 255, 255, .16);
  --hov-yellow: #ffd94d;                    /* the ONE interaction colour: hover ring + download */
  --bgc: 10, 10, 15;                        /* --bg as "r, g, b": a ground that darkens by degrees (rgba + calc) */

  /* ACCENT — the ONE hue a Premium event may override (config.accent). Every button, active
     chip and link reads it; the DanceKut brand literals (K tile, "Kut" gradient, opening)
     deliberately do NOT. The JS writes --acc / --acc2 / --acc-w / --acc2-w / --acc-tx inline
     on <html> when an accent is configured. --acc-w / --acc2-w are "r, g, b" for rgba(). */
  --acc: var(--pur);
  --acc2: var(--or);
  --acc-w: 168, 85, 247;
  --acc2-w: 255, 123, 0;
  --acc-tx: #fff;
  --disp: inherit;                          /* display face (config.font) — body stays Inter */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
body.theme-light {
  --tx: #17171d;
  --tx2: #5b6170;
  --bg: #f4f3f8;
  --bgc: 244, 243, 248;
  --card: #ffffff;
  --line: #e3e1ea;
  --chip: #edebf2;
  --line2: #c9c5d8;
  --card-hov: #b9b3cc;
  --imgbg: #e9e7ef;
  --scrim: rgba(20, 18, 32, .42);
  --shadow: 0 10px 34px rgba(40, 32, 80, .16);
  --glass: rgba(255, 255, 255, .62);
  --glass2: rgba(255, 255, 255, .78);
  --gline: rgba(23, 23, 29, .08);
  --gline2: rgba(23, 23, 29, .16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font: 15px/1.5 Inter, -apple-system, "Segoe UI", Roboto, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  /* clip, never hidden: an overflow other than visible on body turns it into the scroll
     container for position:sticky, and the strip under the bar stops sticking. */
  overflow-x: clip;
}
a { color: var(--acc); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* display face (config.font): headings and buttons only — body copy stays on Inter. */
.gal-hero-title, .gal-bar-name, .gal-dlg-panel h3, .gal-pill, .gal-seg-btn, .gal-hero-name,
.gal-lock-name, .gal-lock-btn, .gal-vs-title, .gal-dl { font-family: var(--disp); }
body.gal-font-bebas .gal-pill, body.gal-font-bebas .gal-seg-btn,
body.gal-font-bebas .gal-link-btn, body.gal-font-bebas .gal-contact-btn,
body.gal-font-bebas .gal-sub-btn { letter-spacing: .05em; font-size: 15px; }
body.gal-font-bebas .gal-hero-title, body.gal-font-bebas .gal-sub-t { letter-spacing: .02em; }

/* ── the sky: three fixed canvases behind the page (galfx.js) ── */
.gal-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gal-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gal-sky #galAurora { opacity: .9; }
body.theme-light .gal-sky #galAurora { opacity: .55; }
.gal-app { position: relative; z-index: 1; }

/* Theme snap: applyTheme() sets this for one frame so a theme flip repaints at once. */
body.theme-snap, body.theme-snap * { transition: none !important; }

/* ── the entrance vocabulary (Stage) ──
   .el = an element that builds itself when body.gal-in lands, after --d. */
@keyframes elIn { from { opacity: 0; transform: translateY(30px) scale(.985); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes elDown { from { opacity: 0; transform: translateY(-22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.55); } 65% { opacity: 1; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes subIn { from { opacity: 0; letter-spacing: .8em; text-indent: .8em; filter: blur(6px); } to { opacity: 1; letter-spacing: .32em; text-indent: .32em; filter: blur(0); } }
@keyframes ltrIn { from { opacity: 0; transform: translateY(44px) skewX(-8deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wIn { from { opacity: 0; filter: blur(14px); transform: translateY(30px); } to { opacity: 1; filter: blur(0); transform: none; } }
/* La K entra girando desde DENTRO de la pantalla (campo 2026-10-02: «a veces se sale y queda cortada fuera del
   margen»). Venía de −70vh: durante el primer tercio estaba por encima del borde de arriba y ya visible, así que se
   veía recortada — en un equipo lento (o por Escritorio Remoto) ese fotograma se queda. −20vh y a escala .4 la deja
   siempre dentro, también en un móvil apaisado; no se ve hasta que ya está bajando. */
@keyframes kSpin { from { opacity: 0; transform: translateY(-20vh) rotateY(720deg) rotateZ(-30deg) scale(.4); } 20% { opacity: 0; } 60% { opacity: 1; transform: translateY(0) rotateY(0) rotateZ(0) scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes kHand { to { opacity: 0; transform: translateY(-26vh) scale(.5); filter: blur(14px); } }
@keyframes assemble { from { opacity: 0; clip-path: circle(0% at 50% 50%); transform: scale(1.25); filter: blur(12px) drop-shadow(0 0 60px rgba(255,123,0,.6)); } 40% { opacity: 1; } to { opacity: 1; clip-path: circle(80% at 50% 50%); transform: scale(1); filter: blur(0) drop-shadow(0 20px 60px rgba(168,85,247,.45)); } }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.01); } }
@keyframes shine { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes gdrift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8%, -10%); } }
@keyframes gdrift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-9%, 8%); } }
@keyframes ruleIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes newPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,146,.75); } 70% { box-shadow: 0 0 0 9px rgba(255,45,146,0); } }
@keyframes gshine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes kpulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

/* Nothing of the header is visible until the page is IN (the opening lifts its curtain and
   sets body.gal-in; the panel preview sets it at once). */
.gal-header .el { opacity: 0; }
body.gal-in .gal-header .el { animation: elIn .8s var(--ease) both; animation-delay: var(--d, 0s); }
body.gal-in .gal-header .el.pop { animation-name: popIn; animation-duration: .6s; }

/* ── boot ── */
.gal-boot-spinner { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.gal-boot-spinner .kb {
  width: 46px; height: 46px; border-radius: 27.5%; color: #fff;
  background: linear-gradient(135deg, var(--pur), var(--or));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 28px; animation: kpulse 1.1s ease-in-out infinite;
}
body.gal-intro-on .gal-boot-spinner { display: none; }
body.gal-intro-on { overflow: hidden; }   /* no page scrollbar behind the opening */

/* ══════════════════════════════════════════════════════════════════════════
   THE OPENING (galintro.js) — always dark, always the brand
   ══════════════════════════════════════════════════════════════════════════ */
.gi {
  position: fixed; inset: 0; z-index: 3000; background: #07070c; color: #f4f4f6;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  perspective: 900px;                       /* opaque from the first paint: nothing bleeds through */
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  clip-path: inset(0 0 0 0);
}
.gi.s-out { transition: clip-path .72s cubic-bezier(.7, 0, .3, 1); clip-path: inset(0 0 100% 0); }
.gi.s-out .gi-stage { transition: opacity .35s ease, transform .6s ease, filter .6s ease; opacity: 0; transform: translateY(-40px) scale(.97); filter: blur(10px); }
.gi .gi-aur { position: absolute; inset: -30%; opacity: 0; transition: opacity 1.2s ease; filter: blur(70px); }
.gi.on .gi-aur { opacity: .55; }
.gi .gi-aur span { position: absolute; width: 46%; height: 46%; border-radius: 50%; }
.gi .gi-aur .a1 { left: 8%; top: 18%; background: radial-gradient(circle, var(--pur), transparent 65%); animation: gdrift1 7s ease-in-out infinite; }
.gi .gi-aur .a2 { right: 6%; top: 30%; background: radial-gradient(circle, var(--or), transparent 65%); animation: gdrift2 8s ease-in-out infinite; }
.gi .gi-aur .a3 { left: 32%; bottom: 8%; background: radial-gradient(circle, #e0559f, transparent 65%); animation: gdrift1 9s ease-in-out infinite; }
.gi-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0 20px; }
/* the lockup: K + DanceKut + Galleries● */
.gi-lock { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gi-k { width: 118px; height: 118px; opacity: 0; filter: drop-shadow(0 20px 60px rgba(168,85,247,.45)); transform-style: preserve-3d; backface-visibility: hidden; }
.gi-return .gi-k { width: 92px; height: 92px; }
.gi-k svg { width: 100%; height: 100%; display: block; border-radius: 27.5%; }
.gi.s-k .gi-k { animation: kSpin .95s cubic-bezier(.2, .9, .2, 1) forwards; }
.gi.s-k.gi-return .gi-k { animation-duration: .8s; }
.gi-word { display: flex; font-weight: 800; font-size: clamp(38px, 7vw, 64px); letter-spacing: -0.0625em; line-height: 1; }
.gi-word span { display: inline-block; opacity: 0; }
.gi-word .kut { background: linear-gradient(90deg, var(--pur), var(--or)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gi.s-word .gi-word span { animation: ltrIn .42s cubic-bezier(.2, .9, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .045s); }
.gi-gal { font-weight: 700; font-size: clamp(12px, 2.2vw, 17px); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: rgba(244,244,246,.85); opacity: 0; }
.gi-gal sup { font-size: .55em; vertical-align: top; margin-left: .1em; }
.gi.s-gal .gi-gal { animation: subIn .55s cubic-bezier(.2, .9, .2, 1) forwards; }
.gi-return .gi-word, .gi-return .gi-gal { display: none; }   /* coming back: the K alone */
.gi.s-hand .gi-lock { animation: kHand .62s cubic-bezier(.6, 0, .9, .4) forwards; }
/* the event's mark: assembles out of light */
/* .gi-ev = WHERE (centred, and shifted up for the announcement); .gi-evin = HOW it arrives
   (the assemble animation) — two elements, so the animation's fill never fights the shift. */
.gi-ev { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 88vw; }
.gi-evin { opacity: 0; display: flex; flex-direction: column; align-items: center; }
.gi-ev img { max-width: min(72vw, 560px); max-height: 36vh; object-fit: contain; }
.gi-ev.typo .l1 { font-weight: 900; font-size: clamp(34px, 8vw, 78px); letter-spacing: -0.03em; line-height: 1; }
.gi-ev.typo .l2 { font-weight: 700; font-size: clamp(16px, 3vw, 28px); letter-spacing: .1em; text-transform: uppercase; color: rgba(244,244,246,.8); margin-top: 8px; }
.gi-ev.typo .rule { width: 120px; height: 3px; margin-top: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--pur), var(--or)); animation: ruleIn .7s var(--ease) .5s both; }
.gi.s-ev .gi-evin { animation: assemble .95s cubic-bezier(.2, .8, .2, 1) forwards; }
.gi-tag { position: absolute; left: 0; right: 0; top: calc(50% + 21vh); text-align: center; font-weight: 700; font-size: clamp(11px, 1.8vw, 14px); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: rgba(244,244,246,.7); opacity: 0; }
.gi.s-tag .gi-tag { animation: subIn .55s cubic-bezier(.2, .9, .2, 1) forwards; }
/* the announcement: «the photos are here!» */
.gi-news { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 22px; opacity: 0; pointer-events: none; }
.gi-news .gi-news-t { font-weight: 900; font-size: clamp(30px, 6.4vw, 66px); letter-spacing: -0.03em; line-height: 1.05; }
.gi-news .gi-news-t .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(30px); margin-right: .22em; }
.gi-news .gi-news-t .w:last-child { margin-right: 0; }
.gi-news .gi-news-s { margin-top: 18px; font-weight: 800; font-size: clamp(14px, 2.6vw, 22px); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; opacity: 0;
  background: linear-gradient(90deg, var(--pur), var(--or)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gi-news .gi-news-m { margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(244,244,246,.62); opacity: 0; }
.gi.s-news .gi-news { opacity: 1; }
.gi.s-news .gi-news-t .w { animation: wIn .6s cubic-bezier(.2, .9, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .09s); }
.gi.s-news .gi-news-s { animation: subIn .6s cubic-bezier(.2, .9, .2, 1) .5s forwards; }
.gi.s-news .gi-news-m { animation: fadeIn .5s ease .9s forwards; }
/* in the FULL opening the event mark steps up to make room for the announcement */
.gi-firstnews .gi-ev, .gi-firstnews .gi-tag { transition: transform .7s var(--ease), opacity .4s ease; }
.gi-firstnews.s-news .gi-ev { transform: translate(-50%, -50%) translateY(-19vh) scale(.72); }
.gi-firstnews.s-news .gi-tag { opacity: 0 !important; }
.gi-firstnews .gi-news { top: calc(50% + 9vh); }
/* coming back WITH news (root .gi-retnews — never .gi-news, which is the block's own class) */
.gi.gi-retnews .gi-news { top: calc(50% + 10vh); }
.gi.gi-retnews .gi-lock { transition: transform .7s var(--ease); }
.gi.gi-retnews.s-news .gi-lock { transform: translateY(-16vh); }
/* the thin bar, only while something is late */
.gi-bar { position: absolute; left: 50%; top: calc(50% + 30vh); width: 200px; margin-left: -100px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; opacity: 0; transition: opacity .4s; }
.gi.s-wait .gi-bar { opacity: 1; }
.gi-bar i { display: block; height: 100%; width: 8%; border-radius: 5px; background: linear-gradient(90deg, var(--pur), var(--or)); transition: width .5s ease; position: relative; overflow: hidden; }
.gi-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: gshine 1.8s ease-in-out infinite; }
.gi-skip { position: absolute; right: 18px; bottom: 18px; padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,244,246,.75);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s, background .2s; pointer-events: none; }
.gi.s-canskip .gi-skip { opacity: 1; transform: none; pointer-events: auto; }
.gi-skip:hover { background: rgba(255,255,255,.14); }
/* the thing that flies from the opening into the page */
.gi-fly { position: fixed; z-index: 3100; pointer-events: none; will-change: transform; }
.gi-fly img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gi-fly svg { width: 100%; height: 100%; display: block; border-radius: 27.5%; }
@media (max-width: 700px) {
  .gi .gi-aur { filter: blur(48px); }
  .gi-k { width: 96px; height: 96px; }
  .gi-lock { gap: 14px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   TOP BAR — DanceKut Galleries● left, the menu right, the event's mini identity in the
   middle once its big logo has scrolled away. Glass, fixed, slides in with the page.
   ══════════════════════════════════════════════════════════════════════════ */
.gal-bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--barh); z-index: 600;
  background: var(--glass); border-bottom: 1px solid var(--gline);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  transform: translateY(-100%); opacity: 0; transition: transform .7s var(--ease), opacity .5s ease;
}
body.gal-in .gal-bar { transform: none; opacity: 1; }
body.has-bar { padding-top: var(--barh); }
.gal-bar-brand { display: flex; align-items: center; flex: 0 0 auto; }
.gal-brand-mark { display: inline-flex; align-items: center; gap: 9px; }
.gal-bar-brand:hover .gal-brand-k { filter: brightness(1.12); }
.gal-brand-k {
  width: 28px; height: 28px; border-radius: 27.5%; color: #fff; flex: 0 0 auto;
  background: linear-gradient(135deg, #a855f7, #ff7b00);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; box-shadow: 0 6px 18px rgba(168,85,247,.35);
}
.gal-brand-k svg { width: 100%; height: 100%; display: block; }
.gal-brand-word { display: inline-flex; align-items: baseline; gap: .38em; font-weight: 800; font-size: 17px; letter-spacing: -0.0625em; white-space: nowrap; line-height: 1; }
.gal-brand-word .dk { display: inline-block; white-space: nowrap; }   /* ONE word: no gap inside «DanceKut» */
.gal-brand-word .dance { color: var(--tx); }
.gal-brand-word .kut {
  background: linear-gradient(135deg, #a855f7, #ff7b00);
  -webkit-background-clip: text; background-clip: text; color: #ff7b00; -webkit-text-fill-color: transparent;
}
.gal-brand-word .gal { font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx2); }
.gal-brand-word .gal sup { font-size: .6em; vertical-align: top; }
/* KALLLERY (2026-10-03): the mark draws its own ring (galintro.js kbadge) — no gradient square behind it; and
   «by DanceKut» under the word in the footer / empty page keeps «Kut» in the house gradient */
.gal-brand-mark.kal .gal-brand-k { background: none; }
.gal-brand-word .gal .kut, .gi-gal .kut { background: linear-gradient(135deg, #a855f7, #ff7b00); -webkit-background-clip: text; background-clip: text; color: #ff7b00; -webkit-text-fill-color: transparent; }
/* the event's mini identity, centred — visible once the big logo has scrolled away */
.gal-bar-ident {
  flex: 1 1 auto; min-width: 0; margin: 0 10px; transform: translateY(6px);
  display: flex; align-items: center; justify-content: center; gap: 9px; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease); cursor: pointer;
}
.gal-bar-ident.show { opacity: 1; transform: none; pointer-events: auto; }
.gal-bar-logo { height: 32px; width: auto; max-width: 42vw; object-fit: contain; display: block; }
.gal-bar-name { font-weight: 800; font-size: 14px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-bar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.gal-bar-nav { display: none; align-items: center; gap: 2px; margin-right: 6px; }
.gal-bar-nav a, .gal-bar-nav button {
  text-transform: uppercase; font-size: 11.5px; letter-spacing: .12em; font-weight: 700;
  color: var(--tx2); white-space: nowrap; padding: 7px 11px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.gal-bar-nav a:hover, .gal-bar-nav button:hover { color: var(--tx); background: rgba(255,255,255,.07); }
body.theme-light .gal-bar-nav a:hover, body.theme-light .gal-bar-nav button:hover { background: rgba(23,23,29,.06); }
.gal-bar-nav .cta { color: var(--tx); border: 1px solid rgba(var(--acc-w), .5); background: linear-gradient(135deg, rgba(var(--acc-w), .16), rgba(var(--acc2-w), .10)); }
.gal-bar-nav .cta:hover { border-color: var(--acc); }
.gal-bar-tool { font-size: 16px; padding: 5px 9px; border-radius: 10px; }
.gal-bar-tool:hover { background: rgba(255,255,255,.08); }
.gal-bar-tool.on { background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.gal-menu-btn { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.gal-menu-btn:hover { background: rgba(255,255,255,.08); }
body.theme-light .gal-menu-btn:hover, body.theme-light .gal-bar-tool:hover { background: rgba(23,23,29,.06); }
.gal-menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.gal-bar-lang {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 1px solid var(--gline2); border-radius: 999px;
  color: var(--tx2); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 5px 9px; cursor: pointer; flex: 0 0 auto; transition: color .15s, border-color .15s;
}
.gal-bar-lang:hover { color: var(--tx); border-color: var(--tx2); }
.gal-bar-lang option { background: var(--card); color: var(--tx); }
@media (min-width: 900px) { .gal-bar-nav { display: flex; } }
@media (max-width: 1180px) { .gal-bar-nav a:not(.cta) { display: none; } }   /* the event's links wait for the menu */
@media (max-width: 640px) {
  :root { --barh: 54px; }
  .gal-bar { padding: 0 12px; }
  .gal-bar-logo { height: 28px; }
}
@media (max-width: 420px) {
  .gal-brand-word { font-size: 15px; }
  .gal-brand-word .gal { font-size: 9.5px; letter-spacing: .12em; }
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER — the event logo (the star), its buttons, the hero, the nav
   ══════════════════════════════════════════════════════════════════════════ */
.gal-header { padding: 22px 16px 6px; text-align: center; position: relative; }
.gal-hero-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 4px; }
.gal-hero-logo img {
  height: 92px; width: auto; object-fit: contain; max-width: min(88vw, 640px); max-height: 40vh;
  filter: drop-shadow(0 18px 50px rgba(168,85,247,.28));
}
body.gal-in .gal-hero-logo img { animation: breathe 7s ease-in-out 1.2s infinite; }
.gal-hero-logo.left { align-items: flex-start; max-width: 1700px; margin-left: auto; margin-right: auto; }
.gal-hero-name { font-weight: 800; font-size: clamp(22px, 5vw, 42px); letter-spacing: -0.03em; line-height: 1.05; }
.gal-hero-name.under { font-size: 12.5px; font-weight: 700; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--tx2); }
.gal-hero-logo .rule { width: 88px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.gal-hero-title { font-weight: 800; font-size: clamp(19px, 3.4vw, 28px); letter-spacing: -0.02em; margin: 10px 0 6px; }

/* the configurable buttons under the logo — link-in-bio, as glass pills in a row */
.gal-bio-zone { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 760px; margin: 14px auto 4px; padding: 0 4px; }

/* ℹ the «Info» icon — one more round button, FIRST in the socials row — and the layer it unfolds under
   that row (gallery.js infoParts · config.about_btn) */
.gal-info-btn { padding: 0; font-family: inherit; cursor: pointer; }
.gal-info-btn.on { border-color: var(--acc); background: rgba(var(--acc-w), .16); }
.gal-info-drop { width: 100%; max-width: 560px; box-sizing: border-box; text-align: center; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--gline2); backdrop-filter: blur(12px); line-height: 1.55; animation: galInfoIn .22s ease; }
.gal-info-drop[hidden] { display: none; }
@keyframes galInfoIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.gal-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.gal-link-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 20px; text-align: center; max-width: 100%;
  border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--tx);
  font-family: var(--disp);
  background: linear-gradient(135deg, rgba(var(--acc-w), .16), rgba(var(--acc2-w), .10)), var(--glass);
  border: 1px solid rgba(var(--acc-w), .42);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.gal-link-btn:hover { border-color: var(--acc); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(var(--acc-w), .22); }
.gal-link-btn .ic { font-size: 17px; line-height: 1; font-family: inherit; }
.gal-link-btn .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gal-link-btn .lb, .gal-link-btn .sb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-link-btn .sb { font-weight: 600; font-size: 11px; color: var(--tx2); font-family: Inter, sans-serif; }
.gal-contact-row { display: flex; justify-content: center; width: 100%; }
.gal-contact-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 26px;
  max-width: 100%; border-radius: 999px; font-weight: 800; font-size: 13.5px; font-family: var(--disp);
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-tx);
  box-shadow: 0 8px 24px rgba(var(--acc-w), .32); transition: filter .14s, transform .16s;
}
.gal-contact-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.gal-contact-btn .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-socials-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gal-social {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; line-height: 1; color: var(--tx);
  background: var(--glass); border: 1px solid var(--gline2); backdrop-filter: blur(10px);
  transition: border-color .14s, background-color .14s, transform .14s;
}
.gal-social:hover { border-color: var(--acc); background: rgba(var(--acc-w), .16); transform: translateY(-1px); }
/* The networks' own marks (inline SVG, one colour) — sized by the button's font-size, so the
   chips look (12 px) and the link buttons (17 px) scale them with no extra rules. */
.gal-soc-ic { width: 1.15em; height: 1.15em; display: block; flex: 0 0 auto; }
/* The sizes chosen in the panel (gallery.js applySizes · config.btn_size / soc_size): a zoom, so the chips
   look, the classic one and the layouts' own CTA rows all grow from THEIR size, padding and icon included. */
.gal-social { zoom: var(--soc-k, 1); }
/* ICON + NAME (config.soc_names · gallery.js socNamed): the round icon becomes a pill with its name beside the
   mark — «INSTAGRAM», «INFO». Same glass, same hover, same zoom; only the shape changes. The name is set like
   the page's small headings (caps, spaced, the display face). */
.gal-social.named { width: auto; min-width: 38px; padding: 0 15px 0 12px; border-radius: 999px; gap: 8px; }
.gal-social.named .nm { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; font-family: var(--disp); }
.gal-link-btn:not(.retry), .gal-contact-btn { zoom: var(--btn-k, 1); }
.gal-link-btn .ic .gal-soc-ic, .gal-contact-btn .ic .gal-soc-ic { width: 1em; height: 1em; }

/* Próximos eventos */
.gal-up { max-width: 560px; margin: 16px auto 2px; padding: 0 4px; text-align: left; }
.gal-up-h { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tx2); text-align: center; margin-bottom: 8px; font-family: var(--disp); }
.gal-up-it { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--glass); border: 1px solid var(--gline); color: var(--tx); transition: border-color .14s; backdrop-filter: blur(10px); }
a.gal-up-it:hover { border-color: var(--acc); }
.gal-up-d { flex: 0 0 auto; width: 54px; padding: 5px 0; text-align: center; border-radius: 10px; background: rgba(var(--acc-w), .13); border: 1px solid rgba(var(--acc-w), .28); }
.gal-up-d .d { display: block; font-weight: 800; font-size: 16px; line-height: 1; font-family: var(--disp); }
.gal-up-d .m { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tx2); margin-top: 2px; }
.gal-up-d .y { display: block; font-size: 9.5px; font-weight: 700; color: var(--tx2); opacity: .8; }
.gal-up-t { min-width: 0; }
.gal-up-t .n { display: block; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-up-t .p { display: block; font-size: 12px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-up-go { margin-left: auto; flex: 0 0 auto; color: var(--tx2); font-size: 19px; line-height: 1; }

/* e-mail sign-up (after the grid) */
.gal-sub { max-width: 520px; margin: 8px auto 0; padding: 22px 18px; text-align: center; border-radius: 20px; background: var(--glass); border: 1px solid var(--gline); backdrop-filter: blur(12px); }
.gal-sub-t { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; font-family: var(--disp); }
.gal-sub-s { color: var(--tx2); font-size: 13.5px; margin-top: 5px; }
.gal-sub-f { display: flex; gap: 8px; margin-top: 14px; }
.gal-sub-in { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--gline2); background: rgba(0,0,0,.25); color: var(--tx); font: inherit; outline: none; }
body.theme-light .gal-sub-in { background: rgba(255,255,255,.7); }
.gal-sub-in:focus { border-color: var(--acc); }
.gal-sub-in:disabled { opacity: .6; }
.gal-sub-btn { padding: 10px 18px; border-radius: 12px; white-space: nowrap; font-weight: 800; font-family: var(--disp); background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-tx); }
.gal-sub-btn:disabled { opacity: .6; cursor: default; }
.gal-sub-err { color: #ff4d5e; font-size: 13px; font-weight: 600; margin-top: 10px; }
.gal-sub-ok { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
@media (max-width: 430px) { .gal-sub-f { flex-direction: column; } }

/* hero slideshow (edition covers · YouTube · flyers) — a glass frame */
.gal-hero {
  position: relative; max-width: 980px; margin: 12px auto 6px; border-radius: 22px; overflow: hidden;
  background: var(--card); cursor: pointer; user-select: none; touch-action: pan-y;
  border: 1px solid var(--gline); box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.gal-hero.is-yt { cursor: default; background: #000; }
.gal-hero.is-yt-v { max-width: min(420px, 86vw, calc(70vh * 9 / 16)); }
.gal-hero-slide img { width: 100%; height: min(46vh, 430px); object-fit: cover; display: block; pointer-events: none; }
.gal-hero-yt { position: relative; margin: 0 auto; }
.gal-hero-yt.h { width: 100%; max-width: 800px; aspect-ratio: 16 / 9; }
.gal-hero-yt.v { width: 100%; aspect-ratio: 9 / 16; }
.gal-hero-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.gal-hero .gal-hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; pointer-events: none; }
.gal-hero .gal-hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); transition: all .25s; }
.gal-hero .gal-hero-dots span.on { background: #fff; width: 22px; border-radius: 6px; }
.gal-hero .len { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(5,5,10,.6); backdrop-filter: blur(8px); color: #f4f4f6; font-size: 12px; font-weight: 700; }
.gal-hero.has-ratio { height: auto; }
.gal-hero.has-ratio .gal-hero-slide, .gal-hero.has-ratio .gal-hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* ── nav (editions / days / categories / filters) — sticky under the bar ──
   Four families you can tell apart at a glance:
   1) .gal-seg / .gal-seg-btn — media filter: joined segmented control, active = filled accent;
   2) .gal-pill — day chips: soft-cornered glass, active = accent border + tint;
   3) .gal-pill.sm — category chips: round pills;
   4) .gal-pill.ed — edition (congress year) chips: the squarest, in small caps. */
.gal-nav { max-width: 1700px; margin: 10px auto 0; padding: 0 14px; display: flex; flex-direction: column; gap: 8px; }
.gal-nav-sticky {
  position: sticky; top: var(--barh); z-index: 500; margin: 0; padding: 8px 14px;
  display: flex; flex-direction: column; gap: 8px; transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.gal-nav-sentinel { height: 0; }
.gal-nav-sticky.el { opacity: 0; }
body.gal-in .gal-nav-sticky.el { animation: elIn .8s var(--ease) both; animation-delay: var(--d, 0s); }
.gal-nav-sticky.stuck { background: var(--glass); border-bottom-color: var(--gline); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.gal-pill-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.gal-pill-row.eds { gap: 6px; margin-bottom: 1px; }
.gal-pill {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 10px; background: var(--glass); border: 1px solid var(--gline2);
  font-weight: 700; font-size: 13px; color: var(--tx2); transition: all .16s; position: relative;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gal-pill:hover { color: var(--tx); border-color: var(--acc); transform: translateY(-1px); }
.gal-pill.on {
  color: var(--tx); border-color: var(--acc);
  background: linear-gradient(135deg, rgba(var(--acc-w), .26), rgba(var(--acc2-w), .16)), var(--glass);
  box-shadow: 0 6px 18px rgba(var(--acc-w), .18);
}
/* CATEGORÍAS: pastilla REDONDA — redonda contra rectangular se ve sin mirar. */
.gal-pill.sm {
  height: 27px; padding: 0 13px; font-size: 12px; border-radius: 999px;
  font-weight: 600; letter-spacing: .01em;
}
.gal-pill.sm.on { font-weight: 800; }
.gal-pill .dot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--new); box-shadow: 0 0 8px var(--new); animation: newPulse 2.2s ease-out infinite; }
.gal-pill.glob::before { content: '•'; margin-right: 5px; font-size: 15px; line-height: 1; color: var(--acc); opacity: .55; }
.gal-pill.glob:not(.on) { background: rgba(var(--acc-w), .06); }
.gal-pill.glob:hover::before, .gal-pill.glob.on::before { opacity: 1; }
/* EDICIONES: la más cuadrada de las tres, en versales — un rótulo de sección. */
.gal-pill.ed {
  height: 24px; padding: 0 11px; border-radius: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: #b9a2e8; border-color: rgba(var(--acc-w), .30); background: rgba(var(--acc-w), .07);
}
.gal-pill-row.eds { padding-bottom: 8px; border-bottom: 1px solid var(--gline); }
.gal-pill.ed:hover { color: #dccdf8; border-color: rgba(var(--acc-w), .62); background: rgba(var(--acc-w), .13); }
.gal-pill.ed.on { color: #fff; border-color: rgba(var(--acc-w), .78); background: rgba(var(--acc-w), .34); }
body.theme-light .gal-pill.ed { color: #6d4bb0; }
body.theme-light .gal-pill.ed.on { color: var(--acc-tx); border-color: var(--acc); background: var(--acc); }
body.gal-accent .gal-pill.ed { color: var(--tx2); }
body.gal-accent .gal-pill.ed:hover, body.gal-accent .gal-pill.ed.on { color: var(--tx); }
body.theme-light.gal-accent .gal-pill.ed.on { color: var(--acc-tx); }
.gal-seg { display: inline-flex; align-items: stretch; height: 30px; border-radius: 999px; background: var(--glass); border: 1px solid var(--gline2); overflow: hidden; backdrop-filter: blur(8px); }
.gal-seg-btn { display: inline-flex; align-items: center; padding: 0 13px; font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--tx2); transition: color .14s, background .14s; }
.gal-seg-btn + .gal-seg-btn { border-left: 1px solid var(--gline); }
.gal-seg-btn:hover { color: var(--tx); }
.gal-seg-btn.on { color: var(--acc-tx); background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.gal-dd-wrap { position: relative; display: inline-flex; }
.gal-dd { position: absolute; z-index: 700; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: min(280px, 86vw); background: var(--glass2); backdrop-filter: blur(18px); border: 1px solid var(--gline2); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; text-align: left; }
.gal-dd-in { width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--gline2); background: rgba(0,0,0,.25); color: var(--tx); font: inherit; font-size: 13px; outline: none; }
body.theme-light .gal-dd-in { background: rgba(255,255,255,.7); }
.gal-dd-in:focus { border-color: var(--acc); }
.gal-dd-list { max-height: 260px; overflow: auto; margin-top: 6px; }
.gal-dd-it { padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.gal-dd-it:hover { background: rgba(255,255,255,.06); }
.gal-dd-it.on { background: linear-gradient(135deg, rgba(var(--acc-w), .18), rgba(var(--acc2-w), .14)); }
.gal-dd-it .d { display: block; font-weight: 700; font-size: 13px; }
.gal-dd-it .c { display: block; color: var(--tx2); font-size: 11.5px; margin-top: 1px; }
.gal-filters { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: center; }
.gal-fm-chip { display: inline-flex; align-items: center; gap: 6px; }
.gal-fm-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.gal-nav-cap { color: var(--tx2); font-size: 13px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════════
   GRID — cards that build themselves as they enter the screen
   ══════════════════════════════════════════════════════════════════════════ */
.gal-grid-wrap { max-width: 1700px; margin: 14px auto 0; padding: 0 10px 60px; }
.gal-grid { display: flex; gap: 10px; align-items: flex-start; }
.gal-col { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gal-card {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--card);
  cursor: pointer; border: 1px solid var(--gline); transition: transform .22s var(--ease), border-color .18s, box-shadow .22s, opacity .5s;
  will-change: transform;
}
/* the reveal: hidden until the observer says it is on screen, then it builds itself */
.gal-card.rv { opacity: 0; transform: translateY(28px) scale(.96); }
.gal-card.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease), border-color .18s, box-shadow .22s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s; }
@media (min-width: 700px) {
  .gal-card.rv { filter: blur(8px); }
  .gal-card.rv.in { filter: blur(0); transition-property: opacity, transform, filter, border-color, box-shadow; transition-duration: .7s, .8s, .7s, .18s, .22s; transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s; }
}
/* AL PASAR POR ENCIMA, AMARILLO. Un color FIJO a propósito: su trabajo es distinguirse del
   acento del evento, y no aparece en ningún otro estado de la tarjeta. */
.gal-card:hover {
  transform: translateY(-3px);
  border-color: var(--hov-yellow);
  box-shadow: 0 0 0 1px var(--hov-yellow), 0 16px 36px rgba(0, 0, 0, .45);
}
.gal-card.rv.in:hover { transform: translateY(-3px); transition-delay: 0s; }
.gal-card.anim-live { border-color: rgba(255, 217, 77, .35); }
.gal-card img.th { width: 100%; height: auto; min-height: 60px; background: var(--imgbg); transition: transform .6s var(--ease); }
.gal-card:hover img.th { transform: scale(1.035); }
.gal-card .len { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(5,5,10,.62); backdrop-filter: blur(8px); color: #f4f4f6; font-size: 11.5px; font-weight: 700; }
.gal-card .play {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: rgba(10,10,16,.55); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  color: #fff; pointer-events: none; transition: transform .25s var(--spring), background .2s;
}
.gal-card .play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.gal-card .play.dl svg { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-left: 0; }
.gal-card:hover .play { transform: scale(1.12); background: rgba(var(--acc-w), .75); border-color: transparent; }
.gal-card.is-new { border-color: rgba(255,45,146,.7); }
.gal-card .newdot { position: absolute; top: 9px; left: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--new); box-shadow: 0 0 10px var(--new); animation: newPulse 2.2s ease-out infinite; }
.gal-card .byava { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.75); }
.gal-card .vbolt { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(5,5,10,.62); backdrop-filter: blur(8px); color: #ffd94d; font-size: 11.5px; font-weight: 800; }

/* admin selection mode */
.gal-card .selc { display: none; position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; z-index: 3; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(5,5,10,.5); align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: transparent; }
body.gal-selmode .gal-card .selc { display: flex; }
body.gal-selmode .gal-card:hover { transform: none; }
.gal-card.sel { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.gal-card.sel .selc { background: linear-gradient(135deg, var(--acc), var(--acc2)); border-color: transparent; color: var(--acc-tx); }
.gal-selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 800; display: flex; gap: 9px; align-items: center; background: var(--glass2); backdrop-filter: blur(16px); border: 1px solid var(--gline2); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow); max-width: 96vw; flex-wrap: wrap; justify-content: center; }
.gal-selbar b { font-size: 13.5px; white-space: nowrap; }
.gal-selbar button { font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--gline2); white-space: nowrap; }
.gal-selbar button:hover { border-color: var(--acc); }
.gal-selbar button.danger:hover { border-color: #ff4d5e; color: #ff8f9a; }

/* the ad card (LITE galleries) — glass with the brand blobs and an honest tag */
.gal-ad {
  position: relative; border-radius: 16px; padding: 26px 18px 22px; text-align: center; cursor: pointer; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, rgba(168,85,247,.24), transparent 60%),
              radial-gradient(120% 120% at 100% 100%, rgba(255,123,0,.22), transparent 60%), var(--glass);
  border: 1px solid var(--gline2); backdrop-filter: blur(10px);
  transition: transform .22s var(--ease), border-color .18s;
}
.gal-ad:hover { transform: translateY(-3px); border-color: rgba(var(--acc-w), .6); }
.gal-ad .tag { position: absolute; top: 8px; right: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx2); }
.gal-ad .hand { font-size: 30px; }
.gal-ad img { max-width: 100%; border-radius: 10px; margin: 0 auto 8px; }
.gal-ad b { display: block; margin-top: 6px; }
.gal-ad b.disc { color: var(--or); }
.gal-ad span { color: var(--tx2); font-size: 13px; }

/* status line + footer */
.gal-status { text-align: center; color: var(--tx2); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 16px 0 4px; min-height: 24px; }
.gal-foot { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 560px; margin: 46px auto 0; padding: 38px 16px 46px; border-top: 1px solid var(--gline); text-align: center; color: var(--tx2); font-size: 13px; }
.gal-foot-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; color: var(--tx); opacity: .75; transition: opacity .18s; }
.gal-foot-brand:hover { opacity: 1; }
.gal-foot-brand .gal-brand-k { width: 24px; height: 24px; font-size: 14px; }
.gal-foot-brand .gal-brand-word { font-size: 15px; }
/* «Creado por Sha en AMediaStudios» tal cual se escribe: sin versales (campo 2026-10-01) */
.gal-foot-sign { display: inline-flex; align-items: center; gap: 4px; margin-top: -10px; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--tx2); opacity: .75; transition: opacity .18s; }
.gal-foot-sign:hover { opacity: 1; }
.gal-foot-sign a { color: var(--tx); font-weight: 800; transition: color .15s; }
.gal-foot-sign a:hover { color: #facc15; }
.gal-foot-sub { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--gline); font-size: 11.5px; font-weight: 600; color: var(--tx2); opacity: .85; transition: opacity .18s, color .18s, border-color .18s; }
.gal-foot-sub:hover { opacity: 1; color: var(--tx); border-color: var(--gline2); }
.gal-foot-sub .k { font-size: 12px; line-height: 1; }

/* password gate */
.gal-lock { min-height: calc(100vh - 160px); display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.gal-lock-box { width: min(380px, 92vw); text-align: center; background: var(--glass2); backdrop-filter: blur(18px); border: 1px solid var(--gline2); border-radius: 22px; padding: 30px 24px; box-shadow: var(--shadow); }
.gal-lock-logo { max-height: 64px; max-width: 80%; margin: 0 auto 10px; object-fit: contain; }
.gal-lock-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.gal-lock-ico { font-size: 34px; margin: 12px 0 4px; }
.gal-lock-hint { color: var(--tx2); font-size: 13.5px; margin-bottom: 14px; }
.gal-lock-form { display: flex; gap: 8px; }
.gal-lock-input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--gline2); background: rgba(0,0,0,.25); color: var(--tx); font: inherit; outline: none; }
body.theme-light .gal-lock-input { background: rgba(255,255,255,.7); }
.gal-lock-input:focus { border-color: var(--acc); }
.gal-lock-btn { padding: 10px 16px; border-radius: 12px; white-space: nowrap; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-tx); font-weight: 800; }
.gal-lock-btn:disabled { opacity: .6; cursor: default; }
.gal-lock-err { color: #ff4d5e; font-size: 13px; margin-top: 10px; font-weight: 600; }
@keyframes galshake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.gal-lock-box.shake { animation: galshake .4s ease; }

/* floating comfort buttons (↑ top + ▦ column cycler) */
.gal-fabs { position: fixed; right: 14px; bottom: 18px; z-index: 850; display: flex; flex-direction: column; gap: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.gal-fabs.show { opacity: 1; pointer-events: auto; transform: none; }
body.gal-viewing .gal-fabs { display: none; }
.gal-fab { width: 44px; height: 44px; border-radius: 50%; background: var(--glass2); backdrop-filter: blur(14px); border: 1px solid var(--gline2); color: var(--tx); font-size: 18px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.gal-fab:hover { border-color: var(--acc); }

/* ══════════════════════════════════════════════════════════════════════════
   VS DUEL (voting events) — photos on black in BOTH themes
   ══════════════════════════════════════════════════════════════════════════ */
.gal-vs { position: fixed; inset: 0; z-index: 1200; background: #000; display: flex; overflow: hidden; }
.gal-vs.vs-vertical { flex-direction: column; }
.gal-vs.vs-horizontal { flex-direction: row; }
.vs-half { position: relative; flex: 1 1 50%; min-width: 0; min-height: 0; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, filter .35s ease, box-shadow .4s ease, transform .5s ease; }
.vs-bg { position: absolute; inset: -8%; background-position: center; background-size: cover; filter: blur(28px) brightness(.42) saturate(1.15); }
.vs-half img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; display: block; pointer-events: none; }
.vs-dark { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.18); transition: background .3s ease; pointer-events: none; }
.vs-pick { position: absolute; z-index: 3; left: 50%; bottom: 7%; transform: translateX(-50%); padding: 10px 26px; border-radius: 999px; pointer-events: none; background: rgba(10,10,14,.72); border: 1.5px solid rgba(255,255,255,.35); color: #fff; font-family: var(--disp); font-weight: 800; font-size: 14px; letter-spacing: 2px; white-space: nowrap; backdrop-filter: blur(6px); transition: background .25s ease, border-color .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.gal-vs.vs-horizontal .vs-pick { bottom: 9%; }
.vs-half:hover .vs-pick { border-color: var(--acc); transform: translateX(-50%) scale(1.04); }
.vs-half.vs-selected { box-shadow: inset 0 0 0 4px #ffd94d; }
.vs-half.vs-selected .vs-dark { background: rgba(0,0,0,0); }
.vs-half.vs-selected .vs-pick { background: #ffd94d; color: #17171d; border-color: #ffd94d; transform: translateX(-50%) scale(1.06); }
.vs-half.vs-not-selected { opacity: .42; filter: grayscale(.6); }
.vs-half.vs-not-selected .vs-dark { background: rgba(0,0,0,.45); }
.vs-divider { position: absolute; z-index: 5; transition: opacity .3s ease; pointer-events: none; }
.gal-vs.vs-vertical .vs-divider { left: 0; right: 0; top: 50%; height: 0; }
.gal-vs.vs-horizontal .vs-divider { top: 0; bottom: 0; left: 50%; width: 0; }
.gal-vs-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--acc-tx); font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 34px rgba(var(--acc-w), .6), 0 0 0 6px rgba(0,0,0,.5); }
.gal-vs.vs-vertical .gal-vs-badge { left: 50%; top: 0; }
.gal-vs.vs-horizontal .gal-vs-badge { left: 0; top: 50%; }
.vs-badge-pulse { animation: vsBadgePulse 1.6s ease-out 2; }
@keyframes vsBadgePulse {
  0% { box-shadow: 0 0 34px rgba(var(--acc-w), .6), 0 0 0 0 rgba(255,215,0,.55), 0 0 0 6px rgba(0,0,0,.5); }
  70% { box-shadow: 0 0 34px rgba(var(--acc-w), .6), 0 0 0 34px rgba(255,215,0,0), 0 0 0 6px rgba(0,0,0,.5); }
  100% { box-shadow: 0 0 34px rgba(var(--acc-w), .6), 0 0 0 0 rgba(255,215,0,0), 0 0 0 6px rgba(0,0,0,.5); }
}
.vs-shockwave { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 3px solid rgba(255,215,0,.75); pointer-events: none; animation: vsShock .8s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes vsShock { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(7); opacity: 0; } }
.vs-winner-text { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.7); opacity: 0; letter-spacing: 2px; font-family: var(--disp); font-weight: 900; font-size: clamp(22px, 6vw, 60px); color: #ffd94d; text-shadow: 0 6px 30px rgba(0,0,0,.8); pointer-events: none; white-space: nowrap; transition: opacity .35s ease, transform .45s cubic-bezier(.175,.885,.32,1.275), letter-spacing .6s ease; }
.vs-half.winner-active { z-index: 4; }
.gal-vs-title { position: absolute; z-index: 5; left: 0; right: 0; top: 18px; text-align: center; color: #fff; font-weight: 800; font-size: clamp(17px, 3.2vw, 26px); letter-spacing: -0.02em; text-shadow: 0 3px 18px rgba(0,0,0,.85); pointer-events: none; }
.gal-vs-sub { position: absolute; z-index: 5; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); text-shadow: 0 2px 12px rgba(0,0,0,.85); pointer-events: none; }
.gal-vs.vs-vertical .gal-vs-sub { bottom: 6px; }
.gal-vs-x { position: absolute; top: 14px; right: 14px; z-index: 7; font-size: 26px; color: #fff; padding: 4px 12px; border-radius: 10px; background: rgba(0,0,0,.35); }
.gal-vs-x:hover { background: rgba(255,255,255,.14); }
@media (max-width: 700px) {
  .gal-vs-badge { width: 58px; height: 58px; font-size: 20px; }
  .vs-shockwave { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .vs-pick { font-size: 12px; padding: 8px 18px; letter-spacing: 1.5px; }
}
.gal-card.vs-won { animation: vsWon 1.05s ease-out; box-shadow: 0 0 32px rgba(255,215,0,.55); }
@keyframes vsWon { 0% { box-shadow: 0 0 0 0 rgba(var(--acc-w), .85); } 55% { box-shadow: 0 0 0 7px rgba(var(--acc-w), .28); } 100% { box-shadow: 0 0 0 0 rgba(var(--acc-w), 0); } }

/* ══════════════════════════════════════════════════════════════════════════
   VIEWER — the card leaves the grid and comes to you; closing sends it back
   ══════════════════════════════════════════════════════════════════════════ */
.gal-viewer {
  position: fixed; inset: 0; z-index: 1000; height: 100dvh; color: #f4f4f6;
  background: rgba(4,4,9,.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  display: flex; flex-direction: column; opacity: 0; transition: opacity .32s ease;
}
.gal-viewer.in { opacity: 1; }
/* al abrir, la foto se acerca un poco mientras el visor se funde; al cerrar con la ✕, se aleja igual */
.gal-viewer-stage { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
.gal-viewer:not(.in) .gal-viewer-stage { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .gal-viewer-stage { transition: none; } .gal-viewer:not(.in) .gal-viewer-stage { transform: none; } }
.gal-viewer-top { display: flex; align-items: center; padding: 12px 16px; gap: 10px; }
.gal-viewer-name { font-size: 13px; color: #b3b8c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.gal-viewer-count { font-size: 12px; color: #f4f4f6; font-weight: 700; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.gal-viewer-share, .gal-viewer-close { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .18s, transform .18s; }
.gal-viewer-share:hover, .gal-viewer-close:hover { background: rgba(255,255,255,.16); transform: scale(1.06); }
.gal-viewer-share svg, .gal-viewer-close svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gal-viewer-stage { flex: 1; position: relative; min-height: 0; padding: 0 64px; }
.gal-viewer-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.gal-viewer-wrap img.media { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; touch-action: none; transition: transform 0.1s linear; transform-origin: center center; will-change: transform; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
/* LA FOTO DEL VISOR OCUPA SU SITIO DESDE EL PRIMER FOTOGRAMA (campo 2026-10-01: «al abrir hace un glitch
   raro»). Sin esto la <img> mide lo que mide el fichero que haya llegado: la portada (480 px) se veía
   pequeña justo cuando el vuelo aterrizaba en grande, y crecía otra vez al llegar la de 2000 px. Con su
   proporción (--r, la pone renderStage) la caja es SIEMPRE el encaje en el visor — el mismo rectángulo
   donde aterriza el vuelo —, y la buena sólo la afina. Lo mismo para las copias de la fila (.cf-it). */
@supports (width: 1cqw) {
  .gal-viewer-wrap, .cf-it { container-type: size; }
  .gal-viewer-wrap img.media.fit, .cf-it img.fit { width: min(100cqw, 100cqh * var(--r)); height: auto; aspect-ratio: var(--r); max-width: none; max-height: none; }
  /* el reproductor de Drive con la proporción del VÍDEO (vertical en un móvil vertical = a toda pantalla) */
  .gal-viewer-wrap iframe.fit { width: min(100cqw, 100cqh * var(--r)); height: auto; aspect-ratio: var(--r); max-width: none; max-height: none; }
}
.gal-viewer-wrap iframe { position: relative; z-index: 5; width: min(96vw, 1100px); aspect-ratio: 16/9; max-height: 100%; border: 0; border-radius: 12px; background: #000; }
.gal-viewer-wrap iframe.vert { width: auto; aspect-ratio: 9/16; height: 96%; }
/* EL BOTÓN DEL VÍDEO (campo 2026-10-02: «ese botón de play es muy feo»): un aro de cristal con un disco blanco
   dentro y el ▶ de esquinas redondas; una onda suave lo anuncia. ⬇ = el mismo disco en amarillo, con su frase
   debajo («todavía no se puede ver aquí»). Mientras se pregunta a Drive, sólo un anillo que gira. */
.gal-vplay { position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.gal-viewer-wrap .bigplay {
  pointer-events: auto; position: relative; width: 90px; height: 90px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #14141a; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: popIn .45s var(--ease) .1s both;
}
.gal-viewer-wrap .bigplay::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); pointer-events: none; opacity: 0; animation: bpRing 2.6s ease-out 1.2s infinite; }
@keyframes bpRing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.gal-viewer-wrap .bigplay .disc { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.28), inset 0 -3px 0 rgba(0,0,0,.07); transition: transform .25s var(--spring), background .2s; }
.gal-viewer-wrap .bigplay .disc svg { width: 32px; height: 32px; margin-left: 4px; fill: #14141a; }
.gal-viewer-wrap .bigplay .disc svg path { stroke: #14141a; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.gal-viewer-wrap .bigplay:hover .disc, .gal-viewer-wrap .bigplay:focus-visible .disc { transform: scale(1.07); }
.gal-viewer-wrap .bigplay:active .disc { transform: scale(.94); }
.gal-viewer-wrap .bigplay.dl .disc { background: var(--hov-yellow); }
.gal-viewer-wrap .bigplay.dl .disc svg { fill: none; width: 28px; height: 28px; margin-left: 0; }
.gal-viewer-wrap .bigplay.dl::before { border-color: rgba(255, 217, 77, .65); }
.gal-viewer-wrap .bigplay.wait { cursor: progress; }
.gal-viewer-wrap .bigplay.wait::before { display: none; }
.gal-viewer-wrap .bigplay.wait .disc { width: 44px; height: 44px; background: transparent; box-shadow: none; border: 3px solid rgba(255,255,255,.22); border-top-color: #fff; animation: bpSpin .9s linear infinite; }
@keyframes bpSpin { to { transform: rotate(360deg); } }
.gal-vnote { display: none; max-width: min(320px, 82vw); text-align: center; font-size: 13px; font-weight: 600; line-height: 1.35; color: #f4f4f6; background: rgba(10,10,16,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 7px 14px; border-radius: 14px; }
.gal-vplay.dl .gal-vnote { display: block; }
@media (prefers-reduced-motion: reduce) { .gal-viewer-wrap .bigplay::before { animation: none; } }
.swipe-edge { position: absolute; z-index: 10; touch-action: none; background: transparent; }
.edge-left { top: 0; bottom: 0; left: 0; width: 10%; min-width: 20px; }
.edge-right { top: 0; bottom: 0; right: 0; width: 10%; min-width: 20px; }
.edge-bottom { bottom: 0; left: 0; right: 0; height: 30%; min-height: 100px; transition: left 0.1s, width 0.1s; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #f4f4f6; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); user-select: none; z-index: 20; transition: background .18s, transform .18s; }
.gal-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal-arrow:hover { background: rgba(255,255,255,.16); transform: translateY(-50%) scale(1.08); }
.gal-arrow.prev { left: 8px; } .gal-arrow.next { right: 8px; }
.gal-viewer-bottom { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px 18px; }
.gal-by { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 14px 5px 6px; }
.gal-by img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.gal-by .lbl { font-size: 10.5px; color: #b3b8c8; display: block; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.gal-by .nm { font-weight: 700; font-size: 13.5px; }
.gal-by-links { display: flex; gap: 6px; }
.gal-by-links a { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #f4f4f6; }
.gal-by-links a:hover { border-color: var(--acc); }
/* the download bar: the FILE NAME rules and is cut with an ellipsis; the round button stays. */
.gal-dlbar { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: min(560px, 92vw); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 5px 5px 16px; }
.gal-dlbar-nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #d6d6e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-dl {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px;
  border-radius: 999px; background: var(--hov-yellow); color: #17171d;
  font-weight: 800; font-size: 14px; line-height: 1; box-shadow: 0 4px 16px rgba(255, 217, 77, .3); transition: transform .16s, filter .16s;
}
.gal-dl:hover { filter: brightness(1.06); transform: translateY(-1px); }
.gal-dl svg { display: block; }
@media (max-width: 620px) {
  .gal-dlbar { padding-left: 13px; }
  .gal-dl { width: 38px; padding: 0; justify-content: center; }
  .gal-dl .tx { display: none; }
}

/* toast */
.gal-toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 1300; background: var(--glass2); backdrop-filter: blur(14px); border: 1px solid var(--acc); color: var(--tx); padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow); animation: galtoast 1.9s ease forwards; pointer-events: none; white-space: nowrap; }
@keyframes galtoast { 0% { opacity: 0; transform: translateX(-50%) translateY(8px); } 10%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
/* «Enlace copiado» desde el visor: dentro de la foto, abajo (showToast con su caja) */
.gal-toast.on-media { max-width: 86vw; overflow: hidden; text-overflow: ellipsis; }

/* error / empty states */
.gal-empty { flex: 1; text-align: center; padding: 70px 20px; color: var(--tx2); }
.gal-empty .e { font-size: 46px; margin-bottom: 8px; }
/* un apartado vacío: la frase en AMARILLO y dos tiras con lo de otros apartados (campo 2026-10-01). Las tiras son
   las de la cabecera de «Club» (.cl-row / .cl-track, gallery-club.css): mismo dibujo, aquí en su propia altura. */
.gal-empty-more { grid-column: 1 / -1; width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 56px 0 40px; overflow: hidden; }
.gal-empty-say { color: var(--hov-yellow); font-weight: 800; font-size: clamp(16px, 2vw, 20px); letter-spacing: -.01em; padding: 0 20px; text-wrap: balance; }
body.theme-light .gal-empty-say { color: #a16207; }
.gal-empty-sub { margin: 34px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tx2); }
.gal-empty-rows { width: 100%; display: flex; flex-direction: column; gap: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.gal-empty-rows .cl-row { flex: none; height: 190px; }
.gal-empty-rows:hover .cl-track { animation-play-state: paused; }
@media (max-width: 640px) { .gal-empty-more { padding-top: 40px; } .gal-empty-rows .cl-row { height: 130px; } }
.gal-empty-full { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 66px 20px 84px; }
.gal-empty-mark img { max-height: 120px; max-width: min(80vw, 340px); object-fit: contain; opacity: .95; }
.gal-empty-mark .gal-brand-k { width: 34px; height: 34px; font-size: 20px; }
.gal-empty-mark .gal-brand-word { font-size: 22px; }
.gal-empty-line { color: var(--tx2); font-size: 14.5px; line-height: 1.55; max-width: 34ch; }
.gal-empty-full .gal-links-row, .gal-empty-full .gal-contact-row { width: min(100%, 560px); margin: 0 auto; }
.gal-link-btn.retry { margin-top: 14px; }

@media (max-width: 640px) {
  .gal-viewer-stage { padding: 0 4px; }
  .gal-arrow { display: none; }
  .gal-grid { gap: 7px; } .gal-col { gap: 7px; }
  .gal-header { padding-top: 16px; }
  .gal-hero-logo img { height: 72px; }
}

/* ── the menu (☰ / About) — a centred glass dialog ── */
.gal-dlg { position: fixed; inset: 0; z-index: 900; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: dlgIn .18s ease-out; }
@keyframes dlgIn { from { opacity: 0; } to { opacity: 1; } }
.gal-dlg-panel { position: relative; width: min(520px, 100%); max-height: 84vh; overflow-y: auto; background: var(--glass2); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); border: 1px solid var(--gline2); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; animation: dlgUp .28s var(--ease); }
@keyframes dlgUp { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.gal-dlg-panel h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; font-family: var(--disp); }
.gal-dlg-panel h3 + h3 { margin-top: 6px; }
.gal-dlg-h { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--tx2); margin-top: 8px; }
.gal-dlg-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--tx2); font-size: 13px; line-height: 1; transition: background .15s, color .15s; }
.gal-dlg-x:hover { background: rgba(255,255,255,.09); color: var(--tx); }

/* ── ⚑ «Pedir que se quite» (docs/GALLERY.md §5w) — encima del visor (1000), debajo de los avisos (1300) ── */
.gal-dlg.gal-rep { z-index: 1250; }
.gal-rep .gal-dlg-panel { width: min(440px, 100%); gap: 8px; color: var(--tx); }
.gal-rep-lead { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--tx2); }
.gal-rep-reasons { display: flex; flex-direction: column; gap: 6px; }
.gal-rep-opt { text-align: left; padding: 10px 13px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--gline); color: var(--tx); font-weight: 600; font-size: 13.5px; transition: border-color .15s, background .15s; }
.gal-rep-opt:hover { border-color: var(--gline2); background: rgba(255,255,255,.08); }
.gal-rep-opt.on { border-color: var(--acc); background: rgba(var(--acc-w), .16); }
.gal-rep-contact { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.gal-rep-seg { display: inline-flex; border: 1px solid var(--gline); border-radius: 10px; overflow: hidden; flex: none; }
.gal-rep-net { padding: 0 11px; font-size: 12.5px; font-weight: 700; color: var(--tx2); background: transparent; min-height: 38px; }
.gal-rep-net.on { color: var(--tx); background: rgba(var(--acc-w), .2); }
.gal-rep-in, .gal-rep-msg { flex: 1; min-width: 160px; font: inherit; font-size: 14px; color: var(--tx); background: rgba(0,0,0,.22); border: 1px solid var(--gline); border-radius: 10px; padding: 9px 11px; outline: none; }
.gal-rep-msg { width: 100%; resize: vertical; min-height: 64px; box-sizing: border-box; }
.gal-rep-in:focus, .gal-rep-msg:focus { border-color: var(--acc); }
.gal-rep-msg.need { border-color: rgba(255, 217, 77, .55); }   /* «Otro motivo»: aquí va el motivo */
body.theme-light .gal-rep-in, body.theme-light .gal-rep-msg { background: rgba(255,255,255,.7); }
.gal-rep-hint { margin: -2px 0 2px; font-size: 11.5px; color: var(--tx2); }
.gal-rep-err { margin: 0; min-height: 1em; font-size: 12.5px; font-weight: 600; color: #ff8a8a; }
.gal-rep-err:empty { display: none; }
.gal-rep-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.gal-rep-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--tx); background: rgba(255,255,255,.07); border: 1px solid var(--gline); text-decoration: none; }
.gal-rep-btn.pri { background: var(--hov-yellow); color: #17171d; border-color: transparent; }
.gal-rep-btn:disabled { opacity: .55; cursor: default; }
.gal-rep-ok { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #17171d; background: var(--hov-yellow); }
/* el botón del visor: sólo el icono, del mismo cristal que «Copiar enlace» */
.gal-cp.gal-rp { width: 38px; padding: 0; justify-content: center; color: rgba(244,244,246,.72); }
.gal-cp.gal-rp:hover { color: #fff; }
.gal-dlbar.hasrp { padding-left: 5px; }   /* ⚑ first, round: the pill hugs it like it hugs ⬇ on the right */
.gal-drawer-link { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--gline); font-weight: 600; text-align: left; color: var(--tx); transition: border-color .15s, background .15s; }
body.theme-light .gal-drawer-link { background: rgba(255,255,255,.55); }
.gal-drawer-link:hover { border-color: var(--acc); }
/* El acceso de organizadores: lo último del menú, más discreto que lo de arriba (campo 2026-10-02). */
.gal-drawer-link.gal-drawer-org { margin-top: 6px; background: transparent; font-weight: 500; font-size: 13px; color: var(--tx2, rgba(255,255,255,.65)); }
.gal-drawer-link.cta { background: linear-gradient(135deg, rgba(var(--acc-w), .2), rgba(var(--acc2-w), .12)); border-color: rgba(var(--acc-w), .5); }
.gal-drawer-link .gal-bar-lang { display: inline-block; margin-left: auto; }
.gal-drawer { position: fixed; inset: 0; z-index: 900; display: flex; justify-content: flex-end; background: var(--scrim); backdrop-filter: blur(4px); }
.gal-drawer-panel { width: min(340px, 88vw); background: var(--glass2); backdrop-filter: blur(24px); border-left: 1px solid var(--gline2); padding: 22px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.gal-drawer-panel h3 { margin: 4px 0 8px; font-size: 15px; color: var(--tx2); font-weight: 600; }
.gal-about { white-space: pre-wrap; color: var(--tx2); font-size: 14px; }
.gal-about.noselect { user-select: none; -webkit-user-select: none; }

/* ── who shot it: one credit (creditChip), and the same face on the filter chips ── */
.gal-credit { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 6px 4px 4px; border-radius: 999px; color: #f4f4f6; background: linear-gradient(135deg, rgba(168, 85, 247, .16), rgba(255, 123, 0, .1)), rgba(16, 16, 24, .62); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.gal-credit .av, .gal-fm-chip .fav { flex: 0 0 auto; display: inline-flex; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--pur), var(--or)); }
.gal-credit .av { width: 38px; height: 38px; }
.gal-credit .av img, .gal-credit .av b, .gal-fm-chip .fav img, .gal-fm-chip .fav b { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: #15151d; color: #fff; font-weight: 800; border: 2px solid #0c0c12; }
.gal-credit .av b { font-size: 13px; letter-spacing: -.02em; }
.gal-credit .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 8px; line-height: 1.05; text-align: left; }
.gal-credit .lbl { font-size: 8.5px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; background: linear-gradient(90deg, #c79bff, #ffb066); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gal-credit .nm { font-size: 14.5px; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw; }
.gal-credit .lk { display: inline-flex; gap: 4px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .14); }
.gal-credit .lk a { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #d6d6e2; background: rgba(255, 255, 255, .07); transition: background .18s, color .18s, transform .3s var(--spring); }
.gal-credit .lk a:hover { color: #fff; background: linear-gradient(135deg, var(--pur), var(--or)); transform: translateY(-2px) scale(1.06); }
.gal-credit .lk svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* the face + the name as ONE button (DKGalCredit.chip(…, { view })): pressing it opens the photo, big */
.gal-credit .who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; border-radius: 999px; cursor: pointer; }
.gal-credit .who .av { transition: transform .3s var(--spring, ease), box-shadow .2s; }
.gal-credit .who:hover .av, .gal-credit .who:focus-visible .av { transform: scale(1.08); box-shadow: 0 0 0 2px var(--hov-yellow); }
.gal-credit .who:focus-visible { outline: none; }
/* ── the filmmaker's photo, big (DKGalCredit.view): its own layer, the photo WHOLE, who it is underneath ── */
.gal-crv { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; background: rgba(6, 6, 10, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: crvIn .2s ease; cursor: pointer; }
.gal-crv-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: dlgUp .26s var(--ease); }
.gal-crv-fig img { display: block; min-width: min(70vw, 320px); max-width: min(92vw, 720px); max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); border-radius: 18px; object-fit: contain; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); background: #15151d; }
.gal-crv-cap { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f4f4f6; text-align: center; cursor: default; }
.gal-crv-cap .lbl { font-size: 10px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; background: linear-gradient(90deg, #c79bff, #ffb066); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gal-crv-cap .nm { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gal-crv-cap .lk { display: inline-flex; gap: 8px; margin-top: 4px; }
.gal-crv-cap .lk a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #d6d6e2; background: rgba(255, 255, 255, .09); transition: background .18s, color .18s, transform .2s; }
.gal-crv-cap .lk a:hover { color: #fff; background: linear-gradient(135deg, var(--pur), var(--or)); transform: translateY(-2px); }
.gal-crv-cap .lk svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gal-crv-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #f4f4f6; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; transition: background .18s, border-color .18s; }
.gal-crv-x:hover, .gal-crv-x:focus-visible { background: rgba(255, 255, 255, .17); border-color: var(--hov-yellow); outline: none; }
.gal-crv-x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@keyframes crvIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gal-crv, .gal-crv-fig { animation: none; } }
.gal-fm-chip { padding-left: 4px !important; gap: 7px; }
.gal-fm-chip .fav { width: 20px; height: 20px; padding: 1.5px; }
.gal-fm-chip .fav img, .gal-fm-chip .fav b { border-width: 1px; font-size: 8px; }
/* on the download page's card in the light theme the credit is a light pill with dark ink */
body.theme-light .dl-card .gal-credit { color: var(--tx); background: linear-gradient(135deg, rgba(168, 85, 247, .12), rgba(255, 123, 0, .08)), rgba(255, 255, 255, .75); border-color: rgba(23, 23, 29, .12); box-shadow: 0 10px 30px rgba(40, 32, 80, .12); }
body.theme-light .dl-card .gal-credit .lbl { background: linear-gradient(90deg, #a855f7, #ff7b00); -webkit-background-clip: text; background-clip: text; }
body.theme-light .dl-card .gal-credit .lk { border-left-color: rgba(23, 23, 29, .14); }
body.theme-light .dl-card .gal-credit .lk a { color: var(--tx2); background: rgba(23, 23, 29, .06); }

/* ── the language: the house combobox (docs/UI-PATTERNS.md §1), closed = a button with its ▾ ── */
.gal-lang { position: relative; display: inline-flex; flex: 0 0 auto; }
.gal-lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px 0 8px; border-radius: 999px; font-weight: 800; font-size: 11.5px; letter-spacing: .06em; color: var(--tx2); background: rgba(255, 255, 255, .04); border: 1px solid var(--gline2); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.gal-lang-btn:hover, .gal-lang-btn.open { color: var(--tx); border-color: var(--acc); background: rgba(var(--acc-w), .12); }
.gal-lang-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.gal-lang-btn .ar { font-size: 9px; opacity: .7; transition: transform .2s; }
.gal-lang-btn.open .ar { transform: rotate(180deg); }
.gal-lang-dd { position: fixed; z-index: 3400; width: 214px; padding: 8px; border-radius: 16px; background: var(--glass2); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--gline2); box-shadow: var(--shadow); animation: dlgUp .22s var(--ease); }
.gal-lang-dd .gal-dd-list { max-height: min(300px, 46vh); }
.gal-lang-dd .gal-dd-it { display: flex; align-items: center; gap: 10px; }
.gal-lang-dd .gal-dd-it .cd { flex: 0 0 26px; font-weight: 800; font-size: 10.5px; letter-spacing: .08em; color: var(--tx2); }
.gal-lang-dd .gal-dd-it .nmx { font-weight: 700; font-size: 13.5px; }
.gal-lang-dd .gal-dd-it.on::after { content: '✓'; margin-left: auto; font-weight: 800; color: var(--acc); }
/* two states that are NOT painted alike: .on = the one that is set · .hl = where you are */
.gal-dd-it.hl { background: rgba(255, 255, 255, .09); box-shadow: inset 3px 0 0 var(--acc); }
body.theme-light .gal-dd-it.hl { background: rgba(23, 23, 29, .06); }
.gal-dd-empty { padding: 12px 10px; text-align: center; color: var(--tx2); font-size: 12.5px; }
/* ── 📅 the date index (gallery.js toggleDateIndex): the whole event at a glance. The years (a congress: its
      editions) in the EDITION button family, each month with its days in the DAY family, and a search. A glass
      panel next to its button; a sheet from the bottom on a phone. ── */
.gal-idx-ov { position: fixed; inset: 0; z-index: 3400; pointer-events: none; }
.gal-idx { position: fixed; pointer-events: auto; display: flex; flex-direction: column; width: min(440px, calc(100vw - 16px)); padding: 10px; border-radius: 16px; text-align: left; background: linear-gradient(rgba(var(--bgc), .5), rgba(var(--bgc), .5)), var(--glass2); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--gline2); box-shadow: var(--shadow); animation: dlgUp .22s var(--ease); }
.gal-idx-top { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 9px; border-bottom: 1px solid var(--gline); }
.gal-idx-tabs { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.gal-idx-top .gal-dd-in { flex: 1 1 140px; width: auto; min-width: 0; }
.gal-idx-x { display: none; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; color: var(--tx2); border: 1px solid var(--gline2); background: rgba(255, 255, 255, .04); cursor: pointer; }
.gal-idx-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.gal-idx-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 2px 0; scrollbar-width: thin; scrollbar-color: rgba(140, 140, 160, .45) transparent; }
.gal-idx-body::-webkit-scrollbar { width: 6px; }
.gal-idx-body::-webkit-scrollbar-thumb { background: rgba(140, 140, 160, .45); border-radius: 6px; }
.gal-idx-body::-webkit-scrollbar-track { background: transparent; }
.gal-idx-m { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; }
.gal-idx-m + .gal-idx-m { border-top: 1px solid var(--gline); }
.gal-idx-m .mn { padding-top: 8px; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx2); overflow-wrap: anywhere; }
.gal-idx-m .mn i { display: block; margin-top: 1px; font-style: normal; font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: none; opacity: .7; }
.gal-idx-m .ds { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.gal-pill.ix { height: 30px; padding: 0 10px; gap: 6px; max-width: 100%; font-size: 12px; backdrop-filter: none; -webkit-backdrop-filter: none; cursor: pointer; }
.gal-pill.ix b { font-weight: 900; font-size: 14px; color: var(--tx); }
.gal-pill.ix .wd { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gal-pill.ix .lb { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.gal-idx-tabs .gal-pill.ed { cursor: pointer; }
.gal-idx-tabs .gal-pill.ed.on { color: var(--tx); border-color: var(--acc); background: rgba(var(--acc-w), .24); }
.gal-idx-ov.sheet { pointer-events: auto; background: rgba(0, 0, 0, .5); }
.gal-idx-ov.sheet .gal-idx { left: 0; right: 0; bottom: 0; width: auto; max-height: 78vh; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); animation: idxUp .26s var(--ease); }
.gal-idx-ov.sheet .gal-idx-x { display: inline-flex; }
@keyframes idxUp { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gal-idx, .gal-idx-ov.sheet .gal-idx { animation: none; } }
.gal-drawer-link .gal-lang { margin-left: auto; }
@media (max-width: 640px) { .gal-bar .gal-lang { display: none; } body.bar-island .gal-bar .gal-lang { display: inline-flex; } }

/* ── ▦ opens its options (how many columns) instead of cycling through them ── */
.gal-cols-menu { position: absolute; right: calc(100% + 10px); bottom: 0; display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 999px; background: var(--glass2); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--gline2); box-shadow: var(--shadow); }
.gal-cols-opt { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--tx2); transition: background .15s, color .15s, transform .3s var(--spring); animation: popIn .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.gal-cols-opt:hover { color: var(--tx); background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.gal-cols-opt.on { color: var(--acc-tx); background: linear-gradient(135deg, var(--acc), var(--acc2)); }

/* Reduced motion: shorter, never hidden (docs/STAGE.md — the dev PC reports reduce=true). */
@media (prefers-reduced-motion: reduce) {
  .gal-card.rv, .gal-card.rv.in { transition-duration: .3s; transition-delay: 0s; }
  .gal-hero-logo img { animation: none !important; }
}

/* «Galleries●»: donde iba el ®, una BOLITA con el degradado de la casa (no es una marca registrada).
   Cada barra ya coloca su <sup> (tamaño y altura); aquí sólo se dibuja la bola, a su tamaño. */
sup.gx-dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; line-height: 0;
  background: linear-gradient(135deg, #a855f7, #ff7b00); margin-left: .12em; }
