/* =====================================================================
   BREAKING NEWS · Xaranga — estilos v4 (pensado para móvil)
   Negro profundo, morado y rosa del logo, tipografía editorial.
   ===================================================================== */
:root {
  --bg: #09080b;
  --bg-2: #0e0c11;
  --surface: #141117;
  --surface-2: #1b1720;
  --surface-3: #25202b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .12);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .055);
  --text: #f7f4f9;
  --muted: #a39aab;
  --faint: #6f6676;
  --purple: #a45bd6;
  --purple-deep: #4b2357;
  --violet-soft: #d7b2f2;
  --pink: #ec4189;
  --pink-soft: #ff8fbe;
  --grad: linear-gradient(135deg, #b65bf0 0%, #ec4189 100%);
  --grad-deep: linear-gradient(150deg, #3b1747 0%, #1c0f22 60%, #110b14 100%);
  --ok: #34d399;
  --warn: #fbbf4b;
  --bad: #f87171;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.85);
  --glow: 0 10px 30px -10px rgba(236, 65, 137, .6);
  --tab-h: 64px;
  --dock-gap: 12px;
  --safe-b: env(safe-area-inset-bottom);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --brand: "Russo One", "Inter", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  background:
    radial-gradient(90% 50% at 50% -10%, rgba(164, 91, 214, .16), transparent 70%),
    radial-gradient(60% 40% at 110% 10%, rgba(236, 65, 137, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  font-feature-settings: "tnum" 1, "cv11" 1, "ss01" 1;
}
::selection { background: rgba(236, 65, 137, .35); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 10px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap::first-letter { text-transform: uppercase; }
svg { flex: none; }

/* ---------- arranque ---------- */
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.boot img { width: 88px; height: 88px; border-radius: 50%; animation: pulse 1.6s var(--ease) infinite; box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px -10px rgba(164, 91, 214, .6); }
.boot::before { content: ""; position: absolute; width: 112px; height: 112px; margin-top: -12px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--pink); border-right-color: rgba(164, 91, 214, .6); animation: spin 1s linear infinite; }
.boot { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot p { margin: 0; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .75; } }

/* ---------- cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: linear-gradient(to bottom, rgba(9, 8, 11, .92), rgba(9, 8, 11, .72));
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line);
}
.topbar { transition: box-shadow .3s, background .3s; }
.topbar.scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.8); }
.topbar-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.topbar .logo { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px -4px rgba(164, 91, 214, .7); }
.wordmark { font-family: var(--brand); font-size: 16px; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
@media (max-width: 370px) {
  .topbar-in { gap: 7px; }
  .wordmark { font-size: 14px; }
  .icon-pill, .me-pill .avatar { width: 36px !important; height: 36px !important; }
}
.wordmark small { display: block; font-family: var(--font); font-size: 9.5px; font-weight: 700; letter-spacing: .3em; color: var(--muted); margin-bottom: 4px; }
.topbar .spacer { flex: 1; }
.icon-pill {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; padding: 0; color: var(--muted); box-shadow: var(--hi);
  transition: transform .15s var(--ease), background .2s, color .2s;
}
.icon-pill:active { transform: scale(.92); }
.icon-pill svg { width: 18px; height: 18px; }
.icon-pill.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.me-pill { padding: 0; border: 0; background: none; border-radius: 50%; transition: transform .15s var(--ease); }
.me-pill:active { transform: scale(.92); }
.me-pill .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(236, 65, 137, .7); }

.gestion-bar {
  max-width: 680px; margin: 10px auto 0; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, rgba(236, 65, 137, .16), rgba(164, 91, 214, .12));
  border: 1px solid rgba(236, 65, 137, .35); color: #ffd0e3;
  border-radius: 999px; padding: 5px 5px 5px 14px; font-size: 13px; font-weight: 600;
}
.gestion-bar svg { width: 14px; height: 14px; }
.gestion-bar button { margin-left: auto; background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; }

/* ---------- contenido ---------- */
main { max-width: 680px; margin: 0 auto; padding: 22px 16px calc(var(--tab-h) + var(--dock-gap) + var(--safe-b) + 60px); }
main.enter > * { animation: rise .45s var(--ease) both; }
main.enter > *:nth-child(2) { animation-delay: .04s; }
main.enter > *:nth-child(3) { animation-delay: .08s; }
main.enter > *:nth-child(4) { animation-delay: .12s; }
main.enter > *:nth-child(5) { animation-delay: .16s; }
main.enter > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(14px) scale(.985); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease) var(--d, 0ms), transform .5s var(--ease) var(--d, 0ms); }

/* Disponibilidad: puedo / duda / no puedo */
.availbar { display: flex; gap: 3px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 10px; }
.availbar i { display: block; width: var(--w); height: 100%; border-radius: 99px; flex: none; }
.availbar i[style*="--w:0%"] { display: none; }
.availbar .si { background: linear-gradient(90deg, #22b07c, var(--ok)); box-shadow: 0 0 10px rgba(52, 211, 153, .45); }
.availbar .duda { background: var(--warn); }
.availbar .no { background: var(--bad); opacity: .8; }
main.enter .availbar i { animation: grow .9s var(--ease) both .15s; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.item .availbar { margin-top: 8px; max-width: 220px; height: 4px; }
.hero .availbar { margin-top: 16px; background: rgba(255,255,255,.14); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head h1 { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.035em; margin: 0; line-height: 1; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.section { margin-top: 30px; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.section-h h2 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.section-h .count { font-size: 12px; color: var(--faint); font-weight: 600; }
h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; }

/* ---------- barra inferior (dock flotante) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 14px calc(var(--safe-b) + var(--dock-gap));
  pointer-events: none;
}
.tabbar::before { content: ""; position: absolute; inset: -30px 0 0; background: linear-gradient(to top, var(--bg) 35%, transparent); pointer-events: none; }
.tabbar-in {
  position: relative; pointer-events: auto;
  max-width: 480px; margin: 0 auto; height: var(--tab-h);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
  background: rgba(22, 19, 26, .82);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: var(--hi), 0 18px 40px -12px rgba(0, 0, 0, .9);
}
.tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; border-radius: 18px; transition: color .2s, background .25s var(--ease); }
.tabbar a svg { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.tabbar a:active svg { transform: scale(.88); }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { color: var(--pink-soft); filter: drop-shadow(0 0 8px rgba(236, 65, 137, .55)); animation: hop .45s var(--ease); }
@keyframes hop { 40% { transform: translateY(-3px) scale(1.08); } }
/* Indicador que se desliza de una pestaña a otra */
.tab-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 18px;
  background: linear-gradient(180deg, rgba(236, 65, 137, .2), rgba(164, 91, 214, .1)); box-shadow: inset 0 0 0 1px rgba(236, 65, 137, .22), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateX(calc(var(--to) * 100%)); animation: tabslide .45s var(--ease); pointer-events: none; }
@keyframes tabslide { from { transform: translateX(calc(var(--from) * 100%)); } }
.tabbar a { z-index: 1; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 15px; white-space: nowrap; letter-spacing: -.005em;
  box-shadow: var(--hi);
  transition: transform .15s var(--ease), opacity .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn.primary, .btn.pink { background: var(--grad); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--glow); }
.btn.pink { background: linear-gradient(135deg, #f0569a, #d12f74); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .06); box-shadow: none; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 12px; color: var(--muted); display: grid; place-items: center; transition: background .2s, color .2s; }
.icon-btn:active { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.link { color: var(--violet-soft); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(215, 178, 242, .35); text-underline-offset: 3px; }

/* ---------- tarjetas ---------- */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--hi), var(--shadow); }
.card + .card { margin-top: 12px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-title h3 { font-size: 17px; }

/* Hero del próximo acto */
.hero {
  position: relative; overflow: hidden; display: block; isolation: isolate;
  border-radius: var(--r-xl); padding: 20px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--grad-deep);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--hi), var(--shadow-lg), 0 30px 70px -30px rgba(164, 91, 214, .55);
  transition: transform .2s var(--ease);
}
.hero:active { transform: scale(.985); }
.hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.1); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -2%); } }
/* Brillo que cruza la portada al entrar */
.hero .sheen { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.1) 50%, transparent 65%); transform: translateX(-100%); }
main.enter .hero .sheen { animation: sheen 1.4s var(--ease) .35s; }
@keyframes sheen { to { transform: translateX(100%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 8, 11, .15) 0%, rgba(9, 8, 11, .35) 35%, rgba(18, 8, 22, .94) 100%),
    radial-gradient(120% 80% at 0% 0%, rgba(236, 65, 137, .35), transparent 55%); }
