:root {
    --color1: #FBE6AB;
    --color2: #013E8F;
    --color3: #002F6F;
    --color4: #CC0912;
    --color5: #FFEBCE;
    --color6: #5D1C0C;
    --degrade: radial-gradient(ellipse at center, #013E8F, #002F6F);
    --degrade2: linear-gradient(to bottom, #FCDBAF 0%, #E3A012 25%, #FCDBAF 52%, #E3A012 80%, #B26500 100%);
}

/* Animación */

@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        -webkit-animation-timing-function: cubic-bezier(.215, .61, .355, 1);
        animation-timing-function: cubic-bezier(.215, .61, .355, 1);
    }

    0% {
        -webkit-transform: scale3d(.3, .3, .3);
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }

    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        -webkit-transform: scale3d(.9, .9, .9);
        transform: scale3d(.9, .9, .9);
    }

    60% {
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        -webkit-transform: scale3d(.97, .97, .97);
        transform: scale3d(.97, .97, .97);
    }

    100% {
        -webkit-transform: scaleX(1);
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes zoomName {
    0% {
        opacity: 0;
        transform: scale(1.3) translateY(80%);
    }

    40% {
        opacity: 1;
        transform: scale(1.3) translateY(80%);
    }

    50% {
        transform: scale(1.3) translateY(80%);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes zoomName2 {
    0% {
        opacity: 0;
        transform: scale(1.5) translateY(80%);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/*=== MODALES ===*/

.modal_fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    /* Evita scroll horizontal innecesario */
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    padding: 20px 10px;
    z-index: 10000;
    align-items: start;
}

.modal_fade .content_modal,
.modalMensaje .edModal__contenedor .modal-content {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    position: relative;
    padding: 30px 20px;
    /* Reducir padding para móviles */
    border: 7px solid #ED921F;
    background-color: #E6CE76;
    box-sizing: border-box;
    /* Asegura que el padding no desborde */
}

.modal_fade .content_modal::before,
.modalMensaje .edModal__contenedor .modal-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background-image: url(../img/gato.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 95px;
    height: 47px;
    filter: drop-shadow(1px 1px 2px hsla(0, 0%, 0%, .2));
}

/* Modal intro */

.modal_fade.modalIntro {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    justify-content: start;
}

.modal_fade.modalIntro--hide {
    display: none;
}

.modal_fade.modalIntro .content_modal {
    background-color: var(--color2);
    background-image: url(../img/textura-azul.png), radial-gradient(ellipse at center, #013E8F, #002F6F);
    background-size: 400px, cover;
    background-position: top;
    background-repeat: repeat;
    border: 5px solid var(--color1);
    border-radius: 30px;
    padding: 50px 15px 40px;
    max-width: 800px;
    position: relative;
    margin-bottom: 30px;
    animation: bounceIn 1.5s 2.8s backwards;
}

/* Ajustes para móviles */
@media (max-width: 767px) {
    .modal_fade.modalIntro .content_modal {
        max-width: 100%;
        padding: 40px 20px;
        animation: bounceIn 1.5s .8s backwards;
    }
}

.tituloIntro {
    width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: zoomName 3s .3s backwards;
    z-index: 1;
    margin-bottom: -40px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .tituloIntro {
        width: 400px;
        animation: zoomName2 1s .3s backwards;
    }
}

.decoFooter {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
}

.logoIntro {
    width: 350px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
}

.gifIntro {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.textoIntro {
    color: white;
    font-size: 20px;
    text-align: center;
}

.colIntro {
    display: grid;
    align-items: center;
}

.modal_fade .modal__footer {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    animation: bounceIn 1.5s 2.5s backwards;
}

@media (max-width: 767px) {
    .modal_fade .modal__footer {
        flex-direction: column;
        gap: 20px;
        animation: bounceIn 1.5s .8s backwards;
    }
}


/* Modal Final */

.modal_fade.modalFinal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.modal_fade.modalFinal--hide {
    display: none;
}

.modal_fade.modalFinal .content_modal {
    background-color: var(--color2);
    background-image: url(../img/textura-azul.png), radial-gradient(ellipse at center, #013E8F, #002F6F);
    background-size: 400px, cover;
    background-position: top;
    background-repeat: repeat;
    border: 5px solid var(--color1);
    border-radius: 30px;
    padding: 0;
    max-width: 800px;
    position: relative;
    margin-top: 30px;
    margin-bottom: 40px;
}

.tituloFinal {
    width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: -125px;
    left: 0;
    right: 0;
}

.final__logo {
    width: 300px;
    margin: 10px auto 20px;
    display: block;
}


.modalFinal__columnas {
    display: grid;
    grid-template-columns: 40% 1fr;
}

@media (max-width: 992px) {
    .modalFinal__columnas {
        grid-template-columns: 1fr;
    }
}

.modalFinal__info {
    display: flex;
    flex-direction: column;
    position: relative;
}

.modalFinal__info::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0;
    width: 10px;
    height: 100%;
    background-image: var(--degrade2);
}

.modalFinal__info--1 {
    padding: 20px 20px 10px;
    background-color: var(--color5);
    color: var(--color6);
    font-size: 20px;
    border-radius: 0 20px 0 0;
}

@media (max-width: 767px) {
    .modalFinal__info--1 {
        border-radius: 0;
    }
}

.modalFinal__info--2 {
    padding: 20px 20px 40px;
    color: white;
    font-size: 20px;
    text-align: center;
}

.modalFinal__imagenTradicion {
    width: 100%;
    height: 100%;
    background-image: url(../img/img1.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 25px 0 0 25px;
}

@media (max-width: 767px) {
    .modalFinal__imagenTradicion {
        min-height: 400px;
        border-radius: 25px 25px 0 0;
        background-position: center bottom;
    }
}

.modalFinal__titulo {
    font-weight: bold;
    font-size: 24px;
    color: var(--color4);
    margin-bottom: 10px;
}

.modalFinal__palabra {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.modalFinal__letra {
    width: 100%;
    min-width: 20px;
    max-width: 35px;
    min-height: 20px;
    height: 35px;
    text-align: center;
    border-radius: 5px;
    background-color: var(--color4);
    border: 2px dashed var(--color3);
    box-shadow: 0 0 0 1px var(--color3);
    color: white;
    font-weight: bold;
    font-size: 24px;
}

@media (max-width: 1200px) {

    .modalFinal__palabra {
        gap: 5px;
    }

    .modalFinal__letra {
        font-size: 25px;
    }
}



/* Modal final compatir */

.modal__botonesCompartir {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

@media (max-width: 992px) {
    .modal__botonesCompartir {
        justify-content: center;
    }
}


@keyframes fadeOutNegro {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgba(0, 0, 0, .7);
    }
}


.modal__botonesCompartir img {
    width: 35px;
    margin: 0 10px;
    animation: compartir 1s infinite;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, .15));
}

@media (max-width: 767px) {
    .modal__botonesCompartir img {
        width: 30px;
        margin: 5px 7px;
    }
}

.modal__botonesCompartir a:hover img {
    transform: scale(1);
}

.modal__botonesCompartir .btnCopy {
    background-color: transparent;
    padding: 0;
    position: relative;
}


.modal__compartir {
    margin-right: 20px;
    color: #fff;
    font-size: 20px;
}

@media (max-width: 767px) {
    .modal__compartir {
        margin-right: 15px;
        color: #fff;
        font-size: 20px;
    }
}



/* Botones  */

.introduccion__btnComenzar,
.footer__reiniciar {
    animation: bounceIn 1.5s backwards;
    --btnComenzar__color: white;
    --btnComenzar__colorFondo: #B12217;
    padding: 7px 1.5em;
    background-color: var(--btnComenzar__colorFondo);
    color: var(--btnComenzar__color);
    background-image: url(../img/btn-bg.png), url(../img/btn-bg2.png);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: left 5px top 5px, bottom 5px right 5px;
    background-blend-mode: normal, overlay;
    font-weight: bold;
    border-radius: 2em;
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 120px;
    font-family: var(--fuenteTitulo);
    width: fit-content;
    font-size: 24px;

    transition: all .3s;
    text-decoration: none;
    position: relative;
}

.introduccion__btnComenzar:hover,
.footer__reiniciar:hover {
    transform: scale(1.05);
}

.btn-play {
    height: 30px;
}


.btn-sonido {
    height: 20px;
}