/* ==========================================================================
   Dromer — base.css
   Variables de diseño, fuente, reset y utilidades generales.
   ========================================================================== */

/* ---------- Fuente (autohospedada: sin dependencias externas) ---------- */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de diseño ---------- */
:root {
  /* Colores de marca */
  --color-navy: #1a4052;
  --color-navy-dark: #102e3b;
  --color-navy-card: #14313f;
  --color-teal: #0094b8;
  --color-teal-dark: #007a99;
  --color-teal-soft: #55b8ce;
  --color-teal-light: #6fd0e6;
  --color-gold: #d9b98c;

  /* Fondos */
  --color-white: #ffffff;
  --color-snow: #fafbfa;
  --color-ice: #f2f9fa;
  --color-sky: #d9f1f6;
  --color-arc: #c2e5ee;
  --color-stone: #c1cccf;

  /* Texto y líneas */
  --color-heading: #1a4052;
  --color-text: #24343c;
  --color-muted: #5f6e75;
  --color-muted-light: #a9bcc4;
  --color-line: #e6ecee;

  /* Tipografía */
  --font-base: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3vw, 3.75rem);

  /* Espaciado y layout */
  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(4rem, 2.5rem + 5.5vw, 7.5rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Sombras y movimiento */
  --shadow-sm: 0 1px 2px rgba(16, 46, 59, .05);
  --shadow-card: 0 1px 2px rgba(16, 46, 59, .04), 0 12px 32px -16px rgba(16, 46, 59, .18);
  --shadow-card-hover: 0 2px 4px rgba(16, 46, 59, .05), 0 26px 50px -20px rgba(16, 46, 59, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 88px;
}

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

* { margin: 0; }

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

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-snow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

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

ul,
ol { padding: 0; list-style: none; }

h1, h2, h3 { color: var(--color-heading); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }

p { text-wrap: pretty; }

address { font-style: normal; }

blockquote { margin: 0; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

figure { margin: 0; }

:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--color-teal); color: var(--color-white); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
