section.infografia {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    background-color: #eeece0;
}

section.infografia .marquee-lateral {
    width: 200px;
    position: relative;
}

section.infografia .marquee-lateral img {
    position: absolute;
    width: 50%;
    left: 20%;
}

section.infografia .container {
    flex: 1;
    position: relative;
}

section.infografia .container > div {
    position: absolute;
}

section.infografia .info {
    left: 0;
    top: 20px;
    border-radius: 60px;
    color: white;
    padding: 25px 25px 25px 70px;
    font-family: Avenir, sans-serif;
    font-size: 20px;
    width: 700px;
    background: #827567;
    z-index: 1;
}

section.infografia .info::after {
    content: " ";
    display: block;
    width: 25px;
    height: 25px;
    position: absolute;
    top: calc(50% - 13px);
    left: 28px;
    background: url(../img/infografia/asterisco-blanco.svg) no-repeat center/contain;
    animation-name: spin;
    animation-duration: 2000ms;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

section.infografia .estatutos {
    width: 30vw;
    height: 46vh;
    top: 29.5vh;
    left: 0;
    background: url(../img/infografia/diagrama-estatutos.svg) no-repeat center/contain;
}

section.infografia .acuerdo-asamblea {
    width: 24vw;
    height: 33vh;
    top: 5.7vh;
    left: 30vw;
    background: url(../img/infografia/diagrama-acuerdo-asamblea.svg) no-repeat center/contain;
}

section.infografia .socios-cedentes {
    width: 24vw;
    height: 24vh;
    top: 22vh;
    left: 55vw;
    background: url(../img/infografia/diagrama-socios-cedentes.svg) no-repeat center/contain;
}

section.infografia .contrato-coop {
    width: 32vw;
    height: 33vh;
    top: 56vh;
    left: 54vw;
    background: url(../img/infografia/diagrama-contrato-coop.svg) no-repeat center/contain;
}

section.infografia .reglamento {
    width: 22vw;
    height: 34vh;
    top: 57vh;
    left: 31vw;
    background: url(../img/infografia/diagrama-reglamento.svg) no-repeat center/contain;
}

section.infografia .regimen {
    width: 28vw;
    height: 17vh;
    top: 35vh;
    left: 26vw;
    background: url(../img/infografia/diagrama-regimen.svg) no-repeat center/contain;
}

section.infografia .diagrama-completo {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 300ms;
}

section.infografia .diagrama-completo .diagrama {
    width: auto;
    height: 65vh;
    visibility: hidden;
}

section.infografia .seccion-diagrama {
    transition: transform 300ms, opacity 100ms;
    cursor: pointer;
    z-index: 1;
}

section.infografia .seccion-diagrama,
section.infografia .seccion-diagrama-hover {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
}

section.infografia .seccion-diagrama-hover {
    pointer-events: none;
    transform: translate(5px, 5px);
}

.detall-diagrama {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: auto;
    height: 80vh;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: transform 300ms, box-shadow 300ms, opacity 100ms, background-image 300ms;
}

.detall-diagrama img {
    visibility: hidden;
    height: 80vh;
    width: auto;
}

.tancar-detall-diagrama {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    background: url(../img/infografia/tancar-detall-diagrama.svg) no-repeat center/contain;
}

.navegacio-detall-infografia {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: auto;
    cursor: pointer;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 125px;
    height: 25px;
}

@media(max-width: 1100px) {
    section.infografia .marquee-lateral {
        width: 130px;
    }

    section.infografia .info {
        top: 40px;
        font-size: 14px;
        width: 500px;
    }

    section.infografia .diagrama-completo .diagrama {
        max-width: 90vw;
    }
}

@media(max-width: 991px) {
    section.infografia {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }

    section.infografia .container {
        height: 100%;
    }

    section.infografia .info {
        top: 15px;
        font-size: 12px;
        width: 420px;
        left: 100px;
        padding: 14px 14px 14px 48px;
    }

    section.infografia .info::after {
        left: 14px;
    }

    section.infografia .diagrama-completo {
        top: 57%;
    }

    section.infografia-placeholder {
        background-color: #EEECE0;
    }
    
    section.infografia-placeholder > div {
        color: #827568;
        font-size: 25px;
        font-style: italic;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

    section.infografia .marquee-lateral {
        width: 100px;
        height: 100%;
        position: absolute;
    }
}