/* ===========================================================
   Calçofest · Full d'estils
   =========================================================== */

/* --- Fonts --- */
@font-face {
    font-family: "Mildstones";
    src: url("assets/fonts/Mildstones.woff2") format("woff2"),
         url("assets/fonts/Mildstones.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Unbounded";
    src: url("assets/fonts/Unbounded.woff2") format("woff2"),
         url("assets/fonts/Unbounded.ttf") format("truetype");
    font-weight: 200 900;
    font-style: normal;
    font-display: block;
}

/* --- Variables --- */
:root {
    /* Colors de marca */
    --marro: #3e322c;
    --veix: #fff0d5;
    --taronja: #ff6423;
    --blau-cel: #73bacf;
    --groc: #f4ae00;
    --rosa: #edb2b2;
    --vermell: #f21424;

    /* Tipografies */
    --font-titol: "Mildstones", cursive;
    --font-text: "Unbounded", sans-serif;
}

/* --- Reset bàsic --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--marro);
}

body {
    font-family: var(--font-text);
    background-color: var(--marro);
    color: var(--veix);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ===========================================================
   Separadors
   =========================================================== */
.separador {
    width: 100%;
    display: block;
}

/* ===========================================================
   Seccions
   =========================================================== */
.seccio {
    width: 100%;
    min-height: 80vh;
}

/* Hero — fons marró */
.hero {
    background-color: var(--marro);
    color: var(--veix);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.25rem;
    position: relative;
    z-index: 1; /* el hero (i les icones que vessen) per sobre dels separadors */
    /* overflow visible perquè les icones sobresurtin sobre els separadors;
       el retall horitzontal (fora de la plana) el fa el body amb overflow-x: hidden */
    overflow: visible;
}

.hero-inner {
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
}

/* --- Decoració flotant (icones) --- */
.hero-deco {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.deco {
    position: absolute;
    left: var(--x);
    top: var(--y);
    /* Transform compost a partir de custom props perquè el JS (float idle +
       magnètic) només actualitzi l'offset dinàmic sense trencar el centrat
       ni la rotació base. Valors per defecte = posició original en repòs. */
    transform:
        translate(-50%, -50%)
        translate(var(--dx, 0px), var(--dy, 0px))
        rotate(calc(var(--r, 0deg) + var(--dr, 0deg)))
        scale(var(--ds, 1));
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
    will-change: transform;
}

/* Mides per nivell */
.deco--xxl { width: clamp(96px, 11vw, 200px); }
.deco--xl { width: clamp(72px, 8.5vw, 150px); }
.deco--l  { width: clamp(54px, 6.4vw, 116px); }
.deco--m  { width: clamp(40px, 4.6vw, 80px); }
.deco--s  { width: clamp(22px, 2.7vw, 46px); }
.deco--xs { width: clamp(15px, 1.9vw, 32px); }

/* La decoració completa està pensada per a la vista ampla.
   Per sota de 760px el cartell omple l'amplada i no hi ha marges. */
@media (max-width: 759px) {
    .hero-deco { display: none; }

    /* Sense alçada mínima en mòbil: les seccions s'ajusten al contingut */
    .seccio {
        min-height: auto;
    }

    /* Marge lateral mínim per aprofitar al màxim l'amplada del dispositiu */
    .hero {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
}

/* --- Logotip --- */
.hero-logo {
    width: min(520px, 88%);
    height: auto;
    margin-bottom: 1.5rem;
}

/* Data i lloc, sota el logo */
.hero-data--top {
    margin-bottom: 2.5rem;
}

/* --- Cartell de grups --- */
.hero-lineup {
    --lineup-gap: 0.35rem;
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lineup-gap);
}

.ln {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 0.82;
    letter-spacing: 0.01em;
    margin: 0;
}

.ln--taronja { color: var(--taronja); }
.ln--veix    { color: var(--veix); }

.punt {
    /* punt separador, una mica més petit i centrat */
    display: inline-block;
    transform: translateY(-0.08em);
}

/* Àncora per enganxar les estrelles als extrems del text */
.ln-ancora {
    position: relative;
    display: inline-block;
}

/* Mides per línia (jerarquia descendent i clara) */
.ln-1 { font-size: clamp(2.3rem, 8.6vw, 6.2rem); }
.ln-2 { font-size: clamp(1.65rem, 7vw, 5.6rem); }
.ln-7 { font-size: clamp(1.6rem, 5.4vw, 3.3rem); }

/* --- Files combinables (fila 3 i fila 4) --- */
/* Disposició ESTRETA (per defecte): cada segment a la seva línia */
.sep-grup { display: none; }
/* Files combinables: en estret, els segments apilats amb el mateix gap */
.ln-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lineup-gap);
}
.seg {
    display: block;
    margin: 0;
}
.ln-row3 .seg-a { font-size: clamp(1.85rem, 6.6vw, 4.4rem); }
.ln-row3 .seg-b { font-size: clamp(1.6rem, 5.4vw, 3.9rem); }
.ln-row4 .seg-a { font-size: clamp(1.8rem, 6.2vw, 4rem); }
.ln-row4 .seg-b { font-size: clamp(1.55rem, 5.2vw, 3.4rem); }

