/*
 * T2S Ibérica — Header + Mega-menu (Truewerk-exact)
 */

/* ------------------------------------------------------------------
 * Autosuficiència del menú (abans venia de base.css). Acotat al menú
 * per NO alterar la resta del disseny (antic) de la web.
 * ------------------------------------------------------------------ */
.t2s-header,
.t2s-header *,
.t2s-header *::before,
.t2s-header *::after,
.t2s-mm,
.t2s-mm *,
.t2s-mm *::before,
.t2s-mm *::after {
    box-sizing: border-box;
}

.t2s-header :focus-visible,
.t2s-mm :focus-visible,
.ds-skip-link:focus-visible {
    outline: 2px solid var(--color-accent-600);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.ds-skip-link {
    position: absolute;
    top: var(--space-2, 8px);
    left: var(--space-2, 8px);
    z-index: var(--z-toast, 1000);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background-color: var(--color-neutral-900, #141414);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: var(--fw-semibold, 600);
    text-decoration: none;
    border-radius: var(--radius-md, 4px);
    transform: translateY(-150%);
    transition: transform 120ms ease;
}
.ds-skip-link:focus-visible { transform: translateY(0); }

/* ------------------------------------------------------------------
 * Topbar (announcement)
 * ------------------------------------------------------------------ */

.t2s-topbar {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-3) var(--space-4);
    font-size: 0.75rem;          /* 12px */
    line-height: 1;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.t2s-topbar a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */

.t2s-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--bg-primary);
    /* La línia divisòria va al contenidor interior (ample de contingut),
     * NO al header (ample de pàgina). Vegeu .t2s-header__inner--*. */
}

/* Contenidor ample (estil Truewerk .header__wrapper max 1600px; ampliat
 * a 1760px per a les etiquetes llargues en castellà de T2S).
 * IMPORTANT: .t2s-header__inner és position:relative perquè el mega-menu
 * (absolute) es posicioni RESPECTE A AQUEST contenidor i no respecte al
 * header sticky (que ocupa 100vw i provocava el full-bleed). */
.t2s-header__inner {
    position: relative;
    width: 100%;
    max-width: 1760px;
    margin-inline: auto;
    padding-inline: var(--space-8);
    display: flex;
    align-items: center;             /* centra logo/nav/utility; ja no estirem a 92px */
    gap: var(--space-6);
    /* min-height (no height fixa): si el nav envolta a més d'una fila, el
     * header CREIX en alçada en comptes de deixar que la 2a fila es surti
     * i es solapi amb el contingut de sota. */
    min-height: 92px;
}

.t2s-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.t2s-header__logo img,
.t2s-header__logo svg {
    height: 28px;
    width: auto;
    display: block;
}

.t2s-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.t2s-header__link {
    display: none;
    padding: var(--space-2) var(--space-3);
    color: var(--text-primary);
    font-size: 0.875rem;   /* 14px */
    line-height: 1;
    font-weight: var(--fw-regular);
    text-decoration: none;
    white-space: nowrap;
}

.t2s-header__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .t2s-header__link { display: inline-flex; align-items: center; }
}

.t2s-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
}

.t2s-header__icon:hover { color: var(--text-secondary); }

.t2s-header__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* ------------------------------------------------------------------
 * Top nav (L1)
 * ------------------------------------------------------------------ */

.t2s-nav {
    display: none;
    align-items: center;
    margin-left: var(--space-10);
    min-width: 0;
}

@media (min-width: 1024px) {
    .t2s-nav { display: flex; }
}

.t2s-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;               /* wrap controlat: l'item sencer salta de fila */
    align-items: center;
    align-content: center;         /* centra el bloc de files quan n'hi ha més d'una */
    gap: var(--space-2) var(--space-5);  /* row 8px / col 20px (compactat per encabir més items) */
}

.t2s-nav__item {
    display: flex;
    align-items: center;
    position: static;
}

.t2s-nav__trigger,
.t2s-nav__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-2);   /* àrea de clic vertical + separació entre files */
    padding-inline: 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;       /* 12px — compactat perquè hi càpiguen més items */
    line-height: 1.15;
    font-weight: var(--fw-bold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;      /* MAI parteix la paraula/etiqueta */
    color: var(--text-primary);
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    cursor: pointer;
    transition: text-decoration-color var(--motion-fast) var(--motion-ease);
}

.t2s-nav__label {
    display: inline-block;
}

