@import url('https://api.fontshare.com/v2/css?f[]=switzer@100,200,300,400,500,600,700,800,900&display=swap');

@font-face {
    font-family: "Parra";
    src: url("../fonts/Parra_light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    line-height: 1.5;
    color: inherit;
    box-sizing: border-box;
    /*/outline: 1px solid red;*/

}

html {
    height: 100%;
    width: 100%;
    font-size: 16px;
    font-family: Switzer;
}

body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}


svg {
    all: unset;

}



#BlocInfo {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 22vh;
    padding: 4vh;
    box-sizing: border-box;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 100;
}

#BlocInfo.visible {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    outline: 1.6px solid;
}


.img-random {
    position: fixed;
    max-width: 25vw;
    pointer-events: none;
    z-index: 10
}

h1 {

    font-family: Switzer;
    font-weight: 400;
    font-size: 20rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.1rem;
    font-weight: 400;
    column-count: 2;
    column-gap: 40px;
}
h4{
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.1vh;

    
}

:root {
    --cp: #120399;
    --cweb: #555555;
    --var--card-width: 10vw;
}

button {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;

}

.estilbotons {

    min-height: 4vh;
    padding: 0.8vh 2.5vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: none;
    outline: 1.6px solid;
    color: #000000;
    cursor: pointer;
    filter: blur(0.65px);
}

/* CLICK: efecte retro PS1 */
.estilbotons:active {
    filter:
        contrast(2)
        saturate(0.4)
        brightness(1.3)
        sepia(1)
        hue-rotate(290deg)
        drop-shadow(2px 0 0 #00ffff)
        drop-shadow(-2px 0 0 #ff00ff);

    transform: scale(0.88);
    image-rendering: pixelated;
    transition: none;
}



#Pantalles {
    width: 100%;
    /*/max-width: 1200px;*/
    margin: 0 auto;
}



/*------BOTONS ANIMACIO-------------*/
/* GLITCH RECURRENT EN REPÒS */

.botons:not(:hover):not(:active) {
    animation: idleGlitch 5s infinite;
}

@keyframes idleGlitch {
    0%, 88%, 100% {
        filter: none;
        clip-path: inset(0);
    }

    90% {
        filter: contrast(1.5) brightness(1.2);
        clip-path: inset(15% 0 75% 0);
    }

    92% {
        filter: contrast(1.8) brightness(0.8);
        clip-path: inset(70% 0 15% 0);
    }

    94% {
        filter: none;
        clip-path: inset(0);
    }
}

/* ================= HOVER ================= */

.botons {
    width: auto;
    height: auto;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.botons:hover {
    animation: hoverPulse 0.8s ease-in-out infinite alternate;
    opacity: 1;
    filter: brightness(1.01);
}

@keyframes hoverPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.01);
    }
}

/* ================= CLIC ================= */

.botons:active {
    animation: none;
    filter:
        contrast(2)
        saturate(0.4)
        brightness(1.3)
        sepia(1)
        hue-rotate(290deg)
        drop-shadow(2px 0 0 #00ffff)
        drop-shadow(-2px 0 0 #ff00ff);
    transform: scale(0.97);
    image-rendering: pixelated;
    transition: none;
}

/* ================= BLOQUEIG DE LA INTERFÍCIE ================= */

body.lock-ui .botons {
    pointer-events: none;
}


.contenidorcavall {
    min-height: 10vh;
    min-width: 30vw;
}

/*------------------------------IDIOMA*/


/* ==================================================
   HEADER — SELECTOR D'IDIOMES
   ================================================== */



header {
    position: relative;
    width: 100%;
    height: 10vh;
    padding: 2vw;
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

header #Idioma {
    position: relative;
    top: auto;
    left: auto;
    transform: none;

    isolation: isolate;
    width: 20vw;
    height: 10vh;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
}


/* ==================================================
   BANDERES LATERALS
   ================================================== */

header #Idioma .bandera-lateral {
    position: absolute;
    top: 50%;
    z-index: 2;

    width: calc(4vh * 431 / 331);
    height: 3.5vh;

    object-fit: fill;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    filter: grayscale(100%);

    transition:
        opacity 0.4s ease,
        transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.3s ease,
        visibility 0.4s ease;
}

/* BANDERA ESQUERRA
   Degradat a l'extrem esquerre */
header #Idioma #banderaEsquerra {
    left: 50%;

    transform: translate(-50%, -50%) scale(0.7);

    -webkit-mask-image: linear-gradient(
        to left,
        black 45%,
        rgba(0, 0, 0, 0.85) 65%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to left,
        black 45%,
        rgba(0, 0, 0, 0.85) 65%,
        transparent 100%
    );
}

