@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;700&display=swap');

@font-face {
    font-family: 'PublicoBold';
    url('/fonts/PublicoHeadline-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Publico';
    url('/fonts/PublicoHeadline-Medium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    background-color: #f7f7f7;
    padding: 0;
    margin: 0;
    font-size: 18px;
    color: #00008f;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Publico', sans-serif;
    font-weight: 700;
}
h1{
    font-size: 3rem;
}
h2{
    font-size: 1.8rem;
}
header {
    text-align: center;
}

main {
    text-align: center;
    margin-top: 2rem;
    background-color: #f0f5fc;
}
a{
    text-decoration: none;
    color: #00008f;
}
.text-justify{
    text-align: justify;
}
.btnBlau {
    display: table;
    width: auto;
    margin: 1rem;
    padding:10px 50px;
    background-color: #00008f;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}
.btnFull{
    display: table;
    width: 100%;
}
.btnBlau:hover{
    background-color: #00afc8;
    color: rgba(255, 255, 255, 0.75);
}

.botoneres li{
    background-color: rgba(255,255,255,0.9);
    line-height: 1.2;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
    text-align: center;
    color: #00008f;
    list-style: none;
}
.botoneres li:hover{
    background-color: rgba(255,255,255,1);
    cursor:pointer;
}
footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.botonsZone{
    position: relative;
    padding: 120px 0 80px;
    margin: 0;
    z-index: 10;
}
.ilustrationZone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}


@keyframes balanceo {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes parallax {
    from {
        transform: translateX(-400px);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes parallaxPlaneta {
    0%, 100% {
        transform: translateX(-300px);
    }
    50% {
        transform: translateX(0);
    }
}
@keyframes parallaxBotes {
    from {
        transform: translateX(-100px);
    }
    to {
        transform: translateX(150px);
    }
}
@keyframes parallaxPostal {
    from {
        transform: translateX(300px);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes rebote {
    0%, 100% {
        transform: translateY(200px) scaleY(0.9);
        animation-timing-function: ease-out;
    }
    45% {
        transform: translateY(0) scaleY(1.1);
        animation-timing-function: ease-in;
    }
}
@keyframes aparecerDesdeIzquierda {
    0% {
        transform: translateX(-200%) rotate(-20deg);
    }
    100% {
        transform: translateX(0) rotate(0deg);
    }
}
@keyframes mecer {
    0%   { transform: rotate(5deg); }
    25%  { transform: rotate(-5deg); }
    50%  { transform: rotate(5deg); }
    75%  { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}
.hamaca {
    position: absolute;
    bottom: -1%;
    right: -6%;
    animation: mecer 3s ease-in-out infinite;
    transform-origin: top center; /* punto de anclaje para mecer como si colgara */
}

.mapa{
    position: absolute;
    bottom: -1%;
    left: 5%;
    display: inline-block;
}
.planeta {
    position: absolute;
    top: 4%;
    left: 50%;
    display: inline-block;
    animation: parallaxPlaneta 40s ease-in-out infinite;
}
.maleta {
    position: absolute;
    bottom: 1%;
    right: 25%;
    display: inline-block;
    animation: balanceo 6s ease-in-out infinite;
}
.fletxes {
    position: absolute;
    top: -1%;
    right: 0;
    display: inline-block;
}
.camara {
    position: absolute;
    top: 1%;
    left: 18%;
    display: inline-block;
}
.palmera {
    position: absolute;
    top: 8%;
    right: 0;
    display: inline-block;
    animation: balanceo 2s ease-in-out infinite;
    transform-origin:  20% 95%;;
}
.montanya {
    animation: parallax ease-out;
    animation-timeline: scroll();
    animation-range: entry 0% cover 30%;
    position: absolute;
    bottom: 0;
    left: 0;
}
.botes {
    animation: parallaxBotes ease-out;
    animation-timeline: scroll();
    animation-range: entry 80% cover 100%;
    position: absolute;
    bottom: 5%;
    left: -30%;
}

.pelota {
    position: absolute;
    bottom: 30%;
    left: 75%;
    display: inline-block;
    animation: rebote 2s infinite;
    transform-origin: center bottom; /* El rebote se siente natural con el eje abajo */
    width: 100px; /* Ajusta tamaño */
}
.postal {
    position: absolute;
    top: 5%;
    left: 25%;
    display: inline-block;
    transform: translateX(-900%) rotate(20deg);
    animation: aparecerDesdeIzquierda 0.75s ease-out forwards;
}
.postal2 {
    position: absolute;
    top: -2%;
    left: 46%;
    display: inline-block;
    animation: parallaxPostal ease-out;
    animation-timeline: scroll();
    animation-range: entry 40% cover 90%;
}
.pasaporte {
    position: absolute;
    top: 1%;
    left: 5%;
    display: inline-block;
    transform: translateX(-600%) rotate(-20deg);
    animation: aparecerDesdeIzquierda 2s ease-out forwards;
}
.lletra{
    border-radius: 50%;
    background-color: #f6f6f6;
    text-align: center;
    font-weight: bold;
    padding: 2px 5px 2px 9px;
    margin-right: 3px;
    color: rgba(0, 0, 143, 0.5);
}
.descuento{
    min-height: 150px;
    background-image: url("../imgs/descuentoBaseH.webp");
    background-repeat: no-repeat;
    background-position: top center;
    padding: 0 0 205px 0;
    margin: 0 0 20px 0 ;
}
.dtoLeft{
    color: #ffffff;
    font-size: 27px;
    font-weight: bold;
    line-height: 17px;
    padding: 0;
    margin: 0;
    height: 140px;
}
.dtoLeft strong{
    font-size: 90px;
    line-height: 80px;
    margin: 0;
    padding: 0;
}
.percent{
    font-size: 44px;
    margin: 0;
    padding: 6px 0 0 0;
}
.dtoRight{
    color: #00008f;
    text-align: left;
    padding: 80px 10px 0 20px;
    line-height: 17px;
    font-size: 15px;
}
.blocDto{
    margin: 30px auto;
    width: 94%;
    display: table;
    background-image: url("../imgs/baseDtoH.webp");
    background-position: bottom left;
    background-repeat: no-repeat;
}
.topoDto{
    background-image: url("../imgs/topoDtoH.webp");
    background-position: center center;
    background-repeat: no-repeat;
    height: 170px;
    width: 170px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 auto;
    font-size: 23px;
}
.topoDto strong{
    font-size: 60px;
    line-height: 50px;
    margin: 0;
    padding: 0;
}
.textDto{
    display: flex;
    width: 400px;
}
.txtDto{
    width: 74%;
    text-align: left;
    padding: 0 30px 10px 35px;
    font-size: 14px;
}
.imgDto{
    padding: 0 0 10px 0;
    margin-bottom: 10px;
    height: 100px;
}

.index{
    background-color: #c9f3fa;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
}
.escapadas{
    background-color: #fbe8e5;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
}
.frecuente{
    background-color: #f6f2c9;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
}
.internacional{
    background-color: #c9f3fa;
    text-align: center;
    font-size: 18px;
    line-height: 20px;
}

.form01{
    position: relative;
    background-color: #c9f3fa;
    padding: 20px 20px 0;
    text-align: center;
}
.form02{
    position: relative;
    background-color: #f6f1c9;
    padding: 20px 20px 0;
    text-align: center;
}
.form03{
    position: relative;
    background-color: #fbe8e5;
    padding: 20px 20px 0;
    text-align: center;
}
.form04{
    position: relative;
    background-color: #c9f3fa;
    padding: 20px 20px 0;
    text-align: center;
}
.form05{
    position: relative;
    background-color: #f6f2c9;
    padding: 20px 20px 0;
    text-align: center;
}
/* === Breakpoint ≥ 600px === */
@media (min-width: 600px) {
    body {
        font-size: 17px;
    }

    #menu {
        display: block;
        text-align: center;
    }


}

/* === Breakpoint ≥ 768px === */
@media (min-width: 768px) {
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    #menu-toggle {
        display: none;
    }

    #menu {
        display: flex;
        gap: 1rem;
    }

    .blocDto{
        margin: 30px auto;
        width: 560px;
        display: table;
        background-image: url("../imgs/baseDto.webp");
        background-position: center right;
        background-repeat: no-repeat;
    }
    .topoDto{
        background-image: url("../imgs/topoDto.webp");
        background-position: center center;
        background-repeat: no-repeat;
        height: 140px;
        width: 140px;
        font-weight: bold;
        color: #ffffff;
        float: left;
        font-size: 18px;

    }
    .topoDto strong{
        font-size: 50px;
        line-height: 40px;
        margin: 0;
        padding: 0;
    }

    .txtDto{
        float: left;
        width: 52%;
        text-align: left;
        padding: 0 20px;
        height: 140px;
    }
    .imgDto{
        float: right;
        padding: 0 20px 0 0;
        height: 140px;
    }
    .percent{
        font-size: 30px;
        margin: 0;
        padding: 6px 0 0 0;
    }
}

/* === Breakpoint ≥ 1024px === */
@media (min-width: 1024px) {
    body {
        padding: 0;
        font-size: 18px;
    }

    .container{
        /*max-width: 800px;*/
        border: 1px solid blue;
        margin: auto;
    }
    .dtoRight{
        padding: 0 100px 0 0;
    }
    .dtoLeft{
        padding: 0 16px 0 0;
    }
    .mapa{
        bottom: 10%;
        left: 110%;
    }
    .maleta {
        bottom: 5%;
        right: -30%;
    }
    .fletxes {
        top: 30%;
        left: -25%;
    }
    .camara {
        top: 15%;
        left: -28%;
    }
    .palmera {
        top: 48%;
        right: -25%;
    }
    .montanya {
        bottom: 0;
        left: -30%;
    }
    .botes {
        bottom: 4%;
        left: -5%;
    }
    .hamaca {
        bottom: 20%;
        right: -45%;
    }
    .pelota {
        left: 110%;
    }
    .postal {
        top:25%;
        left: -20%;
    }
    .postal2 {
        top: 10%;
        left: -20%;
    }
    .pasaporte {
        top:10%;
        left: -35%;
    }
    .txtDto{
        width: 82%;
    }

}

/* === Breakpoint ≥ 1280px === */
@media (min-width: 1280px) {
    body {
        font-size: 19px;
        background-color: #e6f2ff;
    }
    .container{
        /*max-width: 1000px;*/
        border: 1px solid green;
        margin: auto;
    }
    .dtoRight{
        padding: 0 100px 0 0;
    }
    .dtoLeft{
        padding: 0 43px 0 0;
    }
}

/* === Breakpoint ≥ 1440px === */
@media (min-width: 1440px) {
    body {
        font-size: 20px;
        /*max-width: 1200px;*/
        margin: auto;
    }

    header, footer {
        text-align: center;
    }

    .container{
        max-width: 1200px;
        border: 1px solid red;
        text-align: left;
        margin: auto;
    }


}


.botoneres li.selected {
    background-color: #f0f0f0;
    border: 2px solid #00afc8;
    line-height: 1.2;
    border-radius: 5px;
    margin: 10px;
    padding: 20px;
}
/* Solució per assegurar alçada mínima de les seccions */
section[class^="form"] {
    min-height: 100vh;
    overflow: visible;
    padding-bottom: 150px; /* assegura espai per il·lustracions */
    position: relative;
}

/* Assegura que .ilustrationZone no retalli contingut */
.ilustrationZone {
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}
html {
    scroll-behavior: smooth;
}

:root {
    --cc-bg: #f7f7f7;
    --cc-text: #00008f;
    --cc-btn-primary-bg: #00008f;
    --cc-btn-primary-text: #ffffff;
    --cc-btn-primary-hover-bg: #00afc8;
    --cc-btn-secondary-bg: #d6e0f0;
    --cc-btn-secondary-text: #00008f;
    --cc-btn-secondary-hover-bg: #b0d4e7;
    --cc-cookie-category-block-bg: #f0f5fc;
    --cc-cookie-category-block-bg-hover: #d7e6f7;
    --cc-block-text: #00008f;
}
.footer-legal {
    background-color: #f0f5fc;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #00008f;
    margin-top: 0rem;
}

.container-legal {
    display: inline-block;
}

.footer-legal a {
    color: #00008f;
    text-decoration: none;
    margin: 0 0.5rem;
    font-weight: bold;
}

.footer-legal a:hover {
    color: #00afc8;
    text-decoration: underline;
}
.page-container {
    min-height: 100vh;
    padding-bottom: 150px; /* espai reservat per al footer */
}