.hero::after { content: ""; position: absolute; inset: 0; background: url("img/marble.svg") center/cover; opacity: .08; mix-blend-mode: screen; pointer-events: none; z-index: -1; }
.hero.has-photo::after { display: none; }
.hero > * { position: relative; }
.hero .label { position: absolute; top: 18px; left: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(9, 8, 11, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); padding: 6px 11px; border-radius: 999px; }
.hero .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(236, 65, 137, .3); animation: beat 1.8s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 6px rgba(236, 65, 137, 0); } }
.hero h2 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 64px 0 14px; line-height: 1.02; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero .when { display: flex; align-items: center; gap: 16px; }
.hero .bigdate { font-family: var(--display); font-size: 52px; font-weight: 800; line-height: .85; letter-spacing: -.05em; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.2); }
.hero .bigdate small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-soft); margin-top: 8px; }
.hero .hero-meta { display: grid; gap: 5px; font-size: 14px; color: rgba(255,255,255,.86); min-width: 0; }
.hero .hero-meta span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hero .hero-meta svg { width: 15px; height: 15px; opacity: .7; }
.hero .hero-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); gap: 10px; }
.hero .countdown { font-size: 13px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.hero .countdown::before { content: ""; width: 16px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero .pill { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- avisos ---------- */
.alert { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 12px 12px 12px; font-size: 14px; box-shadow: var(--hi); }
.alert + .alert, .alert + .hero, .hero + .alert { margin-top: 8px; }
.alert .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.alert .ico svg { width: 18px; height: 18px; }
.alert.warn { background: linear-gradient(90deg, rgba(251, 191, 75, .07), var(--surface) 60%); }
.alert.warn .ico { background: rgba(251, 191, 75, .14); color: var(--warn); }
.alert.pink { background: linear-gradient(90deg, rgba(236, 65, 137, .09), var(--surface) 60%); }
.alert.pink .ico { background: rgba(236, 65, 137, .16); color: var(--pink-soft); }
.alert .grow b { display: block; font-size: 14px; font-weight: 650; }
.alert .grow span { color: var(--muted); font-size: 13px; }

/* ---------- segmentos ---------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 9px 10px; font-size: 14px; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; transition: background .2s, color .2s; }
.seg button svg { width: 14px; height: 14px; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.45); }
.seg.inline { display: inline-grid; }
.seg.inline button { padding: 6px 10px; font-size: 13px; }

/* ---------- listas ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--hi), var(--shadow); }
.item { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 68px; width: 100%; background: none; border: 0; text-align: left; color: inherit; transition: background .15s; }
a.item:active, button.item:active { background: rgba(255,255,255,.035); }
.item + .item::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.item .title { font-weight: 650; font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; }
.item .sub { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.item .sub svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; opacity: .8; }
.item .right { display: grid; justify-items: end; gap: 6px; flex: none; text-align: right; }
.item .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.item.cancelado .title { text-decoration: line-through; color: var(--muted); }
.item.open { background: var(--surface-2); }
.sub-list { background: var(--bg-2); border-top: 1px solid var(--line); }
.sub-list .item { min-height: 56px; padding: 12px 16px 12px 24px; }

.datetile { width: 50px; flex: none; text-align: center; border-radius: 14px; background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line); padding: 7px 0 6px; box-shadow: var(--hi); }
.datetile .d { font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.datetile .m { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-soft); margin-top: 3px; }
.datetile.past { opacity: .6; }
.datetile.past .m { color: var(--muted); }

/* ---------- etiquetas de estado ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; border: 1px solid transparent; letter-spacing: .005em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.pill.plain::before { display: none; }
.pill.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .22); color: var(--ok); }
.pill.warn { background: rgba(251, 191, 75, .1); border-color: rgba(251, 191, 75, .22); color: var(--warn); }
.pill.bad { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .22); color: var(--bad); }
.pill.pink { background: rgba(236, 65, 137, .12); border-color: rgba(236, 65, 137, .28); color: var(--pink-soft); }
.pill.purple { background: rgba(164, 91, 214, .14); border-color: rgba(164, 91, 214, .3); color: var(--violet-soft); }
.hero .pill { background: rgba(9, 8, 11, .5); }
button.pill { min-height: 30px; transition: transform .15s var(--ease); }
button.pill:active { transform: scale(.94); }
.money { font-family: var(--display); font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.money.pend { color: var(--pink-soft); }
.money.ok { color: var(--ok); }

/* ---------- progreso ---------- */
.progress { height: 4px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; width: var(--w, 0%); height: 100%; background: var(--grad); border-radius: 99px; box-shadow: 0 0 10px rgba(236, 65, 137, .5); }
main.enter .progress i { animation: grow 1s var(--ease) both .2s; transform-origin: left; }
.progress.glass { background: rgba(255,255,255,.14); height: 6px; margin-top: 16px; }
.progress i.full { background: var(--ok); }

/* ---------- calendario ---------- */
.cal-card { padding: 14px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--faint); padding: 4px 0 8px; }
.cal .day { aspect-ratio: 1; border: 0; background: none; border-radius: 14px; display: grid; place-items: center; position: relative; font-size: 15px; font-weight: 600; color: var(--text); padding: 0; transition: background .15s, transform .15s var(--ease); }
.cal .day:active { transform: scale(.9); }
.cal .day.out { color: var(--faint); opacity: .4; }
.cal .day.today { color: var(--pink-soft); font-weight: 800; box-shadow: inset 0 0 0 1.5px rgba(236, 65, 137, .55); }
.cal .day.has { background: var(--surface-3); }
.cal .day.sel { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.cal .day .dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.cal .day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.cal .day .dots i.confirmado { background: var(--ok); }
.cal .day .dots i.cancelado { background: var(--bad); }
.cal .day.sel .dots i { background: #fff; }

/* ---------- ficha de acto ---------- */
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 600; font-size: 15px; margin: -4px 0 14px -6px; padding: 4px 8px 4px 4px; border-radius: 10px; }
.back svg { width: 20px; height: 20px; }
.act-hero { margin-bottom: 14px; }
.act-cover { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 18px; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 12px; background: var(--grad-deep); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--hi), var(--shadow-lg); }
.act-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.act-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,8,11,.1), rgba(18,8,22,.92)), radial-gradient(120% 80% at 0% 0%, rgba(236, 65, 137, .3), transparent 55%); }
.act-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/marble.svg") center/cover; opacity: .1; mix-blend-mode: screen; }
.act-cover:not(:has(> img)) { min-height: 150px; }
.act-cover:has(> img)::after { display: none; }
.act-cover .pill { align-self: flex-start; background: rgba(9, 8, 11, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.act-hero h1 { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin: 12px 0 0; line-height: 1.02; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.facts { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--hi), var(--shadow); }
.fact { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 16px; font-size: 15px; }
.fact + .fact::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.fact .fi { width: 34px; height: 34px; border-radius: 11px; background: rgba(164, 91, 214, .12); border: 1px solid rgba(164, 91, 214, .2); display: grid; place-items: center; color: var(--violet-soft); flex: none; }
.fact .fi svg { width: 16px; height: 16px; }
.fact .fl { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.fact .fv { font-weight: 600; }
.notes { white-space: pre-wrap; font-size: 15px; color: #ddd6e2; margin: 0; line-height: 1.55; }

.vote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vote button { border: 1px solid var(--line-2); background: var(--surface-3); border-radius: 16px; padding: 14px 4px 11px; font-weight: 700; font-size: 15px; display: grid; justify-items: center; gap: 2px; box-shadow: var(--hi); transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.vote button:active { transform: scale(.95); }
.vote button small { font-family: var(--display); font-size: 13px; color: var(--muted); font-weight: 700; }
.vote button.on.si { background: linear-gradient(160deg, #4ae3a8, #22b07c); border-color: transparent; color: #04200f; box-shadow: 0 10px 26px -10px rgba(52, 211, 153, .7); }
.vote button.on.duda { background: linear-gradient(160deg, #fdd06a, #f0a92c); border-color: transparent; color: #2a1c00; box-shadow: 0 10px 26px -10px rgba(251, 191, 75, .7); }
.vote button.on.no { background: linear-gradient(160deg, #fb8a8a, #e85656); border-color: transparent; color: #2a0606; box-shadow: 0 10px 26px -10px rgba(248, 113, 113, .7); }
.vote button.on small { color: inherit; opacity: .7; }
.vote button.on { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); } }

/* ---------- personas ---------- */
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--purple-deep); overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 18px; height: 18px; color: var(--violet-soft); }
.avatar.ext { background: linear-gradient(135deg, #6b2349, #3d1428); color: var(--pink-soft); }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; }
.faces { display: flex; }
.faces .avatar { width: 28px; height: 28px; font-size: 10px; border: 2px solid var(--surface); margin-left: -8px; }
.faces .avatar:first-child { margin-left: 0; }
.faces .avatar.more { background: var(--surface-3); color: var(--muted); font-size: 10px; }
.hero .faces .avatar { border-color: #1d0e23; }
.card-title .faces .avatar { border-color: var(--surface-2); }

/* ---------- estadísticas ---------- */
.big-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 22px 20px 20px; background: var(--grad-deep); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--hi), var(--shadow-lg), 0 30px 70px -30px rgba(164, 91, 214, .5); }
.big-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(236, 65, 137, .5), transparent 65%); z-index: -1; }
.big-card::after { content: ""; position: absolute; inset: 0; background: url("img/marble.svg") center/cover; opacity: .07; mix-blend-mode: screen; z-index: -1; }
.big-card .lbl { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.big-card .val { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-top: 10px; }
.big-card .note { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.stats.two { grid-template-columns: 1fr 1fr; }
.stat { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; min-width: 0; box-shadow: var(--hi); }
.stat .lbl { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat .val { font-family: var(--display); font-size: 21px; font-weight: 800; margin-top: 6px; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.pink .val { color: var(--pink-soft); }
.stat.warn .val { color: var(--warn); }

/* ---------- formularios ---------- */
.field { display: grid; gap: 7px; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 12px 14px; font-size: 16px; color: var(--text); appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--faint); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: rgba(236, 65, 137, .6); box-shadow: 0 0 0 4px rgba(236, 65, 137, .14); background: var(--surface); }
input[type="date"].input, input[type="time"].input { min-width: 0; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--pink); flex: none; }
.check svg { width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-grid; place-items: center; min-width: 48px; height: 42px; padding: 0 12px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--display); font-weight: 700; transition: background .2s, transform .15s var(--ease); }
.chip-opt input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.subbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; box-shadow: var(--hi); }
.subbox-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.line-row { display: grid; grid-template-columns: 1fr 104px 36px; gap: 8px; align-items: center; margin-top: 8px; }
.line-row.four { grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; position: relative; }
.line-row.four [data-rm] { position: absolute; top: -10px; right: -8px; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 50%; padding: 5px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl-row .check { flex: 1; min-width: 0; font-weight: 500; }
.pl-row .check .who { min-width: 0; }
.pl-row .check b { display: block; font-weight: 650; }
.pl-row .input { width: 88px; min-height: 42px; text-align: right; font-family: var(--display); font-weight: 600; }
.photo-pick { display: flex; align-items: center; gap: 14px; }

/* ---------- modal (hoja inferior) ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(4, 3, 6, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 140px); width: min(680px, 100%); max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  border-radius: 28px 28px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -20px 60px -10px rgba(0,0,0,.7), var(--hi);
  padding: 10px 18px calc(18px + var(--safe-b)); animation: up .32s var(--ease);
}
.modal::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 12px; }
@keyframes up { from { transform: translateY(60px); opacity: .4; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-head h2 { font-family: var(--display); font-size: 23px; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.modal-head .icon-btn { background: var(--surface-3); border-radius: 50%; padding: 7px; }
.modal-head .icon-btn svg { width: 18px; height: 18px; }
.modal-foot { position: sticky; bottom: calc(-18px - var(--safe-b)); margin: 20px -18px calc(-18px - var(--safe-b)); padding: 12px 18px calc(14px + var(--safe-b)); background: rgba(20, 17, 23, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.modal-foot .btn { flex: 1; }
.menu-list { display: grid; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 18px; background: var(--surface-3); border: 1px solid var(--line); font-size: 15px; font-weight: 650; text-align: left; box-shadow: var(--hi); transition: transform .15s var(--ease), background .2s; }
.menu-item:active { transform: scale(.98); }
.menu-item > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(164, 91, 214, .14); color: var(--violet-soft); }
.menu-item small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.menu-item.danger, .menu-item.danger svg { color: var(--bad); }
.menu-item.danger > svg { background: rgba(248, 113, 113, .12); }
.modal { transition: transform .25s var(--ease); touch-action: pan-y; }
.modal-back { background: rgba(4, 3, 6, calc(.66 * var(--dim, 1))); }
.modal-back.closing { animation: fadeout .22s forwards; }
.modal-back.closing .modal { animation: down .22s var(--ease) forwards; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes down { to { transform: translateY(100%); } }
@media (min-width: 720px) { .modal-back.closing .modal { animation: fadeout .2s forwards; } }
@media (min-width: 720px) { .modal-back { align-items: center; } .modal { border-radius: 28px; border-bottom: 1px solid var(--line-2); max-height: 86dvh; } .modal::before { display: none; } }

/* ---------- toast ---------- */
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 12px); z-index: 80; display: grid; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { background: rgba(37, 32, 43, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--text); padding: 13px 16px; border-radius: 18px; font-weight: 600; font-size: 14px; box-shadow: 0 18px 40px -10px rgba(0,0,0,.7), var(--hi); border: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; animation: drop .35s var(--ease); }
.toast .t-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(164, 91, 214, .2); color: var(--violet-soft); }
.toast .t-ico svg { width: 14px; height: 14px; stroke-width: 2.6; }
.toast.ok .t-ico { background: rgba(52, 211, 153, .18); color: var(--ok); }
.toast.err .t-ico { background: rgba(248, 113, 113, .18); color: var(--bad); }
.toast.out { animation: lift .25s var(--ease) forwards; }
@keyframes lift { to { transform: translateY(-12px) scale(.97); opacity: 0; } }
@keyframes drop { from { transform: translateY(-14px) scale(.97); opacity: 0; } }

.empty { text-align: center; padding: 32px 18px; color: var(--muted); font-size: 14px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.012) 10px 20px), var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* ---------- ¿Quién eres? ---------- */
.picker { min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 44px) 18px 48px; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(120% 60% at 50% -5%, rgba(164, 91, 214, .4) 0%, rgba(236, 65, 137, .08) 40%, transparent 70%), var(--bg); }
.picker-logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 8px rgba(164, 91, 214, .1), 0 20px 60px -10px rgba(164, 91, 214, .7); animation: rise .5s var(--ease) both; }
.picker h1 { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 24px 0 6px; animation: rise .5s .05s var(--ease) both; }
.picker > p { color: var(--muted); margin: 0 0 28px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; animation: rise .5s .1s var(--ease) both; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(520px, 100%); }
.picker-grid > * { animation: rise .5s var(--ease) both; }
.picker-grid > *:nth-child(n+4) { animation-delay: .05s; }
.picker-grid > *:nth-child(n+7) { animation-delay: .1s; }
.picker-grid > *:nth-child(n+10) { animation-delay: .15s; }
.picker-grid > *:nth-child(n+13) { animation-delay: .2s; }

/* Tarjeta de músico: foto vertical con el nombre encima */
.pick, .member-card { position: relative; background: none; border: 0; padding: 0; color: inherit; display: block; text-align: left; border-radius: 20px; overflow: hidden; isolation: isolate; transition: transform .2s var(--ease); }
.pick:active, .member-card:active { transform: scale(.96); }
.pick-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; display: block; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.pick-img img, .pick-img > span { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-family: var(--display); font-size: 32px; font-weight: 800; color: #fff; }
.pick::after, .member-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(9, 8, 11, .92)); border-radius: 0 0 20px 20px; pointer-events: none; }
.pick b, .member-card b { position: absolute; z-index: 1; left: 10px; right: 8px; bottom: 26px; font-size: 14.5px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick small, .member-card small { position: absolute; z-index: 1; left: 10px; right: 8px; bottom: 10px; font-size: 11.5px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick b:last-child, .member-card b:last-child, .member-card:has(small:empty) b { bottom: 12px; }
.pick.last .pick-img { box-shadow: inset 0 0 0 2px var(--pink), 0 10px 30px -10px rgba(236, 65, 137, .7); }
.pick.add::after { display: none; }
.pick.add .pick-img { background: transparent; box-shadow: none; }
.pick.add .pick-img > span { background: rgba(255,255,255,.02); border: 1.5px dashed var(--line-2); border-radius: 20px; font-size: 36px; color: var(--muted); font-weight: 300; }
.pick.add b { color: var(--text); }
.pick.add small { color: var(--muted); }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .picker-grid, .member-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- galería ---------- */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: var(--r-md); overflow: hidden; }
.thumb { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--surface-2); display: block; overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.thumb:active img, .thumb:active video { transform: scale(1.06); }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.thumb .play svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.thumb .tcount { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 7px; display: inline-flex; gap: 3px; align-items: center; }
.thumb .tcount svg { width: 11px; height: 11px; }
.albums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.album { display: grid; gap: 2px; transition: transform .2s var(--ease); }
.album:active { transform: scale(.97); }
.album-cover { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--surface-2); margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.album-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35)); }
.album-cover img, .album-cover video { width: 100%; height: 100%; object-fit: cover; }
.album-count { position: absolute; z-index: 1; top: 10px; right: 10px; background: rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.album b { font-size: 15px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; padding: 0 2px; }
.album small { font-size: 12px; color: var(--muted); padding: 0 2px; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--violet-soft); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, transform .15s var(--ease); }
.tag-chip:active { transform: scale(.95); }
.tag-chip small { color: var(--faint); font-weight: 700; }
.tag-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.tag-chip.on small { color: rgba(255,255,255,.7); }
.hscroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.gal-filters { display: grid; gap: 12px; margin-bottom: 18px; }

