/* BARRAS — estilos */
:root {
  --bg: #0a0a0b;
  --s1: #141417;
  --s2: #1c1c21;
  --s3: #27272e;
  --line: #2a2a31;
  --tx: #f4f4f5;
  --mu: #9b9ba5;
  --ac: #f5c518;
  --ac-tx: #121212;
  --red: #ff3b5c;
  --ok: #22c55e;
  --warn: #f59e0b;
  --info: #a78bfa;
  --r: 16px;
  --nav: 62px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #2a2108 0%, transparent 60%), #050506;
  color: var(--tx);
  font: 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
img:not([src]), video:not([src]) { visibility: hidden; }
h1, h2, h3, h4, p { margin: 0; }
small { color: var(--mu); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--mu); }
.small { font-size: 13px; }
.txt-ac { color: var(--ac); }
.txt-warn { color: var(--warn); }
.txt-bad { color: var(--red); }
.pad { padding: 14px 16px 24px; }
.pad-x { padding-left: 16px; padding-right: 16px; }

/* ---------- marco de la app ---------- */
.app-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 600px) {
  .app-frame {
    height: min(calc(100dvh - 40px), 920px);
    margin-top: max(20px, calc((100dvh - 920px) / 2));
    border-radius: 34px;
    border: 1px solid #26262d;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 10px #0d0d0f;
  }
}
.main { position: absolute; inset: 0; display: flex; flex-direction: column; }
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.is-reels .screen { overflow: hidden; }

/* ---------- topbar y nav ---------- */
.topbar {
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, .92);
}
.logo, .brand-logo {
  font-family: var(--display); letter-spacing: .04em; font-size: 26px; line-height: 1;
  background: linear-gradient(180deg, #ffe066, var(--ac) 60%, #c79a00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tb-title { font-size: 19px; font-weight: 800; }
.tb-actions { display: flex; gap: 2px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; position: relative; }
.icon-btn:hover { background: var(--s2); }
.icon-btn svg { width: 24px; height: 24px; }
.dot {
  position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 9px; font: 700 10px/17px Inter, sans-serif; font-style: normal; text-align: center;
}
.bottomnav {
  height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  flex-shrink: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #0b0b0d; border-top: 1px solid var(--line); position: relative; z-index: 30;
}
.nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--mu); font-size: 10.5px; font-weight: 600; }
.nav-btn svg { width: 25px; height: 25px; }
.nav-btn.active { color: var(--tx); }
.nav-btn.active svg { color: var(--ac); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--s3); color: var(--tx); transition: transform .1s, filter .15s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ac); color: var(--ac-tx); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--s2); }
.btn-lg { height: 52px; font-size: 16px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.link { color: var(--ac); font-weight: 600; font-size: 13.5px; }
.chev { color: var(--mu); font-size: 22px; line-height: 1; }

/* ---------- auth ---------- */
.auth { position: absolute; inset: 0; overflow-y: auto; }
.auth-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(circle at 50% 20%, #3b2f05, transparent 60%);
}
.auth-bg span { font-family: var(--display); font-size: 150px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(245, 197, 24, .12); white-space: nowrap; transform: rotate(-8deg) translateX(-20px); }
.auth-inner { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 40px 18px 28px; }
.brand { text-align: center; margin-bottom: auto; padding-top: 12vh; }
.brand-logo { font-size: 72px; }
.brand p { color: var(--mu); margin-top: 6px; font-weight: 500; }
.auth-actions { display: grid; gap: 10px; }
.auth-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.roles { display: grid; gap: 10px; }
.role-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: rgba(28, 28, 33, .9); border: 1px solid var(--line); transition: border-color .15s; }
.role-card:hover { border-color: var(--ac); }
.role-card b { display: block; font-size: 16px; }
.role-card small { display: block; margin-top: 2px; }
.role-ico { font-size: 28px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--s3); border-radius: 14px; flex-shrink: 0; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.auth .card { background: rgba(20, 20, 23, .95); }
.login details { margin-top: 8px; }
.login summary { cursor: pointer; color: var(--mu); padding: 8px 0; font-size: 14px; }
.login .link { margin-top: 10px; }
.hint { font-size: 12.5px; color: var(--mu); }