/* BANDERA DRETA
   Degradat a l'extrem dret */
header #Idioma #banderaDreta {
    right: 50%;

    transform: translate(50%, -50%) scale(0.7);

    -webkit-mask-image: linear-gradient(
        to right,
        black 45%,
        rgba(0, 0, 0, 0.85) 65%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        black 45%,
        rgba(0, 0, 0, 0.85) 65%,
        transparent 100%
    );
}

/* DESPLEGAMENT ESQUERRA */
header #Idioma.idiomes-oberts #banderaEsquerra {
    opacity: 1;
    visibility: visible;

    transform:
        translate(calc(-50% - 85px), -50%)
        scale(0.8);

    filter: grayscale(0%);
}

/* DESPLEGAMENT DRETA */
header #Idioma.idiomes-oberts #banderaDreta {
    opacity: 1;
    visibility: visible;

    transform:
        translate(calc(50% + 85px), -50%)
        scale(0.8);

    filter: grayscale(0%);
}

/* ==================================================
   BANDERA CENTRAL
   ================================================== */

header #Idioma #banderes {
    position: relative;
    z-index: 3;

    display: block;
    flex: 0 0 auto;

    width: calc(4vh * 431 / 331);
    height: 4vh;

    margin: 0;
    padding: 0;

    border: none;
    background: transparent;

    cursor: pointer;
}

/* Imatge de la bandera central */

header #Idioma #banderes .band {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: fill;

    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Bandera central en color quan el selector està obert */

header #Idioma.idiomes-oberts #banderes .band {
    filter: grayscale(0%);
}

/* Vora difuminada sense difuminar la imatge */

header #Idioma #banderes::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 1;

    border: 1.6px solid #000;
    filter: blur(0.65px);

    pointer-events: none;
}

/* ==================================================
   FLETXES
   ================================================== */
/* ==================================================
   FLETXES
   ================================================== */

header #Idioma .flexesbotons {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 1vw;
    min-width: 17px;
    max-width: 32px;

    padding: 0;
    border: none;
    background: transparent;

    cursor: pointer;
    filter: blur(0.65px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-50%);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Imatges de les fletxes */
header #Idioma .flexesbotons img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        opacity 0.2s ease,
        filter 0.2s ease;
}

/* Imatge alternativa superposada */
header #Idioma .flexesbotons .fletxaHover {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    opacity: 0;
    pointer-events: none;
}

/* HOVER: amaga la fletxa normal */
header #Idioma .flexesbotons:hover .fletxaNormal {
    opacity: 0;
}

/* HOVER: mostra la fletxa alternativa */
header #Idioma .flexesbotons:hover .fletxaHover {
    opacity: 1;
}

/* WHILE CLICK: canvia el color mentre mantens premut */



header #Idioma .flexesbotons:active img {
    filter:
        contrast(2)
        saturate(0.4)
        brightness(1.3)
        sepia(1)
        hue-rotate(290deg)
        drop-shadow(2px 0 0 #00ffff)
        drop-shadow(-2px 0 0 #ff00ff);

    transform: scale(0.88);
    image-rendering: pixelated;
    transition: none;
}

/* Fletxa esquerra */
header #Idioma #flexaesquerra {
    right: calc(50% + (5vh * 431 / 331) / 2 + 12px);
}

