/* ==========================================================================
   Reset y estilos base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--vs-font-body);
  font-size: var(--vs-fs-base);
  font-weight: var(--vs-fw-regular);
  line-height: var(--vs-lh-body);
  color: var(--vs-body);
  background: var(--vs-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--vs-space-4);
  font-family: var(--vs-font-heading);
  line-height: var(--vs-lh-tight);
  color: var(--vs-ink);
  text-wrap: balance;
}

h1 { font-size: var(--vs-fs-h1); font-weight: var(--vs-fw-black); }
h2 { font-size: var(--vs-fs-h2); font-weight: var(--vs-fw-bold); }
h3 { font-size: var(--vs-fs-h3); font-weight: var(--vs-fw-bold); }
h4 { font-size: var(--vs-fs-lg); font-weight: var(--vs-fw-bold); }

p { margin: 0 0 var(--vs-space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--vs-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--vs-duration) var(--vs-ease);
}
a:hover { color: var(--vs-red-hover); }

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

ul, ol { margin: 0 0 var(--vs-space-4); padding-left: 1.25rem; }

hr {
  border: 0;
  border-top: 1px solid var(--vs-line);
  margin: var(--vs-space-6) 0;
}

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

/* --- Foco accesible ------------------------------------------------------ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--vs-focus);
  outline-offset: 2px;
  border-radius: var(--vs-radius-sm);
}

/* --- Utilidades ---------------------------------------------------------- */
.screen-reader-text,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--vs-space-4);
  top: -100px;
  z-index: 999;
  padding: var(--vs-space-3) var(--vs-space-5);
  background: var(--vs-red);
  color: #fff;
  border-radius: var(--vs-radius-sm);
  text-decoration: none;
  transition: top var(--vs-duration) var(--vs-ease);
}
.skip-link:focus { top: var(--vs-space-4); color: #fff; }

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

.container--wide {
  max-width: calc(var(--vs-container-wide) + var(--vs-gutter) * 2);
}

.section {
  padding-block: var(--vs-section-y);
}

.section--flush { padding-block: 0; }
.section--tight { padding-block: calc(var(--vs-section-y) * 0.6); }

.section__header {
  margin-bottom: var(--vs-space-6);
  text-align: center;
}

.section__title {
  margin-bottom: var(--vs-space-2);
}

.section__lead {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--vs-muted);
}

.section--dark { background: var(--vs-black); color: rgba(255, 255, 255, .78); }
.section--dark :is(h1, h2, h3, h4) { color: #fff; }

.section--brand { background: var(--vs-red-deep); color: #fff; }
.section--brand :is(h1, h2, h3, h4) { color: #fff; }

.section--alt { background: var(--vs-surface-alt); }

.stack > * + * { margin-top: var(--vs-space-4); }
.text-center { text-align: center; }

/* Rejilla reutilizable */
.grid {
  display: grid;
  gap: var(--vs-space-5);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

@media (max-width: 980px) {
  .grid { --cols: 2; }
}

@media (max-width: 640px) {
  .grid { --cols: 1; }
}








