/* Global querys */

/* 1240px */

@media only screen and (max-width: 1300px) {
    .download__section {
        background-size: cover;
    }
}

@media only screen and (max-width: 1240px) {
    .container {
        width: 100%;
        padding: 0 32px;
    }

    .navigation ul .link {
        font-size: 1.8rem;
    }

    .header__logo img {
        width: 130px;
    }

    .language__button button {
        padding: 8px 20px;
        font-size: 1.8rem;
    }

    .hero__image img {
        width: 100%;
        max-width: 520px;
    }

    .hero__caption {
        width: 450px;
    }

    /* hero */
    h1 {
        font-size: 3.6rem;
    }

    .hero__caption p {
        font-size: 1.6rem;
    }

    .header {
        background-size: cover;
        background-repeat: no-repeat;
    }

    /* Video */
    .video__section {
        background-size: cover;
        background-position: center;
    }

    h2 {
        font-size: 3.2rem;
    }

    /* Como jugar */
    .how-to-play__section {
        background-size: cover;
        background-position: center;
    }
}

@media only screen and (max-width: 1000px) {
    .premios__container{
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner__premios{
        background-position: right center;
    }
}


@media only screen and (max-width: 900px) {
    .download__block img {
        width: 150px;
    }

    .video__section {
        padding: 50px 0;
    }
}


@media only screen and (max-width: 845px) {
    .footer__content {
        justify-content: center;
    }
}

@media only screen and (max-width: 768px) {

    /* HEADER */
    .overlay.active {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(160.28deg, rgba(56, 86, 59, 0.65) 12.45%, rgba(56, 86, 59, 0.54) 98.72%);
        backdrop-filter: blur(20px);
        transition: 300ms ease all;
    }

    .mobile-only {
        display: block;
    }

    .mobile-hide {
        display: none !important;
    }

    .slide-history.history-5 .caption {
        margin-top: auto;
    }

    .menu_mobile {
        width: 130px;
    }

    .navigation {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        /* background: linear-gradient(360deg, #DDF5C4 0%, #B2F7F7 100%); */
        background: url(/images/fondo-menu-mobile.jpg);
        background-size: cover;
        background-position: center center;
        width: 300px;
        overflow: hidden;
        transition: 300ms ease all;
        transform: translateX(-300px);
    }

    .navigation.open {
        transition: 300ms ease all;
        transform: translateX(0);
        overflow: hidden;
        width: 300px;
        padding: 32px;
    }

    .navigation ul {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 10%;
    }

    .navigation ul .link{
        color: var(--blanco);
    }

    .close_icon {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* history SLIDER */

    .history__title {
        position: absolute;
        text-align: center;
        top: 85px;
        left: calc(50% - 79px);
        z-index: 99;
    }



    .downlonad__section__content {
        flex-direction: column;
        gap: 20px;
    }

    .downlonad__section__content .stores {
        text-align: center;
        margin-top: 40px;
    }

    .downlonad__section__content .stores img {
        width: 250px;
    }

    .image__download img {
        max-width: 400px;
        width: 95%;
        display: block;
        margin: 0 auto;
    }

    .caption__download {
        width: auto;
        text-align: center;
    }

    .navigation ul .link {
        font-size: 2.3rem;
    }

    /* HERO */

    .hero__container {
        flex-direction: column;
        padding: 16px 0 48px;
    }



    .hero__image {
        display: none;
    }

    .hero__image--mobile {
        display: block;

    }
    .hero__caption p {
        margin-top: 15px;
        font-weight: bold;
    }

    .hero__image--mobile img {
        display: block;
        width: 100%;
        max-width: 350px;
        margin: 20px auto 10px;
    }

    .hero__caption {
        width: auto;
    }

    h1 {
        font-size: 2.8rem;
    }

    .download__block h3 {
        text-align: center;
    }

    .download__block .stores img {
        display: block;
        margin: 0 auto;
    }

    .download__section p{
        font-size: 1.6rem;
    }


}


@media only screen and (max-width: 645px) {
    .language__text {
        display: none;
    }

    .language__icon {
        display: block;
    }

    .language__button button {
        padding: 6px 12px;
    }

    .language__button button i,
    .language__button button i svg {
        width: 25px;
        height: 25px;
    }

    .language__button button {
        gap: 5px;
        padding: 5px;
    }

    .header__logo img {
        width: 100px;
    }

    .menu_mobile {
        width: 64px;
    }

    .premios-caption img{
        width: 80px;
    }


    .premios-caption{
        width: auto;
    }

    .premios__container{
        align-items: center;
    }

    /* Video */
    .video__section .video__frame iframe {
        width: 100%;
        border-radius: 20px;
    }

    /* HISTORIA */
    .slide-history .caption {
        padding: 16px;
        width: 90%;
        border-radius: 25px;
        margin: 0 auto;
        font-size: 1.8rem;
    }

    .mobile-hide_img {
        display: none !important;
    }

    .fas.fa-caret-left {
        font-size: 25px;
        left: 10%;
        padding: 8px 15px;
        border-radius: 100%;
        background: var(--verde);
    }

    .fas.fa-caret-right {
        font-size: 25px;
        right: 10%;
        padding: 8px 15px;
        border-radius: 100%;
        background: var(--verde);
    }


    .slick-arrow {
        top: 85%;
    }

    .slick-dots {
        gap: 5px;
        top: 86%;
    }

    .slick-dots li {
        width: 15px;
        height: 15px;
    }

    .slick-dots li.slick-active button:before {
        opacity: .95;
        color: #F5FFEA;
        padding: 0 9px;
        background-color: #F5FFEA;
        border-radius: 20px;
        left: auto;

    }

    .slick-dots li.slick-active {
        margin: 0 10px;
    }

    .history-1 {
        background: url(/images/bg-historia-1_mobile.jpg);
    }

    .history-2 {
        background: url(/images/bg-historia-2_mobile.jpg);
    }

    .history-3 {
        background: url(/images/bg-historia-3_mobile.jpg);
    }

    .history-4 {
        background: url(/images/bg-historia-4_mobile.jpg);
    }

    .history-5 {
        background: url(/images/bg-historia-5_mobile.jpg);
    }


    .card__img img{
        width: 220px;
    }

    .card__footer .text{
        margin-left: 15%;
    }



    .primary__footer_text {
        font-size: 1.4rem;
    }
    
    .second__footer_text .verde,
    .primary__footer_text .verde{
        font-size: 1.4rem;
    }

    h2{
        font-size: 2.8rem;
    }

    .how-to-play__title{
        font-size: 2.8rem;
    }

    .download__block h3 {
        font-size: 1.8rem;
    }
}


@media only screen and (max-width: 630px) {
    .card__header h4 {
        font-size: 2rem;
    }

    .card__header p {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 560px) {
    .header_section {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 20px;
    }
    .how-to-play__content {
        grid-template-columns: 85%;
        justify-content: center;
    }
    .hero__caption{
        padding: 16px;
    }
    h1{
        font-size: 2.2rem;
    }
    .header__container{
        padding: 16px 0;
    }
    .hero__container{
        padding: 8px 0 54px;
    }

    .title__premio{
        font-size: 2.2rem;
    }

    .premios__container{
        padding: 24px 16px;
    }

}

@media only screen and (max-width: 450px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }


    .navigation.open {
        width: 250px;
        padding: 32px;
    }

    .hero__image--mobile img {
        display: block;
        width: 85%;
    }

    .menu_mobile svg {
        width: 25px;
        height: 25px;
    }


    .icon_language svg {
        width: 20px;
        height: 20px;
    }
    .card__footer .text{
        margin-left: 20%;
    }

    .companies{
        gap: 25px;
    }

    .companies img{
        width: 100px;
    }

    .title__premio{
        font-size: 1.8rem;
        width: fit-content;
    }

    
    .premio-img {
        margin-top: 24px;;
    }

    .premio-img img {
        width: 120px;
    }

    .premios-caption img{
        width: 60px;
    }

}

@media only screen and (max-width: 360px) {
    .how-to-play__content {
        grid-template-columns: 1fr;
        justify-content: center;
    }
}