/* Etiqueta d'agrupació sense pàgina pròpia: ni cursor de mà ni subratllat. */
.t2s-nav__link--static {
    cursor: default;
    text-decoration: none;
}
.t2s-nav__link--static:hover {
    text-decoration-color: transparent;
}

.t2s-nav__item.is-current > .t2s-nav__link,
.t2s-nav__item.is-open > .t2s-nav__trigger {
    text-decoration-color: currentColor;
}

@media (hover: hover) {
    .t2s-nav__trigger:hover,
    .t2s-nav__link:hover {
        text-decoration-color: currentColor;
    }
}

.t2s-nav__chevron {
    width: 10px;
    height: 6px;
    transition: transform var(--motion-fast) var(--motion-ease);
    flex-shrink: 0;
}

.t2s-nav__item.is-open .t2s-nav__chevron {
    transform: rotate(180deg);
}

/* ------------------------------------------------------------------
 * Mega-menu (una columna per subelement L1 + columna imatge opcional)
 * ------------------------------------------------------------------ */

/* El mega-menu s'insereix respecte a .t2s-header__inner (relative).
 * left/right: 0 → el panell ocupa TOT l'ample de .t2s-header__inner. El
 * padding interior (a .t2s-mm__inner) el fa coincidir amb el del header,
 * de manera que la 1a columna queda alineada EXACTAMENT amb el logo. */
.t2s-mm {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: var(--bg-primary);
    box-shadow: 0 16px 24px -14px rgba(20, 20, 20, 0.18);
    z-index: var(--z-dropdown);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-base) var(--motion-ease);
}

.t2s-mm[hidden] { display: none; }

.t2s-mm.is-open {
    opacity: 1;
    pointer-events: auto;
}

.t2s-mm__inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);            /* 48px entre el bloc de columnes i la imatge */
    /* Padding horitzontal = padding del header (var(--space-8) = 32px) →
     * la 1a columna arrenca alineada amb el logo, mai més a l'esquerra. */
    padding-inline: var(--space-8);
    padding-block: var(--space-10) var(--space-16);
    min-width: 0;                    /* permet que els fills encongeixin sense sortir */
}

/* Bloc de columnes de text -------------------------------------------- */

/* FIX 2 (desbordament): flex-wrap → quan hi ha moltes columnes L1 (una per
 * subelement) que no caben, salten de fila en comptes de sortir del panell.
 * min-width:0 evita que el contingut forci l'amplada del contenidor. */
.t2s-mm__cols {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-10) var(--space-16);   /* row 40px / col 64px (≥ 60px demanat) */
}

/* Una columna per cada subelement de nivell 1. Amplada acotada: no baixa
 * de 180px ni supera 240px (--mega-menu-nav-column-max-width de Truewerk). */
.t2s-mm__col {
    flex: 0 1 auto;
    min-width: 180px;
    max-width: 240px;
}

/* Títol de columna = nom del L1 en negreta (és un enllaç). */
.t2s-mm__col-title {
    display: inline-block;
    margin: 0 0 var(--space-4);      /* 16px de separació amb els sublinks L2 */
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: text-decoration-color var(--motion-fast) var(--motion-ease);
}

.t2s-mm__col-title:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

.t2s-mm__col-title.is-sale {
    color: var(--text-brand);
}

/* Sublinks de nivell 2, indentats sota el títol de la columna. */
.t2s-mm__list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: var(--space-3);   /* indentació del nivell 2 */
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.t2s-mm__link {
    display: inline-block;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem;         /* 15px */
    line-height: 1.3;
    font-weight: var(--fw-regular);
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--motion-fast) var(--motion-ease),
                text-decoration-color var(--motion-fast) var(--motion-ease);
}

.t2s-mm__link:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}

.t2s-mm__item.is-sale .t2s-mm__link {
    color: var(--text-brand);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Columna imatge ----------------------------------------------------- */

.t2s-mm__col--visual {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

/* Sense imatge: no es reserva la columna de la dreta. */
.t2s-mm__inner.no-image .t2s-mm__col--visual {
    display: none;
}

.t2s-mm__visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-decoration: none;
    color: var(--text-primary);
    width: 360px;              /* --mega-menu-promo-grid-image-max-width de Truewerk */
    max-width: 360px;
}

.t2s-mm__visual-img,
.t2s-mm__visual-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--bg-secondary);
    transition: transform var(--motion-base) var(--motion-ease);
}

.t2s-mm__visual:hover .t2s-mm__visual-img {
    transform: scale(1.01);
}

