:root {
    --color__opcion1: transparent;
    --color__opcion2: transparent;
    --color__opcion3: transparent;
    --color__opcion4: transparent;

    --componente__anchoMaximo: 180px;
    --componente__anchoMinimo: 130px;
    --componente__ancho: 25%;
    --componente__espacio: 10px;

    --componenteDestino__ancho: 50%;

    --contenedoresDestino__colorFondo: #a6def7;
    --contenedoresDestino__ancho: 33.333%;
    --espacioEntreContenedores: 10px;

    --color__contenedorA: hsl(100, 100%, 100%);

    --color__contenedorB: hsl(100, 100%, 100%);

    --color__contenedorC: hsl(100, 100%, 100%);

    --color__contenedorATitulo: hsl(344, 81%, 27%);
    --color__contenedorBTitulo: hsl(47, 98%, 40%);

    --flexFlow__componente: column;

    --fontFamily__contenedorTitulo: 'Barmeno', sans-serif;

    font-size: 20px;

    --color__textoModal: #067777;
    --color__blanco: #fff;
    --modal__fondo: #fff;
    --modal__fondoFooter: #e6f9f4;

    --fondosModales: rgba(0, 0, 0, .6);

    --color__categoria: #067777;

}

/*=== ORIGEN ===*/

.redi2 .listaComponentes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 15px;
    z-index: 2;
}

.redi2 .componente {
    cursor: pointer;
    line-height: 1.15;
    transition: transform 0.1s;
    max-width: var(--componente__anchoMaximo);
    width: calc(var(--componente__ancho) - var(--componente__espacio) * 2);
    min-width: var(--componente__anchoMinimo);
    margin: 0 var(--componente__espacio);
    z-index: 50;
    border-radius: 1em;
    color: #fff;
    display: inline-flex;
    align-items: center;
    flex-flow: var(--flexFlow__componente);
    cursor: url(../img/cursor-grab.cur), url(../img/cursor-grab.png), pointer;
    transition: transform .3s;
}

.redi2 .componentesDestino__contenedor .componente {
    /* width: calc(var(--componenteDestino__ancho) - var(--componente__espacio) * 2);
    transform: scale(.8); */
}

.redi2 .ui-sortable-helper {
    /* transition: transform .3s;
    cursor: url(../img/cursor-grabbing.cur), url(../img/cursor-grabbing.png), move;
    transform: scale(.8);
    z-index: 9; */
}

.redi2 .listaComponentes .componente:nth-child(4n + 1),
.redi2 .contenedorA .componente:nth-child(4n + 1),
.redi2 .contenedorB .componente:nth-child(4n + 1) {
    background-color: var(--color__opcion1);
}

.redi2 .listaComponentes .componente:nth-child(4n + 2),
.redi2 .contenedorA .componente:nth-child(4n + 2),
.redi2 .contenedorB .componente:nth-child(4n + 2) {
    background-color: var(--color__opcion2);
}

.redi2 .listaComponentes .componente:nth-child(4n + 3),
.redi2 .contenedorA .componente:nth-child(4n + 3),
.redi2 .contenedorB .componente:nth-child(4n + 3) {
    background-color: var(--color__opcion3);
}

.redi2 .listaComponentes .componente:nth-child(4n + 4),
.redi2 .contenedorA .componente:nth-child(4n + 4),
.redi2 .contenedorB .componente:nth-child(4n + 4) {
    background-color: var(--color__opcion4);
}

.redi2 .componente img {
    border-radius: 10px 10px 0 0;
    max-width: 100%;
    height: auto;
}

/*=== FIN ORIGEN ===*/

/*=== DESTINO ===*/

.redi2 .componentesDestino__content {
    width: calc(var(--contenedoresDestino__ancho) - var(--espacioEntreContenedores) * 2);
    margin: 10px var(--espacioEntreContenedores);
    background-color: var(--contenedoresDestino__colorFondo);
    background-image: url(../img/fondo.png);
    background-position: center;
    background-size: 400px;
    background-blend-mode: overlay;
    background-repeat: repeat;
    text-align: center;
    padding: 15px 10px 10px;
    border-radius: 15px;
}

.redi2 .componentesDestino__content.organicos {
    --contenedoresDestino__colorFondo: #c3fce9;
}

.redi2 .componentesDestino__content.noAprovechable {
    --contenedoresDestino__colorFondo: #fcd4d4;
}



