/* Animación */

.showItem {
    animation: swing 1s .5s both ease, slideOutDown 1s ease 1.5s 1 normal forwards;
    transform-origin: top center;
}

@keyframes swing {
    20% {
        -webkit-transform: rotate3d(0, 0, 1, 15deg);
        transform: rotate3d(0, 0, 1, 15deg);
    }

    40% {
        -webkit-transform: rotate3d(0, 0, 1, -10deg);
        transform: rotate3d(0, 0, 1, -10deg);
    }

    60% {
        -webkit-transform: rotate3d(0, 0, 1, 5deg);
        transform: rotate3d(0, 0, 1, 5deg);
    }

    80% {
        -webkit-transform: rotate3d(0, 0, 1, -5deg);
        transform: rotate3d(0, 0, 1, -5deg);
    }

    100% {
        -webkit-transform: rotate3d(0, 0, 1, 0deg);
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

@keyframes slideOutDown {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    100% {
        visibility: hidden;
        -webkit-transform: translateY(200%);
        transform: translateY(200%);
    }
}

@keyframes shutter {

    0% {
        transform: scale(1);
        transform-origin: bottom;
        opacity: 1;
        display: block;
    }

    100% {
        transform: scale(1.2);
        transform-origin: bottom;
        opacity: 0;
        display: none;
    }
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


@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);
    }
}




/*=== MODALES ===*/

body {
    font-size: 22px;
}

@media (max-width: 767px) {
    body {
        font-size: 20px;
    }
}

.modal_fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px;
    z-index: 10000;
}

@keyframes zoomModal {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.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: 800px;
    border-radius: 10px;
    position: relative;

    padding: 30px 75px;
    text-align: center;
    border: 7px solid #ED921F;
    background-color: #E6CE76;
}

@media (max-width: 565px) {

    .modal_fade .content_modal,
    .modalMensaje .edModal__contenedor .modal-content {
        padding: 30px 20px;
        background-size: 60px, 60px, 40%, 40%, cover;
        background-position: bottom -20px left -30px, bottom -20px right -30px, top left, top 70px right, center;
    }
}

.modal_fade .content_modal::before,
.modalMensaje .edModal__contenedor .modal-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 48%;
    transform: translate(-50%, 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: none;
    padding-top: 100px;
    animation: zoomModal 0.5s ease-in-out;
}

.modal_fade.modalIntro.modal--activo {
    display: flex;
}

.modal_fade.modalIntro.modal--activo .content_modal {}

.modal_fade.modalIntro .content_modal {
    background-color: var(--color2);
    background-image: url(../img/linea-modal2.png), radial-gradient(ellipse at center, #CB2B19, #A72517);
    background-size: 60px, cover;
    background-position: top;
    background-repeat: repeat;
    border: 5px solid var(--color1);
    border-radius: 30px;
    padding: 0 30px 30px;
    max-width: 650px;
    position: relative;
}

@media (max-width: 767px) {
    .modal_fade.modalIntro .content_modal {
        max-width: 400px;
        padding: 0 15px 30px;
    }
}

.tituloIntro {
    width: 280px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -70px;
    margin-bottom: 30px;
}

@media (max-width: 576px) {
    .tituloIntro {
        width: 250px;
    }
}

.textoIntro {
    color: white;
}

.ayudasIntro {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

@media (max-width: 576px) {
    .ayudasIntro {
        gap: 20px;
    }
}

.instruccionesIntro {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color10);
    border-radius: 20px;
    padding: 10px 15px;
    width: max-content;
    color: white;
    font-weight: bold;
    gap: 15px;
}

.instruccionesIntro img {
    height: 80px;
}

.pistasIntro {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color10);
    border-radius: 20px;
    padding: 10px 15px;
    width: max-content;
    color: white;
    font-weight: bold;
    gap: 15px;
    font-size: 22px;
}

@media (max-width: 576px) {
    .pistasIntro {
        font-size: 20px;
    }
}

.pistasIntro img {
    height: 80px;
}

/* .modal_fade.modalIntro .content_modal img {
    animation: bounceIn 1.5s backwards;
} */

.modal_fade .modal__footer {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .modal_fade .modal__footer {
        flex-direction: column;
        gap: 20px;
    }
}


/* Modal Final */

.modal_fade.modalFinal {
    display: none;
    padding-top: 80px;
    animation: zoomModal 0.8s backwards;
}

.modal_fade.modalFinal.modal--activo {
    display: flex;
}

