/* =======================================================
   TEMA 2 — Soft Relief · base.css
   Reset + tipografía + utilidades neomórficas
   ======================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--grad-bg);
  background-attachment: fixed;
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: var(--theme-transition);
}
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--color-text-strong);
}

::selection { background: var(--color-accent); color: #fff; }

/* ===== Eyebrow editorial ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1;
}
.eyebrow .eyebrow-num {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
  font-size: 0.8125rem;
}
.eyebrow .eyebrow-line {
  display: inline-block;
  height: 1px;
  width: 0;
  max-width: clamp(36px, 7vw, 80px);
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
  flex-shrink: 0;
}
.no-js .eyebrow .eyebrow-line { width: clamp(36px, 7vw, 80px); }
.eyebrow .eyebrow-text { white-space: nowrap; color: var(--color-text-strong); }

.section-title {
  font-size: var(--fs-display);
  margin: var(--space-3) 0 var(--space-5);
}
.section-title .accent { color: var(--color-accent); }
.section-lead {
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  max-width: 640px;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: var(--fw-semi);
  font-size: var(--fs-md);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: var(--glow-accent), var(--nm-raised-sm);
}
.btn-primary:hover { box-shadow: var(--glow-accent-strong), var(--nm-raised); }
.btn-primary:active { box-shadow: var(--nm-pressed); transform: translateY(1px); }

.btn-ghost {
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: var(--nm-raised-sm);
}
.btn-ghost:hover { box-shadow: var(--nm-raised); }
.btn-ghost:active { box-shadow: var(--nm-pressed); transform: translateY(1px); }

.btn-arrow svg { transition: transform var(--dur-fast) var(--ease-out); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ===== Superficies neomorfas (utility) ===== */
.nm {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--nm-raised);
  transition: var(--theme-transition);
}
.nm-sm  { box-shadow: var(--nm-raised-sm); }
.nm-lg  { box-shadow: var(--nm-raised-lg); }
.nm-sunk { box-shadow: var(--nm-sunk); }
.nm-sunk-sm { box-shadow: var(--nm-sunk-sm); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
}

/* ===== Utilities ===== */
.text-muted { color: var(--color-text-muted); }
.text-dim   { color: var(--color-text-dim); }
.center { text-align: center; }
.flex-col { display: flex; flex-direction: column; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