.t2s-mm__visual-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1;
    font-weight: var(--fw-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* ------------------------------------------------------------------
 * Overlay (fons darrere del mega-menu)
 * ------------------------------------------------------------------ */

/* Backdrop fosc: cobreix des de sota el header fins al final del viewport.
 * z-index per sota del header (z-sticky) i del dropdown (z-dropdown), però
 * per sobre de la resta del contingut. Es sincronitza amb l'open/close real
 * del dropdown des de nav.js (mateix state, sense duplicar lògica). */
.t2s-mm-overlay {
    position: fixed;
    inset: 92px 0 0 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-base) var(--motion-ease);
    z-index: calc(var(--z-dropdown) - 1);
}

.t2s-has-topbar .t2s-mm-overlay {
    inset: calc(92px + 40px) 0 0 0;
}

.t2s-mm-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------------ */

.t2s-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    margin-left: var(--space-1);
}

@media (min-width: 1024px) {
    .t2s-burger { display: none; }
}

.t2s-burger__icon,
.t2s-burger__icon::before,
.t2s-burger__icon::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transition: transform var(--motion-fast) var(--motion-ease),
                opacity var(--motion-fast) var(--motion-ease);
}

.t2s-burger__icon { position: relative; }
.t2s-burger__icon::before { position: absolute; top: -7px; left: 0; }
.t2s-burger__icon::after  { position: absolute; top:  7px; left: 0; }

.t2s-burger[aria-expanded="true"] .t2s-burger__icon { background-color: transparent; }
.t2s-burger[aria-expanded="true"] .t2s-burger__icon::before { transform: translateY(7px) rotate(45deg); }
.t2s-burger[aria-expanded="true"] .t2s-burger__icon::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023.98px) {
    .t2s-nav {
        display: none;
        position: fixed;
        inset: 92px 0 0 0;
        background-color: var(--bg-primary);
        z-index: var(--z-modal);
        overflow-y: auto;
        padding: var(--space-4);
    }
    .t2s-nav.is-open { display: block; }
    .t2s-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
    }
    .t2s-nav__item {
        height: auto;
        display: block;
        border-bottom: 1px solid var(--border-primary);
    }
    .t2s-nav__trigger,
    .t2s-nav__link {
        width: 100%;
        height: 56px;
        justify-content: space-between;
        padding: 0 var(--space-2);
        text-decoration: none;
    }
    .t2s-mm {
        position: static;
        opacity: 1;
        pointer-events: auto;
        background-color: var(--bg-secondary);
    }
    .t2s-mm[hidden] { display: none; }
    .t2s-mm__inner {
        flex-direction: column;
        gap: var(--space-6);
        padding: var(--space-6) var(--space-4);
    }
    .t2s-mm__cols {
        flex-direction: column;
        gap: var(--space-6);
    }
    .t2s-mm__col {
        max-width: none;
    }
    .t2s-mm__col--visual { display: none; }
    .t2s-mm-overlay { display: none; }
}

/* ------------------------------------------------------------------
 * Forced colors
 * ------------------------------------------------------------------ */

@media (forced-colors: active) {
    .t2s-nav__trigger,
    .t2s-nav__link {
        text-decoration-color: transparent;
    }
    .t2s-nav__item.is-current > .t2s-nav__link,
    .t2s-nav__item.is-open > .t2s-nav__trigger {
        text-decoration-color: CanvasText;
    }
}

/* ==================================================================
 * Header en 2 FILES (variant --stack) + selector d'idioma
 * ================================================================== */

.t2s-header--stack { display: block; }

.t2s-header__row { width: 100%; }

/* Les línies divisòries van als CONTENIDORS interiors (ample de contingut),
 * mai a les files/header (ample de pàgina). */
.t2s-header__inner--top {
    min-height: 56px;
    border-bottom: 1px solid var(--border-primary);
}
.t2s-header__inner--nav {
    min-height: 56px;
    border-bottom: 1px solid var(--border-primary);
}

/* En 2 files, el nav arrenca a l'esquerra de la seva fila (sense el
 * margin-left que separava del logo en la versió d'1 fila). */
.t2s-header__inner--nav .t2s-nav { margin-left: 0; }

/* Cluster utility a la dreta de la fila 1 */
.t2s-header__utility {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ----- Selector d'idioma (desplegable, NO barretes) ----- */
.t2s-lang { position: relative; }

.t2s-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-2);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-radius: var(--radius-md);
}
.t2s-lang__toggle:hover { color: var(--text-brand); }

.t2s-lang__chevron {
    width: 10px; height: 6px;
    transition: transform var(--motion-fast) var(--motion-ease);
}
.t2s-lang.is-open .t2s-lang__chevron { transform: rotate(180deg); }