/* Fletxa dreta */
header #Idioma #flexadreta {
    left: calc(50% + (5vh * 431 / 331) / 2 + 12px);
}

/* Orientació de les dues imatges de la fletxa dreta */
header #Idioma #flexadreta img {
    transform: rotate(180deg);
}

/* Mostrar les fletxes quan s'obre el selector */
header #Idioma.idiomes-oberts .flexesbotons {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Accessibilitat */
header #Idioma button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

/* ==================================================
   ACCESSIBILITAT
   ================================================== */

header #Idioma button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}
/*------------------------------Carrega*/


#pantallaCarrega {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #fff;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* Línia central */
#liniaCarrega {
    width: 40vw;
    height: 1vh;

    position: relative;
    overflow: hidden;

    background: rgba(0, 0, 0, 0.08);
    filter: blur(0.6px);
}

/* Progrés de la línia */
#progresCarrega {
    width: 0%;
    height: 100%;

    background: #000;
    filter: blur(1px);

    transition: width 0.2s ease;
}

/* Quan la pàgina està carregada */
#pantallaCarrega.carregada {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Evitar scroll durant la càrrega */
body.carregant {
    overflow: hidden;
}








/*------------------------------INICI*/

#inici {
    width: 100%;
    height: 100vh;
    /* border: 2px solid #000000;*/
}

.PantallaInici1 {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background: transparent;
}

/* MANTÉ LA TEVA POSICIÓ ORIGINAL */

.NomInfinit_inner {
    margin-top: 55vh;
    width: max-content;
    animation: scroll-left 10s linear infinite;
}

/* text */

.NomInfinit_inner p {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 15rem;
}

/* animació infinita */

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/*------------------------------JO*/


#jo {
    width: 100%;
    height: 100vh;
    padding: 8vh 1vw 6vh 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
    perspective: 1000px;
    overflow: visible;
}

.card {
    position: relative;
    width: 50vw;
    aspect-ratio: 1.586 / 1;
    height: auto;
    border: none;
    outline: clamp(2px, 0.1vw, 2px) solid #000;
    border-radius: 10px;
    cursor: grab;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    touch-action: none;
    user-select: none;
    container-type: inline-size;
}



.card.arrossegant {
    transition: none;
}

.card:active {
    cursor: grabbing;
}

.cara {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8% 9%;
    overflow: hidden;
    border-radius: 9px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
}

.davantera {
    background: #ffffff;
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    grid-template-rows: 3.5fr 0.5fr;
    grid-template-areas: 
        "n d "
        "n l ";
}

.espainom {
background-color: transparent;
    grid-area: n;
    position: relative;
    z-index: 2;
    overflow: visible;
    width: calc(100% + 30px);
    height: 100%;
    align-self: stretch;
    display: flex;
    text-align: center;
    align-items: start;
    align-items: flex-start;
}

.espainom span {
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: upright;
    justify-self: center;
    width: auto;
    height: 100%;
}

.adrr {
    font-size: 4.2cqw;
 width: inherit;  
    height: 100%;
    letter-spacing: -2px;
    line-height: 1.6;
    font-weight: 500;
    align-self: flex-start;
    text-align: start;
}

.Dades {
    grid-area: d;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    
    
}

.Dades h4{
    
    font-size: 3.5cqw;
}
.psoteriordreta h4{
    
    font-size: 3.5cqw;
}

.correu{
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.LogosLinks{
    grid-area: l;
    outline: 1px black;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    
}

.posterior {
    background: #ffffff;
    transform: rotateY(180deg);
    display: flex;
    
}

.psoteriordreta {
    width: 55%;
        height: 100%;
    letter-spacing: 1.2px;

}
.psoterioresquerra {
    width: 45%;
    height: 100%;
}

#GirarTargeta {
    z-index: 10;
    font-size: clamp(14px, 2vw, 20px);
    cursor: pointer;
}

.marcasSVG {
    width: 3.5cqw;
    height: auto;
    margin: 0.6cqw;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    cursor: pointer;
}