.redi2 .contenedorA,
.redi2 .contenedorB,
.redi2 .contenedorC {
    min-height: 300px;
    vertical-align: top;
    transform: scale(1);
    transition: transform .3s;
    border-radius: 20px;

    position: relative;
    border-radius: 20px;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;

    padding: 0;
    margin: 15px 0;
    position: relative;


    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media (max-width: 992px) {

    .redi2 .contenedorA,
    .redi2 .contenedorB,
    .redi2 .contenedorC {
        min-height: 250px;
    }
}

.redi2 .contenedorA {
    background-image: url(../img/r2-contenedorA.png);
}

.redi2 .contenedorB {
    background-image: url(../img/r2-contenedorB.png);
}

.redi2 .contenedorC {
    background-image: url(../img/r2-contenedorC.png);
}

.redi2 .componentesDestino__titulo {
    background-color: #067777;
    border-radius: 2rem;
    padding: 10px;
    color: #fff;
    font-size: 22px;
    margin: 0 0 10px;
    font-family: var(--fuenteTitulo);
    line-height: 1;
    position: relative;
}

@media (max-width: 767px) {
    .redi2 .componentesDestino__titulo {
        max-width: 300px;
        margin: auto;
    }
}

.redi2 .componentesDestino__titulo:before {
    content: "";
    position: absolute;
    left: 20%;
    top: 100%;
    width: 4px;
    height: 100%;
    background: #067777;
}

.redi2 .componentesDestino__titulo:after {
    content: "";
    position: absolute;
    right: 20%;
    top: 100%;
    width: 4px;
    height: 100%;
    background: #067777;
}

/* Termina GRUPOS DE PROCESOS */

/*-- Maquetación --*/

.redi2 {
    max-width: 1100px;
}

.redi2 .componentesContent,
.redi2 .componentesDestino {
    width: 100%;
    display: flex;
}

.redi2 .componentesDestino {
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/*-- Fin Maquetación --*/

@media (max-width: 767px) {
    .redi2 .listaComponentes .componente {
        min-width: 100px;
        font-size: 16px;
        margin-bottom: 0;
        padding-bottom: 0;
        transform: scale(1.4);
    }

    .redi2 .componentesContent {
        position: sticky;
        top: -15px;
        margin-top: -15px;
        z-index: 2;
        background-color: #efefef;
        padding-top: 10px;
        box-shadow: 0 4px 0 rgba(0, 0, 0, .2);
        border-radius: 0 0 40px 40px;
    }

    .redi2 .componentesDestino__content {
        width: 100%;
    }
}


/*-- Ajuste btn calificar --*/

.redi2 .redi__calificar {
    position: sticky;
    bottom: 50px;
    z-index: 999;
}

.redi__calificarbtn {
    margin-top: 30px;
    border-radius: 7px;
    background-color: #5ea4a5;
    font-size: 18px;
    line-height: 1.5;
    padding: 8px 15px;
    font-weight: bold;
    color: #fff;
    border: none;
    transition: background-color .3s, box-shadow .3s;
}

.redi__calificarbtn:hover {
    color: white;
    background-color: #4b8486;
    box-shadow: 0 2px 5px 1px rgba(0, 0, 0, .1);
}

.redi2 .redi__calificarbtn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    background-color: #5ea4a5;
    box-shadow: none;
}


/* Modal */

.modalED {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    padding: 20px;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
}


.modalED {
    display: none;
    animation: fadeOutNegro 4s;
    background-color: var(--fondosModales);
}

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

@media (max-width: 767px) {
    .column {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.modalED__img {
    width: 100%;
    height: 100%;
    /* padding-bottom: 56.29%; */
    background-size: cover;
    background-repeat: no-repeat;
}

.perdioActivo .modalED__img {
    background-image: url(../img/modalPerdio.png);
    background-position: top right;
}

.ganoActivo .modalED__img {
    background-image: url(../img/modalGano.png);
    background-position: top left -30px;
}

@media (max-width: 767px) {
    .modalED__img {
        height: 0;
        padding-bottom: 65%;
    }

    .perdioActivo .modalED__img {
        background-image: url(../img/modalPerdio-.png);
        background-position: top center;
    }

    .ganoActivo .modalED__img {
        background-image: url(../img/modalGano-.png);
        background-position: top center;
    }
}



.modalED.perdioActivo,
.modalED.ganoActivo {
    display: block;
}

.modalED__content {
    display: flex;
    margin: auto;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    background-image: url(../img/pattern.png);
    background-size: 180px;
    background-position: left top;
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    border: 5px solid var(--color__categoria);
    margin-bottom: 10px;
    text-align: center;
    animation: bounceIn 1s 1s backwards;
    overflow: hidden;
}

.modalED__texto2,
.modalED__texto3 {
    padding: 0 20px;
}

.modalED__texto1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--color__textoModal);
    background-color: #e6f9f4;
    padding: 7px;
}

.modalED__texto2 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--marca__color2);
    text-align: center;
}