.t2s-lang__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    margin: 0;
    padding: var(--space-2);
    list-style: none;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 24px -14px rgba(20,20,20,.18);
    z-index: var(--z-dropdown);
}
.t2s-lang__menu[hidden] { display: none; }

.t2s-lang__item {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body-sm);
}
.t2s-lang__item:hover { background: var(--bg-secondary); color: var(--text-brand); }
.t2s-lang__item.is-current { font-weight: var(--fw-semibold); color: var(--text-brand); }
.t2s-lang__item-code {
    font-weight: var(--fw-bold);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    min-width: 24px;
    color: var(--text-tertiary);
}
.t2s-lang__item.is-current .t2s-lang__item-code { color: var(--text-brand); }

/* Mòbil: la fila utility amaga els enllaços de text però manté idioma+icones */
@media (max-width: 1023.98px) {
    .t2s-header__utility .t2s-header__link { display: none; }
}

/* ==================================================================
 * 3r nivell (sublist) dins d'una columna del mega-menu
 * ================================================================== */
.t2s-mm__sublist {
    list-style: none;
    margin: var(--space-2) 0 var(--space-3);
    padding: 0 0 0 var(--space-4);
    border-left: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.t2s-mm__sublink {
    font-family: var(--font-sans);
    font-size: var(--fs-body-sm);
    line-height: var(--lh-body-sm);
    color: var(--text-secondary);
    text-decoration: none;
}
.t2s-mm__sublink:hover { color: var(--text-brand); text-decoration: underline; text-underline-offset: 3px; }

/* Alineació determinista dels apartats (mai justificats/estirats) */
.t2s-nav__list { justify-content: flex-start; }

/* ==================================================================
 * Tokens del menú ACOTATS (idèntic a totes les pàgines; el CSS antic
 * no els pot sobreescriure perquè .t2s-header guanya a :root).
 * ================================================================== */
.t2s-header, .t2s-mm, .t2s-lang__menu {
    /* ------------------------------------------------------------------
     * 01 — Color · Primitives
     * ------------------------------------------------------------------ */

    /* Base */
    --color-white: #ffffff;
    --color-black: #000000;

    /* Neutral (sense tint) */
    --color-neutral-50:  #f7f7f7;
    --color-neutral-100: #efefef;
    --color-neutral-200: #dcdcdc;
    --color-neutral-300: #bdbdbd;
    --color-neutral-400: #969696;
    --color-neutral-500: #737373;
    --color-neutral-600: #545454;
    --color-neutral-700: #3d3d3d;
    --color-neutral-800: #262626;
    --color-neutral-900: #141414;

    /* Accent (derivat de #B70E0C, pas 600) */
    --color-accent-50:  #fcf5f5;
    --color-accent-100: #f8e7e7;
    --color-accent-200: #efcaca;
    --color-accent-300: #e29f9e;
    --color-accent-400: #d26a68;
    --color-accent-500: #c43938;
    --color-accent-600: #b70e0c; /* Brand */
    --color-accent-700: #9a0c0a; /* Brand hover */
    --color-accent-800: #7c0a08;
    --color-accent-900: #5c0706;

    /* ------------------------------------------------------------------
     * 01 — Color · Semantic (aliases)
     * Contrastes verificats WCAG 2.1 AA/AAA sobre bg/primary #FFFFFF:
     *   text/primary   #141414 → 19.6:1 AAA
     *   text/secondary #545454 →  7.87:1 AAA
     *   text/tertiary  #737373 →  4.83:1 AA
     *   text/brand     #B70E0C →  6.36:1 AA
     *   text/on-brand  #FFFFFF sobre bg/brand #B70E0C → 6.36:1 AA
     * (text/disabled queda exempt per WCAG 1.4.3.)
     * ------------------------------------------------------------------ */

    /* Background */
    --bg-primary:       var(--color-white);
    --bg-secondary:     var(--color-neutral-50);
    --bg-tertiary:      var(--color-neutral-100);
    --bg-inverse:       var(--color-neutral-900);
    --bg-brand:         var(--color-accent-600);
    --bg-brand-hover:   var(--color-accent-700);
    --bg-brand-subtle:  var(--color-accent-50);
    --bg-disabled:      var(--color-neutral-100);

    /* Text */
    --text-primary:     var(--color-neutral-900);
    --text-secondary:   var(--color-neutral-600);
    --text-tertiary:    var(--color-neutral-500);
    --text-brand:       var(--color-accent-600);
    --text-on-brand:    var(--color-white);
    --text-on-inverse:  var(--color-white);
    --text-disabled:    var(--color-neutral-400);

    /* Border */
    --border-primary:   var(--color-neutral-200);
    --border-secondary: var(--color-neutral-300);
    --border-strong:    var(--color-neutral-900);
    --border-brand:     var(--color-accent-600);

    /* Focus ring (WCAG 2.4.7 · 2.4.11) — contrast ≥ 3:1 sobre bg/primary */
    --focus-ring-color:  var(--color-accent-600);
    --focus-ring-width:  2px;
    --focus-ring-offset: 2px;

    /* ------------------------------------------------------------------
     * 02 — Typography
     * Montserrat · sizes en rem (root 16px) perquè escalin amb el
     * font-size de l'usuari (WCAG 1.4.4 Resize text).
     * ------------------------------------------------------------------ */

    --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;

    /* Font sizes */
    --fs-display-2xl: 4.5rem;    /* 72px */
    --fs-display-xl:  3.75rem;   /* 60px */
    --fs-display-lg:  3rem;      /* 48px */
    --fs-h1:          2.25rem;   /* 36px */
    --fs-h2:          1.875rem;  /* 30px */
    --fs-h3:          1.5rem;    /* 24px */
    --fs-h4:          1.25rem;   /* 20px */
    --fs-body-lg:     1.125rem;  /* 18px */
    --fs-body-md:     1rem;      /* 16px */
    --fs-body-sm:     0.875rem;  /* 14px */
    --fs-label-lg:    1rem;      /* 16px */
    --fs-label-md:    0.875rem;  /* 14px */
    --fs-label-sm:    0.75rem;   /* 12px */
    --fs-overline:    0.75rem;   /* 12px */
    --fs-caption:     0.75rem;   /* 12px */

    /* Line heights (equivalent en rem als px del Figma) */
    --lh-display-2xl: 5.5rem;    /* 88px */
    --lh-display-xl:  4.625rem;  /* 74px */
    --lh-display-lg:  3.75rem;   /* 60px */
    --lh-h1:          2.875rem;  /* 46px */
    --lh-h2:          2.5rem;    /* 40px */
    --lh-h3:          2.125rem;  /* 34px */
    --lh-h4:          1.75rem;   /* 28px */
    --lh-body-lg:     1.875rem;  /* 30px */
    --lh-body-md:     1.625rem;  /* 26px */
    --lh-body-sm:     1.375rem;  /* 22px */
    --lh-label-lg:    1.5rem;    /* 24px */
    --lh-label-md:    1.25rem;   /* 20px */
    --lh-label-sm:    1rem;      /* 16px */
    --lh-overline:    1rem;      /* 16px */
    --lh-caption:     1.125rem;  /* 18px */

    /* Font weights */
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;

    /* Letter spacing */
    --ls-display: -0.02em;  /* Display/* */
    --ls-heading: -0.01em;  /* H1–H3 */
    --ls-normal:   0;
    --ls-overline: 0.06em;  /* Overline */

    /* ------------------------------------------------------------------
     * 03 — Spacing (base 4px)
     * ------------------------------------------------------------------ */
    --space-0:  0;
    --space-1:  0.25rem;   /* 4px */
    --space-2:  0.5rem;    /* 8px */
    --space-3:  0.75rem;   /* 12px */
    --space-4:  1rem;      /* 16px */
    --space-5:  1.25rem;   /* 20px */
    --space-6:  1.5rem;    /* 24px */
    --space-8:  2rem;      /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */

    /* ------------------------------------------------------------------
     * 03 — Radii
     * ------------------------------------------------------------------ */
    --radius-none: 0;
    --radius-sm:   2px;
    --radius-md:   4px;   /* default inputs & buttons */
    --radius-lg:   8px;   /* cards */
    --radius-xl:   16px;
    --radius-full: 9999px;

    /* ------------------------------------------------------------------
     * Layout
     * ------------------------------------------------------------------ */
    --container-max: 1440px;
    --container-gutter: var(--space-6);
    --container-gutter-lg: var(--space-12);

    /* Z-index scale */
    --z-base:    1;
    --z-dropdown: 100;
    --z-sticky:  200;
    --z-overlay: 800;
    --z-modal:   900;
    --z-toast:  1000;

    /* Motion */
    --motion-fast:  120ms;
    --motion-base:  200ms;
    --motion-slow:  320ms;
    --motion-ease:  cubic-bezier(0.2, 0, 0, 1);
}