/* visor */
.modal-back.viewer { background: rgba(0,0,0,.94); }
.modal-back.viewer .modal { background: #000; border-color: #111; }
.viewer-media { position: relative; border-radius: 18px; overflow: hidden; background: #000; display: grid; place-items: center; min-height: 220px; }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: 62dvh; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; }
.nav-arrow svg { width: 22px; height: 22px; }
.nav-arrow.l { left: 10px; } .nav-arrow.r { right: 10px; }

/* ---------- perfil ---------- */
.profile-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: 6px 0 26px; padding: 28px 16px 22px; border-radius: var(--r-xl); background: var(--grad-deep); border: 1px solid rgba(255,255,255,.1); overflow: hidden; isolation: isolate; box-shadow: var(--hi), var(--shadow-lg); }
.profile-head::before { content: ""; position: absolute; width: 320px; height: 320px; left: 50%; top: -200px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(236, 65, 137, .45), transparent 65%); z-index: -1; }
.profile-head::after { content: ""; position: absolute; inset: 0; background: url("img/marble.svg") center/cover; opacity: .07; mix-blend-mode: screen; z-index: -1; }
.profile-head h1 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin: 4px 0 0; line-height: 1.05; }
.profile-head p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }

/* ---------- escritorio ---------- */
@media (min-width: 900px) {
  main { padding-top: 30px; }
  .page-head h1 { font-size: 42px; }
}

