/* ===== Variables comunes ===== */
:root {
    font-size: 16px;
    --color-principal: #002d74;
}

/* ===== Elements comuns ===== */
button {
    background: var(--color-principal);
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.1rem;
    border: none;
    border-radius: .75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}

button:hover {
    background: #155cc0;
}

/* Base tipus “torn” (forma i tipografia); mides es defineixen per pàgina */
.torn,
#torn {
    font-weight: 800;
    letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
}

/* ===== Pàgina 1: Demanar torn ===== */
body.pag-demanar {
    margin: 0;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: #f5f7fa;
    font-family: system-ui, sans-serif;
    text-align: center;
    padding: 2rem;
}

body.pag-demanar h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #333;
    margin-bottom: 2rem;
}

body.pag-demanar #torn {
    font-size: clamp(3rem, 12vw, 6rem);
    color: var(--color-principal);
    margin-top: 2rem;
}

body.pag-demanar img {
    max-width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
}

/* ===== Pàgina 2: Panell torn actual (SSE) ===== */
body.pag-panell {
    margin: 0;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: #fff;
    color: #002d74;
    font-family: system-ui, sans-serif;
}

body.pag-panell .contenidor {
    width: min(96vw, 70rem);
    text-align: center;
    place-items: center;
    display: grid;
    gap: 1rem;
}

body.pag-panell .etiqueta {
    opacity: .8;
    font-size: 1.25rem;
    letter-spacing: .06em;
}

/* Mides específiques del panell */
body.pag-panell .torn {
    line-height: 1;
    letter-spacing: .06em;
    /* (ja ve de base) */
    font-size: clamp(5rem, 16vw, 14rem);
    transition: opacity .22s ease-out;
}