@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lemon&family=Roboto:wght@400;500&display=swap');

:root {
    --azul: #18428D;
    --blanco: #fff;
    --gris: #545454;
    --rojo: #DF0037;
    --dorado: #D0B062;
    --negro: #000000;
}

body {
    font-family: 'Fira Sans', sans-serif;
    margin: 0;
}

.__d-none {
    display: none !important;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0;
    padding: 1.2rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.header-hidden {
    transform: translateY(-100%);
}

header.header-scrolled {
    margin: 0;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

main {
    margin: 2rem 0;
}

/* Espaciador para compensar el header fixed */
body::before {
    content: '';
    display: block;
    height: 120px;
}

.header__logo {
    position: relative;
    z-index: 998;
}

.sections__container {
    position: relative;
    z-index: 998;
}

/* Botón hamburguesa */
#header__menu--movil {
    display: none !important;
    font-size: 2rem;
    color: var(--rojo);
    cursor: pointer;
    z-index: 998;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

#header__menu--movil:hover {
    transform: scale(1.1);
    color: var(--azul);
}

/* Los íconos se controlan desde menu-animations.css */

.header__menu {
    background: var(--rojo);
    padding: 1rem 3rem;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-shadow: 0px 3px 40px 0px #0000004F;
    backdrop-filter: blur(23px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Botón de cerrar dentro del menú (solo visible en móvil) */
.header__menu__close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--blanco);
    cursor: pointer;
    z-index: 1002;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header__menu__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.header__menu a {
    text-decoration: none;
    color: var(--blanco);
    font-weight: 600;
    font-style: italic;
    font-size: 20px !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-wrap: wrap;
    text-align: center;
    min-width: fit-content;
}

.header__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--blanco);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header__menu a:hover::after {
    width: 100%;
}

.header__menu a:hover {
    transform: translateY(-2px);
}

.header__menu a.active {
    font-weight: 700;
}

.header__menu a.active::after {
    width: 100%;
    background: var(--dorado);
}

.call_to_action {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    min-height: 626px;
    background-image: url('/landings/assets/images/BANNER_COMPRA.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    h3 {
        z-index: 2;
        color: var(--blanco) !important;
        max-width: 50%;
        text-align: right;
        padding-left: 20rem;
        font-size: 3rem !important;
    }

    .cta_button_container {
        padding-left: 20rem;
    }

    a.cta_button {
        position: relative;
        z-index: 2;
        padding: 1rem 3rem;
        color: var(--rojo);
        text-align: center;
        font-style: italic;
        font-weight: 700 !important;
        border-radius: 45px;
        background: var(--blanco) !important;
        text-decoration: none;
        font-size: 2rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);

        &:hover {
            transform: translateY(-2px);
            box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
        }
    }
}

footer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
    margin-top: 8rem;

    p,
    a,
    span {
        font-style: normal;
        font-weight: 400;
        color: var(--blanco);
    }


    picture.background {
        position: absolute;
        z-index: 0;
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .footer__top {
        position: relative;
        z-index: 1;
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 8rem;
        align-items: center;


        .first_block {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4rem;

            .footer__top__logos {
                display: flex;
                flex-direction: column;
                gap: 2rem;
            }

            .linea-vertical {
                border-left: 2px solid var(--blanco);
                height: 7rem;
            }


            .footer__top__location {
                display: flex;
                gap: .5rem;
                justify-content: center;
                align-items: center;


                .location_text {
                    display: flex;
                    flex-direction: column;
                }

                img.location_logo {
                    align-self: flex-start;
                    margin-top: .5rem;
                }
            }
        }

        .second_block {
            .footer__top__social {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 1rem;

                .social_media_logos {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 1rem;
                }
            }
        }
    }

    .footer__bottom {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        a {
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
            color: var(--blanco);
        }
    }

}

a.whatsapp-button {
    position: fixed;
    z-index: 1111;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 80px;
    height: 80px;
    border-radius: 50px;
}

a.button__compraboleto {
    position: fixed;
    z-index: 1111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 80px;
    border-radius: 50px;
    animation: shake-cycle 13s ease-in-out infinite;
}

a.button__compraboleto::before,
a.button__compraboleto::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    aspect-ratio: 1 / 1;
}

a.button__compraboleto::before {
    border: 3px solid var(--rojo);
    animation: ripple-cycle-red 13s ease-out infinite;
}

a.button__compraboleto::after {
    border: 3px solid var(--dorado);
    animation: ripple-cycle-gold 13s ease-out infinite;
}