/* ---------- formularios ---------- */
.form { display: grid; gap: 14px; }
.form-head { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.form-head .role-ico { width: 40px; height: 40px; font-size: 22px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12.5px; font-weight: 600; color: var(--mu); }
.fld input, .fld textarea, .sel, .inline-form input, .cmt-form input {
  width: 100%; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none;
}
.fld input:focus, .fld textarea:focus, .sel:focus, .inline-form input:focus, .cmt-form input:focus { border-color: var(--ac); }
.fld textarea { resize: vertical; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sel { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mu) 50%), linear-gradient(135deg, var(--mu) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.sel-sm { padding: 7px 30px 7px 10px; font-size: 13px; width: auto; max-width: 170px; }
.sel-scope { margin-bottom: 12px; }
.avatar-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.avatar-pick small { color: var(--ac); font-weight: 600; }

/* ---------- avatares y badges ---------- */
.av { --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 35%, #000)); color: #111; font-weight: 800; font-size: calc(var(--s) * .36); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-sm { --s: 36px; }
.av-md { --s: 48px; }
.av-lg { --s: 64px; }
.av-xl { --s: 86px; }
.ring { padding: 2.5px; border-radius: 50%; background: conic-gradient(var(--lc), color-mix(in srgb, var(--lc) 30%, #000), var(--lc)); flex-shrink: 0; }
.ring > .av { border: 2.5px solid var(--bg); }
.lvl { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent); white-space: nowrap; }
.lvl-sm { font-size: 11px; padding: 2px 7px; }
.lvl-org { --lc: #22d3ee; }
.verified { color: #22d3ee; font-size: .8em; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, .55); border: 1px solid; backdrop-filter: blur(6px); }
.badge-ok { color: var(--ok); border-color: rgba(34, 197, 94, .45); }
.badge-warn { color: var(--warn); border-color: rgba(245, 158, 11, .45); }
.badge-off { color: var(--mu); border-color: var(--line); }
.badge-info { color: var(--info); border-color: rgba(167, 139, 250, .45); }
.badge-done { color: var(--tx); border-color: var(--line); }
.badge-dist { color: var(--tx); border-color: var(--line); }
.badge-num { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; }
.pill { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.pill-ok { background: rgba(34, 197, 94, .12); color: var(--ok); }
.pill-wait { background: rgba(245, 158, 11, .12); color: var(--warn); }
.pill-bad { background: rgba(255, 59, 92, .12); color: var(--red); }
.prog { height: 6px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ac); border-radius: 4px; transition: width .4s; }

/* ---------- inicio ---------- */
.hero-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, #1d1a0d, var(--s1) 60%); border: 1px solid #3a320f; margin-bottom: 18px; }
.hero-org { background: linear-gradient(135deg, #0b2228, var(--s1) 60%); border-color: #164650; }
.hero-hi { font-weight: 800; font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--mu); margin: 4px 0 8px; }
.sec { margin-top: 26px; }
.sec > h3, .card > h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-head h2 { font-size: 19px; font-weight: 800; }
.sub-head { font-size: 13px; font-weight: 700; color: var(--mu); margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 13px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--ac); color: var(--ac-tx); border-color: var(--ac); }
.geo-row { font-size: 13px; color: var(--mu); margin: -4px 0 12px; }
.events { display: grid; gap: 14px; }

/* tarjeta de evento */
.ev-card { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ev-poster {
  position: relative; cursor: pointer; padding: 14px 16px 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--c) 65%, transparent), transparent 62%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 10px), linear-gradient(135deg, #1b1b20, #0d0d10);
}
.ev-top { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.ev-kicker { font-size: 12px; font-weight: 700; color: var(--c, var(--ac)); text-transform: uppercase; letter-spacing: .06em; }
.ev-title { font-family: var(--display); font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; margin-top: 4px; }
.ev-poster-big { min-height: 190px; padding-top: 60px; }
.ev-poster-big .ev-title { font-size: 44px; }
.ev-poster-sm { min-height: 120px; border-radius: 16px; margin-bottom: 4px; }
.ev-poster-sm .ev-kicker { color: var(--mu); text-transform: none; letter-spacing: 0; margin-top: 6px; }
.ev-body { padding: 14px 16px 6px; cursor: pointer; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13.5px; margin-bottom: 12px; }
.ev-grid .span2 { grid-column: span 2; }
.plazas { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; margin: 4px 0 8px; }
.plazas-top { display: flex; justify-content: space-between; color: var(--mu); }
.ev-foot { padding: 6px 16px 16px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-cta { margin-bottom: 14px; }

/* podio */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative; min-width: 0; }
.pod b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.pod small { font-size: 12px; }
.pod-step { width: 100%; margin-top: 6px; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; background: var(--s2); border: 1px solid var(--line); }
.pod-1 .pod-step { height: 74px; background: linear-gradient(180deg, #4a3b07, #1c1708); border-color: #6b560e; color: var(--ac); }
.pod-2 .pod-step { height: 54px; color: #d4d4d8; }
.pod-3 .pod-step { height: 40px; color: #d08b4a; }
.crown { font-size: 22px; margin-bottom: -6px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.org-mini { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 10px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.org-mini b { font-size: 13.5px; line-height: 1.2; }
.org-mini small { font-size: 11.5px; }

/* ---------- reels ---------- */
.reels-wrap { position: relative; height: 100%; }
.reel-filters { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 4px; padding: 14px 10px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.rf { padding: 6px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.rf.on { color: #fff; background: rgba(255, 255, 255, .16); }
.reels { height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--g); display: grid; place-items: center; }
.reel-bg { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-media { width: 100%; height: 100%; object-fit: cover; }
.reel-center { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 64px 120px 28px; text-align: center; }
.reel-type-big { font-size: 40px; opacity: .9; }
.reel-quote { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1.08; text-transform: uppercase; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.reel-center audio { width: 100%; max-width: 280px; }
.eq { display: flex; gap: 4px; align-items: end; height: 40px; }
.eq i { width: 5px; background: var(--ac); border-radius: 3px; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(odd) { animation-duration: .7s; }
.eq i:nth-child(3n) { animation-duration: 1.3s; }
@keyframes eq { from { height: 6px; } to { height: 40px; } }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .78)); }
.reel-side { position: absolute; right: 8px; bottom: 26px; display: flex; flex-direction: column; gap: 18px; z-index: 2; }
.side-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.side-btn svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); transition: transform .15s; }
.side-btn:active svg { transform: scale(.85); }
.side-btn.liked svg { fill: var(--red); stroke: var(--red); animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }
.reel-info { position: absolute; left: 14px; right: 70px; bottom: 22px; z-index: 2; display: grid; gap: 7px; }
.reel-author { display: flex; align-items: center; gap: 8px; }
.reel-author b { font-size: 15px; }
.reel-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(255, 255, 255, .75); }
.chip-sm { background: rgba(255, 255, 255, .15); padding: 2px 8px; border-radius: 99px; font-weight: 600; color: #fff; }
.reel-desc { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { color: var(--ac); font-weight: 600; cursor: pointer; }
.mute-hint { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .6); padding: 5px 10px; border-radius: 99px; font-size: 12px; pointer-events: none; }
.burst { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: 110px; color: var(--red); pointer-events: none; animation: burst .8s ease-out forwards; text-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
.post-view { height: 100%; }
.post-view .reel { height: 100%; }

/* ---------- buscar ---------- */
.search-box { display: flex; align-items: center; gap: 10px; background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; height: 46px; }
.search-box:focus-within { border-color: var(--ac); }
.search-box svg { width: 20px; height: 20px; color: var(--mu); flex-shrink: 0; }
.search-box input { flex: 1; background: none; border: 0; outline: none; height: 100%; min-width: 0; }
.seg { display: flex; gap: 4px; padding: 4px; margin: 12px 0 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--mu); text-align: center; white-space: nowrap; }
.seg button.on { background: var(--s3); color: var(--tx); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { padding: 7px 12px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line); color: var(--ac); font-weight: 600; font-size: 13px; }
.tag-chip small { margin-left: 3px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--g); display: grid; place-items: center; border-radius: 4px; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-q { padding: 10px; font-family: var(--display); font-size: 14px; line-height: 1.1; text-transform: uppercase; text-align: center; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tile-ico { position: absolute; top: 6px; right: 6px; font-size: 13px; }
.tile-likes { position: absolute; left: 6px; bottom: 5px; font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.list { display: grid; gap: 8px; }
.row-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); }
.row-btn:hover { border-color: #3a3a43; }
.row-btn b { display: block; font-size: 14.5px; }
.row-btn small { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips-scroll { margin-bottom: 8px; }
.rank-sec { margin-top: 14px; }
.rank-sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; font-weight: 800; color: var(--lc); background: color-mix(in srgb, var(--lc) 10%, transparent); border-left: 3px solid var(--lc); }
.rank-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.rank-row:hover { background: var(--s1); }
.rank-row b { display: block; font-size: 14.5px; }
.rank-row small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-pos { width: 28px; text-align: center; font-weight: 800; color: var(--mu); flex-shrink: 0; }
.rank-pos.top { font-family: var(--display); font-size: 20px; }
.top-1 { color: var(--ac); }
.top-2 { color: #d4d4d8; }
.top-3 { color: #d08b4a; }
.rank-pts { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rank-pts b { font-size: 15px; }
.pts-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 10px 0 16px; }
.pts-table div { background: var(--s2); border-radius: 12px; padding: 10px; }
.pts-table b { display: block; color: var(--ac); font-size: 18px; }
.pts-table small { font-size: 12px; }
.levels { display: grid; gap: 6px; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--lc) 8%, transparent); }
.lv-row b { flex: 1; color: var(--lc); }

/* ---------- perfil ---------- */
.profile { padding: 16px 16px 30px; }
.p-head { display: flex; align-items: center; gap: 18px; }
.p-stats { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 19px; font-weight: 800; }
.stat small { font-size: 11.5px; }
.p-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.p-id h2 { font-size: 20px; font-weight: 800; }
.p-loc { font-size: 13px; color: var(--mu); margin-top: 4px; }
.p-loc b { color: var(--tx); }
.p-bio { margin-top: 8px; font-size: 14px; }
.lvl-card { margin-top: 14px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 16%, var(--s1)), var(--s1) 70%); border: 1px solid color-mix(in srgb, var(--lc) 35%, var(--line)); display: grid; gap: 10px; }
.lvl-top { display: flex; align-items: center; gap: 12px; }
.lvl-ico { font-size: 30px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(0, 0, 0, .3); }
.lvl-top small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.lvl-top b { font-size: 20px; font-weight: 800; color: var(--lc); }
.lvl-pts { text-align: right; }
.lvl-pts b { font-family: var(--display); font-size: 28px; color: var(--tx); font-weight: 400; display: block; line-height: 1; }
.lvl-next { font-size: 13px; color: var(--mu); }
.lvl-next b { color: var(--tx); }
.lvl-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lvl-pos button { background: rgba(0, 0, 0, .28); border-radius: 12px; padding: 8px 4px; text-align: center; }
.lvl-pos b { display: block; font-family: var(--display); font-size: 20px; font-weight: 400; }
.lvl-pos small { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl-extra { font-size: 12.5px; color: var(--mu); }
.p-actions { display: flex; gap: 8px; margin-top: 14px; }
.p-actions .btn { flex: 1; }
.p-tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px -16px 3px; border-bottom: 1px solid var(--line); }
.p-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 0; color: var(--mu); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p-tabs button span { font-size: 17px; }
.p-tabs button small { font-size: 10.5px; font-weight: 600; }
.p-tabs button.on { border-color: var(--tx); color: var(--tx); }
.p-tabs button.on small { color: var(--tx); }
.profile .grid { margin: 0 -16px; }
.profile > .list { margin-top: 12px; }
.date-box { width: 46px; height: 46px; border-radius: 12px; background: var(--s3); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.date-box b { font-size: 17px !important; line-height: 1; }
.date-box small { font-size: 10.5px !important; text-transform: uppercase; }
.hist-res { font-size: 12.5px; font-weight: 700; color: var(--mu); white-space: nowrap; }
.hist-res.gold { color: var(--ac); }
.cta-card { margin-top: 16px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, #1d1a0d, var(--s1)); border: 1px solid #3a320f; display: grid; gap: 6px; justify-items: start; }

/* organización */
.org-banner { height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--c) 70%, transparent), transparent 65%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 12px), #111114; }
.org-banner span { font-family: var(--display); font-size: 46px; line-height: .95; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 60%, transparent); text-align: center; padding: 0 10px; opacity: .8; }
.org-head { display: flex; align-items: flex-end; gap: 14px; padding: 0 16px; margin-top: -36px; }
.org-head .av { border: 4px solid var(--bg); }
.org-head h2 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.org-stats { padding: 14px 16px 0; }
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.crew-item { background: var(--s2); border-radius: 12px; padding: 10px 12px; display: grid; }
.crew-item span { font-size: 20px; }
.crew-item small { font-size: 11.5px; }
.jury { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jury-chip { background: var(--s2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; font-size: 13px; font-weight: 600; }

/* detalle de evento */
.info-list { display: grid; gap: 12px; padding: 14px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-row small { font-size: 11.5px; display: block; }
.info-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--s2); display: grid; place-items: center; flex-shrink: 0; }
.ev-detail + .pad, .info-list + .plazas { margin-top: 12px; }
.av-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.av-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.av-item small { font-size: 11.5px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.champ-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #3b2f05, #16130a); border: 1px solid #6b560e; margin-bottom: 10px; position: relative; }
.champ-card small { display: block; color: var(--ac); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.champ-card b { font-family: var(--display); font-size: 26px; font-weight: 400; }
.champ-card .crown { position: absolute; top: 4px; left: 52px; }
.card .list + .muted { margin-top: 10px; }

/* panel organizador */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; }
.kpi b { display: block; font-size: 20px; font-weight: 800; }
.kpi small { font-size: 11.5px; line-height: 1.2; display: block; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 10px; font-size: 13px; }
.bar-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-lbl small { display: block; font-size: 11px; }
.bar { height: 10px; background: var(--s3); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ac); border-radius: 6px; }
.bar-alt i { background: #22d3ee; }
.bar-val { text-align: right; font-weight: 700; }
.count { background: var(--s3); color: var(--mu); font-size: 12px; padding: 1px 8px; border-radius: 99px; }
.inline-form { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; color: var(--mu); }
.inline-form label { flex: 1; }
.inline-form input { width: 84px; padding: 8px 10px; }
.ins-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ins-row:first-of-type { border-top: 0; }
.ins-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ins-user b { display: block; font-size: 14px; }
.ins-user small { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-btns { display: flex; gap: 6px; }
.res-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }

/* nueva publicación */
.type-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: var(--s1); border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; }
.type-opt em { font-style: normal; font-size: 24px; }
.type-opt input:checked + span { border-color: var(--ac); background: #1d1a0d; }
.drop { cursor: pointer; }
.drop-inner { min-height: 160px; border: 1.5px dashed #3a3a43; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; overflow: hidden; }
.drop-inner img, .drop-inner video { max-width: 100%; max-height: 280px; border-radius: 10px; }
.drop-inner audio { width: 100%; }
.drop-ico { font-size: 30px; }
.swatches { display: flex; gap: 10px; }
.sw { width: 40px; height: 40px; border-radius: 50%; background: var(--g); cursor: pointer; border: 2px solid transparent; }
.sw input { display: none; }
.sw:has(input:checked) { border-color: var(--tx); box-shadow: 0 0 0 2px var(--bg) inset; }

/* notificaciones */
.notif { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); font-size: 14px; }
.notif small { display: block; margin-top: 2px; font-size: 12px; }
.notif.new { border-color: #6b560e; background: #17140a; }

/* ---------- overlays y sheets ---------- */
.overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: calc(var(--nav) + env(safe-area-inset-bottom));
  z-index: 20; background: var(--bg); display: flex; flex-direction: column; animation: slideIn .22s ease-out;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.ov-head { height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.ov-head h1 { flex: 1; font-size: 16px; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-sp { width: 42px; }
.ov-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.ov-full .ov-head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border: 0; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.ov-full .ov-body { overflow: hidden; }
.sheet-backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 82%; overflow-y: auto; background: var(--s1); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #3a3a43; margin: 0 auto 14px; }
.sheet h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.sheet-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; }
.sheet .hint { margin-bottom: 14px; }
.comments { display: grid; gap: 14px; margin-bottom: 14px; max-height: 45vh; overflow-y: auto; }
.cmt { display: flex; gap: 10px; font-size: 14px; }
.cmt small { display: block; font-size: 11.5px; margin-top: 2px; }
.cmt-form { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--s1); padding-top: 6px; }
.empty { text-align: center; padding: 34px 16px; color: var(--mu); }
.empty span { font-size: 36px; display: block; margin-bottom: 6px; }
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -20px); z-index: 100; background: #f4f4f5; color: #111; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.rf, .btn-sm, .pill { white-space: nowrap; }
.rf { padding: 6px 9px; }
.btn-row .btn { white-space: nowrap; padding: 0 10px; }

a.row-btn { color: inherit; text-decoration: none; }
.btn-icon { flex: 0 0 42px !important; padding: 0; }
.btn-icon svg { width: 22px; height: 22px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mu); cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ac); flex-shrink: 0; }
.check a { color: var(--ac); }

.link-inline { color: var(--ac); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.btn-danger { background: var(--red); color: #fff; }
.ask { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .65); animation: fade .15s; }
.ask-box { width: 100%; max-width: 340px; padding: 18px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); }
.ask-box p { font-size: 15px; line-height: 1.45; }
.legal-modal { position: absolute; inset: 0; z-index: 55; display: flex; flex-direction: column; background: var(--bg); animation: slideIn .2s ease-out; }
.legal-body { flex: 1; overflow-y: auto; padding: 8px 16px 32px; font-size: 14.5px; line-height: 1.6; color: #d4d4d8; }
.legal-body h2 { font-size: 16px; color: var(--ac); margin: 22px 0 6px; }
.legal-body .meta { color: var(--mu); font-size: 13px; }
.legal-body .draft { background: #2a2108; border: 1px solid #6b560e; color: var(--ac); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 12px 0; }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--ac); }
.btn:focus-visible, .row-btn:focus-visible, .chip:focus-visible, .nav-btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.cta-note { font-size: 13px; color: var(--mu); text-align: center; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; }
.sheet-p { font-size: 14px; margin-bottom: 10px; }

/* quedadas */
.qd-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); cursor: pointer; }
.qd-card:hover { border-color: #3a3a43; }
.qd-title { display: block; font-size: 14.5px; margin-bottom: 2px; }
.qd-card small { display: block; font-size: 12.5px; line-height: 1.4; }
.qd-date { background: rgba(34, 211, 238, .12); }
.qd-date b { color: #22d3ee; }
.qd-poster { background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 62%), radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 14px 14px, linear-gradient(135deg, #14181c, #0d0d10); }
.sec-sub { margin: -4px 0 12px; }
.txt-ok { color: var(--ok); }
.report-link { display: block; margin: 22px 0 8px; color: var(--mu); }

.storage { margin-top: 10px; display: grid; gap: 2px; }
.storage b { font-size: 22px; font-weight: 800; }

.yt-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; background: #ff0033; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.yt-btn:hover { filter: brightness(1.1); }
.fld-hint { font-size: 12px; color: var(--mu); }

/* instalar como app */
.install-card { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; margin: -6px 0 18px; border-radius: var(--r); background: var(--s1); border: 1px dashed #6b560e; }
.install-card img { border-radius: 11px; flex-shrink: 0; }
.install-card b { display: block; font-size: 14px; }
.install-card small { display: block; font-size: 12.5px; line-height: 1.4; }
.install-x { width: 32px; height: 32px; font-size: 14px; color: var(--mu); flex-shrink: 0; }
.install-steps { display: grid; gap: 10px; margin-bottom: 14px; }
.install-steps div { background: var(--s2); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.install-steps small { font-size: 13px; line-height: 1.45; }

/* contacto de inscritos y acciones en comentarios */
.ins-row { flex-wrap: wrap; }
.ins-contact { flex-basis: 100%; display: flex; gap: 8px; padding-left: 46px; }
.ins-contact a { font-size: 13px; font-weight: 600; color: var(--tx); text-decoration: none; padding: 5px 11px; border-radius: 99px; background: var(--s2); }
.ins-contact .wa { background: #128c4b; color: #fff; }
.cmt-act { font-size: 11.5px; font-weight: 600; color: var(--mu); text-decoration: underline; text-underline-offset: 2px; }
.auth .install-card { margin: 4px 0 0; background: rgba(20, 20, 23, .95); }
