/* =========================================================
 * reset.css
 * Normalización de estilos por defecto del navegador y
 * definición de variables base (tokens) del sistema visual
 * de WSG.cl. Debe cargarse antes de cualquier otro CSS.
 * ========================================================= */

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

:root {
  /* Paleta WSG.cl — continuidad con Webstorage.cl
     Base: blanco, negro y grises. Acento: rojo Ferrari. */
  --color-primary: #E30613;
  --color-primary-dark: #B30410;
  --color-primary-soft: #FFE8E6;

  --color-accent: #E30613;
  --color-accent-dark: #B30410;
  --color-accent-soft: #FFE8E6;

  --color-bg: #FFFFFF;
  --color-bg-soft: #F6F6F6;
  --color-bg-muted: #ECECEC;

  --color-surface: #FFFFFF;
  --color-surface-soft: #FAFAFA;
  --color-surface-strong: #111111;

  --color-text: #111111;
  --color-text-muted: #555555;
  --color-text-soft: #888888;
  --color-text-inverse: #FFFFFF;

  --color-border: #DDDDDD;
  --color-border-strong: #BDBDBD;

  --color-success: #20B486;
  --color-success-soft: #E9FBF5;

  --color-error: #B30410;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.10);
  --shadow-red: 0 14px 34px rgba(227, 6, 19, 0.20);

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Espaciado */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 820px;
  --header-height: 72px;

  /* Animación */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 220ms var(--ease-out);
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

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

p {
  color: var(--color-text);
}

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

/* Respeta usuarios con motion sickness */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