/*------------------------------SANT MATIES*/
#SantMaties {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: row-reverse;
    /*/ position: relative;/*/
    overflow: hidden;
}

.contenidorcavall {
    width: 100vw;
    height: 100vh;
    overflow-x: clip;
    position: absolute;
    padding: 0vh 0vw 0vh 0vw;
}

#cavallsvg {
    fill: #293278;
    width: auto;
    height: 115vh;
    position: absolute;
    right: 39vw;
    top: -3vh
}

#cartellSM {
    width: 34vw;
    height: fit-content;
    padding: 3%;
    filter: drop-shadow(0px 0px 4px #00000094);
    /* MARGIN: 6vw; */
    /* margin-top: 18%; */
    z-index: 2;
    position: relative;
}

#BotoSm {
    z-index: 2;
    background-color: #f4efd0;
    padding: 2vw;
    position: absolute;
    top: 284%;
    left: 85%;
}

/*------------------------------CUCAFERA 24*/
#Cucafera24 {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row;
    /*background: linear-gradient(to bottom,
            #ffffff 10%,
            #f8f8e6a8 80%,
            #ffffff 100%);*/

    /* 🔥 3D GLOBAL */
    perspective: 1200px;
    overflow: hidden;
}

/*CAMISETES================= */

.contenidoranimacio {
    width: auto;
    height: auto;
    position: relative;
}

.Camiseta24 {
    width: auto;
    height: 60vh;
    transform-style: preserve-3d;
    will-change: transform;
}

/*DAVANT  */

#Davant24 {
    position: absolute;
    top: 21vh;
    left: 30vw;
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
}

/*REDERE  */

#Redere24 {
    position: absolute;
    transform: rotate3d(189, -70, 60, 66deg);
    top: 60vh;
    left: 23vw;
    transform-origin: 50% 50%;
    transform-style: preserve-3d;

}

.DretaCuca24 {
    display: flex;
    padding: 5%;
    height: 90%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-left: auto;
    /* 👈 enganxa a la dreta */
}

#BaseCucafera {
    position: relative;
    max-height: 60vh;
    margin: 3vh;
    left: 60vw;
}

#BotoCucafera {
    z-index: 2;
    width: 17vw;
    position:
        absolute;
    top: 70%;
    right: 23vw;
}


#BotoCucafera:active {
    filter:
        contrast(2)
        saturate(0.4)
        brightness(1.3)
        sepia(1)
        hue-rotate(290deg)
        drop-shadow(2px 0 0 #00ffff)
        drop-shadow(-2px 0 0 #ff00ff);

    transform: scale(0.88);
    image-rendering: pixelated;
    transition: none;
}





/*------------------------------CUCAFERA 25*/
#Cucafera25 {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#Tag {
    width: 30vw;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.4, 0.5);
    margin: 5vw;
    z-index: 2;
}

#Tag:hover {
    transform: scale(1.01);
}

#BotoCucafera25 {
    width: 30vw;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.4, 0.5);
    margin: 5vw;
    z-index: 1;
}

#BotoCucafera25:hover {
    transform: scale(1.01);
}


/*------------------------------PARRA TIPO*/
#Parra {
    width: 100%;
    max-width: 100%;
    overflow: clip;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: Parra;
}

/* PART SUPERIOR */
#daltParra {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;

    /* per posicionar pesos */
}

/* PESOS A DALT DRETA */
#pesos {
    position: absolute;
    top: 2vh;
    right: 1vw;
    margin: 0;
}

#pesosText {
    line-height: 1;
    font-size: 7.3rem;
    word-spacing: -2.2rem;

}

/* TÍTOL */
#TitolParra {
    font-size: clamp(5rem, 32vw, 19rem);
    margin-left: 1vw;
    margin-bottom: 0;
    line-height: 0.85;
    /* fa que “toqui” visualment el grid */
    align-self: flex-end;
    overflow: hidden;

    /* l’enganxa a la part baixa del bloc superior */
}