.modalED__texto3 {
    line-height: 1.2;
    text-align: left;
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--color__texto);
}

.modalED__texto3 {
    margin-bottom: 20px;
}

.modalED__porcentaje {
    font-size: 42px;
    font-weight: bold;
    color: #e6f9f4;
    background-color: var(--color__textoModal);
    border-radius: 4em;
    width: fit-content;
    padding: 5px 25px;
    margin: 20px auto;
}

.blanco,
.negro,
.verde {
    display: block;
    margin-bottom: 5px;
    position: relative;
    padding-left: 35px;
}

.blanco::before,
.negro:before,
.verde:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    width: 25px;
    height: 100%;
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

.blanco::before {
    background-image: url(../img/cblanca.png);
}

.negro:before {
    background-image: url(../img/cnegra.png);
}

.verde:before {
    background-image: url(../img/cverde.png);
}

.resolucion {
    font-size: 15px;
    font-style: italic;
    line-height: 1.2;
    margin: 10px;
    text-align: center;
}

@media (max-width: 767px) {

    .modalED__texto1 {
        font-size: 30px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .modalED__texto2,
    .modalED__texto3 {
        font-size: 18px;
    }
}

.modal__botonesCompartir {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    background-color: #e6f9f4;
    margin-top: 30px;
}

.modal__compartir {
    margin-right: 30px;
    color: #728b8c;
    font-size: 22px;
}

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

@keyframes compartir {
    0% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1);
    }

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

.modal__botonesCompartir img {
    width: 35px;
    margin: 0 10px;
    animation: compartir 1s infinite;
}

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

.footer__reiniciar {
    margin: 0 10px;
    font-size: 20px;
}

@media (max-width: 767px) {
    .footer__reiniciar {
        margin: 0 10px 20px;
    }
}

.footer__reiniciar {
    -webkit-animation: bounceIn 1.5s 1s backwards;
    animation: bounceIn 1.5s 1s backwards;
    --btnComenzar__color: var(--color__blanco);
    --btnComenzar__colorFondo: #447874;
    --btnComenzar__colorSombra: #2e5450;
    padding: 5px 1em;
    background-color: var(--btnComenzar__colorFondo);
    color: var(--btnComenzar__color);
    font-size: 22px;
    font-weight: 600;
    border-radius: 2em;

    position: relative;
    top: -4px;
    box-shadow: 0 8px 0 1px var(--btnComenzar__colorSombra),
        0 6px 0 1px var(--btnComenzar__colorSombra),
        0 4px 0 1px var(--btnComenzar__colorSombra),
        0 2px 0 1px var(--btnComenzar__colorSombra),
        0 0px 0 1px var(--btnComenzar__colorSombra);
    transition: all .3s;
    text-decoration: none;
}

.footer__reiniciar:hover {
    color: var(--btnComenzar__color);
    text-decoration: none;
    top: 0;
    -webkit-box-shadow: 0 4px 0 1px var(--btnComenzar__colorSombra),
        0 2px 0 1px var(--btnComenzar__colorSombra),
        0 0px 0 1px var(--btnComenzar__colorSombra);
    box-shadow: 0 4px 0 1px var(--btnComenzar__colorSombra),
        0 2px 0 1px var(--btnComenzar__colorSombra),
        0 0px 0 1px var(--btnComenzar__colorSombra);
}

.footer__reiniciar:active {
    top: 2px;
    -webkit-box-shadow: 0 2px 0 1px var(--btnComenzar__colorSombra),
        0 0px 0 1px var(--btnComenzar__colorSombra);
    box-shadow: 0 2px 0 1px var(--btnComenzar__colorSombra),
        0 0px 0 1px var(--btnComenzar__colorSombra);
}