/* Copyright (c) 2026 Aquaflow. Developed by Standard AI (SDOA). Public live demo (/demo), phone first. */
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('../fonts/sora-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('../fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('../fonts/public-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0B1723; --surface: #112233; --text: #F6F9FB; --text-2: #C9D6DE; --muted: #8FA3B1;
  --accent: #00C0FF; --rule: rgba(201, 214, 222, .14); --live: #2FD39A; --late: #F5B94A;
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Sora', 'Public Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
.demo { max-width: 560px; margin: 0 auto; padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); }

.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo-logo { height: 24px; width: auto; display: block; }
.demo-tag { font: 600 12px/1 var(--font-head); letter-spacing: .02em; color: var(--accent);
  border: 1px solid rgba(0, 192, 255, .45); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }

.demo-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.demo-slides::-webkit-scrollbar { display: none; }
.demo-shot { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: var(--surface); aspect-ratio: 1080 / 591; overflow: hidden; }
.demo-shot img, .demo-shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-shot[data-url*="regla_detalle"] img { object-fit: contain; background: #000; }
.demo-slide-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px;
  font-size: 12.5px; color: var(--text-2); min-height: 18px; }
.demo-dots { display: flex; gap: 6px; flex: none; }
.demo-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(201, 214, 222, .35); }
.demo-dots i.on { background: var(--accent); }
.demo-badge { position: absolute; left: 12px; bottom: 10px; font: 600 12px/1 var(--font); color: var(--text);
  background: rgba(11, 23, 35, .78); border-radius: 999px; padding: 6px 10px; }
.demo-badge[hidden] { display: none; }

.demo-status { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 600 14px/1.3 var(--font); }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); flex: none; }
.demo-status[data-state="live"] .demo-dot { animation: pulse 2s ease-out infinite; }
.demo-status[data-state="stale"] .demo-dot, .demo-status[data-state="replay"] .demo-dot { background: var(--late); }
.demo-status[data-state="stale"], .demo-status[data-state="replay"] { color: var(--late); }
.demo-age { color: var(--text-2); font-weight: 400; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 211, 154, .6); } 100% { box-shadow: 0 0 0 10px rgba(47, 211, 154, 0); } }
@media (prefers-reduced-motion: reduce) { .demo-status .demo-dot { animation: none !important; } }
.demo-place { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.demo-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.demo-figures div { background: var(--surface); border-radius: 12px; padding: 12px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 3px; min-width: 0; }
.demo-figures strong { font: 600 clamp(22px, 7vw, 30px)/1.1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.demo-figures small { font-size: 12px; color: var(--text-2); }
.demo-figures span { flex-basis: 100%; margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.25; }

.demo-charts { display: grid; gap: 10px; margin: 16px 0 0; }
.demo-charts figure { margin: 0; background: var(--surface); border-radius: 12px; padding: 10px 10px 6px; }
.demo-charts figcaption { font: 600 13px/1.3 var(--font-head); }
.demo-charts figcaption span { font: 400 12px var(--font); color: var(--muted); margin-left: 4px; }
.demo-charts svg { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.demo-charts .g { stroke: var(--rule); stroke-width: 1; }
.demo-charts .ax { fill: var(--muted); font: 11px var(--font); font-variant-numeric: tabular-nums; }
.demo-charts .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.demo-charts .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }

.demo-pitch { margin: 20px 0 0; font: 600 17px/1.4 var(--font-head); color: var(--text); }
.demo-foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--text-2); font-size: 13px; }
.demo-foot p { margin: 0 0 6px; }
.demo-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }

@media (min-width: 600px) {
  .demo { padding-top: 28px; }
  .demo-slides { margin: 0; border-radius: 14px; }
}