/* PART INFERIOR */
#baixParra {
    width: 77%;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0.5rem;
}

.ABC {
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 6vw, 6rem);
    line-height: 1;
    overflow: hidden;
}

@keyframes microJitter {
    0% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(0.5px, -0.3px);
    }

    50% {
        transform: translate(-0.3px, 0.5px);
    }

    75% {
        transform: translate(0.3px, 0.2px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}


.jitter {
    display: inline-block;
    will-change: transform;
    animation: microJitter 0.12s infinite linear;
}

/*------------------------------GALERIA*/
#Galeria {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.track {
    display: flex;
    height: 100%;
    align-items: center;
}

.targetesgaleria {
    color: var(--cweb);
    flex: 0 0 auto;
    width: 26vw;
    height: fit-content;
    aspect-ratio: 53.9/66.2;
    border-radius: 0.3rem;
    overflow: hidden;
    margin: 2%;
    /*display: flex;*/
    flex-direction: column-reverse;
    align-items: center;
    padding: 2.1% 1.9% 6.8% 1.8%;
    text-align: right;
    background-image: url("../img/Galeria%20base.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.negroluz {}

.geotaro {}

.Marcgaleria {
    width: 100%;
    height: 100%;


}


.imatgegaleria {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: 1.5px solid #e3e3e3;

}

.fonsblanc {
    background-color: #fdfdfd;
    outline: 1.5px solid #e3e3e3;

}

.Crit {}

.LaParra {
    
}

.Parrafons {
    object-fit: cover;
}

.Barjaula {}

.footer {
    padding: 2vw;
}

.botonsfooter {
    width: 31vw;
    height: auto;
    display: flex;
    justify-content: space-between;
    margin: 3vh 5vw 3vw 0vw;

}

.botonsfooter:hover {}

#Cam25 {
    width: 100vw;
    height: 100vh;
    position: absolute;
    background-image: url(../img/Cuca25.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#linksfootertxt {
    font-size: 0.81rem;
}


/*_________POP-UP____________________________________________________*/
.avis-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 5vw;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px);
}


.avis-overlay {
    display: none;
    pointer-events: none;
}

.avis-overlay.visible {
    display: flex;
    pointer-events: auto;
}


.avis-marc {
  position: relative;
  width: min(650px, 90vw);
  padding: 45px;
  background: white;
  border: 1.5px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.avis-marc h2 {
  margin-top: 0;
}

.avis-marc h3 {
  line-height: 1.5;
}

.avistext {
   margin-bottom: 2vh; 
}

.avis-tancar {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 35px;
  min-height: 35px;
  padding: 0;
  font-size: 22px;
}

.avis-marc.glitch {
  animation: avisGlitch 0.15s steps(2) 1;
}

@keyframes avisGlitch {
  0% {
    transform: translate(0);
    filter: none;
  }
  25% {
    transform: translate(2px, -1px);
    filter: hue-rotate(90deg);
  }
  50% {
    transform: translate(-2px, 1px);
    filter: contrast(1.5);
  }
  75% {
    transform: translate(1px, 1px);
    filter: none;
  }
  100% {
    transform: translate(0);
    filter: none;
  }
}
/* L'avís cobreix la pàgina */
.avis-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
}

/* El header queda per damunt de l'avís */
header {
    position: relative;
    z-index: 2147483647;
}
/*---------------------------------------------------------------------RESPONSIVE MOBIL-RESPONSIVE MOBIL-RESPONSIVE MOBIL------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------RESPONSIVE MOBIL-RESPONSIVE MOBIL-RESPONSIVE MOBIL---------------------------------------------------------------------------------------------------------------------------------------/*/

@media (max-width: 600px) {

    html {
        height: 100%;
        width: 100%;
        font-size: 13px;
        font-family: Switzer;
    }

    h3 {
        all: unset;
        font-size: 1.1rem;
        font-weight: 400;
        column-gap: 40px;
    }

    h2 {
        margin-bottom: 2vh;
    }

    .estilbotons {
        min-height: 4vh;
        padding: 0.7vh 6vw;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        background: none;
        outline: 1.5px solid;
        color: #000000;
        cursor: pointer;
        filter: blur(0.65px);
    }

    #BlocInfo {

        padding: 2vh;

    }
    
        /*--headeridioma ----------------------------------------------->*/


    
