/* Fundamentos compartidos: tokens, tipografía, accesibilidad y controles comunes. */

:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --navy: #202f76;
  --navy-dark: #152253;
  --navy-soft: #e9edff;
  --red: #a63334;
  --red-dark: #822627;
  --red-soft: #fbecec;
  --white: #ffffff;
  --surface: #f5f7fc;
  --surface-blue: #eef2ff;
  --ink: #18213d;
  --muted: #65708b;
  --border: #dfe4f0;
  --success: #217a58;
  --success-soft: #e7f6ef;
  --warning: #9a6411;
  --warning-soft: #fff4d8;
  --shadow-sm: 0 8px 24px rgba(25, 36, 83, 0.08);
  --shadow-md: 0 20px 55px rgba(25, 36, 83, 0.13);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(166, 51, 52, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: var(--red);
}

.eyebrow--light {
  color: #dfe4ff;
}

.eyebrow--light > span {
  background: #f3b0b0;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.77rem 1.1rem;
  cursor: pointer;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(32, 47, 118, 0.22);
}

.button--primary:hover:not(:disabled) {
  background: var(--navy-dark);
  box-shadow: 0 14px 30px rgba(32, 47, 118, 0.28);
}

.button--secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--navy);
}

.button--secondary:hover:not(:disabled),
.button--ghost:hover:not(:disabled) {
  border-color: #bdc6de;
  background: var(--surface-blue);
}

.button--ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button--nav {
  min-height: 42px;
  padding-inline: 1rem;
  background: var(--red);
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(166, 51, 52, 0.22);
}

.button--nav:hover {
  background: var(--red-dark);
}

.button--full {
  width: 100%;
}