/* plantilla: xaranga y refuerzos separados */
.lineup-total { position: sticky; top: -10px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(37, 32, 43, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 16px; padding: 11px 14px; margin-bottom: 12px; font-size: 14px; }
.lineup-total .tot { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.lineup-total.ok { border-color: rgba(52, 211, 153, .5); } .lineup-total.ok .tot { color: var(--ok); }
.lineup-total.bad { border-color: rgba(248, 113, 113, .5); } .lineup-total.bad .tot { color: var(--bad); }
.lineup-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 4px; }
.lineup-block.ref { margin-top: 14px; padding-bottom: 14px; border-color: rgba(236, 65, 137, .3); }
.lineup-block .pl-row:last-child { border-bottom: 0; }
.new-member { margin-top: 14px; border: 1px dashed var(--line-2); border-radius: 16px; padding: 14px; }
.new-member summary { font-size: 14px; font-weight: 650; color: var(--muted); cursor: pointer; }

/* Si hay algo flotando abajo (botón de Netlify), la barra reserva ese hueco debajo de los iconos */
body.lift-tabbar .tabbar { padding-bottom: max(calc(var(--lift) + 6px), calc(var(--safe-b) + var(--dock-gap))); }
body.lift-tabbar main { padding-bottom: calc(var(--tab-h) + var(--lift) + 80px); }

/* foto de perfil editable */
.photo-edit { position: relative; display: inline-block; cursor: pointer; }
.photo-edit .avatar.xl { width: 116px; height: 116px; font-size: 40px; box-shadow: 0 0 0 4px rgba(9, 8, 11, .6), 0 0 0 6px var(--pink), 0 20px 50px -10px rgba(236, 65, 137, .6); }
.photo-badge { position: absolute; right: -2px; bottom: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; border: 3px solid #1c0f22; }
.photo-badge svg { width: 16px; height: 16px; }

/* ---------- ficha de acto: calendario y mapa ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.quick-actions .btn { min-height: 48px; border-radius: 16px; }
.quick-actions .btn svg { color: var(--pink-soft); }
.map-card { margin-top: 10px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--hi), var(--shadow); }
.map-frame { display: block; width: 100%; height: 170px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.9); }
.map-actions { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
.map-actions .btn { flex: 1; min-width: max-content; }

/* ---------- accesos a secciones ---------- */
.feature-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid rgba(164, 91, 214, .28);
  background: linear-gradient(120deg, rgba(164, 91, 214, .16), rgba(236, 65, 137, .08) 60%, var(--surface)); box-shadow: var(--hi), var(--shadow); transition: transform .15s var(--ease); }
.feature-link:active { transform: scale(.98); }
.feature-link .fl-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); flex: none; }
.feature-link .fl-ico svg { width: 20px; height: 20px; }
.feature-link b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.feature-link small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.feature-link .chev { width: 18px; height: 18px; color: var(--faint); }

/* ---------- repertorio ---------- */
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 42px; }
.song-num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--faint); width: 26px; flex: none; letter-spacing: -.02em; }
.item.open .song-num { color: var(--pink-soft); }

/* ---------- sin conexión y actualizar ---------- */
.offline-bar { max-width: 680px; margin: 10px auto 0; display: flex; align-items: center; gap: 8px; background: rgba(251, 191, 75, .1); border: 1px solid rgba(251, 191, 75, .3); color: #ffe2a6; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; }
.offline-bar svg { width: 15px; height: 15px; }
#ptr { position: fixed; z-index: 35; left: 50%; top: calc(env(safe-area-inset-top) + 8px); width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--muted); box-shadow: 0 10px 24px -8px rgba(0,0,0,.8); opacity: 0; pointer-events: none;
  transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)); }
#ptr.back { transition: transform .3s var(--ease), opacity .3s; }
#ptr svg { width: 20px; height: 20px; }
#ptr.ready { color: #fff; background: var(--grad); border-color: transparent; box-shadow: var(--glow); }
#ptr.spin svg { animation: spin .8s linear infinite; }