header {
    overflow: clip;
    position: absolute;
}

/* Selector més cap a l'esquerra */
header #Idioma {
    width: 45vw;
    margin-right: 0;
}

/* Fletxes més petites, sota la bandera i més separades */
header #Idioma .flexesbotons {
    position: absolute;
    top: calc(50% + 4vh);

    width: 15px;
    min-width: 15px;
    max-width: 15px;

    padding: 0;
    transform: translateY(-50%);
}

/* Fletxa esquerra */
header #Idioma #flexaesquerra {
    left: calc(50% - 48px);
    right: auto;
}

/* Fletxa dreta */
header #Idioma #flexadreta {
    left: calc(50% + 33px);
    right: auto;
}

/* Bandera central més petita */
header #Idioma #banderes {
    width: calc(3.4vh * 431 / 331);
    height: 3.4vh;
}

/* Banderes laterals més petites */
header #Idioma .bandera-lateral {
    width: calc(2.5vh * 431 / 331);
    height: 2.5vh;
}

/* Bandera esquerra: més a prop del centre */
header #Idioma.idiomes-oberts #banderaEsquerra {
    transform:
        translate(calc(-50% - 50px), -50%)
        scale(0.8);
}

/* Bandera dreta: més a prop del centre */
header #Idioma.idiomes-oberts #banderaDreta {
    transform:
        translate(calc(50% + 50px), -50%)
        scale(0.8);
}



    /*--inci ----------------------------------------------->*/

    #inici {
        width: 100%;
        height: 100vh;
    }

    .PantallaInici1 {
        overflow: hidden;
        white-space: nowrap;
        width: 100%;
        background: transparent;
        font-size: 19rem;
    }

    .NomInfinit_inner {
        margin-top: 57vh;
        width: max-content;
        animation: scroll-left 10s linear infinite;
    }

    .textrotatiu {
        z-index: 3;
    }

    /*--JO ----------------------------------------------->*/

    #inici {
        width: 100%;
        height: 100vh;
    }

    #jo {
        width: 100%;
        height: 55vh;
        padding: 12vh 1vw 2vh 1vw;
    }

    .card {
        position: relative;
        width: 74vw;
        aspect-ratio: 1.586 / 1;
        height: auto;
        border: none;
        outline: clamp(3px, 1vw, 10px) solid #000;
        border-radius: 10px;
        cursor: grab;
        transform-style: preserve-3d;
        transform: rotateY(0deg);
        touch-action: none;
        user-select: none;
    }

    #GirarTargeta {
        z-index: 10;
        font-size: clamp(1.05rem, 3vw, 5rem);
        cursor: pointer;
    }
    .adrr {
    font-size: clamp(0.65rem, 2.5vw, 1.3rem);
    letter-spacing: clamp(-2px, -0.15vw, -0.5px);
}

.Dades h3 {
    font-size: clamp(0.5rem, 2vw, 1rem);
}

.marcasSVG {
    width: clamp(1rem, 4vw, 2rem);
    margin: 0.5vw;
}

.cara {
    padding: 5%;
}

