/* ═══════════════════════════════════════════════════
   SONO PRO BASE — base.css
   Reset + tipografía + scrollbar
   Asume tokens.css cargado antes
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--tx1);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition-fast); }
a:hover { text-decoration: underline; opacity: 0.85; }

img { max-width: 100%; display: block; }
svg { display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Selection ── */
::selection { background: rgba(59,130,246,.35); color: var(--tx1); }

/* ── Focus visible ── */
:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; border-radius: 4px; }

/* ── Animations ── */
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { opacity: .5; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow:0 0 8px var(--green); }
  50%     { opacity:.5; box-shadow:0 0 3px var(--green); }
}

@keyframes live-pulse {
  0%,100% { opacity:1; box-shadow:0 0 14px rgba(34,197,94,.9); }
  50%     { opacity:.5; box-shadow:0 0 5px rgba(34,197,94,.4); }
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes skeleton-opacity {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}