/* ---------- temporada ---------- */
.wrapped { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 22px 20px 18px; color: #fff;
  background: linear-gradient(135deg, #8a2bd0 0%, #ec4189 55%, #ff9a5a 120%); box-shadow: var(--shadow-lg), 0 30px 60px -25px rgba(236, 65, 137, .7); }
.wrapped::before { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); z-index: -1; }
.wrapped::after { content: ""; position: absolute; inset: 0; background: url("img/marble.svg") center/cover; opacity: .12; mix-blend-mode: overlay; z-index: -1; }
.wrapped .lbl { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.w-big { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.w-big span { font-family: var(--display); font-size: 72px; font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.w-big small { font-size: 15px; font-weight: 700; opacity: .9; }
.w-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); }
.w-row b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.w-row span { font-size: 11.5px; opacity: .85; }
.month-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; align-items: end; height: 170px; padding: 16px 12px 12px; }
.mc-col { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; }
.mc-col i { width: 100%; max-width: 20px; align-self: end; height: max(var(--h), 4px); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--purple), rgba(164, 91, 214, .35)); }
.mc-col.best i { background: var(--grad); box-shadow: var(--glow); }
.mc-n { font-size: 11px; font-weight: 700; color: var(--muted); min-height: 14px; }
.mc-col.best .mc-n { color: var(--pink-soft); }
.mc-m { font-size: 10.5px; font-weight: 700; color: var(--faint); }
main.enter .mc-col i { animation: growUp .8s var(--ease) both calc(.15s + var(--i, 0) * 45ms); transform-origin: bottom; }
@keyframes growUp { from { transform: scaleY(0); } }
.rank-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--muted); background: var(--surface-3); }
.rank-n.top1 { background: linear-gradient(135deg, #ffe08a, #f0a92c); color: #2a1c00; box-shadow: 0 0 14px rgba(251, 191, 75, .5); }
.rank-n.top2 { background: linear-gradient(135deg, #f1f1f4, #a9a9b6); color: #222; }
.rank-n.top3 { background: linear-gradient(135deg, #f0b48a, #b8693a); color: #2a1200; }
.rank-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,.06); margin-top: 7px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--grad); }
main.enter .rank-bar i { animation: grow .9s var(--ease) both .2s; transform-origin: left; }
.item.rank.me { background: linear-gradient(90deg, rgba(236, 65, 137, .1), transparent); }

/* ---------- quedada, vestuario y ensayos ---------- */
.meet-card { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 14px 14px 14px 16px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(120deg, #b65bf0, #ec4189); box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.meet-card .mc-time { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.3); }
.meet-card .fl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.meet-card .fv { font-weight: 700; font-size: 16px; }
.meet-card .btn { width: 40px; padding: 0; flex: none; }
.fact .fi:not(:has(svg)) { font-size: 16px; }
.outfit-btn { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; padding: 0; border: 1px solid var(--line-2); flex: none; background: var(--surface-3); }
.outfit-btn img { width: 100%; height: 100%; object-fit: cover; }
.outfit-thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line-2); }
.outfit-chip { display: inline-flex; margin-top: 12px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(9, 8, 11, .45); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .hero-meta .hl { color: #fff; font-weight: 650; }
.hero .hero-meta .hl svg { color: var(--pink-soft); opacity: 1; }
.item .sub.meet { color: var(--violet-soft); font-weight: 600; }
.kind-tag { display: inline-block; vertical-align: 2px; margin-right: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: rgba(164, 91, 214, .2); color: var(--violet-soft); }
.item.ensayo .datetile { background: linear-gradient(180deg, rgba(164, 91, 214, .22), rgba(164, 91, 214, .08)); border-color: rgba(164, 91, 214, .3); }
.item.ensayo .datetile .m { color: var(--violet-soft); }
#act-form.is-ensayo .only-acto { display: none; }
#kind-seg button svg { width: 15px; height: 15px; }

/* ---------- tablón ---------- */
.icon-pill { position: relative; }
.icon-pill.cur { color: var(--pink-soft); border-color: rgba(236, 65, 137, .4); }
.icon-pill .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); animation: pop .4s var(--ease); }
.board { display: grid; gap: 10px; }
.board-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.notice, .poll { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 16px; box-shadow: var(--hi), var(--shadow); }
.notice.pinned { border-color: rgba(236, 65, 137, .35); background: linear-gradient(160deg, rgba(236, 65, 137, .12), var(--surface) 60%); }
.notice h3, .poll h3 { font-size: 17px; line-height: 1.25; margin: 6px 0 0; }
.notice p { margin: 6px 0 0; color: #ddd6e2; font-size: 14.5px; white-space: pre-wrap; line-height: 1.5; }
.notice p.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.n-head .icon-btn { margin: -6px -8px -6px auto; padding: 6px; }
.n-pin { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-soft); }
.n-pin svg { width: 13px; height: 13px; }
.poll-tag { color: var(--violet-soft); }
.n-meta { font-size: 12px; color: var(--faint); font-weight: 600; }
.poll-opts { display: grid; gap: 7px; margin-top: 12px; }
.poll-opt { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 12px; text-align: left;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-3); font-weight: 600; font-size: 15px; transition: border-color .2s, transform .15s var(--ease); }
.poll-opt:active:not([disabled]) { transform: scale(.98); }
.poll-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; width: var(--w); background: rgba(164, 91, 214, .22); border-radius: inherit; transition: width .6s var(--ease); }
.poll-opt.lead::before { background: linear-gradient(90deg, rgba(182, 91, 240, .4), rgba(236, 65, 137, .35)); }
.poll-opt.on { border-color: rgba(236, 65, 137, .7); }
.po-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.poll-opt.on .po-check { background: var(--grad); border-color: transparent; color: #fff; }
.po-check svg { width: 13px; height: 13px; stroke-width: 3; }
.po-txt { flex: 1; min-width: 0; }
.po-faces { display: flex; }
.po-faces .avatar { width: 22px; height: 22px; font-size: 9px; margin-left: -6px; border: 2px solid var(--surface-3); }
.po-n { font-family: var(--display); font-weight: 800; min-width: 18px; text-align: right; }
.poll.closed { opacity: .75; }
.link-plain { display: inline-flex; align-items: center; gap: 2px; color: var(--pink-soft) !important; }
.opt-row { display: flex; gap: 6px; align-items: center; }

/* ---------- Bizum ---------- */
.pay-row { gap: 8px; }
.btn.bizum { flex: none; background: linear-gradient(135deg, #1fc3c5, #0aa0b0); border-color: transparent; color: #fff; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(31, 195, 197, .6); }
.bizum-card { display: grid; justify-items: center; gap: 6px; padding: 8px 0 18px; text-align: center; }
.bz-amt { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin-top: 8px; background: linear-gradient(135deg, #5ee7e9, #1fc3c5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bz-to { color: var(--muted); font-weight: 600; }

/* ---------- en línea y avisos vistos ---------- */
.avatar.online { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ok); }
.member-card.online .pick-img { box-shadow: inset 0 0 0 2px var(--ok), var(--shadow); }
.online-strip { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 14px 2px 0; }
.online-strip .faces .avatar { width: 30px; height: 30px; font-size: 10px; }
.seen-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }
.seen-row > span:not(.faces) { flex: 1; display: inline-flex; align-items: center; gap: 5px; }
.seen-row svg { width: 14px; height: 14px; }
.seen-row b { color: var(--ok); }
.seen-row .faces .avatar { width: 24px; height: 24px; font-size: 9px; }
.seen-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seen-split > div { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.seen-split b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.seen-split > div:first-child b { color: var(--ok); }
.seen-split > div:last-child b { color: var(--warn); }
.seen-split span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- interruptores (qué avisos quiero) ---------- */
.toggle-row { cursor: pointer; }
input.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .25s; cursor: pointer; margin: 0; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .25s var(--ease); }
input.switch:checked { background: var(--grad); border-color: transparent; }
input.switch:checked::after { transform: translateX(20px); }

/* ---------- cumpleaños ---------- */
.bday { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 14px 16px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(120deg, #8a2bd0, #ec4189 60%, #ff9a5a); box-shadow: var(--glow); }
.bday .grow b { display: block; font-size: 16px; }
.bday .grow span { font-size: 13px; opacity: .9; }
.bday .faces .avatar { border-color: #b6359a; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 7px; height: 12px; border-radius: 2px; background: var(--c); opacity: .9; animation: fall 3s linear var(--d) infinite; }
@keyframes fall { to { transform: translateY(110px) rotate(540deg); opacity: 0; } }

/* ---------- medallas ---------- */
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medal { display: grid; justify-items: center; gap: 3px; padding: 14px 6px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: center; filter: grayscale(1); opacity: .45; }
.medal span { font-size: 30px; line-height: 1; }
.medal b { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.medal small { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.medal.got { filter: none; opacity: 1; border-color: rgba(236, 65, 137, .3); background: linear-gradient(180deg, rgba(236, 65, 137, .12), var(--surface)); box-shadow: var(--hi); }
.medal.got span { filter: drop-shadow(0 4px 10px rgba(236, 65, 137, .45)); }

/* ---------- músico del mes ---------- */
.mvp { margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(251, 191, 75, .3); background: linear-gradient(150deg, rgba(251, 191, 75, .12), var(--surface) 55%); box-shadow: var(--hi), var(--shadow); }
.mvp-last { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.mvp-last .avatar.xl { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 3px #fbbf4b, 0 0 24px rgba(251, 191, 75, .5); }
.mvp-last .lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); }
.mvp-last b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mvp-last small { color: var(--muted); font-size: 12px; }
.mvp-now { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mvp-now b { display: block; font-size: 15px; }
.mvp-now span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.member-card.chosen .pick-img { box-shadow: inset 0 0 0 3px #fbbf4b, 0 10px 30px -10px rgba(251, 191, 75, .6); }
.mc-badge { position: absolute; z-index: 2; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(9, 8, 11, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- recuerdos ---------- */
.memory { position: relative; display: grid; gap: 3px; overflow: hidden; isolation: isolate; padding: 18px; min-height: 120px; align-content: end; border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(182, 91, 240, .25), rgba(236, 65, 137, .12) 60%, var(--surface)); border: 1px solid rgba(182, 91, 240, .3); box-shadow: var(--hi), var(--shadow); }
.memory.has-photo { min-height: 190px; }
.memory > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.85); }
.memory.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 8, 11, .1), rgba(9, 8, 11, .88)); }
.memory .lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-soft); }
.memory b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.memory small { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------- ficha pública de un músico ---------- */
.member-sheet { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.ms-photo { position: relative; width: 120px; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.ms-photo img, .ms-photo > span:first-child { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-family: var(--display); font-size: 36px; font-weight: 800; color: #fff; }
.ms-online { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; color: var(--ok); background: rgba(9, 8, 11, .7); padding: 3px 8px; border-radius: 99px; }
.ms-info { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ms-info b { font-family: var(--display); font-size: 20px; color: var(--text); letter-spacing: -.02em; }

/* ---------- el tiempo ---------- */
.weather { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(140deg, rgba(91, 170, 240, .14), var(--surface) 60%); border: 1px solid rgba(91, 170, 240, .25); box-shadow: var(--hi), var(--shadow); }
.weather.in { animation: rise .45s var(--ease); }
.wx-main { display: flex; align-items: center; gap: 14px; }
.wx-emo { font-size: 42px; line-height: 1; flex: none; }
.wx-main .fl { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9fcdf6; }
.wx-main b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.wx-main span { font-size: 13px; color: var(--muted); }
.wx-tips { display: grid; gap: 6px; margin-top: 12px; }
.wx-tips span { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 12px; background: rgba(251, 191, 75, .1); border: 1px solid rgba(251, 191, 75, .22); color: #ffe2a6; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chips:empty { display: none; }
.wx-chip:empty { display: none; }
.wx-chip.in { animation: pop .4s var(--ease); }

/* ---------- mapa de la temporada ---------- */
.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--hi), var(--shadow); background: #0d0c10; }
#season-map { height: 360px; width: 100%; background: #0d0c10; }
.map-status { position: absolute; z-index: 500; left: 50%; bottom: 12px; translate: -50% 0; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(9, 8, 11, .8); color: var(--muted); white-space: nowrap; }
.map-status:empty { display: none; }
.map-dot { filter: drop-shadow(0 0 8px rgba(236, 65, 137, .8)); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2) !important; color: var(--text) !important; }
.leaflet-popup-content { font-family: var(--font); font-size: 13px; line-height: 1.6; }
.leaflet-popup-content a { color: var(--pink-soft) !important; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { background: rgba(9, 8, 11, .7) !important; color: var(--faint) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ---------- caja (el bote) ---------- */
.cash-card .val.neg { color: var(--bad); }
.cash-chart { display: block; width: 100%; height: 110px; margin: 14px 0 4px; overflow: visible; }
main.enter .cash-chart .cc-line { stroke-dasharray: 1200; animation: draw 1.4s var(--ease) both .2s; }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.cash-proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); }
.cash-proj span { display: block; font-size: 11px; opacity: .75; font-weight: 600; }
.cash-proj b { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.month-sep { padding: 10px 16px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); background: var(--bg-2); border-top: 1px solid var(--line); }
.list > .month-sep:first-child { border-top: 0; }
.item.mov { min-height: 62px; }
.mov-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 18px; background: var(--surface-3); }
.mov-ico.in { background: rgba(52, 211, 153, .12); }
.mov-ico.out { background: rgba(236, 65, 137, .12); }
.cash-link { border-color: rgba(52, 211, 153, .3); background: linear-gradient(120deg, rgba(52, 211, 153, .12), rgba(164, 91, 214, .06) 60%, var(--surface)); }
.cash-link .fl-ico { background: linear-gradient(135deg, #34d399, #1fa97a); box-shadow: 0 10px 30px -10px rgba(52, 211, 153, .6); }

/* ---------- facturas y presupuestos (editor) ---------- */
.doc-line { padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.doc-line textarea.input { min-height: 60px; }
.doc-line-nums { display: grid; grid-template-columns: 70px auto 1fr auto; align-items: center; gap: 8px; margin-top: 8px; }
.doc-line-nums span { color: var(--faint); }
.doc-totals { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.doc-totals > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.doc-totals b { color: var(--text); font-family: var(--display); }
.doc-totals .tot { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 17px; color: var(--text); }
.doc-totals .tot b { color: var(--pink-soft); font-size: 20px; }

/* ---------- impresión de facturas y presupuestos ---------- */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  #print-root { color: #1a1320; font-family: "Inter", Arial, sans-serif; font-size: 11pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc { max-width: 180mm; margin: 0 auto; }
  .doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 14px; border-bottom: 3px solid #ec4189; }
  .doc-brand { display: flex; align-items: center; gap: 12px; }
  .doc-brand img { width: 62px; height: 62px; border-radius: 50%; }
  .doc-brand b { display: block; font-family: "Russo One", sans-serif; font-weight: 400; font-size: 20pt; letter-spacing: .02em; color: #1a1320; }
  .doc-brand span { font-size: 8pt; font-weight: 800; letter-spacing: .35em; color: #ec4189; }
  .doc-from { text-align: right; font-size: 9pt; color: #5d5266; line-height: 1.5; }
  .doc-title { display: flex; justify-content: space-between; align-items: flex-end; margin: 22px 0 18px; }
  .doc-title h1 { font-family: "Inter Tight", "Inter", sans-serif; font-size: 30pt; font-weight: 800; letter-spacing: -.03em; margin: 0; color: #1a1320; text-transform: uppercase; }
  .doc-title > div { display: grid; grid-template-columns: auto auto; gap: 2px 10px; font-size: 10pt; text-align: right; }
  .doc-title span { color: #8a7f93; }
  .doc-client { padding: 12px 14px; border-radius: 8px; background: #f7f1f8; border-left: 4px solid #ec4189; font-size: 10pt; line-height: 1.5; color: #3b3142; }
  .doc-client span { display: block; font-size: 8pt; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #ec4189; }
  .doc-client b { display: block; font-size: 12pt; color: #1a1320; }
  .doc-table { width: 100%; border-collapse: collapse; margin: 20px 0 10px; font-size: 10pt; }
  .doc-table th { text-align: left; font-size: 8pt; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #1a1320; padding: 8px 10px; }
  .doc-table td { padding: 10px; border-bottom: 1px solid #ebe3ee; vertical-align: top; }
  .doc-table th:not(:first-child), .doc-table td:not(:first-child) { text-align: right; white-space: nowrap; }
  .doc-sum { margin-left: auto; width: 75mm; font-size: 10pt; }
  .doc-sum > div { display: flex; justify-content: space-between; padding: 5px 0; color: #5d5266; }
  .doc-sum .tot { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: #ec4189; color: #fff; font-size: 13pt; font-weight: 800; }
  .doc-notes { margin-top: 22px; font-size: 9.5pt; color: #5d5266; white-space: pre-wrap; }
  .doc-foot { margin-top: 30px; padding-top: 10px; border-top: 1px solid #ebe3ee; font-size: 8.5pt; color: #8a7f93; text-align: center; }
}

/* ---------- afinador ---------- */
.tuner { padding: 20px 18px; border-radius: var(--r-xl); text-align: center; background: var(--grad-deep); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--hi), var(--shadow-lg); transition: background .4s, box-shadow .4s; }
.tn-gauge { width: 100%; max-width: 320px; display: block; margin: 0 auto; }
#tn-needle { transition: transform .12s linear; }
.tn-note { font-family: var(--display); font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.04em; margin-top: -6px; transition: color .3s, text-shadow .3s; }
.tn-note small { font-size: 26px; color: var(--muted); margin-left: 4px; }
.tn-info { display: grid; gap: 2px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.tn-info #tn-hz { font-size: 12px; color: var(--faint); }
.tuner.on { border-color: rgba(255,255,255,.18); }
.tuner.near .tn-note { color: var(--warn); }
.tuner.ok { background: linear-gradient(150deg, rgba(52, 211, 153, .3), #102a20 60%, #0b1712); box-shadow: 0 0 0 1px rgba(52, 211, 153, .4), 0 30px 70px -25px rgba(52, 211, 153, .5); }
.tuner.ok .tn-note { color: var(--ok); text-shadow: 0 0 30px rgba(52, 211, 153, .6); }
.tuner.ok #tn-cents { color: var(--ok); }

/* ---------- estudio: historias y vídeo ---------- */
.studio-prev { position: relative; margin: 0 auto; border-radius: 22px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; }
.story-prev, .video-prev { width: min(260px, 70vw); aspect-ratio: 9 / 16; }
.studio-prev img, .studio-prev video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-wait { display: grid; justify-items: center; gap: 12px; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); width: 100%; }
.st-wait > svg { width: 30px; height: 30px; color: var(--pink-soft); animation: spin 1s linear infinite; }

/* ---------- solicitudes de clientes ---------- */
.notice.request p { white-space: pre-wrap; }
.req-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.req-actions .btn svg { width: 15px; height: 15px; }

/* ---------- bienvenida: elegir xaranga / entrar / crear ---------- */
.welcome { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; }
.w-glow { position: absolute; inset: -30% -20% auto; height: 80vh; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 50% at 30% 40%, rgba(182, 91, 240, .45), transparent 70%), radial-gradient(40% 45% at 75% 30%, rgba(236, 65, 137, .4), transparent 70%);
  filter: blur(30px); animation: wFloat 12s ease-in-out infinite alternate; }
@keyframes wFloat { to { transform: translate3d(4%, 6%, 0) scale(1.08); } }
.w-body { width: min(460px, 100%); margin: 0 auto; padding: calc(env(safe-area-inset-top) + 48px) 20px calc(env(safe-area-inset-bottom) + 40px); }
.w-body > * { animation: rise .6s var(--ease) both; }
.w-body > *:nth-child(2) { animation-delay: .06s; } .w-body > *:nth-child(3) { animation-delay: .12s; } .w-body > *:nth-child(4) { animation-delay: .18s; } .w-body > *:nth-child(n+5) { animation-delay: .24s; }
.w-mark { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.3); transform: rotate(-8deg); }
.w-mark svg { width: 30px; height: 30px; color: #fff; }
.w-title { font-family: var(--display); font-size: clamp(40px, 12vw, 54px); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin: 26px 0 0; }
.w-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-sub { color: var(--muted); font-size: 15.5px; margin: 14px 0 26px; max-width: 34ch; }
.w-search .input { min-height: 54px; border-radius: 18px; background: rgba(255,255,255,.04); }
.w-list { display: grid; gap: 8px; margin: 14px 0 18px; }
.w-loading { display: grid; place-items: center; padding: 30px; color: var(--muted); }
.w-loading svg { width: 24px; height: 24px; animation: spin 1s linear infinite; }
.w-band { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; text-align: left; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 14%, transparent), var(--surface) 55%); box-shadow: var(--hi); animation: rise .5s var(--ease) both calc(var(--i) * 40ms); transition: transform .15s var(--ease), border-color .2s; }
.w-band:active { transform: scale(.98); }
.w-band:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.w-band b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.w-band small { color: var(--muted); font-size: 13px; }
.w-band > svg { width: 18px; height: 18px; color: var(--faint); }
.w-logo { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #000)); box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 8px 20px -8px var(--c); }
.w-logo img { width: 100%; height: 100%; object-fit: cover; }
.w-logo b { font-family: var(--display); font-weight: 800; color: #fff; font-size: 18px; }
.w-logo.xl { width: 120px; height: 120px; margin: 0 auto; box-shadow: 0 0 0 3px rgba(255,255,255,.1), 0 0 0 10px color-mix(in srgb, var(--c) 15%, transparent), 0 24px 60px -12px var(--c); }
.w-logo.xl b { font-size: 40px; }
.w-create { min-height: 52px; border-style: dashed; background: transparent; }
.w-back { margin: 0 0 18px -6px; background: none; border: 0; cursor: pointer; }
.w-bandhead { text-align: center; margin: 4px 0 26px; }
.w-bandhead h1 { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 18px 0 2px; }
.w-bandhead p { color: var(--muted); margin: 0; }
.w-codebox { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--hi), var(--shadow-lg); }
.w-code { font-size: 24px !important; letter-spacing: .35em; text-align: center; min-height: 60px !important; }
.w-codebox.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.w-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.w-colors input { position: absolute; opacity: 0; pointer-events: none; }
.w-colors i { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px transparent; transition: box-shadow .2s, transform .15s var(--ease); cursor: pointer; }
.w-colors input:checked + i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c), 0 6px 18px -4px var(--c); transform: scale(1.08); }

/* =====================================================================
   SOCIAL
   ===================================================================== */
.w-logo.xs { width: 20px; height: 20px; box-shadow: none; }
.w-logo.xs b { font-size: 8px; }
.w-logo.sm { width: 36px; height: 36px; }
.w-logo.sm b { font-size: 13px; }
.w-logo.md { width: 62px; height: 62px; }
.w-logo.md b { font-size: 21px; }
.w-logo.lg { width: 76px; height: 76px; }
.w-logo.lg b { font-size: 26px; }

.soc-head { margin-bottom: 14px; }
.soc-tabs { margin: 4px 0 16px; }

/* historias */
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 4px 16px 8px; }
.stories::-webkit-scrollbar { display: none; }
.story-bubble { flex: none; display: grid; justify-items: center; gap: 6px; width: 72px; background: none; border: 0; padding: 0; color: var(--text); transition: transform .15s var(--ease); }
.story-bubble:active { transform: scale(.93); }
.sb-ring { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #ffd36b, #ec4189, #b65bf0, #ec4189, #ffd36b); animation: ringSpin 6s linear infinite; }
.sb-ring > .w-logo { width: 100%; height: 100%; box-shadow: 0 0 0 3px var(--bg); animation: ringSpin 6s linear infinite reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.story-bubble.seen .sb-ring, .story-bubble.add .sb-ring { background: var(--line-2); animation: none; }
.story-bubble.seen .sb-ring > .w-logo, .story-bubble.add .sb-ring > .w-logo { animation: none; }
.story-bubble.add .sb-ring > i { position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; border: 3px solid var(--bg); }
.story-bubble.add .sb-ring > i svg { width: 12px; height: 12px; color: #fff; stroke-width: 3; }
.story-bubble small { max-width: 72px; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stories-empty { align-self: center; font-size: 13px; color: var(--faint); padding-left: 4px; }
.story-bubble.sk .sb-ring { background: var(--surface-2); animation: none; }
.story-bubble.sk small { width: 46px; height: 8px; border-radius: 4px; background: var(--surface-2); }

/* visor de historias */
.story-viewer { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none;
  transform-origin: var(--ox, 50%) var(--oy, 20%); animation: svIn .35s var(--ease); transition: transform .2s; }
@keyframes svIn { from { transform: scale(.2); opacity: 0; border-radius: 50%; } }
.story-viewer.out { animation: svOut .22s ease-in forwards; }
@keyframes svOut { to { transform: scale(.9); opacity: 0; } }
.sv-bars { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 10px); left: 10px; right: 10px; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.sv-bars b { display: block; height: 100%; background: #fff; }
.sv-head { position: absolute; z-index: 3; top: calc(env(safe-area-inset-top) + 22px); left: 12px; right: 8px; display: flex; align-items: center; gap: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.sv-head div { flex: 1; min-width: 0; }
.sv-head b { display: block; font-size: 14.5px; }
.sv-head small { font-size: 12px; opacity: .8; }
.sv-btn { background: none; border: 0; color: #fff; padding: 8px; display: grid; place-items: center; }
.sv-btn svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.sv-media { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.sv-media::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--bg, none) center/cover; filter: blur(34px) brightness(.55) saturate(1.3); }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: contain; animation: svZoom 5s linear both; }
@keyframes svZoom { from { transform: scale(1.04); } }
.story-viewer.held .sv-bars, .story-viewer.held .sv-head, .story-viewer.held .sv-cap { opacity: 0; transition: opacity .2s; }
.sv-cap { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 70px); margin: 0; text-align: center; font-family: var(--display); font-size: 22px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.sv-tap { position: absolute; z-index: 2; top: 80px; bottom: 80px; }
.sv-tap.l { left: 0; width: 33%; } .sv-tap.r { right: 0; width: 67%; }
.sv-seen { position: absolute; z-index: 3; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; }
.sv-seen svg { width: 15px; height: 15px; }

/* feed */
.feed { display: grid; gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--hi), var(--shadow); }
.post-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 14px; }
.post-band { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.post-band b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.post-band small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-media { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.pm-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pm-track::-webkit-scrollbar { display: none; }
.pm-track > * { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.pm-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pm-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.pm-dots i.on { background: #fff; transform: scale(1.2); }
.pm-count { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 3px 9px; }
.pm-heart { position: absolute; left: 50%; top: 50%; font-size: 96px; transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none; filter: drop-shadow(0 8px 30px rgba(236,65,137,.7)); }
.pm-heart.go { animation: heartBurst .8s var(--ease); }
@keyframes heartBurst { 15% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(.95); } 45%, 75% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1.1); opacity: 0; } }
.post-actions { display: flex; gap: 4px; padding: 8px 8px 0; }
.post-actions button { background: none; border: 0; padding: 8px; color: var(--text); display: grid; place-items: center; border-radius: 12px; }
.post-actions button svg { width: 25px; height: 25px; }
.pa-like svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.pa-like.on svg { fill: #ff3b6b; stroke: #ff3b6b; }
.pa-like.pop svg { animation: likePop .45s var(--ease); }
@keyframes likePop { 40% { transform: scale(1.3); } 70% { transform: scale(.9); } }
.post-body { padding: 2px 16px 16px; }
.post-likes { display: block; font-size: 14px; margin-bottom: 4px; }
.post-cap { margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.post-ccount { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; margin: 2px 0 4px; display: block; }
.post-body time { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.post.sk .post-media { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-line { height: 10px; border-radius: 6px; background: var(--surface-2); }
@keyframes shimmer { to { background-position: -200% 0; } }
.single-post .post { border: 0; box-shadow: none; border-radius: 0; margin: 0 -18px; background: transparent; }

/* publicar */
.new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.new-grid button { display: grid; justify-items: start; gap: 4px; text-align: left; padding: 16px; border-radius: 22px; background: var(--surface-3); border: 1px solid var(--line); transition: transform .15s var(--ease); }
.new-grid button:active { transform: scale(.97); }
.new-grid b { font-size: 16px; margin-top: 8px; }
.new-grid small { color: var(--muted); font-size: 12.5px; }
.nw-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; box-shadow: var(--glow); }
.nw-ico svg { width: 24px; height: 24px; }
.nw-ico.story { background: conic-gradient(from 210deg, #ffd36b, #ec4189, #b65bf0, #ffd36b); border-radius: 50%; }
.composer-media { position: relative; aspect-ratio: 4 / 5; max-height: 48dvh; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #000; }
.story-prev-box { position: relative; aspect-ratio: 9 / 16; max-height: 58dvh; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #000; }
.story-prev-box img, .story-prev-box video { width: 100%; height: 100%; object-fit: cover; }
.story-cap-in { position: absolute; left: 12px; right: 12px; bottom: 18px; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: 12px; color: #fff; font: 800 18px var(--display); text-align: center; }
.story-cap-in::placeholder { color: rgba(255,255,255,.65); }

/* comentarios */
.cm-list { display: grid; gap: 14px; max-height: 55dvh; overflow-y: auto; padding: 2px 2px 6px; }
.cm { display: flex; gap: 10px; align-items: flex-start; }
.cm p { margin: 0; font-size: 14.5px; line-height: 1.4; word-break: break-word; }
.cm small { font-size: 11.5px; color: var(--faint); }
.cm-band { font-size: 11.5px; color: var(--violet-soft); font-weight: 600; }
.cm-form { display: flex; align-items: center; gap: 8px; width: 100%; }
.cm-form .input { flex: 1; min-height: 44px; border-radius: 999px; }
.cm-form .btn { flex: none !important; width: 44px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--pink-soft); font: inherit; font-weight: 700; }

/* vacíos */
.soc-empty { text-align: center; padding: 36px 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--line-2); }
.soc-empty span { font-size: 44px; display: block; animation: floatY 3s ease-in-out infinite; }
.soc-empty b { display: block; font-size: 17px; margin-top: 10px; }
.soc-empty p { color: var(--muted); font-size: 14px; margin: 6px auto 16px; max-width: 30ch; }
.soc-empty.sm { padding: 24px 14px; border: 0; background: none; }
@keyframes floatY { 50% { transform: translateY(-8px) rotate(-4deg); } }
.soc-off { position: relative; text-align: center; padding: 40px 20px 30px; border-radius: var(--r-xl); background: var(--grad-deep); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.soc-off b { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.03em; margin-top: 70px; }
.soc-off p { color: rgba(255,255,255,.75); max-width: 32ch; margin: 8px auto 0; font-size: 14.5px; }
.soc-off-art { position: absolute; inset: 0 0 auto; height: 110px; }
.soc-off-art span { position: absolute; top: 30px; left: calc(14% + var(--i) * 17%); font-size: 34px; animation: floatY 2.6s ease-in-out infinite calc(var(--i) * -.5s); }
.soc-strip { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(90deg, rgba(182,91,240,.14), rgba(236,65,137,.08) 60%, var(--surface)); border: 1px solid rgba(236,65,137,.25); }
.soc-strip b { display: block; font-size: 14px; } .soc-strip small { display: block; font-size: 12.5px; color: var(--muted); }
.soc-strip > svg { width: 18px; height: 18px; color: var(--faint); }
.soc-strip .faces .w-logo { width: 28px; height: 28px; margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); } .soc-strip .faces .w-logo:first-child { margin-left: 0; }

/* agenda */
.agenda { display: grid; gap: 8px; }
.ag-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 12px 12px 12px; border-radius: 20px; background: linear-gradient(110deg, color-mix(in srgb, var(--c) 12%, transparent), var(--surface) 45%); border: 1px solid var(--line); box-shadow: var(--hi); transition: transform .15s var(--ease); }
.ag-item:active { transform: scale(.98); }
.ag-item > svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.ag-date { width: 52px; flex: none; text-align: center; padding: 7px 0 6px; border-radius: 15px; background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); }
.ag-date b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1; }
.ag-date span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ag-item .grow > b { display: block; font-size: 15.5px; font-weight: 700; }
.ag-item small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ag-item small svg { width: 13px; height: 13px; flex: none; }
.ag-band { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--text); }
#soc-map { height: 62dvh; min-height: 340px; width: 100%; background: #0d0c10; }
.dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6); }
.leaflet-container { background: #0d0c10 !important; font-family: var(--font) !important; }
.map-pin img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.map-pin { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c); border: 3px solid #fff; box-shadow: 0 6px 18px -4px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); }
.map-pin img { width: 100%; height: 100%; object-fit: cover; }
.map-pin b { color: #fff; font: 800 13px var(--display); }
.ev-head { display: flex; align-items: center; gap: 12px; }
.ev-head b { display: block; font-size: 16px; } .ev-head small { color: var(--muted); }

/* xarangas */
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.band-card { display: grid; justify-items: center; gap: 4px; padding: 18px 10px 14px; border-radius: 24px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--surface-2)), var(--surface)); border: 1px solid var(--line); box-shadow: var(--hi); transition: transform .15s var(--ease); }
.band-card:active { transform: scale(.97); }
.band-card b { font-size: 15px; margin-top: 8px; line-height: 1.2; }
.band-card small { color: var(--muted); font-size: 12.5px; }
.bc-stats { display: flex; gap: 6px; margin-top: 8px; }
.bc-stats i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 999px; padding: 3px 8px; }
.band-hero { position: relative; text-align: center; padding: 26px 16px 20px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--hi), var(--shadow-lg); }
.bh-logo { background: none; border: 0; padding: 4px; border-radius: 50%; }
.bh-logo.ring { background: conic-gradient(from 210deg, #ffd36b, #ec4189, #b65bf0, #ffd36b); }
.bh-logo .w-logo.xl { box-shadow: 0 0 0 4px var(--surface); margin: 0; }
.band-hero h1 { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 2px; }
.band-hero > p { margin: 0; color: var(--muted); }
.band-hero .bh-bio { color: rgba(255,255,255,.82); font-size: 14.5px; margin: 10px auto 0; max-width: 36ch; }
.bh-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 14px; }
.bh-stats b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.bh-stats span { font-size: 11.5px; color: var(--muted); }
.bh-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* publicar acto en Social */
.social-toggle { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: linear-gradient(110deg, rgba(182,91,240,.16), rgba(236,65,137,.08) 60%, var(--surface-2)); border: 1px solid rgba(236,65,137,.3); }
.social-toggle b { display: block; font-size: 15px; }
.social-toggle small { display: block; font-size: 12.5px; color: var(--muted); }
.st-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.st-ico svg { width: 20px; height: 20px; }
#act-form.is-ensayo .social-toggle { display: none; }
.i-ini { display: grid; place-items: center; background: var(--grad); font: 800 52px var(--display); color: #fff; }

/* ---------- intro de arranque (choque del logo en 0,75 s) ---------- */
#intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 60% at 50% 42%, #1a0b20 0%, #050407 70%); }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#intro .i-glow { position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 65, 137, .55) 0%, rgba(164, 91, 214, .3) 35%, transparent 68%); opacity: 0; filter: blur(10px);
  animation: iGlow 2.2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes iGlow { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: .5; transform: scale(.7); } 36% { opacity: 1; transform: scale(1.35); } 100% { opacity: .7; transform: scale(1); } }
#intro .i-stage { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -8vh; animation: iShake .4s linear .75s; }
@keyframes iShake { 20% { transform: translate(-6px, 4px); } 40% { transform: translate(5px, -5px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
#intro .i-logo { width: 136px; height: 136px; border-radius: 50%; position: relative; z-index: 2;
  box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 0 60px rgba(236, 65, 137, .7), 0 0 140px rgba(164, 91, 214, .5);
  animation: iLogo .75s cubic-bezier(.55, 0, .75, .3) both, iBreath 1.6s ease-in-out .9s infinite alternate; }
@keyframes iLogo {
  0% { opacity: 0; transform: scale(.12) rotate(-260deg); filter: blur(16px) brightness(2); }
  70% { opacity: 1; filter: blur(2px) brightness(1.4); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: none; } }
@keyframes iBreath { to { box-shadow: 0 0 0 2px rgba(255,255,255,.2), 0 0 80px rgba(236, 65, 137, .9), 0 0 180px rgba(164, 91, 214, .6); } }
#intro .i-ring { position: absolute; top: 0; left: 50%; width: 136px; height: 136px; margin-left: -68px; border-radius: 50%; border: 2px solid rgba(255, 143, 190, .9); opacity: 0; z-index: 1;
  box-shadow: 0 0 20px rgba(236, 65, 137, .8), inset 0 0 20px rgba(236, 65, 137, .5); animation: iShock 1s cubic-bezier(.1,.7,.3,1) .75s; }
#intro .i-ring.r2 { animation-delay: .86s; border-color: rgba(215, 178, 242, .8); }
#intro .i-ring.r3 { animation-delay: .98s; border-width: 1px; border-color: rgba(255,255,255,.7); }
@keyframes iShock { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
#intro .i-rays { position: absolute; top: 68px; left: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: 0; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(236, 65, 137, .22) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 60%); mask: radial-gradient(circle, #000 0%, transparent 60%);
  animation: iRays 2s ease-out .75s forwards; }
@keyframes iRays { 0% { opacity: 0; transform: rotate(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: .55; transform: rotate(40deg) scale(1); } }
#intro .i-sub { margin-top: 26px; font-size: 12px; font-weight: 800; color: var(--pink-soft); letter-spacing: .2em; opacity: 0; position: relative; z-index: 2;
  animation: iSub .8s cubic-bezier(.2,.8,.2,1) 1s forwards; }
@keyframes iSub { to { opacity: 1; letter-spacing: .6em; } }
#intro .i-title { margin-top: 8px; font-family: var(--brand); font-size: clamp(28px, 9vw, 40px); color: #fff; white-space: nowrap; position: relative; z-index: 2; letter-spacing: .02em; }
#intro .i-title span { display: inline-block; opacity: 0; animation: iGlitch .55s steps(1, end) calc(1.05s + var(--i) * 45ms) forwards; }
@keyframes iGlitch {
  0% { opacity: 1; transform: translate(-6px, -10px) skewX(-20deg); text-shadow: -4px 0 #ec4189, 4px 0 #43e0ff; clip-path: inset(0 0 55% 0); }
  20% { transform: translate(5px, 3px); text-shadow: 3px 0 #ec4189, -3px 0 #43e0ff; clip-path: inset(40% 0 0 0); }
  40% { transform: translate(-2px, 0) skewX(10deg); text-shadow: -2px 0 #ec4189, 2px 0 #43e0ff; clip-path: inset(10% 0 30% 0); }
  60% { transform: translate(1px, 0); text-shadow: 1px 0 #ec4189, -1px 0 #43e0ff; clip-path: none; }
  100% { opacity: 1; transform: none; text-shadow: 0 0 24px rgba(236, 65, 137, .6); clip-path: none; } }
#intro .i-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, #fff 0%, rgba(255, 210, 235, .9) 30%, rgba(236, 65, 137, .4) 70%); opacity: 0; pointer-events: none; z-index: 5;
  animation: iFlash .5s ease-out .74s; }
@keyframes iFlash { 0% { opacity: 0; } 8% { opacity: .9; } 100% { opacity: 0; } }
#intro.out { animation: iOut .45s cubic-bezier(.6, 0, .8, .4) forwards; }
@keyframes iOut { to { opacity: 0; transform: scale(1.12); filter: blur(8px); } }
#intro.calm *, #intro.calm { animation: none !important; }
#intro.calm .i-logo, #intro.calm .i-sub, #intro.calm .i-title span { opacity: 1; }
#intro.calm.out { opacity: 0; transition: opacity .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
