/* VARIABLES */
:root {
    /* --color-purple: #754861; */
    --color-purple: #0166ff;
    /* --color-turquoise: #335866; */
    --color-turquoise: #325a95;
    --color-blue: #0072CE;
    --color-green: #869130;
    --color-grey: #646464;
    --color-grey-dark: #222222;

    --padding-x: 80px;
    --swiper-theme-color: var(--color-turquoise);
}

/* TYPEFACES */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Black.woff2') format('woff2'),
        url('../fonts/Roboto-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
        url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.woff2') format('woff2'),
        url('../fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}



/* GENERAL */
body {
    font-family: 'Roboto', system-ui, sans-serif;
    margin: 0;
    color: var(--color-grey-dark);
    line-height: 1.5;
    font-size: 16px;
}


@media (min-width: 1800px) {
    body {
        font-size: 25px;
    }
}



/* PAGE  */
.hero {
    width: 100vw;
    position: relative;
    z-index: 10;
}
    .hero__logo {
        position: absolute;
        top: 40px;
        left: var(--padding-x);
        max-width: 300px;
        z-index: 10;
    }
    .hero__content {
        position: relative;
        top: 0;
        left: 0;
        width: 70%;
    }
        .hero__content::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 26.04%, rgba(50, 52, 54, 0) 100%);
            mix-blend-mode: multiply;  
        }
        .hero__content::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0) 12.5%, rgba(255, 255, 255, 0.7) 66.67%);         
        }
        .hero__button {
            position: absolute;
            top: 50%;
            left: 50%;
            border: 2px solid #FFF;
            transform: translate(-50%, -50%);
            width: max(80px, 5vw);
            height: max(80px, 5vw);
            border-radius: 100%;
            display: flex;
            align-content: center;
            justify-content: center;
            transition: all .3s ease;
            z-index: 10;
        }
            .hero__button:hover {
                transform: translate(-50%, -50%) scale(1.1);
            }    
            .hero__button img {
                max-width: 20px;
                margin-left: 5px;
                transition: all .3s ease;
            }
            .hero__button:hover img{
                transform: scale(.9);
            } 
    .hero__text {
        position: absolute;
        top: 50%;
        right:10%;
    }
        .hero__text h1 {
            color: var(--color-purple);
            text-transform: uppercase;
            font-size: clamp(75px, 7vw, 150px);
            font-weight: 900;
            max-width: 6ch;
            line-height: 1.1;
            position: relative;
        }
        .hero__text h1 span {
            text-decoration: underline;
            text-decoration-thickness: 12px;
            text-underline-offset: 20px;
        }
    .hero__scroll {
        position: absolute;
        bottom: 25%;
        right: var(--padding-x);
        transform: rotate(270deg);
    }
        .hero__scroll p {
            position: relative;
            color: var(--color-purple);
        }
            .hero__scroll p::after {
                content: url('../img/scroll.svg');
                height: 16px;
                position: absolute;
                top: 0;
                left: -28px;
                animation: scroll 1s alternate ease infinite;
            }
            @keyframes scroll {
                0% {transform: translateX(0);}
                60% {transform: translateX(-8px);}
                100% {transform: translateX(-5px);}
            }
 
 
 @media (max-height: 1919px) {
     .hero__img {
          height: 100%;
          width: 100%;
          max-height: 600px;
          overflow: hidden;
          /* position: relative; */
      }
      .hero__img img {
          width: 100%;
          height: 600px;
          object-fit: cover;
          object-position: center right;
      }
	  .hero__text {
		  top: 35%;
	  }
	  .recomanacions__item iframe {
		  height: 22vw;
		  width: 40vw;
	  }
 }


@media (max-width: 996px) {
    .hero {
		height: 454px;
	}
	.hero__logo {
        top: 20px;
        left: 50%;
        max-width: 250px;
        transform: translateX(-50%);
    }
    .hero__content {
        width: 100%;
        height: 60vh;
    }
    .hero__content::after {
        top: 0;
        left: 0;
        width: 100%;
        height: 60%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 26.04%, rgba(50, 52, 54, 0) 100%);
    }
    .hero__content::before {
        top: 60%;
        right: 0;
        width: 100%;
        height: 40%;
        z-index: 2;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 12.5%, rgba(255, 255, 255, 0.7) 66.67%)   
    }
    .hero__img {
        height: 100%;
        width: 100%;
        position: relative;
    }
    .hero__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center right;
    }
    .hero__text {
        position: relative;
        top: auto;
        right: auto;
        margin-top: -210px;
        padding: 0 30px 50px 60px;
        z-index: 5;
    }
    .hero__scroll {
        bottom: 360px;
        right: 30px;
        z-index: 5;
    }
    .hero__perque {
        width: 100%;
        position: relative;
        text-align: right;
        justify-content: flex-end;
        padding: 60px 30px;
        top: auto;
        left: auto;
        bottom: auto;
        height: auto;
    }
}

