/* Pfad Atelier — base: fuentes, variables, reinicio y tipografía */

@font-face {
    font-family: "Funnel Display";
    src: url("../fonts/funnel-display.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Funnel Sans";
    src: url("../fonts/funnel-sans.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

/* respaldo con métricas ajustadas: evita el salto al cargar la fuente */
@font-face {
    font-family: "Funnel Display Fallback";
    src: local("Arial");
    size-adjust: 105.1%;
    ascent-override: 95%;
    descent-override: 25%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Funnel Sans Fallback";
    src: local("Arial");
    size-adjust: 99.8%;
    ascent-override: 95%;
    descent-override: 25%;
    line-gap-override: 0%;
}

:root {
    --a1: hsl(220, 22%, 97%);
    --a2: hsl(222, 20%, 92%);
    --a3: hsl(0, 0%, 100%);
    --a4: hsl(224, 30%, 12%);
    --a5: hsl(222, 12%, 36%);
    --a6: hsl(221, 14%, 78%);
    --g1: hsl(164, 62%, 21%);
    --g2: hsl(4, 76%, 44%);
    --g3: hsl(4, 76%, 37%);
    --g4: hsl(160, 20%, 86%);
    --f1: "Funnel Display", "Funnel Display Fallback", Arial, sans-serif;
    --f2: "Funnel Sans", "Funnel Sans Fallback", Arial, sans-serif;
    --f3: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --r1: 3px;
    --s1: 8px;
    --s2: 16px;
    --s3: 24px;
    --s4: 40px;
    --s5: clamp(56px, 7vw, 96px);
    --hh: 72px;
    --w1: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--a1);
    color: var(--a4);
    font-family: var(--f2);
    font-size: 17px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

/* el atributo hidden gana siempre a cualquier display de clase */
[hidden]:not(#x0) {
    display: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    margin: 0 0 var(--s2);
    font-family: var(--f1);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.3rem);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 var(--s2);
}

ul,
ol {
    margin: 0 0 var(--s2);
    padding-left: 1.2em;
}

a {
    color: var(--g1);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--a4);
}

address {
    font-style: normal;
}

code {
    font-family: var(--f3);
    font-size: 0.88em;
    background: var(--a2);
    padding: 1px 5px;
    border-radius: var(--r1);
    overflow-wrap: anywhere;
}

b,
strong {
    font-weight: 700;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--g1);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 40;
    padding: 12px 18px;
    background: var(--a4);
    color: var(--a3);
    border-radius: var(--r1);
}

.skip-link:focus {
    top: 12px;
    color: var(--a3);
}

/* rótulos en monoespaciada: numeración, precios, medidas */
.sec-num {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 var(--s2);
    font-family: var(--f3);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--a5);
}

.sec-num .num {
    color: var(--g1);
    padding: 2px 6px;
    border: 1px solid var(--g1);
    border-radius: var(--r1);
    letter-spacing: 0.08em;
}

.small-note {
    font-size: 0.9rem;
    color: var(--a5);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js [data-rv].pend,
    .hero-img,
    .btn,
    .p-card {
        transition: none;
    }
}
