/* bits: tokens, tipografía y reseteo */

@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/bebas-cartel.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: "Bebas Neue Fallback";
    src: local("Arial Narrow");
    ascent-override: 106.1%;
    descent-override: 39.1%;
    line-gap-override: 0%;
    size-adjust: 89.5%;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-texto.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    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: "Barlow Fallback";
    src: local("Arial");
    ascent-override: 100.5%;
    descent-override: 20.1%;
    line-gap-override: 0%;
    size-adjust: 99.5%;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-medio.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    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: "Barlow Fallback";
    src: local("Arial");
    ascent-override: 100.5%;
    descent-override: 20.1%;
    line-gap-override: 0%;
    size-adjust: 99.5%;
}
@font-face {
    font-family: "Barlow";
    src: url("../fonts/barlow-negra.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    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: "Barlow Fallback";
    src: local("Arial");
    ascent-override: 100.5%;
    descent-override: 20.1%;
    line-gap-override: 0%;
    size-adjust: 99.5%;
}

:root {
    --c-noche: rgb(14 16 19);
    --c-percha: rgb(24 27 32);
    --c-perchero: RGB(35 39 46);
    --c-hilo: rgb(236 238 242);
    --c-ceniza: rgb(142 148 158);
    --c-costura: RGB(52 56 65);
    --c-lima: rgb(194 235 74);
    --c-hielo: rgb(147 188 227);
    --c-sombra: rgb(0 0 0 / 55%);
    --c-brillo: rgb(194 235 74 / 18%);
    --c-brillo-frio: RGB(147 188 227 / 14%);
    --s-pt: 6px;
    --s-bajo: 12px;
    --s-cuello: 20px;
    --s-manga: 32px;
    --s-falda: 64px;
    --s-tajo: 10px; /* desplazamiento del marco de las fichas */
    --s-tajo-foto: 14px;
    --s-curva: 20px;
    --s-boton: 8px;
    --s-cab: 68px; /* alto fijo de la cabecera */
    --s-lado: clamp(16px, 4vw, 56px);
}

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

html {
    background: var(--c-noche);
    color-scheme: dark;
    scroll-padding-top: calc(var(--s-cab) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--c-noche);
    color: var(--c-hilo);
    font-family: "Barlow", "Barlow Fallback", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.62;
}

body.fijo {
    overflow: hidden; /* menú abierto: sin scroll detrás */
}

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

h1,
h2,
h3 {
    margin: 0;
    font-family: "Barlow", "Barlow Fallback", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 1.25rem + 1vw, 2.25rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    margin: 0;
    max-width: 66ch;
}

ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
}

a {
    color: var(--c-hielo);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--c-lima);
}

:focus-visible {
    outline: 2px solid var(--c-lima);
    outline-offset: 3px;
}

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

.salto {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 130;
    padding: 10px 16px;
    background: var(--c-lima);
    color: var(--c-noche);
    border-radius: var(--s-boton);
    font-weight: 800;
}

.salto:not(:focus) {
    clip-path: inset(50%); /* invisible hasta recibir foco, sin salir de pantalla */
}

.eti {
    display: flex;
    align-items: center;
    gap: var(--s-bajo);
    margin-bottom: var(--s-bajo);
    color: var(--c-hielo);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em; /* lettering amplio solo en etiquetas */
    text-transform: uppercase;
}

.eti::after {
    content: "";
    flex: 0 0 48px;
    height: 1px;
    background: var(--c-hielo);
}

.ent {
    color: var(--c-hilo);
    font-size: 1.08rem;
}

.sub {
    color: var(--c-ceniza);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}