@media (min-height: 1919px) and (orientation: portrait) {
	.hero__scroll { display: none; }
}


/* SECTION RECOMANACIONS SWIPPER */
section.recomanacions {
    padding: 0;
    overflow: hidden;
    display: flex;
    position: relative;
	/* background-color: #ddd; */
	padding: 20px 0;
}

.recomanacions__perque {
    background-color: var(--color-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vw;
    height: 27vw;
}
    .recomanacions__perque h2 {
        text-transform: uppercase;
        font-size: clamp(55px, 5vw, 70px);
        font-weight: 900;
        max-width: 8ch;
        color: #FFF;
        line-height: 1.1;
    }
.recomanacions_title {
    background-color: var(--color-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vw;
    /* height: 23vw; */
    /* margin-top: 22px; */
    height: 26.2vw; /* [2025-01-14] 21vw; */
    margin-top: 0; /* 16px; */
	padding: 0 1em;
}
    .recomanacions_title h2 {
        text-transform: uppercase;
        /* font-size: clamp(22px, 3vw, 50px); */
        font-size: clamp(50px, 4.5vw, 70px);
        font-weight: 900;
        max-width: 15ch;
        color: #FFF;
        line-height: 1.1;
    }

.swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 60px 30px;
}
.recomanacions .swiper {
	padding: 60px 30px;
}
.recomanacions .swiper-wrapper {
    align-items: center;
}

.recomanacions .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: auto;
}
.recomanacions .swiper-pagination {
    position: absolute;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%);
}
.recomanacions .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    margin: 0 8px !important;
}

.recomanacions__item {
    position: relative;
}
.recomanacions__img {
    width: 100%;
}
    .recomanacions__img.captura_video img {
        /* width: 100%; */
        width: 95%;
		filter: grayscale(1);
    }
.recomanacions__button {
	position: absolute;
	top: 50%;
	left: 50%;
	border: 4px solid #0166ff;
	transform: translate(-50%, -50%);
	width: max(60px, 4vw);
	height: max(60px, 4vw);
	border-radius: 100%;
	display: flex;
	align-content: center;
	justify-content: center;
	transition: all .3s ease;
	z-index: 10;
	/* box-shadow: 2px 2px 10px black; */
}
	.recomanacions__img:hover .recomanacions__button	{
		transform: translate(-50%, -50%) scale(1.1);
		box-shadow: 2px 2px 10px black;
		background-color: #5555554a;
	}
	.recomanacions__button img {
		max-width: 18px;
		margin-left: 5px;
		transition: all .2s ease;
		/* Convertir SVG a blau [https://codepen.io/sosuke/pen/Pjoqqp], 2024-12-11: */
		/* filter: invert(28%) sepia(99%) saturate(3848%) hue-rotate(211deg) brightness(101%) contrast(110%); */
	}
	.hero__content .hero__button:hover img,
	.recomanacions__img:hover .recomanacions__button img{
		transform: scale(1.2);
	} 

.recomanacions__text {
    position: absolute;
    display: flex;
    flex-direction: column;
}
    .recomanacions__item--1 .recomanacions__text,
    .recomanacions__item--3 .recomanacions__text,
    .recomanacions__item--5 .recomanacions__text {
        top: -80px;
        left: 0;
    }
    .recomanacions__item--2 .recomanacions__text,
    .recomanacions__item--4 .recomanacions__text,
    .recomanacions__item--6 .recomanacions__text {
        bottom: -80px;
        left: 0;
        flex-direction: column-reverse;
    }
.recomanacions__about {
    color: var(--color-grey);
    margin-bottom: 0;
    max-width: 100%;
    line-height: 1.2;
}
.recomanacions__number {
    color: var(--color-turquoise);
    font-size: clamp(75px, 7vw, 100px);
    font-weight: 900;
    line-height: 1;
	text-shadow: 2px 2px 3px #fff; /* [JG-DW-UB, 2023-03-14] */
}

@media (max-width: 996px) {
    section.recomanacions {
        flex-direction: column;
        padding: 0 0 70px 0;
    }
    .swiper {
        padding: 120px 30px 120px 30px;
    }
    .recomanacions__perque {
        width: 100vw;
        height: 60vw;
    }
	.recomanacions_title {
		width: 100%;
		height: 26vw; /* [2025-01-14] 10vw; */
		/* [2025-01-14] margin-top: -25px; */
		top: -180px; /* [2025-01-14] */
		position: relative; /* [2025-01-14] */
	}
	.recomanacions .swiper {
		top: 92px;
	}
}