@keyframes shake-cycle {

    0%,
    76.9%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    /* Agitación durante 3 segundos (de 76.9% a 100%) */
    78.5%,
    82.3%,
    86.2%,
    90%,
    93.8% {
        transform: translateX(-3px) rotate(-2deg);
    }

    80.4%,
    84.2%,
    88.1%,
    91.9%,
    95.8% {
        transform: translateX(3px) rotate(2deg);
    }

    97.7% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes ripple-cycle-red {

    0%,
    76.8%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    76.9% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    82% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

@keyframes ripple-cycle-gold {

    0%,
    76.8%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }

    78% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    84% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

a.whatsapp-button {
    img:first-child {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        transition: transform 0.3s ease;
    }

    img:last-child {
        position: absolute;
        right: 10px;
        height: 100%;
        width: auto;
        opacity: 0;
        z-index: 1;
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%);
    }
}

a.whatsapp-button:hover {
    width: -webkit-fill-available;
    padding-left: 1rem;

    img:first-child {
        transform: scale(1.05);
    }

    img:last-child {
        opacity: 1;
        transform: translateX(0);
    }
}

a.button__compraboleto {
    right: 2rem;
    bottom: 4rem;
}

a.button__compraboleto img {
    width: 8rem;
    height: 8rem;
}

a.whatsapp-button {
    right: 2rem;
    bottom: 12rem;
}

/* Tablet */
@media (width <=1260px) {
    header {
        position: relative;
        margin: 1.5rem 0;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        padding: 0 1rem;
        transform: none !important;
        box-shadow: none;

        img {
            max-width: 200px;
        }
    }

    header.header-hidden,
    header.header-scrolled {
        transform: none !important;
    }

    body::before {
        display: none;
    }

    #header__menu--movil {
        display: flex !important;
    }

    .header__menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        margin: 0;
        border-radius: 0;
        gap: 1.5rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .header__menu__close {
        display: flex !important;
    }

    .header__menu a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .header__menu a::after {
        display: none;
    }

    .header__menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-5px);
    }

    .header__menu a.active {
        background: rgba(208, 176, 98, 0.2);
        border-left: 4px solid var(--dorado);
    }

    .header__menu.active {
        right: 0;
        z-index: 10001;
    }

    /* Overlay cuando el menú está abierto */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 997;
    }

    .call_to_action {
        min-height: 350px;

        h3 {
            font-size: 1.8rem !important;
        }

        a.cta_button {
            font-size: 1.8rem !important;
        }
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    footer {
        gap: 2rem;
        padding: 3rem 1rem;
        margin-top: 6rem;

        .footer__top {
            gap: 4rem;
            flex-direction: column;

            .first_block {
                gap: 2rem;
                flex-direction: column;

                .linea-vertical {
                    display: none;
                }

                .footer__top__location {
                    flex-direction: column;
                    text-align: center;

                    img.location_logo {
                        align-self: center;
                        margin-top: 0;
                    }
                }
            }
        }
    }
}

/* Mobile */
@media (width <=768px) {
    header {
        margin: 1rem 0;
        justify-content: space-between;
        padding: 0 1rem;

        img {
            max-width: 150px;
        }
    }

    .sections__container {
        display: flex;
        align-items: center;
    }

    #header__menu--movil {
        font-size: 1.8rem;
    }

    .header__menu {
        width: 85%;
        padding: 5rem 1.5rem 2rem;
        gap: 1rem;

        a {
            font-size: 1rem;
            padding: 0.8rem;
        }
    }

    footer {
        gap: 1.5rem;
        padding: 2rem 1rem;
        margin-top: 4rem;

        p,
        a,
        span {
            font-size: 0.875rem;
            text-align: center;
        }

        .footer__top {
            gap: 2rem;

            .first_block {

                .footer__top__logos {
                    gap: 1rem;
                    align-items: center;

                    img {
                        max-width: 120px;
                    }
                }

                .footer__top__location {
                    img.location_logo {
                        width: 24px;
                        height: 24px;
                    }
                }
            }

            .second_block {
                .footer__top__social {
                    gap: 0.75rem;

                    .social_media_logos {
                        gap: 0.75rem;

                        img {
                            width: 32px;
                            height: 32px;
                        }
                    }
                }
            }
        }

        .footer__bottom {
            gap: 0.5rem;
            padding: 0 1rem;
        }
    }

    .call_to_action {
        min-height: 350px;
        align-items: center;
        justify-content: flex-start;
        background-image: url('/landings/assets/images/BANNER_COMPRA_MOVIL.jpg');

        h3 {
            font-size: 1.2rem !important;
            text-align: center;
            max-width: 80%;
            padding-left: 0;
        }

        .cta_button_container {
            padding-left: 0;
        }

        a.cta_button {
            font-size: 1.2rem !important;
            padding: 0.875rem 2.5rem;
        }
    }
}

/* Small Mobile */
@media (width <=480px) {
    header {
        img {
            max-width: 120px;
        }
    }

    #header__menu--movil {
        font-size: 1.5rem;
    }

    .header__menu {
        width: 90%;
        padding: 4rem 1rem 2rem;
        gap: 0.8rem;

        a {
            font-size: 0.9rem;
            padding: 0.7rem;
        }
    }

    footer {
        padding: 1.5rem 0.5rem;
        margin-top: 3rem;

        p,
        a,
        span {
            font-size: 0.75rem;
        }

        .footer__top {
            gap: 1.5rem;

            .first_block {

                .footer__top__logos {
                    img {
                        max-width: 100px;
                    }
                }

                .footer__top__location {
                    img.location_logo {
                        width: 20px;
                        height: 20px;
                    }
                }
            }

            .second_block {
                .footer__top__social {
                    h3 {
                        font-size: 1rem;
                    }

                    .social_media_logos {
                        gap: 0.5rem;

                        img {
                            width: 28px;
                            height: 28px;
                        }
                    }
                }
            }
        }
    }

    a.whatsapp-button {
        right: 1rem;
        bottom: 8rem;
        width: 4rem;
        height: 4rem;
    }

    a.button__compraboleto {
        right: 1rem;
        bottom: 2rem;
    }

    a.button__compraboleto img {
        width: 6rem;
        height: 6rem;
    }

    a.whatsapp-button {
        img:first-child {
            width: 4rem;
            height: 4rem;
        }

        img:last-child {
            right: 4rem;
        }
    }

    a.whatsapp-button:hover {
        padding-left: 0.75rem;
    }

    .call_to_action {
        h3 {
            text-align: center;
            max-width: 90%;
        }

        a.cta_button {
            font-size: 1.2rem !important;
            padding: 0.75rem 2rem;
        }
    }
}