/* ==========================================================================
   Base: reset, tipografía, contenedores y utilidades
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: var(--accent-a30);
  color: var(--ink);
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

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

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Iconos Material Symbols ----------------------------------------------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
}

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

.container--wide {
  max-width: var(--container-wide);
}

.container--xl {
  max-width: var(--container-xl);
}

.container--narrow {
  max-width: 56rem;
}

/* Secciones ------------------------------------------------------------- */
.section {
  padding-block: 3.5rem;
}

.section--white {
  background: var(--color-white);
}

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

.section--low {
  background: var(--color-surface-low);
}

.section--green {
  background: var(--color-green);
  color: var(--color-white);
}

.section--border {
  border-bottom: 1px solid var(--border-a80);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-head .badge {
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin: 0 0 0.75rem;
}

.section-title--light {
  color: var(--color-white);
}

.section-lead {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-muted);
}

.section-lead--light {
  color: var(--white-a70);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

@media (min-width: 640px) {
  .section {
    padding-block: 5rem;
  }

  .section-head {
    margin-bottom: 3.5rem;
  }

  .section-title {
    font-size: 30px;
  }

  .section-lead {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 36px;
  }
}

/* Utilidades ------------------------------------------------------------ */
.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;
}

.text-center {
  text-align: center;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}