/* SECTION WHY SWIPPER */
section.why {
    padding: 0; /* [2025-01-14] 0 0 35px 0; */
    overflow: hidden;
    display: flex;
    position: relative;
}

.why__perque {
    background-color: var(--color-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vw;
    height: 32vw!important;
	z-index: 10;
}
    .why__perque h2 {
        text-transform: uppercase;
        font-size: clamp(55px, 5vw, 70px);
        font-weight: 900;
        max-width: 8ch;
        color: #FFF;
        line-height: 1.1;
    }
.why__recomanacions {
    background-color: var(--color-purple);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40vw;
    height: 22vw;
    /*! float: right; */
}
    .why__recomanacions h2 {
        text-transform: uppercase;
        font-size: clamp(25px, 4vw, 60px);
        font-weight: 900;
        max-width: 15ch;
        color: #FFF;
        line-height: 1;
    }

.swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* padding: 110px 30px 60px 30px; */
	padding: 90px 30px 53px 30px;
}
#recomanacions .swiper {
	/* padding: 26px; */
	padding: 13px;
	background-color: #ddd;
}
.swiper-wrapper {
    align-items: center;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: auto;
}
.swiper-pagination, 
.swiper2-pagination {
    position: absolute;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
	background-color: #ffffffb2;
	width: fit-content !important;
	z-index: 8;
}
.swiper2-pagination {
	position: absolute;
	text-align: center;
	transition: .3s opacity;
	transform: translate3d(0,0,0);
	margin-left: -50%;
	display: none;
}
.swiper-pagination-bullet {
    width: 15px;
    height: 15px;
    margin: 0 8px !important;
}

.why__item {
    position: relative;
}

.why__img {
    width: 100%;
}
    .why__img img {
        width: 100%;
    }

.why__text {
    position: absolute;
    display: flex;
    flex-direction: column;
}
    .why__item--1 .why__text,
    .why__item--3 .why__text,
    .why__item--5 .why__text {
        top: -80px;
        left: 0;
    }
    .why__item--2 .why__text,
    .why__item--4 .why__text,
    .why__item--6 .why__text {
        /* bottom: -80px; */
        bottom: -44px;
        left: 0;
        flex-direction: column-reverse;
    }
.why__about {
    /* color: var(--color-grey); */
    color: var(--color-turquoise);
    margin-bottom: 0;
    max-width: 100%;
    line-height: 1.2;
	font-size: 1.3em;
}
.why__number {
    color: var(--color-turquoise);
    font-size: clamp(75px, 7vw, 100px);
    font-weight: 900;
    line-height: 1;
	text-shadow: 2px 2px 3px #fff; /* [JG-DW-UB, 2023-03-14] */
}

@media (max-width: 996px) {
    section.why {
        flex-direction: column;
        padding: 0 0 70px 0;
    }
    .swiper {
        padding: 110px 30px 70px 30px; /* [2025-01-14] 120px 30px 120px 30px; */
    }
    .why__perque {
        width: 100vw;
        height: 36vw!important;
    }
}

/* SECTION WHAT */
section.what {
    background-color: var(--color-green);
    padding: 50px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
    .what__title h2 {
        text-transform: uppercase;
        font-size: clamp(50px, 3.5vw, 65px);
        font-weight: 900;
        color: #FFF;
        text-align: center;
        margin-bottom: 30px;
        line-height: 1.1;
    }
    .what__form {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 20px;
    }
        .what__form select {
            appearance: none;
            outline: none;
            border: 1px solid #FFF;
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);
            border-radius: 8px;
            padding: 20px;
            font-size: 18px;
            cursor: pointer;
            line-height: 1.1;
            background-color: #fff;
            color: var(--color-grey);
            font-weight: 500;
            width: 100%;
            min-width: 300px;
            min-height: 64px;
        }
        .what__form .select-wrap {
            position: relative;
            width: 100%;
            height: 100%;
        }
            .what__form .select-wrap::after {
                content: "";
                position: absolute;
                top:45%;
                right: 15px;
                width: 0.8em;
                height: 0.5em;
                background-color: var(--color-grey);
                clip-path: polygon(100% 0%, 0 0%, 50% 100%);
            }
        .what__form button {
            text-transform: uppercase;
            font-weight: 900;
            color: #FFF;
            padding: 17px;
            background: var(--color-blue);
            box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.08);
            border-radius: 8px;
            border: none;
            cursor: pointer;
            width: 100%;
            transition: all .2s ease;
            min-width: 200px;
            min-height: 64px;
            font-size: 20px;
        }
            .what__form button:hover {
                background-color: #338ED8;
            }
			.what__error {
				margin-top: 250px;
				padding: 20px 40px;
				border: 2px solid #bd3636;
				background: rgba(210, 214, 178, 0.61);
				color: #bd3636;
				border-radius: 8px;
				display: none;
				position: absolute;
				margin-left: -230px;
			}