/* Disposició LANDSCAPE: les dues files combinades en una sola línia */
@media (min-width: 760px) {
    /* Contingut endinsat per deixar marge a l'orla d'icones */
    .hero-inner {
        width: min(1480px, 78vw);
    }
    .ln-2 { font-size: clamp(1.65rem, 6.2vw, 5.4rem); }
    .ln-row {
        display: block;
        white-space: nowrap;
    }
    .ln-row .seg {
        display: inline;
        margin: 0;
    }
    .sep-grup {
        display: inline;
        color: var(--veix);
    }
    /* Jerarquia descendent: row3 > row4 > última línia */
    .ln-row3 .seg-a,
    .ln-row3 .seg-b,
    .ln-row3 .sep-grup { font-size: clamp(1.8rem, 3.4vw, 3.8rem); }
    .ln-row4 .seg-a,
    .ln-row4 .seg-b,
    .ln-row4 .sep-grup { font-size: clamp(1.65rem, 3.0vw, 3.4rem); }
    .ln-7 { font-size: clamp(1.5rem, 2.7vw, 3rem); }

    /* Color per línia sencera (no per grup) */
    .ln-row3 .seg,
    .ln-row3 .sep-grup { color: var(--veix); }
    .ln-row4 .seg,
    .ln-row4 .sep-grup { color: var(--taronja); }
}

/* Mòbil: grups proporcionalment més grans.
   COL·LOCAT DESPRÉS de les mides base perquè guanyi a la cascada
   (les media queries no sumen especificitat; mana l'ordre al fitxer). */
@media (max-width: 759px) {
    .ln-1 { font-size: clamp(2.9rem, 12vw, 6rem); }
    .ln-2 { font-size: clamp(2.05rem, 10.8vw, 4.8rem); }
    .ln-7 { font-size: clamp(1.8rem, 9.1vw, 3.95rem); }
    .ln-row3 .seg-a { font-size: clamp(1.9rem, 10.1vw, 4.45rem); }
    .ln-row3 .seg-b { font-size: clamp(1.75rem, 9.1vw, 3.95rem); }
    .ln-row4 .seg-a { font-size: clamp(1.9rem, 9.8vw, 4.3rem); }
    .ln-row4 .seg-b { font-size: clamp(1.8rem, 9.1vw, 3.95rem); }
}

/* --- Estrelles / segells --- */
.estrella-badge {
    --s: 88px;
    position: absolute;
    width: var(--s);
    height: var(--s);
    background-color: var(--groc);
    clip-path: polygon(50.0% 0.0%, 60.1% 12.3%, 75.0% 6.7%, 77.6% 22.4%, 93.3% 25.0%, 87.7% 39.9%, 100.0% 50.0%, 87.7% 60.1%, 93.3% 75.0%, 77.6% 77.6%, 75.0% 93.3%, 60.1% 87.7%, 50.0% 100.0%, 39.9% 87.7%, 25.0% 93.3%, 22.4% 77.6%, 6.7% 75.0%, 12.3% 60.1%, 0.0% 50.0%, 12.3% 39.9%, 6.7% 25.0%, 22.4% 22.4%, 25.0% 6.7%, 39.9% 12.3%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    will-change: transform;
}

.estrella-badge > span {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--marro);
    font-size: calc(var(--s) * 0.166);
    line-height: 1;
    text-align: center;
}

/* Calçofest matí: mida lligada a la del text de l'última línia (escala junts).
   1.375em ≈ 66px quan l'última línia és a 48px (3rem). */
.estrella-badge--mati {
    --s: 1.375em;
}

/* "Final de gira" enganxat al final de la primera línia (cantonada superior dreta).
   El transform es compon amb les vars dinàmiques (--dx/--dy/--dr/--ds) perquè el
   badge reaccioni com un sticker: els translates el posicionen i rotate/scale
   pivoten al centre propi (in-place). Vars per defecte = posició en repòs. */
.estrella-badge--gira {
    top: 0;
    right: 0;
    transform:
        translate(calc(var(--s) * 0.9), calc(var(--s) * -0.1))
        translate(var(--dx, 0px), var(--dy, 0px))
        rotate(calc(12deg + var(--dr, 0deg)))
        scale(var(--ds, 1));
}

/* "Calçofest matí" enganxat al principi de l'última línia (cantonada inferior esquerra) */
.estrella-badge--mati {
    bottom: 0;
    left: 0;
    transform:
        translate(calc(var(--s) * -0.9), calc(var(--s) * 0.2))
        translate(var(--dx, 0px), var(--dy, 0px))
        rotate(calc(-12deg + var(--dr, 0deg)))
        scale(var(--ds, 1));
}

/* --- Data + CTA --- */
.hero-accions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-data,
.hero-btn {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--marro);
    border-radius: 999px;
    line-height: 1;
    text-align: center;
}

