@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.falling {
    animation: fall 10s linear forwards;
}

.image-text-congreso {
    background-image: url('../imgs/fondo_congreso.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-clip: text;
    color: transparent;
}

.image-text {
    background-image: url('../imgs/dorado_fondo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-clip: text;
    color: transparent;
}

.modal-fondo {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.6);
}

.container-modal {
    position: relative;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 91.67%;
    max-width: 80%;
    margin: auto;
    border: 2px solid #000000;
    overflow: hidden;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.exit-button {
    padding: 0.5rem 1rem;
    background-color: red;
    color: white;
    border-radius: 9999px;
}

.content-modal {
    overflow-y: auto;
    padding: 1rem;
    max-height: calc(100vh - 4rem);
}

.content-center-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.title-modal {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1em;
    color: red;
}

.title-diagram {
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    color: white;
    background-color: red;
}

.vertical-line {
    width: 0.1rem;
    height: 1rem;
    background-color: red;
    margin: 0 auto;
}

.horizontal-line {
    width: 100%;
    height: 0.1rem;
    background-color: red;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 0.5rem solid transparent;
    border-right: 0.5rem solid transparent;
    border-top: 0.5rem solid red;
    margin-bottom: 0.5rem;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-left: 0.5rem solid red;
    margin-right: 0.5rem;
}

.arrow-left {
    width: 0;
    height: 0;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
    border-right: 0.5rem solid red;
    margin-left: 0.5rem;
}

.container-diagram {
    width: 50%;
    background-color: gray;
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.diamond-diagram {
    transform: translate(0, 0) rotate(45deg);
    border: 2px solid red;
    background-color: transparent;
    width: 6rem;
    height: 6rem;
    margin: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ctdd {
    transform: translate(0, 0) rotate(-45deg);
    color: red;
}

.container-option {
    display: flex;
    align-items: center;
}

.text-option {
    font-size: 1rem;
    color: #000;
}

.grid-5-diagram {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 1rem;
}

.grid-3-diagram {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    width: 100%;
}

.grid-rows-3 {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flex-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

@media (max-width: 768px) {
    .container-modal {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.1rem;
    }

    .container-diagram {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .text-option {
        font-size: 0.6rem;
    }

    .diamond-diagram {
        width: 4rem;
        height: 4rem;
        margin: 1rem;
    }

    .diamond-text-diagram {
        font-size: 0.6rem;
    }

    .text-left-sm {
        font-size: 0.6rem;
    }

    .icon-dancing {
        animation: dancing 1s infinite;
    }

    @keyframes dancing {
        25% {
            transform: translateY(2rem) skew(-2deg);
        }

        0%,
        50%,
        100% {
            transform: translateY(0) skew(0);
        }

        75% {
            transform: translateY(2rem) skew(2deg);
        }
    }
}