.espainom {
    width: calc(100% + 15px);
}

    /*--SM ----------------------------------------------->*/
    #SantMaties {
        all: unset;
        display: flex;
        flex-direction: column;
        width: 100vw;
        height: 100vh;

    }

    #cartellSM {
        all: unset;
        display: block;
        position: relative;
        width: 75vw;
        margin: 37vh 19vw;
        height: auto;

    }

    .contenidorcavall {
        height: 50vh;
        padding: 0.3vh 0vw 0vh 0vw;

    }

    #cavallsvg {
        height: 55vh;
        fill: #293278;
        left: -31vw;
        position: absolute;
        height: 53vh;
        fill: #293278;

    }

    /*--CUCAFERA24 ----------------------------------------------->*/
    #Cucafera24 {
        all: unset;
        overflow: hidden;
        display: block;
        width: 100vw;
        height: 100vh;
    }

    .contenidoranimacio {
        width: auto;
        height: auto;
        position: relative;
    }

    #Davant24 {
        all: unset;
        position: absolute;
        width: 85vw;
        margin: 46vh 0vw 0vw 40vw;
        transform-origin: 50% 100%;
        transform-style: preserve-3d;
    }

    #Redere24 {
        all: unset;
        position: absolute;
        width: 85vw;
        margin: 76vh 0vw 0vw 20vw;
        transform: rotate3d(189, -70, 60, 66deg);
        transform-origin: 50% 50%;
        transform-style: preserve-3d;

    }

    #BaseCucafera {
        all: unset;
        width: 70vw;
        margin: 4vh 3vw 1vw 28vw;

    }

    #BotoCucafera {
        all: unset;
        position: relative;
        top: 32vh;
        width: 45vw;
        margin: 4vh 9vw 4vh 4vw;
        z-index: 2;
    }


    /*--CUCAFERA25 ----------------------------------------------->*/
    #Cucafera25 {
        overflow: hidden;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column-reverse;
    }

    #Cam25 {
        width: auto;
        margin: 10vh 0vw;
        height: 75vh;
        position: absolute;
    }

    #Tag {
        width: 40vw;
        transition: transform 0.5s cubic-bezier(0.2, 0, 0.4, 0.5);
        margin: 5vw;
        z-index: 2;
    }


    #BotoCucafera25 {
        width: 50vw;
        transition: transform 0.5s cubic-bezier(0.2, 0, 0.4, 0.5);
        margin: 5vw;
        z-index: 1;
    }

    /*--PARRA ----------------------------------------------->*/

    #Parra {
        all: unset;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        font-family: Parra;
    }

    #daltParra {
        all: unset;
        width: 100vw;
        display: flex;
        height: 75vh;
        flex-direction: column-reverse;
        align-content: space-around;
        align-items: flex-start;
    }

    #TitolParra {

        all: unset;
        overflow: hidden;
        font-size: 18vh;
        width: 100%;
        line-height: 0.7;
        margin: 1vh 1vw 4vh 2vw;
    }

    #pesos {
        position: relative;
        transform: translate(17vw, -27vh);
        margin: 0;
    }

    #baixParra {
        all: unset;
        width: 97%;
        height: 17vh;
        display: grid;
        grid-template-columns: repeat(9, minmax(0, 1fr));
        row-gap: 0.3rem;
        column-gap: 0.4rem;

    }

    #pesosText {
        all: unset;
        line-height: 0.75;
        font-size: 6.3rem;
        word-spacing: -2.2rem;
    }

    .ABC {
        aspect-ratio: 1 / 1;
        font-size: 4.5vh;

    }

    /*--galeria ----------------------------------------------->*/
    #Galeria {
        width: 100%;
        height: 60vh;
        overflow: hidden;
        position: relative;
    }

    .targetesgaleria {
        flex: 0 0 auto;
        width: 51vw;
        margin: 7vw;
        height: fit-content;
        aspect-ratio: 53.9/66.2;
        border-radius: 0.3rem;
        overflow: hidden;
        align-items: center;
        padding: 2.3vh 4vw 6.7vh 3.3vw;
        text-align: right;
        background-image: url("../img/Galeria%20base.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    /*--Footer ----------------------------------------------->*/
    .botonsfooter {
        width: 60vw;
        height: auto;
        display: flex;
        justify-content: space-between;
        margin: 3vh 5vw 3vw 0vw;
    }

    .contenidorcavall {
        min-height: 10vh;
        min-width: 30vw;


    }

    .img-random {
        position: fixed;
        max-width: 50vw;
        display: hidden;
        pointer-events: none;
        z-index: 10
    }

}