.hero-data {
    background-color: var(--blau-cel);
    font-size: clamp(1.05rem, 2.4vw, 1.6rem);
    padding: 0.62em 1.1em 0.42em;
    letter-spacing: 0.01em;
}

.hero-btn {
    background-color: var(--groc);
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    padding: 0.6em 1.4em 0.4em;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease;
}

.hero-btn:hover {
    transform: scale(1.04);
}

/* Entrades — fons veix */
.entrades {
    background-color: var(--veix);
    color: var(--marro);
    display: flex;
    align-items: flex-start;
    min-height: auto;
    padding: 2.5rem 0 5rem;
}

/* Secció Artistes: reutilitza l'estil d'Entrades però amb fons taronja
   (el text ja és marró a .entrades i als seus fills). */
#artistes {
    background-color: var(--taronja);
    color: var(--marro);
}

/* Menys distància entre el títol "Artistes" i el carrusel (sense tocar Entrades) */
#artistes .entrades-titol {
    margin-bottom: 0.75rem;
}

/* Secció d'accés amb bus */
.bus-calcofest {
    min-height: auto;
    background-color: var(--marro);
    color: var(--veix);
    padding: clamp(4rem, 8vw, 7rem) 1.25rem clamp(4.5rem, 9vw, 8rem);
}

.bus-calcofest-inner {
    width: min(1240px, 92%);
    margin: 0 auto;
}

.bus-calcofest-titol {
    font-family: var(--font-titol);
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    font-weight: normal;
    line-height: 1.05;
    color: var(--veix);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.bus-calcofest-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.7fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: stretch;
}

.bus-ruta {
    border: 2px solid rgba(255, 240, 213, 0.45);
    border-radius: 1.75rem;
}

.bus-preu,
.bus-mes-rutes {
    border-radius: 1.75rem;
}

.bus-ruta {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.bus-etiqueta {
    color: var(--taronja);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bus-ruta > h3,
.bus-mes-rutes h3 {
    margin-top: 0.4rem;
    font-family: var(--font-titol);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: normal;
    line-height: 1;
    text-transform: uppercase;
}

.bus-ruta > h3 span {
    color: var(--blau-cel);
}

.bus-trajecte {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(3rem, 8vw, 7rem) minmax(0, 1fr);
    align-items: center;
    margin-top: clamp(2rem, 4vw, 3.25rem);
}

.bus-parada {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bus-parada--tornada {
    text-align: right;
    align-items: flex-end;
}

.bus-hora {
    color: var(--groc);
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 750;
}

.bus-parada strong {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.bus-parada > span:last-child,
.bus-nota-horari,
.bus-condicions p,
.bus-mes-rutes p {
    font-size: clamp(0.75rem, 1.2vw, 0.92rem);
}

.bus-parada > span:last-child {
    opacity: 0.78;
}

.bus-trajecte-linia {
    position: relative;
    height: 2px;
    background: var(--blau-cel);
}

.bus-trajecte-linia::before,
.bus-trajecte-linia::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--blau-cel);
    transform: translateY(-50%);
}

.bus-trajecte-linia::before { left: 0; }
.bus-trajecte-linia::after { right: 0; }

.bus-nota-horari {
    max-width: 60rem;
    margin-top: clamp(1.75rem, 4vw, 3rem);
    opacity: 0.78;
}

.bus-preu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--marro);
    background: var(--groc);
    text-align: center;
    transform: rotate(1deg);
}

.bus-preu .bus-etiqueta {
    color: var(--marro);
}

.bus-preu-xifra {
    margin-top: 0.35rem;
    font-family: var(--font-titol);
    font-size: clamp(5rem, 10vw, 8rem);
    line-height: 0.9;
}

.bus-preu-xifra span {
    font-size: 0.55em;
}

.bus-preu-data {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.bus-compra,
.bus-rutes-boto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-family: var(--font-titol);
    font-size: 1.25rem;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.bus-compra {
    margin-top: 1.5rem;
    color: var(--veix);
    background: var(--marro);
}

.bus-mes-rutes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--blau-cel);
    color: var(--marro);
}

.bus-mes-rutes .bus-etiqueta {
    color: var(--marro);
}

.bus-mes-rutes p:last-child {
    max-width: 45rem;
    margin-top: 0.65rem;
}

.bus-rutes-boto {
    flex: 0 0 auto;
    border: 2px solid var(--marro);
}

.bus-rutes-accions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.65rem;
}

.bus-rutes-boto--whatsapp {
    color: var(--veix);
    background: var(--marro);
}

.bus-whatsapp-icona {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.5rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.bus-whatsapp-icona path + path {
    fill: currentColor;
    stroke: none;
}

.bus-condicions {
    max-width: 66rem;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    text-align: center;
}

.bus-operador {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 240, 213, 0.08);
}

.bus-operador span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.72;
}

.bus-operador img {
    width: 2.25rem;
    height: 1.1rem;
    object-fit: contain;
}