@media (max-width: 996px) {
    section.what {
        padding: 60px 30px;
    }
    .what__title h2 {
        margin-bottom: 60px;
    }
    .what__title h2 {
        font-size: 10vw;
    }
    .what__form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
	.what__error {
		margin-top: 60px;
		margin-left: 0;
		padding: 1em;
	}
}
/* SECTION DOWNLOAD */
section.download {
    display: flex;
    align-items: center;
    padding: 40px 0 20px 0;
}
    .download__text {
        padding-left: var(--padding-x);
        flex: 0 1 80%;
    }
        .download__text h2 {
			color: var(--color-turquoise);
            text-transform: uppercase;
            font-size: clamp(30px, 3.2vw, 60px);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 20px;
            /*! max-width: 15ch; */
        }
        .download__text p {
            color: var(--color-grey);
            margin-bottom: 20px;
            /*! max-width: 55ch; */
        }
        .download__buttons {
			display: flex;
			gap: 30px;
			/* margin: -20px 0 10px; */
			margin: 0;
			justify-content: space-evenly;
		}
            .download__button {
                border-radius: 10px;
                background-color: var(--color-grey-dark);
                display: flex;
                justify-content: center;
                align-items: center;
                padding: 10px 40px;
                transition: all .2s ease;
            }
                .download__button:hover {
                    background-color: var(--color-blue);
                }
                .download__buttons--apple,
                .download__buttons--google {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }
                .qr-image {
                    max-width: 200px;
                }
            .download__button--apple img {
                max-height: 39px;
            }
            .download__button--google img {
                max-height: 36px;
            }
    .download__img {
        flex: 0 1 40%;
        padding-left: calc(var(--padding-x) * 0.5);
        display: flex;
        justify-content: flex-end;
    }
        .download__img img {
            /* width: 100%; */
            width: 96%;
			height:auto;
        }
        .download__img h2 {
            text-transform: uppercase;
            font-size: 10vw;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 40px;
            text-align: center;
            display: none;
            padding: 0 20px;
        }
@media (max-width: 996px) {
    section.download {
        flex-direction: column-reverse;
        padding: 60px 0 30px 0;
    }
    .download__text {
        padding: 30px 30px 0;
    }
    .download__text h2 {
        display: none;
    }
    .download__img {
        padding: 0;
        display: block;
    }
    .download__img h2 {
        display: block;
    }
    .download__buttons {
        flex-direction: column;
		margin: 0 0 10px;
    }
    .download__button {
        width: 100%;
        flex: 1 1 100%;
    }
    .qr-image {
        display: none;
    }
}
/* Deshabilito botons de descàrrega en pantalla sencera. JG - DW-UB [2023-03-17] */
@media (min-height: 1918px){
  .download__buttons {
    cursor: not-allowed;
  }
  .download__buttons a {
    pointer-events:none;
  }
}

/* FOOTER */
footer.footer {
    border-top: 1px solid #D8D8D8;
    padding: 10px var(--padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
    .footer__logo {
        max-width: 575px;
    }
    .footer__icons {
        display: flex;
        gap: 10px;
    }
        .footer__social p {
            margin-bottom: 10px;
        }
        .footer__icons {
            flex: 0 1 24px;
        }
            .footer__icons a{
                opacity: .6;
                transition: all .15s ease;
            }
                .footer__icons a:hover {
                    opacity: 1;
                    transform: scale(1.2);
                }
			.footer__icons img {
				height: 70px;
				width: auto;
			}

@media (max-width: 996px) {
    footer.footer {
        padding: 30px 10px;
        flex-direction: column;
        gap: 30px;
    }
	.footer__icons img {
		height: 30px;
		width: auto;
	}
}

/* VIDEO POPUP */
.popup {
    width: 100vw;
    height: 100vh;
    padding: 60px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    background-color: rgba(0,0,0,.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .25s ease;
}
.popup.visible {
    transform: translate(-50%, -50%);
    opacity: 1;
}

    .popup iframe {
        aspect-ratio: 16/9;
        max-width: 1200px;
        max-height: 80vh;
    }
    .popup__close {
        position: absolute;
        top: 20px;
        right: 20px;
        filter: invert(1);
        opacity: .7;
        transition: all .2s ease;
    }
        .popup__close:hover {
            opacity: 1;
        }
