/* ==== FUENTES ==== */
@font-face {
    font-family: "Spectral";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/spectral-recto.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: "Spectral Fallback";
    src: local("Georgia");
    size-adjust: 104%;
    descent-override: 44%;
    ascent-override: 102%;
}
@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/plex-sans-var.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: "IBM Plex Sans Fallback";
    src: local("Arial");
    size-adjust: 100%;
    descent-override: 28%;
    ascent-override: 103%;
}

/* ==== VARIABLES DE MARCA ==== */
:root {
    --mf-blanco: hsl(0 0% 100%);
    --mf-niebla: hsl(220 16% 96%);
    --mf-acero: hsl(220 14% 91%);
    --mf-filo: hsl(218 12% 82%);
    --mf-gris: hsl(219 8% 44%);
    --mf-texto: hsl(223 14% 10%);
    --mf-delantal: hsl(150 50% 24%);
    --mf-delantal-hondo: hsl(150 52% 17%);
    --mf-mostaza: hsl(45 100% 25%);
    --mf-sombra: 0 1px 2px hsl(223 14% 10% / 10%), 0 10px 28px hsl(223 14% 10% / 8%);
    --mf-sombra-alta: 0 2px 4px hsl(223 14% 10% / 12%), 0 18px 44px hsl(223 14% 10% / 14%);
    --mf-radio-boton: 999px;
    --mf-radio-chip: 3px;
    --mf-paso: clamp(64px, 8vw, 112px);
    --mf-ancho: 1240px;
    --mf-margen: clamp(20px, 4vw, 40px);
    --mf-serif: "Spectral", "Spectral Fallback", Georgia, serif;
    --mf-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, sans-serif;
}

/* ==== REINICIO ==== */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: var(--mf-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--mf-texto);
    background: var(--mf-blanco);
}
img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
[hidden] {
    display: none;
}
.mf-dos[hidden],
.mf-resultado[hidden] {
    display: none;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset {
    margin: 0;
}
ul, ol {
    padding: 0;
}
fieldset {
    padding: 0;
    border: 0;
    min-width: 0;
}
button, input, select, textarea {
    font: inherit;
    color: inherit;
}
table {
    border-collapse: collapse;
    width: 100%;
}

/* ==== TIPOGRAFÍA ==== */
h1, h2, h3 {
    font-family: var(--mf-serif);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.5rem);
}
h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.05rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
}
p + p {
    margin-top: 0.85em;
}
a {
    color: var(--mf-delantal);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:hover {
    color: var(--mf-delantal-hondo);
    text-decoration-thickness: 2px;
}
:focus-visible {
    outline: 3px solid var(--mf-mostaza);
    outline-offset: 3px;
}
strong {
    font-weight: 600;
}
small {
    font-size: 0.875rem;
}
sup {
    font-size: 0.7em;
    line-height: 0;
}

/* ==== CONTENEDOR Y MARCADORES ==== */
.mf-caja {
    max-width: var(--mf-ancho);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--mf-margen);
    padding-right: var(--mf-margen);
}
.mf-skew {
    position: relative;
    display: inline-block;
    padding: 4px 14px 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mf-blanco);
    isolation: isolate;
}
.mf-skew::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--mf-delantal);
    transform: skewX(-14deg);
}
.mf-skew-mostaza::before {
    background: var(--mf-mostaza);
}
.mf-lead {
    font-size: 1.15rem;
    color: var(--mf-gris);
    max-width: 62ch;
}
.mf-nota {
    font-size: 0.95rem;
    color: var(--mf-gris);
}
