:root {
  --bg: #120a1c;
  --bg2: #1d1029;
  --card: #241433;
  --line: #3a2350;
  --text: #fff6ee;
  --muted: #c9b5cf;
  --sun: #ff5e3a;
  --gold: #ffc85a;
  --pink: #ff2d55;
  --ok: #6cf08a;
  --warn: #ffc85a;
  --bad: #ff5470;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold); }
img, video { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.display { font-family: "Anton", Impact, sans-serif; letter-spacing: .5px; text-transform: uppercase; font-weight: 400; }

/* encabezado */
.top { position: sticky; top: 0; z-index: 10; background: rgba(18,10,28,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { white-space: nowrap; font-family: "Anton", Impact, sans-serif; font-size: 24px; color: var(--text); text-decoration: none; letter-spacing: 1px; }
.brand b { color: var(--sun); font-weight: 400; }
.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
@media (max-width: 640px) {
  .top nav a.hide-sm { display: none; }
  .top .wrap { gap: 10px; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 14px; }
  .brand { font-size: 20px; }
}

/* portada */
.hero { padding: 56px 0 40px; background: radial-gradient(ellipse at 50% 120%, rgba(255,94,58,.45), transparent 60%), linear-gradient(180deg, #1a0d29, var(--bg)); }
.hero h1 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(40px, 8vw, 84px); line-height: 1; margin: 0 0 16px; text-transform: uppercase; }
.hero h1 span { background: linear-gradient(90deg, var(--gold), var(--sun), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 640px; font-size: 18px; margin: 0 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--sun), var(--pink)); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.ok { background: #1f7a3c; }
.btn.bad { background: #8a1f33; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 28px 0 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.athlete { color: var(--text); text-decoration: none; display: flex; flex-direction: column; }
.athlete .media { aspect-ratio: 4/5; background: linear-gradient(160deg, #3a1d52, #ff5e3a); position: relative; }
.athlete .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.athlete .body { padding: 14px 16px 16px; }
.athlete h3 { margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 24px; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); }
.badge.ok { background: rgba(108,240,138,.15); color: var(--ok); }
.badge.warn { background: rgba(255,200,90,.15); color: var(--warn); }
.badge.bad { background: rgba(255,84,112,.15); color: var(--bad); }
.badge.fire { background: rgba(255,94,58,.18); color: #ffb199; }
.media .badge { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); background: rgba(18,10,28,.7); }

/* perfil */
.profile { display: grid; grid-template-columns: 360px 1fr; gap: 28px; padding-top: 32px; padding-bottom: 56px; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
.phone { aspect-ratio: 9/16; background: #000; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-video { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted);
  background: radial-gradient(ellipse at 50% 110%, rgba(255,94,58,.5), transparent 60%), #1a0d29; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 34px; color: var(--gold); }
.stat span { font-size: 13px; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 8px 0 4px; }
.strip i { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.07); display: block; }
.strip i.met { background: var(--ok); }
.strip i.failed { background: var(--bad); }
.strip i.free, .strip i.paused { background: #6b5b8a; }
.section { margin: 26px 0; }
.section h2 { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 26px; margin: 0 0 10px; }
.donate { background: linear-gradient(160deg, rgba(255,94,58,.15), rgba(255,45,85,.1)); border: 1px solid rgba(255,94,58,.4); border-radius: var(--radius); padding: 18px; }
.qrs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.qrs figure { margin: 0; background: #fff; border-radius: 12px; padding: 8px; width: 170px; color: #222; text-align: center; font-size: 13px; }
.qrs img { width: 100%; display: block; }
.videos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.videos a { flex: 0 0 110px; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.videos img { width: 100%; height: 100%; object-fit: cover; }
.videos span { position: absolute; bottom: 6px; left: 6px; font-size: 12px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; color: #fff; }
.links a { display: inline-block; margin: 0 10px 8px 0; }
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }
.prose h1 { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 40px; }
.prose li { margin-bottom: 6px; }

/* formularios */
form.stack { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input, textarea, select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
input[type=checkbox] { width: auto; }
textarea { min-height: 90px; }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(108,240,138,.12); color: var(--ok); margin: 12px 0; }
.notice.warn { background: rgba(255,200,90,.12); color: var(--warn); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 14px; }

/* panel */
.admin .top { background: #160c22; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel h2 { margin-top: 0; font-size: 18px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photos figure { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.photos img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.photos figcaption { padding: 8px; display: grid; gap: 6px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.08); }
.pill.done, .pill.met, .pill.approved, .pill.active { background: rgba(108,240,138,.15); color: var(--ok); }
.pill.missed, .pill.failed, .pill.rejected, .pill.blocked { background: rgba(255,84,112,.15); color: var(--bad); }
.pill.late, .pill.pending, .pill.open, .pill.queued, .pill.rendering { background: rgba(255,200,90,.15); color: var(--warn); }
.inline { display: inline; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
