/* =============================================================
   base.css — Reset minimo, tipografia, fondo negro + blobs blancos
   Sprint 35 fix-3
   ============================================================= */

/* ── Reset minimo ── */
*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button { cursor: pointer; }

/* ── HTML base ── */
html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Body ── */
body {
  font-family: var(--ff);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Fondo — gran halo blanco difuso desde arriba (glow principal) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255,255,255,0.055) 0%, transparent 65%);
}

/* ── Tres blobs blancos difusos distribuidos — dan material al glass ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 35% at 15% 20%, rgba(255,255,255,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 45% 32% at 85% 25%, rgba(255,255,255,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 60% 85%, rgba(255,255,255,0.07) 0%, transparent 65%);
}

/* ── Scrollbar custom ── */
::-webkit-scrollbar              { width: 10px; height: 10px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: rgba(255,255,255,0.10); border-radius: 9999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover  { background: rgba(255,255,255,0.16); background-clip: content-box; }
::-webkit-scrollbar-corner       { background: transparent; }

@media (max-width: 767px) {
  ::-webkit-scrollbar { width: 0; height: 0; }
}

/* Firefox */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.10) transparent; }

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

/* ── Selection ── */
::selection {
  background: var(--ac);
  color: #fff;
}

/* ── Tipografia base ── */
h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
h3 { font-size: var(--fs-xl);   font-weight: 700; line-height: var(--lh-tight); }
h4 { font-size: var(--fs-lg);   font-weight: 600; line-height: var(--lh-tight); }
h5 { font-size: var(--fs-md);   font-weight: 600; line-height: var(--lh-tight); }
h6 { font-size: var(--fs-base); font-weight: 600; line-height: var(--lh-tight); }
p  { font-size: var(--fs-base); }

a { color: var(--ac); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.85; }

/* ── Helper eyebrow ── */
.uio-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
}

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