/* ============================================================
   LEOSTUDIO — base.css
   Reset moderno mínimo, estilos base del documento
   y utilidades globales (.ls-*).
   Depende de: tokens.css (debe importarse antes).
   ============================================================ */

/* === RESET === */

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

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

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

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

/* === DOCUMENTO === */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height); /* las anclas no quedan ocultas bajo el nav fijo */
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--blue-deep);
  color: var(--text-on-dark);
}

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 2px;
}

/* === UTILIDADES === */

.ls-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(var(--space-sm), 5vw, var(--space-lg));
}

.ls-section {
  padding-block: clamp(var(--space-xl), 10vw, var(--space-3xl));
}

.ls-section--alt {
  background: var(--bg-alt);
}

.ls-section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

/* En secciones oscuras, títulos y párrafos invierten su color base */
.ls-section--dark h1,
.ls-section--dark h2,
.ls-section--dark h3,
.ls-section--dark h4,
.ls-section--dark h5,
.ls-section--dark h6 {
  color: var(--text-on-dark);
}

.ls-section--dark p {
  color: var(--text-on-dark-soft);
}

/* Texto con gradiente — usar en spans dentro de títulos */
.ls-grad-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ls-grad-text--vibrant {
  background: var(--gradient-vibrant);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Pill pequeña uppercase para etiquetar secciones */
.ls-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: calc(var(--space-xs) * 0.75) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tint-blue);
  color: var(--blue-deep);
}

.ls-label--blue {
  background: var(--tint-blue);
  color: var(--blue-deep);
}

.ls-label--purple {
  background: var(--tint-purple);
  color: var(--purple);
}

.ls-label--magenta {
  background: var(--tint-magenta);
  color: var(--magenta);
}

.ls-label--orange {
  background: var(--tint-orange);
  color: var(--orange);
}

.ls-label--green {
  background: var(--tint-green);
  color: var(--green);
}