.bus-operador strong {
    font-size: 0.8rem;
}

.bus-condicions h3 {
    margin-bottom: 0.7rem;
    color: var(--taronja);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bus-condicions p {
    opacity: 0.78;
}

.bus-condicions p + p {
    margin-top: 0.75rem;
}

.bus-contacte {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    margin: 1rem 0;
    font-size: clamp(0.75rem, 1.2vw, 0.92rem);
}

.bus-contacte a {
    color: var(--groc);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.bus-contacte a:hover,
.bus-contacte a:focus-visible {
    color: var(--taronja);
}

@media (max-width: 760px) {
    .bus-calcofest-grid {
        grid-template-columns: 1fr;
    }

    .bus-preu {
        transform: none;
    }

    .bus-trajecte {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bus-trajecte-linia {
        width: 2px;
        height: 3rem;
        margin-left: 0.35rem;
    }

    .bus-trajecte-linia::before,
    .bus-trajecte-linia::after {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .bus-trajecte-linia::before { top: 0; }
    .bus-trajecte-linia::after { top: 100%; }

    .bus-parada--tornada {
        align-items: flex-start;
        text-align: left;
    }

    .bus-mes-rutes {
        align-items: flex-start;
        flex-direction: column;
    }

    .bus-rutes-accions,
    .bus-rutes-boto {
        width: 100%;
    }
}

/* Descomptes a la home */
.home-descomptes {
    min-height: 0;
    padding: clamp(3.25rem, 5.5vw, 5rem) 1.25rem clamp(1.75rem, 3vw, 2.5rem);
    background: var(--blau-cel);
    color: var(--marro);
}

.home-descomptes-inner {
    width: min(1240px, 92%);
    margin: 0 auto;
}

.home-descomptes-capcalera {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    align-items: end;
    gap: 2.5rem;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.home-descomptes h2,
.home-descomptes-opcio strong {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
}

.home-descomptes h2 {
    color: var(--veix);
    font-size: clamp(4.1rem, 8.6vw, 8.25rem);
    line-height: 0.9;
    -webkit-text-stroke: 1.5px var(--marro);
    paint-order: stroke fill;
    text-shadow: 3px 4px 0 var(--marro);
}

.home-descomptes-capcalera p {
    padding-bottom: 0.2rem;
    font-size: clamp(0.9rem, 1.35vw, 1.05rem);
    font-weight: 600;
    line-height: 1.55;
}

.home-descomptes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-block: 2px solid var(--marro);
}

.home-descomptes-opcio {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 310px;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    transition: background-color 0.2s ease;
}

.home-descomptes-opcio:first-child {
    padding-left: 0;
    border-right: 2px solid var(--marro);
}

.home-descomptes-opcio:last-child { padding-right: 0; }
.home-descomptes-opcio:hover { background: rgba(255, 240, 213, 0.2); }
.home-descomptes-opcio:focus-visible,
.home-descomptes-cambra:focus-visible { outline: 3px solid var(--marro); outline-offset: 4px; }

.home-descomptes-opcio-cap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.075em;
}

.home-descomptes-opcio-cap span { font-size: 1.9rem; font-weight: 400; line-height: 1; }

.home-descomptes-opcio strong {
    max-width: 12ch;
    font-size: clamp(2.85rem, 4vw, 4.3rem);
    line-height: 0.97;
}

.home-descomptes-detall {
    max-width: 34rem;
    margin-top: 0.9rem;
    margin-bottom: 1.3rem;
    font-size: clamp(0.86rem, 1.1vw, 0.98rem);
    line-height: 1.55;
}

.home-descomptes-enllac {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.8rem;
    margin-top: auto;
    padding: 0.68rem 0.95rem;
    border-radius: 100px;
    background: var(--veix);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-descomptes-enllac span {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.home-descomptes-opcio:hover .home-descomptes-enllac span { transform: translateX(4px); }

.home-descomptes-cambra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    width: fit-content;
    margin: 1.25rem 0 0 auto;
    color: var(--marro);
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-descomptes-cambra span { font-size: 0.7rem; font-weight: 700; }
.home-descomptes-cambra img {
    width: 124px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(18%) sepia(10%) saturate(758%) hue-rotate(335deg) brightness(97%) contrast(90%);
    transition: filter 0.2s ease;
}

.home-descomptes-cambra:hover,
.home-descomptes-cambra:focus-visible {
    color: var(--veix);
    transform: translateY(-3px);
}

.home-descomptes-cambra:hover img,
.home-descomptes-cambra:focus-visible img { filter: none; }

.home-descomptes-cambra:hover span,
.home-descomptes-cambra:focus-visible span { text-decoration: underline; text-underline-offset: 0.25em; }

@media (max-width: 900px) {
    .home-descomptes-capcalera { grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); gap: 1.5rem; }
    .home-descomptes-opcio { min-height: 360px; }
}

@media (max-width: 700px) {
    .home-descomptes { padding-block: 3.5rem 2.5rem; }
    .home-descomptes-capcalera { grid-template-columns: 1fr; gap: 1rem; }
    .home-descomptes-grid { grid-template-columns: 1fr; }
    .home-descomptes-opcio { min-height: 0; padding: 1.7rem 0; }
    .home-descomptes-opcio:first-child { border-right: 0; border-bottom: 2px solid var(--marro); }
    .home-descomptes-opcio strong { font-size: clamp(2.45rem, 11vw, 3.5rem); }
    .home-descomptes-enllac { margin-top: 0; }
    .home-descomptes-cambra { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-descomptes-opcio,
    .home-descomptes-enllac span,
    .home-descomptes-cambra,
    .home-descomptes-cambra img { transition: none; }
    .home-descomptes-cambra:hover,
    .home-descomptes-cambra:focus-visible { transform: none; }
}

.entrades-inner {
    width: min(1240px, 92%);
    margin: 0 auto;
}

.entrades-titol {
    font-family: var(--font-titol);
    font-weight: normal;
    color: var(--marro);
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
}

.entrades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Peu de la secció Entrades: nota sobre el Bo Cultural */
.entrades-bo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 3.25rem auto 0;
    color: var(--marro);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    text-align: left;
}

.entrades-bo-logo {
    height: 3.2em;
    width: auto;
    flex: none;
}

/* --- Artistes: carrusel horitzontal (3 cards visibles a escriptori) --- */
/* Full-bleed: surt del límit de .entrades-inner i ocupa tota l'amplada de la
   finestra (el títol segueix centrat dins l'inner). */
.artistes-carrusel {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.carrusel-viewport {
    position: relative;
}

.carrusel-track {
    /* --peek = amplada del tros visible de la card veïna (anterior/següent) */
    --peek: clamp(1.5rem, 5vw, 4.5rem);
    --gap: 1.75rem;
    position: relative;                /* offsetParent estable per al JS */
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* NB: scroll-behavior el controla el JS en línia (smooth en avançar,
       auto en el salt invisible del bucle). No el posem aquí. */
    /* Inset esquerre en fer snap perquè la card focal deixi veure un tros
       de l'anterior a l'esquerra. */
    scroll-padding-left: calc(var(--peek) + var(--gap));
    /* Espai vertical perquè els stickers sobresurtin sense retallar-se:
       overflow-x força overflow-y a 'auto' (clip), així que qualsevol
       vessament dels stickers fora d'aquest padding es retallaria. Els
       stickers fan 110% d'amplada i són més alts que amples, i el seu
       vessament escala amb l'amplada de la card (i per tant del viewport):
       per això el padding és proporcional (vw) i no un valor fix. */
    padding: clamp(44px, 5.5vw, 96px) 0;
    /* Amaga la barra de scroll (la navegació es fa amb punts/swipe) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carrusel-track::-webkit-scrollbar { display: none; }

/* 3 cards senceres + un tros (peek) de la veïna a banda i banda */
.carrusel-track > .artista {
    flex: 0 0 calc((100% - 2 * var(--peek) - 4 * var(--gap)) / 3);
    min-width: 0;            /* evita que un nom llarg (nowrap) eixampli la card */
    scroll-snap-align: start;
}

/* Punts indicadors */
.carrusel-punts {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.4rem;
}
.carrusel-punt {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 2.5px solid var(--marro);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.carrusel-punt:hover { transform: scale(1.15); }
.carrusel-punt.is-actiu { background: var(--marro); }

/* Sense JS: amaguem els punts (no farien res); el track segueix sent usable
   com a scroll horitzontal amb swipe. El <html> rep la classe 'js'. */
html:not(.js) .carrusel-punts { display: none; }

.artista {
    border-radius: 28px;
    background-color: var(--marro);
    border: 4px solid var(--veix);                 /* vora beix PER FORA de la card */
    padding: clamp(1.1rem, 2.2vw, 1.9rem);         /* més marró → foto més petita */
    /* Card en columna: la foto té alçada fixa (aspect-ratio) i el nom reserva
       2 línies, així totes les cards queden igual d'altes. */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;                            /* àncora per als stickers */
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Stickers: overlay PNG per card amb el centre transparent. Es dimensiona
   una mica més gran que la card perquè sobresurtin pels marges. No bloqueja
   el ratolí i queda per sobre de la foto però per sota del nom. */
.artista-stickers {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    max-width: none;                               /* anul·la el reset img{max-width:100%} */
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.artista:hover {
    transform: translateY(-8px);
}

/* Nom de l'artista: Mildstones, taronja amb contorn beix gruixut.
   paint-order: stroke fill → el contorn es pinta DARRERE del farciment,
   així el taronja queda sencer i el beix només envolta les lletres. */
.artista-nom {
    /* El nom puja i trepitja una mica la part baixa de la foto: la 1a línia
       queda damunt la imatge (com a les referències). Reservem sempre
       l'alçada de 2 línies perquè totes les cards quedin igual d'altes. */
    margin-top: -0.55em;                            /* superposició sobre la foto */
    min-height: 1.8em;                              /* 2 línies a line-height 0.9 */
    position: relative;                             /* el text per sobre de foto i stickers */
    z-index: 6;
    display: flex;
    align-items: flex-start;                        /* 1a línia a dalt, tocant la foto */
    justify-content: center;
    text-align: center;
    white-space: nowrap;                            /* noms d'1 paraula/línia no es parteixen */
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 0.01em;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    color: var(--taronja);
    -webkit-text-stroke: 0.12em var(--veix);
            text-stroke: 0.12em var(--veix);
    paint-order: stroke fill;
}

/* Nom de 2 línies (Els Amics de les Arts): puja una línia sencera perquè la
   2a línia quedi on tenia la 1a i aquesta trepitgi més la foto. Fem servir
   transform per NO alterar l'alçada de la card (es manté igual que les altres). */
.artista-nom--2l {
    transform: translateY(-0.9em);                 /* 1 línia (line-height 0.9) */
}

.artista-foto {
    display: block;
    width: 100%;
    aspect-ratio: 561 / 500;                        /* igual que mascara.png → sense deformar */
    object-fit: cover;
    /* La forma de la foto la defineix mascara.png (canal alpha). */
    -webkit-mask-image: url("assets/mascara.png");
            mask-image: url("assets/mascara.png");
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
            mask-mode: alpha;
}

/* --- FAQs: acordió sobre el fons veix d'Entrades --- */
.faqs-llista {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-text);
}

.faq {
    border-bottom: 2px solid rgba(62, 50, 44, 0.18);   /* marró translúcid */
}
.faq:first-child {
    border-top: 2px solid rgba(62, 50, 44, 0.18);
}

/* La pregunta clicable */
.faq-pregunta {
    list-style: none;                                  /* treu el triangle natiu */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.15rem 0.25rem;
    font-weight: 600;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.3;
    color: var(--marro);
}
.faq-pregunta::-webkit-details-marker { display: none; }   /* Safari */
.faq-pregunta:hover { color: var(--taronja); }
.faq-pregunta:focus-visible {
    outline: 3px solid var(--taronja);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Icona +/− dibuixada amb dues barres */
.faq-icona {
    flex: 0 0 auto;
    position: relative;
    width: 1.3em;
    height: 1.3em;
}
.faq-icona::before,
.faq-icona::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.85em;
    height: 0.16em;
    border-radius: 3px;
    background: var(--taronja);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}
.faq-icona::after { transform: translate(-50%, -50%) rotate(90deg); }  /* + */
.faq[open] .faq-icona::after { transform: translate(-50%, -50%) rotate(0); }  /* − */

/* La resposta */
.faq-resposta {
    padding: 0 0.25rem 1.3rem;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.65;
    color: var(--marro);
}
/* Enllaços dins les respostes: subratllats sempre, taronja en passar-hi */
.faq-resposta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}
.faq-resposta a:hover,
.faq-resposta a:focus-visible {
    color: var(--taronja);
}

.faq[open] .faq-resposta { animation: faqIn 0.28s ease both; }

/* Frase d'introducció dels botons socials */
.faqs-botons-intro {
    max-width: 760px;
    margin: 2.6rem auto 0;
    text-align: center;
    font-family: var(--font-text);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--marro);
}

/* Botons socials sota les FAQs (pill, mateix patró que .hero-btn) */
.faqs-botons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    max-width: 760px;
    margin: 1.2rem auto 0;
}
.faq-btn {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--marro);
    border-radius: 999px;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.02em;
    /* Mildstones seu alt a la caixa → més padding a dalt que a baix */
    padding: 0.66em 1.45em 0.46em;
    /* El mínim governa a mòbil (el vw hi és petit) → el pugem perquè els
       botons també hi siguin grans. */
    font-size: clamp(1.55rem, 3.2vw, 1.9rem);
    transition: transform 0.15s ease;
}
.faq-btn:hover,
.faq-btn:focus-visible { transform: scale(1.04); }
.faq-btn--ig { background-color: var(--blau-cel); }              /* blau, text marró */
.faq-btn--sp { background-color: #1db954; color: #fff; }        /* verd Spotify, text blanc */
@keyframes faqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}


.entrada {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* La targeta s'aixeca lleugerament i l'estrella del preu fa un petit rebot */
.entrada:hover {
    transform: translateY(-8px);
}

.entrada-estrella {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.entrada:hover .entrada-estrella {
    transform: rotate(-8deg) scale(1.08);
}

/* Estrella amb el preu */
.entrada-estrella {
    width: 150px;
    height: 150px;
    background-color: var(--c);
    clip-path: polygon(50.0% 0.0%, 60.1% 12.3%, 75.0% 6.7%, 77.6% 22.4%, 93.3% 25.0%, 87.7% 39.9%, 100.0% 50.0%, 87.7% 60.1%, 93.3% 75.0%, 77.6% 77.6%, 75.0% 93.3%, 60.1% 87.7%, 50.0% 100.0%, 39.9% 87.7%, 25.0% 93.3%, 22.4% 77.6%, 6.7% 75.0%, 12.3% 60.1%, 0.0% 50.0%, 12.3% 39.9%, 6.7% 25.0%, 22.4% 22.4%, 25.0% 6.7%, 39.9% 12.3%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.entrada-preu {
    font-family: var(--font-titol);
    font-weight: normal;
    color: var(--marro);
    font-size: 3rem;
    line-height: 1;
}

.entrada-nom {
    font-family: var(--font-titol);
    font-weight: normal;
    color: var(--marro);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Per defecte, nom en dues línies */
.entrada-nom span {
    display: block;
}

.entrada-desc {
    font-family: var(--font-text);
    font-weight: 300; /* Unbounded Light */
    color: var(--marro);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    max-width: 18rem;
}

/* Empeny el botó cap avall perquè quedin alineats */
.entrada-desc {
    flex-grow: 1;
}

.entrada-btn {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--marro);
    background-color: var(--c);
    border: 3px solid var(--marro);
    border-radius: 999px;
    padding: 0.55rem 2rem;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.entrada-btn:hover {
    transform: scale(1.05);
}

/* Botó inactiu (Pròximament) — text clar sobre vermell */
.entrada-btn--inactiu {
    color: var(--veix);
    cursor: not-allowed;
}

.entrada-btn--inactiu:hover {
    transform: none;
}

/* Footer — fons blau cel */
.footer {
    background-color: var(--blau-cel);
    color: var(--veix);
    min-height: auto;
    padding: 4rem 0;
}

.footer-inner {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Tot el text del footer en Unbounded Medium */
.footer,
.footer a {
    font-family: var(--font-text);
    font-weight: 500;
}

/* --- Blocs de logos --- */
/* Contenidor que ocupa tot l'ample; el bloc s'hi escala per omplir-lo */
.footer-logos-fit {
    width: 100%;
}

.footer-logos {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem 5rem;
    transform-origin: left top;
}

/* A partir de tauleta: el bloc agafa la seva mida natural i el JS l'escala
   uniformement (logos + tipografia) per omplir el 100% de l'amplada */
@media (min-width: 769px) {
    .footer-logos {
        grid-template-columns: auto auto;
        width: max-content;
    }
    .footer-logos .logo-fila {
        flex-wrap: nowrap;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.logo-titol {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.logo-fila {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Logos */
.logo-enllac {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.logo-enllac:hover {
    opacity: 0.85;
}

.logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo--bonarea {
    height: 28px;
}

.logo--nulles {
    height: 42px;
}

.logo-enllac:hover .logo {
    transform: scale(1.08);
}

/* --- Línia separadora --- */
.footer-linia {
    border: none;
    border-top: 2px solid var(--veix);
    margin: 3rem 0 2rem;
}

/* --- Bloc legal --- */
.footer-legal {
    text-align: center;
}

.footer-enllacos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 1.1rem;
    line-height: 1.2;
}

.footer-enllacos .sep {
    opacity: 0.7;
}

.footer-copy {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.footer-credits {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-credits a {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .entrades-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
    /* Carrusel: 2 cards visibles + peeks */
    .carrusel-track > .artista {
        flex-basis: calc((100% - 2 * var(--peek) - 3 * var(--gap)) / 2);
    }
}

@media (max-width: 768px) {
    .footer-logos {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Les columnes desapareixen com a contenidor perquè cada grup de logos
       sigui un element del grid i es pugui reordenar */
    .footer-col {
        display: contents;
    }

    /* L'emissora oficial passa al final, després de "Col·labora" */
    .logo-grup--emissora {
        order: 1;
    }

    /* Una mica més de separació amb el copyright */
    .footer-copy {
        margin-top: 1rem;
    }

    /* Els separadors mantenen la mida del dibuix i es retallen pels costats */
    .separador {
        height: 24px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .entrades-grid {
        grid-template-columns: 1fr;
    }
    /* Carrusel: 1 card visible + peeks */
    .carrusel-track > .artista {
        flex-basis: calc(100% - 2 * var(--peek) - 2 * var(--gap));
    }

    /* Títol de secció més gran a mòbil */
    .entrades-titol {
        font-size: clamp(3.4rem, 13vw, 5rem);
    }

    /* Noms d'entrada en una sola línia i una mica més grans */
    .entrada-nom {
        font-size: 2rem;
    }

    /* A una sola columna la card ocupa tota l'amplada: el nom creix amb ella */
    .artista-nom {
        font-size: clamp(2.8rem, 12vw, 4.4rem);
    }

    .entrada-nom span {
        display: inline;
    }

    /* Estrelles del hero més petites a mòbil */
    .estrella-badge { --s: 78px; }
    /* Final de gira: 20% més petita i una mica amunt (només mòbil) */
    .estrella-badge--gira {
        --s: 62px;
        transform: translate(90%, -25%) rotate(12deg);
    }
    .estrella-badge--mati { --s: 58.5px; } /* 75% */
}

/* ===========================================================
   Pàgines legals (condicions, privacitat, cookies, avís legal)
   =========================================================== */
.legal-page {
    background-color: var(--veix);
    color: var(--marro);
}

.legal-header {
    background-color: var(--marro);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.legal-logo {
    width: 220px;
    max-width: 60%;
    height: auto;
    display: inline-block;
}

.legal {
    width: min(760px, 90%);
    margin: 0 auto;
    padding: 3.5rem 0 4.5rem;
}

.legal h1 {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 0.6rem;
}

.legal h2 {
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 2.2rem 0 0.75rem;
}

.legal p {
    font-family: var(--font-text);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal ol,
.legal ul {
    font-family: var(--font-text);
    font-weight: 300;
    line-height: 1.7;
    padding-left: 1.4em;
    margin: 0 0 1.5rem;
}

.legal li {
    margin-bottom: 1.1rem;
    padding-left: 0.3em;
}

.legal a {
    color: var(--marro);
    text-decoration: underline;
}

.legal-data {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.65;
    margin-bottom: 2.5rem;
}

.legal-back,
.cookie-prefs-btn {
    display: inline-block;
    margin-top: 2.5rem;
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--marro);
    background-color: var(--groc);
    border: none;
    border-radius: 999px;
    padding: 0.6em 1.5em 0.45em;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cookie-prefs-btn {
    margin-top: 0.5rem;
}

.legal-back:hover {
    transform: scale(1.04);
}

/* ===========================================================
   Banner de consentiment de cookies
   =========================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    background: var(--marro);
    color: var(--veix);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-text {
    font-family: var(--font-text);
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 720px;
    margin: 0;
}

.cookie-text a {
    color: var(--groc);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    font-family: var(--font-titol);
    font-weight: normal;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 0.55em 1.5em 0.4em;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cookie-btn--accept {
    background: var(--groc);
    color: var(--marro);
}

.cookie-btn--reject {
    background: transparent;
    color: var(--veix);
    border-color: var(--veix);
}

.cookie-btn:hover {
    transform: scale(1.04);
}

@media (max-width: 600px) {
    .cookie-banner {
        justify-content: flex-start;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================================
   Scroll reveal (IntersectionObserver vanilla, independent de Motion)
   anim.js afegeix .reveal-init + .reveal-anim als elements (sempre
   per sota del plec → cap parpelleig), i en entrar a la vista hi
   posa .reveal-in. En acabar la transició, treu totes les classes
   perquè els :hover tornin a manar.
   =========================================================== */
.reveal-init {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-anim {
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-in {
    opacity: 1;
    transform: none;
}

/* ===========================================================
   Animacions · estat inicial ocult per a les entrades
   La classe `.anim` l'afegeix un script síncron al <head> (només
   si hi ha JS i NO hi ha reduce-motion). anim.js pren el control
   via estils inline i treu la classe; si Motion no carrega, un
   fallback la treu igualment → mai queda res amagat.
   =========================================================== */
.anim .hero-logo,
.anim .hero-data,
.anim .hero-lineup .ln,
.anim .hero-accions,
.anim .hero-deco .deco {
    opacity: 0;
}

/* ===========================================================
   Accessibilitat · respecta "reduce motion"
   El JS (anim.js) també comprova aquesta preferència i no engega
   ni el bucle del cursor ni les entrades; això n'és la xarxa de
   seguretat per a tot el que és purament CSS.
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    /* Neutralitza qualsevol offset dinàmic que pogués haver quedat */
    .deco,
    .estrella-badge {
        --dx: 0px;
        --dy: 0px;
        --dr: 0deg;
        --ds: 1;
    }
}

/* Avantatges d'entrades: Bo Cultural i Carnet Jove. */
.entrades-avantatges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3.25rem auto 0;
    color: var(--marro);
}
.entrades-avantatges .entrades-bo,
.entrades-carnet {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.9rem;
    margin: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    text-align: left;
}
.entrades-carnet {
    border-left: 1px solid currentColor;
    padding-left: 2rem;
}
.entrades-carnet-logo {
    width: 5.2rem;
    height: auto;
    flex: none;
}
@media (max-width: 900px) {
    .entrades-avantatges {
        flex-direction: column;
        align-items: stretch;
        max-width: 36rem;
        gap: 1.5rem;
    }
    .entrades-carnet {
        border-left: 0;
        border-top: 1px solid currentColor;
        padding: 1.5rem 0 0;
    }
    .entrades-avantatges .entrades-bo {
        justify-content: flex-start;
    }
}

.entrades-promo-condicions {
    color: inherit;
    font-size: 0.8em;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Blocs d'avantatges accessibles com a enllaços complets. */
a.entrades-bo:focus-visible,a.entrades-carnet:focus-visible{outline:2px solid var(--marro);outline-offset:6px}
a.entrades-bo:hover span,a.entrades-carnet:hover span{text-decoration:underline;text-underline-offset:.2em}
