/*
  ============================================================
  SOCIVOX — BASE.CSS
  ============================================================
  Variables globales, tipografía, reset y tema automático.

  IMPORTANTE:
  - El sitio sigue automáticamente el tema del dispositivo.
  - Para cambiar el morado de marca, edita --primary y --primary-2.
  - No necesitas JavaScript para el modo claro/oscuro.
*/

:root {
  color-scheme: dark;

  /* Marca */
  --primary: #7c3aed;
  --primary-2: #a855f7;
  --primary-3: #c084fc;
  --primary-soft: rgba(124, 58, 237, 0.16);
  --accent: #d8b4fe;
  --success: #42d392;

  /* Tema oscuro (predeterminado) */
  --bg: #09060f;
  --bg-2: #0f0919;
  --surface: #151020;
  --surface-2: #1b1429;
  --surface-3: #241a36;
  --surface-glass: rgba(18, 12, 29, 0.82);
  --text: #f7f4fb;
  --text-soft: #c8bfd2;
  --muted: #93879f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.17);
  --card-bg: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  --soft-bg: linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.006));
  --chip-bg: rgba(255,255,255,0.04);
  --field-bg: rgba(255,255,255,0.04);
  --nav-hover: rgba(255,255,255,0.06);
  --header-bg: rgba(9, 6, 15, 0.78);
  --header-bg-scrolled: rgba(9, 6, 15, 0.94);
  --footer-bg: #07040b;
  --cta-bg-1: #171020;
  --cta-bg-2: #100a18;
  --theme-contrast: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.16);

  /* Layout */
  --container: 1280px;
  --header-height: 78px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --transition: 220ms ease;
}

/*
  Tema claro automático. Si el teléfono/computadora está en modo claro,
  estas variables reemplazan a las anteriores sin cambiar el HTML.
*/
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #fbfafe;
    --bg-2: #f4f0fa;
    --surface: #ffffff;
    --surface-2: #f7f3fb;
    --surface-3: #eee7f7;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --text: #18121f;
    --text-soft: #51485a;
    --muted: #756a7e;
    --line: rgba(40, 24, 55, 0.11);
    --line-strong: rgba(40, 24, 55, 0.18);
    --primary-soft: rgba(124, 58, 237, 0.10);
    --accent: #6d28d9;
    --chip-bg: rgba(124, 58, 237, 0.055);
    --field-bg: rgba(84, 54, 110, 0.045);
    --nav-hover: rgba(124, 58, 237, 0.075);
    --card-bg: linear-gradient(145deg, #ffffff, #fbf9fd);
    --soft-bg: linear-gradient(180deg, rgba(124,58,237,0.035), rgba(124,58,237,0.012));
    --header-bg: rgba(251, 250, 254, 0.80);
    --header-bg-scrolled: rgba(251, 250, 254, 0.96);
    --footer-bg: #f2edf7;
    --cta-bg-1: #f6f0fc;
    --cta-bg-2: #eee5f8;
    --theme-contrast: #18121f;
    --shadow: 0 24px 70px rgba(58, 31, 75, 0.13);
    --shadow-soft: 0 12px 34px rgba(58, 31, 75, 0.08);
  }
}

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

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

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -10%, rgba(124, 58, 237, 0.15), transparent 30rem),
    radial-gradient(circle at 92% 22%, rgba(168, 85, 247, 0.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: var(--primary);
  color: #ffffff;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: clamp(76px, 7vw, 104px) 0;
}

.section--tight {
  padding: clamp(56px, 5vw, 74px) 0;
}

.section--soft {
  background: var(--soft-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.display,
h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6.2vw, 6rem);
}

h2 {
  font-size: clamp(2.05rem, 4.1vw, 3.9rem);
}

h3 {
  font-size: 1.25rem;
}

p,
li {
  text-wrap: pretty;
}

.lead {
  max-width: 720px;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.text-gradient {
  color: var(--accent);
  background: linear-gradient(90deg, var(--text) 0%, var(--primary-3) 42%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.muted {
  color: var(--muted);
}

.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
