/* ==========================================================================
   EquiPay · Base: tokens de diseño, reset y tipografía.
   La paleta es la misma del frontend de la aplicación (src/index.css).
   ========================================================================== */

:root {
  /* Primario */
  --primary-50: #eef5f6;
  --primary-100: #d5e6e9;
  --primary-200: #abccd2;
  --primary-300: #7baab3;
  --primary-400: #4b848f;
  --primary-500: #2b6470;
  --primary-600: #1b4b55;
  --primary-700: #12343b;
  --primary-800: #0d272c;
  --primary-900: #081a1e;

  /* Secundario */
  --secondary-50: #ecfaf7;
  --secondary-100: #cdf3ec;
  --secondary-200: #9be6d9;
  --secondary-300: #5fd0c0;
  --secondary-400: #2bb3a3;
  --secondary-500: #149488;
  --secondary-600: #0f766e;
  --secondary-700: #0e5e58;

  /* Terciario (dorado) */
  --tertiary-50: #fbf6e6;
  --tertiary-100: #f5e9bf;
  --tertiary-200: #ebd486;
  --tertiary-300: #dfbd52;
  --tertiary-400: #d4ad35;
  --tertiary-500: #c9a227;
  --tertiary-600: #a9851c;
  --tertiary-700: #856717;

  /* Neutros */
  --neutral-50: #f5f7f9;
  --neutral-100: #e8edf2;
  --neutral-200: #d3dbe3;
  --neutral-300: #b3bfcb;
  --neutral-400: #8796a6;
  --neutral-500: #66768a;
  --neutral-600: #4c5a6b;
  --neutral-700: #3a4553;
  --neutral-800: #27303a;
  --neutral-900: #181e25;

  --danger-50: #fdeeee;
  --danger-600: #c62828;

  --surface: #f3f6fa;
  --cream: #f4f1ea;
  --white: #ffffff;

  --chart-1: #0b8c80;
  --chart-2: #a9851c;

  /* Tipografía */
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado y forma */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(18 52 59 / 0.06), 0 1px 3px rgb(18 52 59 / 0.08);
  --shadow: 0 10px 30px -12px rgb(18 52 59 / 0.25);
  --shadow-lg: 0 30px 60px -20px rgb(8 26 30 / 0.45);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset mínimo */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  color: var(--primary-700);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--secondary-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--secondary-700);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--secondary-600);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--secondary-200);
  color: var(--primary-800);
}

/* Utilidades */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-700);
  color: var(--white);
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.text-gold {
  color: var(--tertiary-400);
}

.text-teal {
  color: var(--secondary-600);
}

/* Aparición suave al hacer scroll (solo si JS está activo) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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