/* =========================================================
   BASE — variables, reset y tipografía
   Diseño tipográfico y con iconos: títulos grandes, mucho
   espacio y un único mensaje por bloque.
   ========================================================= */

:root {
  /* Colores */
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --tile: #f5f5f7;
  --tile-hover: #ececf0;
  --dark: #000000;
  --dark-tile: #1d1d1f;
  --green: #1f7a2e;          /* verde CRM para textos, enlaces y botones */
  --green-hover: #17611f;
  --green-bright: #2e9233;   /* verde del logo */
  --green-soft: #e9f5ea;     /* fondo de los iconos */
  --green-on-dark: #6fcf78;

  /* Tipografía: la del sistema (San Francisco en Apple) y si no, Inter */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --container: 1024px;
  --container-wide: 1200px;
  --gutter: clamp(20px, 5vw, 44px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --nav-h: 52px;
  --callbar-h: 0px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (max-width: 760px) {
  :root {
    --nav-h: 56px;
    --callbar-h: 72px;
    --radius: 16px;
    --radius-lg: 22px;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  padding-bottom: var(--callbar-h);
  font-family: var(--font);
  font-size: 1.125rem;            /* 18 px */
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.7rem, 7.5vw, 5.5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.15;
}

h4 {
  font-size: 1.2rem;
  line-height: 1.25;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: #d6ecd8;
}

/* Texto con degradado verde para destacar palabras clave */
.gradient {
  background: linear-gradient(100deg, #1f7a2e 0%, #2e9233 45%, #5bbf63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}
