/* IT Solutions — base: fuentes, tokens de diseño, reset y tipografía */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color (acento = teal del logotipo definitivo #61BDC8) */
  --color-navy: #102A43;
  --color-turquoise: #61BDC8;           /* COLOR OFICIAL de IT-SOLUTIONS (= logotipo). Identidad y acentos sobre fondos oscuros */
  --color-turquoise-soft: #7ECBD4;      /* hover del botón principal */
  --color-teal-deep: #0B6A77;           /* complementario: botones, enlaces y texto sobre fondos claros (6,3:1 sobre blanco) */
  --color-teal-deep-dark: #084F59;      /* hover del complementario (8,9:1 sobre blanco) */
  --color-white: #FFFFFF;
  --color-gray: #F3F6F9;
  --color-text: #263746;
  --color-text-muted: #52606D;
  --color-on-dark: #FFFFFF;
  --color-on-dark-muted: #C5D3E0;
  --color-border: #D5DEE7;
  --color-border-on-dark: #2C4A66;
  --color-whatsapp: #25D366;            /* reservado para el canal WhatsApp */

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3rem);

  /* Espaciado (base 4 px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Forma */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.14);

  /* Layout */
  --container: 82.5rem;
  --gutter: 1rem;
  --header-h: 4.5rem;

  /* Anillo de foco: azul sobre fondos claros, turquesa sobre oscuros */
  --focus-ring: var(--color-teal-deep);
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}
@media (min-width: 64em) {
  :root { --gutter: 2rem; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; }

/* Tipografía */
h1, h2, h3, h4 { margin-bottom: var(--space-3); color: var(--color-navy); font-weight: 700; line-height: 1.2; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); }
p { max-width: 70ch; }
p + p { margin-top: var(--space-4); }
strong { font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

/* Enlaces sin clase (texto corrido). Los enlaces con clase se estilan en su componente. */
a:not([class]) {
  color: var(--color-teal-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a:not([class]):hover { color: var(--color-navy); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

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