.modal_fade.modalFinal .content_modal {
    background-color: var(--color2);
    background-image: url(../img/linea-modal2.png), radial-gradient(ellipse at center, #CB2B19, #A72517);
    background-size: 60px, cover;
    background-position: top;
    background-repeat: repeat;
    border: 5px solid var(--color1);
    border-radius: 30px;
    padding: 0 30px 30px;
    max-width: 1000px;
    position: relative;
}

@media (max-width: 767px) {
    .modal_fade.modalFinal .content_modal {
        max-width: 500px;
        padding: 0 10px 20px;
    }
}

.tituloFinal {
    width: 350px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -50px;
    margin-bottom: 30px;
}

.textoFinal {
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.final__logo {
    width: 290px;
    margin: 20px auto;
}

.modalFinal__columnas {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px 30px;
    background-color: white;
    border-radius: 20px;
    padding: 15px;
    align-items: center;
    margin: 0 auto 20px;
}

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

.modalFinal__imagenTradicion {
    width: 100%;
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
}

.modalFinal__titulo {
    font-weight: bold;
    font-size: 24px;
}

.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 Ayudas */

.modal_fade.modalAyuda1 {
    display: none;
    padding-top: 80px;
    animation: zoomModal .8s backwards;
}

.modal_fade.modalAyuda2 {
    display: none;
    padding-top: 100px;
    animation: zoomModal .8s backwards;
}

.modal_fade.modalAyuda1.modal--activo {
    display: flex;
}

.modal_fade.modalAyuda2.modal--activo {
    display: flex;
}

/* Instrucciones */

.modal_fade.modalAyuda1 .content_modal {
    background-color: var(--color15);
    background-image: url(../img/linea-modal.png);
    background-size: auto 120%;
    background-position: top;
    background-repeat: repeat;
    border: 5px solid var(--color4);
    border-radius: 30px;
    padding: 0 30px 30px;
    max-width: 800px;
    position: relative;
}

@media (max-width: 767px) {
    .modal_fade.modalAyuda1 .content_modal {
        max-width: 400px;
    }
}

.tituloAyudas {
    background-image: url(../img/linea-modal.png), radial-gradient(ellipse at center, #CA1D1C, #691212);
    background-size: auto 30px, cover;
    background-position: top, center;
    background-repeat: repeat;
    background-blend-mode: normal;
    border: 5px solid var(--color4);
    border-radius: 2rem;
    padding: 10px 30px 10px 90px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: -45px;
    margin-bottom: 30px;
    font-size: 35px;
    font-weight: bold;
    font-family: var(--fuenteTitulos);
    color: white;
    position: relative;
}

@media (max-width: 992px) {
    .tituloAyudas {
        font-size: 30px;
        line-height: 1;
    }
}

.tituloAyudas img {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
}

.ejemploInstruccion {
    margin-bottom: 10px;
    max-width: 90%;
}

.contenidoInstrucciones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instruccion {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.instruccion img {
    height: 40px;
}

.instruccion .bombi {
    border-radius: 10px;
    border: 2px dashed var(--color4);
    box-shadow: 0 0 0 1px var(--color4);
    background-color: var(--color3);
    height: 60px;
}

.textoInstruccion {
    color: var(--color16);
    font-size: 22px;
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 576px) {
    .textoInstruccion {
        font-size: 20px;
    }
}


/* Ayudas */

.modal_fade.modalAyuda2 .content_modal {
    background-color: var(--color15);
    background-image: url(../img/linea-modal.png);
    background-size: auto 120%;
    background-position: top;
    background-repeat: repeat;
    border: 5px solid var(--color4);
    border-radius: 30px;
    padding: 0 40px 30px;
    max-width: 550px;
    position: relative;
}

@media (max-width: 767px) {
    .modal_fade.modalAyuda2 .content_modal {
        max-width: 400px;
        padding: 0 15px 30px;
    }
}

.contenidoAyudas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: auto;
    margin-right: auto;
}

.ayuda {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.ayuda img {
    width: 40px;
}


/* 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: 22px;
}

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



/*=== MODAL MENSAJE ===*/
.fade {
    opacity: 0;
    transition: opacity 0.25s linear;
}

.collapsing {
    transition: height 0.45s ease;
}

.modalMensaje .edModal__contenedor {
    min-height: 90%;
    max-width: 1200px;
    width: 96%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

.modalMensaje .modal-content {
    padding: 20px 30px;
    text-align: center;
    border: 7px solid #bf8800;
    background-color: hsl(46, 40%, 80%);
}

.modalMensaje .modal__columnas {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex-direction: row;
}

@media (max-width: 767px) {
    .modalMensaje .modal__columnas {
        flex-direction: column;
    }
}

.modalMensaje .modal__column {
    width: 100%;
    font-size: 18px;
    padding: 10px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 767px) {

    .modalMensaje .modal__column {
        width: 100%;
        padding: 0 5px 15px;
    }
}

.modalMensaje .modal-content .modal__texto {
    color: #DF8C37;
    font-size: 30px;
    padding: 10px 0;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

@media (max-width: 767px) {

    .modal-content .modal__texto {
        font-size: 18px;
        padding: 10px;
    }
}





.modal__enlace {
    margin: 10px auto 20px;
}

.modal__enlace a {
    display: inline-flex;
    color: #d4901c;
    text-decoration: none;
    border: 2px solid #ffc648;
    border-radius: 2rem;
    padding: 6px 15px;
    transform: scale(1) translateY(0);
    transition: transform .5s;
    background: rgb(255 255 255 / 0.5);
}

.modal__enlace a:hover {
    transform: scale(1.03) translateY(-2px);
}