/* ==== FUENTES ==== */
@font-face {
  font-display: swap;
  font-family: "Anybody";
  font-style: normal;
  font-weight: 500 800;
  src: url("../fonts/anybody-ald.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;
}
@font-face {
  font-family: "Anybody Fallback";
  src: local("Arial");
  ascent-override: 75%;
  size-adjust: 107%;
}
@font-face {
  font-display: swap;
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 400 700;
  src: url("../fonts/redhat-ald.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;
}
@font-face {
  font-family: "Red Hat Text Fallback";
  src: local("Arial");
  ascent-override: 102%;
  size-adjust: 100%;
}

/* ==== VARIABLES ==== */
:root {
  --ald-bg: #F3F5F9;
  --ald-tint: #E6EAF1;
  --ald-line: #CBD3DF;
  --ald-text: #1A2233;
  --ald-muted: #667186;
  --ald-accent: #2E4876;
  --ald-accent2: #45727A;
  --ald-night: #1F2B44;
  --ald-snow: #EEF1F6;
  --ald-fd: "Anybody", "Anybody Fallback", Arial, sans-serif;
  --ald-fb: "Red Hat Text", "Red Hat Text Fallback", Arial, sans-serif;
  --ald-fm: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ald-shd: 0 1px 2px #1A223314, 0 10px 28px #1A223324;
  --ald-off: 14px;
  --ald-gut: 22px;
  --ald-max: 1240px;
  --ald-hd: 72px;
}

/* ==== BASE ==== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--ald-hd) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ald-fb); font-size: 1.0625rem; line-height: 1.6; color: var(--ald-text); background: var(--ald-bg); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none; }
a { color: var(--ald-accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--ald-fd); font-weight: 700; line-height: 1.04; letter-spacing: normal; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
table { width: 100%; border-collapse: collapse; }
.wrp { max-width: var(--ald-max); margin-left: auto; margin-right: auto; padding-left: var(--ald-gut); padding-right: var(--ald-gut); }
html:not(.has-js) .jso { display: none; }
.skp { position: absolute; top: 0; left: 16px; z-index: 130; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ald-night); color: var(--ald-snow); transform: translateY(-120%); }
.skp:focus { transform: none; }
.mono { font-family: var(--ald-fm); font-size: .86rem; letter-spacing: .06em; }

/* ==== BOTONES ==== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.45em; border: 2px solid var(--ald-accent); border-radius: 999px; font-family: var(--ald-fd); font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-p { background: var(--ald-accent); color: var(--ald-snow); }
.btn-p:hover { background: var(--ald-night); border-color: var(--ald-night); }
.btn-g { background: transparent; color: var(--ald-accent); }
.btn-g:hover { background: var(--ald-tint); }
.btn[disabled] { cursor: progress; }

/* ==== CABECERA ==== */
.hd { position: sticky; top: 0; z-index: 90; background: var(--ald-bg); border-bottom: 2px dashed var(--ald-line); }
.hd-in { display: flex; align-items: center; gap: 18px; height: var(--ald-hd); }
.lg { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--ald-fd); font-size: 1.4rem; font-weight: 800; color: var(--ald-text); text-decoration: none; }
.lg svg { width: 32px; height: 32px; }
.nv { margin-left: auto; }
.nv ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nv a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; color: var(--ald-text); text-decoration: none; }
.nv a:hover, .nv a[aria-current="page"] { color: var(--ald-accent); text-decoration: underline dashed; }
.hd-cat { display: none; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 700; color: var(--ald-text); text-decoration: none; }
.crt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--ald-accent); font-family: var(--ald-fd); font-weight: 700; color: var(--ald-snow); text-decoration: none; box-shadow: var(--ald-shd); }
.crt:hover { background: var(--ald-night); }
.crt-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--ald-snow); font-size: .9rem; color: var(--ald-accent); }
.crt[data-pulso] .crt-n { animation: ald-pulso .5s ease; }
@keyframes ald-pulso { 50% { transform: scale(1.3); } }
.brg { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--ald-line); border-radius: 12px; background: transparent; cursor: pointer; }
.brg span, .brg span::before, .brg span::after { display: block; width: 20px; height: 2px; background: var(--ald-text); content: ""; }
.brg span { position: relative; }
.brg span::before { position: absolute; top: -6px; }
.brg span::after { position: absolute; top: 6px; }
html:not(.has-js) .brg { display: none; }

/* ==== MENÚ MÓVIL ==== */
.mnu { padding: 18px var(--ald-gut) 28px; background: var(--ald-night); color: var(--ald-snow); }
.mnu ul { margin: 0; padding: 0; list-style: none; }
.mnu a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px dashed #EEF1F640; font-family: var(--ald-fd); font-size: 1.3rem; font-weight: 700; color: var(--ald-snow); text-decoration: none; }
.mnu-x { display: none; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; margin: 0 0 10px auto; border: 2px solid var(--ald-snow); border-radius: 999px; background: transparent; font-weight: 700; color: var(--ald-snow); cursor: pointer; }
.has-js .mnu { position: fixed; inset: 0; z-index: 120; overflow-y: auto; }
.has-js .mnu-x { display: flex; }
.mnu[hidden] { display: none; }

/* ==== AVISO COOKIES ==== */
.cc-bar { position: fixed; left: 16px; bottom: 16px; z-index: 100; max-width: 380px; padding: 16px 18px; border: 2px solid var(--ald-accent); background: var(--ald-bg); font-size: .95rem; line-height: 1.45; box-shadow: var(--ald-shd); }
.cc-bar p { margin: 0 0 12px; }
.cc-bts { display: flex; gap: 10px; }
.cc-bts .btn { flex: 1 1 0; min-height: 44px; padding: .4em .8em; font-size: .95rem; }

/* ==== PIE DE PÁGINA ==== */
.ft { padding: 34px 0 28px; background: var(--ald-night); font-size: .95rem; color: var(--ald-snow); }
.ft-in { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 36px; }
.ft-leg { flex: 1 1 360px; max-width: 520px; margin: 0; line-height: 1.55; }
.ft-nv { display: flex; flex: 2 1 420px; flex-wrap: wrap; gap: 0 18px; }
.ft-nv a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ald-snow); }
.ft-c { flex: 0 0 auto; margin: 0; padding-top: 10px; font-family: var(--ald-fm); font-size: .85rem; }

/* ==== PANTALLAS ANGOSTAS ==== */
@media (max-width: 960px) {
  .nv { display: none; }
  .brg { display: inline-flex; }
  .hd-cat { display: inline-flex; margin-left: auto; }
}
@media (min-width: 961px) {
  .mnu { display: none; }
}
@media (max-width: 600px) {
  :root { --ald-gut: 18px; --ald-hd: 64px; }
  .hd-in { gap: 8px; }
  .lg { font-size: 1.15rem; gap: 8px; }
  .lg svg { width: 26px; height: 26px; }
  .crt { padding-left: 12px; font-size: .92rem; }
  .cc-bar { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 14px; font-size: .9rem; }
  .hd-cat { padding: 0 2px; font-size: .95rem; }
  .brg { width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .lg-t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none; }
}
