:root {
    --color-primary: #7AC943;
    --color-gray: #dcdcdc;
    --color-black-black: #000000;
    --color-black: #333333;
    --color-text-gray: #999999;
    --color-li-grey: #e7e7e7;;
}

*{
    box-sizing: border-box;
}

body, html{
    font-size: 16px;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth;
    font-family: 'Source Serif 4', serif;
}

header{
    background-color: var(--color-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
}

header h1{
    opacity: 0;
}

header img{
    width: 70%;
}

nav{
    display: flex;
    padding: 1rem 2rem;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
}

.main-menu .logo img{
    width: 100px;
}

nav a{
    margin: 0 1rem;
    text-decoration: none;
    color: var(--color-black);
}

.container{
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.section-ver{
    background-color: var(--color-primary);
    padding: 1px;
}

.lead{
    font-size: 1.4rem;
    font-weight: 400;
    width: 70%;
    margin: 100px auto;
    color: var(--color-black-black);
}

.actores{
    display: flex;
    justify-content: space-between;
    width: 78%;
    padding: 1rem;
    margin: auto;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.actor{
    
    transition: all 0.2s;
    text-align: center;
    
}

.actor-link{
    text-decoration: none;
    color: var(--color-black);
}

.actor img{
    transition: all 0.2s;
    display: block;
    margin: auto;
    margin-bottom: 10px;
    width: 40px;
}

.actor img.caballo{
    width: 45px;
}

.actor img.torre{
    width: 42px;
}

.actor:hover img{
    transform: scale(1.2);
    cursor: pointer;
}

.actor.active img{
    transform: scale(1.2);
    cursor: pointer;
}

.actor span{
    font-family: 'Work Sans', sans-serif;
}

.nota-meto{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-gray);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.nota-meto.is-open{
    display: flex;
}

.content-nota{
    width: 100%;
    max-width: 700px;
    position: relative;
}

.close-nota{
    position: absolute;
    top: -7px;
    right: -6px;
    width: 25px;
    height: 25px;
    background-color: #96d469;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 25px;
    font-weight: 300;
    cursor: pointer;
}

.analisis-fip .close-nota{
    top: 1rem;
    right: 1rem;
}

.mb-logo{
    display: none;
}

/* timlime */

.time-line{
    display: flex;
    width: 100vw;
    overflow-y: scroll;
    /* scroll-snap-type: x mandatory; */
    scroll-behavior: smooth;
}

.time-line-com{
    scroll-snap-align: end;
}

.control-lie{
    display: flex;
    align-items: flex-end;
}

.control-lie a{
    display: flex;
    align-items: flex-end;
}

.control-lie .btn-filtro{
    text-decoration: none;
    margin-right: 0.5rem;
    color: var(--color-text-gray);
}

.control-lie .btn-filtro:active{
    color: #f00;
}

.label-year{
    margin-right:1rem;
}

.time-ani{
    display: flex;
}

.item-fecha{
    height: 52vh;
    position: relative;
}

.item-feat{
    height: 100px;
}

.features{
    height: 100px;
}

.evento.event-feat{
    bottom: 0;
    margin-bottom: -20px;
    width: 50px;
    height: 50px;
}

.item-fecha.item-feat .fecha{
    color: transparent;
}

.item-fecha.anio.feat .fecha{
    color: transparent;
}

.item-fecha.anio{
    background-color: rgb(218 246 197);
}

.item-fecha.anio.feat{
    height: 100px;
}

.item-fecha.anio .eventos::before{
    display: none;
}

.reini{
    background-color: transparent;
    border: none;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    color: #006837;
    cursor: pointer;
    margin-left: 2rem;
}

.reini svg{
    width: 25px;
    margin-right: 10px;
    fill: #006837;
}

.item-ana{
    padding: 1rem;
    border-bottom: 1px dotted #ccc;
}

.link-ana{
    color: #333;
    text-decoration: none;
}

.link-ana span{
    display: block;
    font-size: 0.8rem;
    color: #999;
}

.fecha{
    width: 60px;
    height: 60px;
    bottom: 0;
    border-top: 1px solid #ccc;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

.anio .fecha{
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-black);
    width: auto;
}

.eventos{
    height: calc(100% - 60px);
    position: relative;
    z-index: 1;
}

.eventos::before{
    content: '';
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    border-left: 1px solid var(--color-gray);
}

.item-feat .eventos::before{
    display: none;
}

.item-feat .fecha::before{
    content: '';
    height: 60px;
    position: absolute;
    bottom: 0;
    left: 50%;
    border-left: 1px solid var(--color-gray);
}

.features{
    display: flex;
}

.evento{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-primary);
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.2s;
}

.evento:hover{
    transform: scale(1.2) translateX(-45%);
}

.evento.eln{
    background-color: #E54A35;
}

.evento.emc{
    background-color: #95D469;
}

.evento.sm{
    background-color: #EFE74D;
}

.evento.agc{
    background-color: #B051ED;
}

.evento.acsn{
    background-color: #71BCEA;
}

.evento.bvent{
    background-color: #F2B668;
}

.evento.mde{
    background-color: #7F92EF;
}

.evento.qui{
    background-color: #BAC2D3;
}

.evento.polley{
    background-color: #83EDBD;
}

.evento.disable{
    pointer-events: none;
    background-color: var(--color-li-grey);
}

.men-line-mb{
    display: none;
}

.evento.cita{
    bottom: 45%;
    width: 42px;
    height: 42px;
    filter: grayscale(1);
    background-color: transparent;
}

.evento.cita.disable{
    opacity: 0.5;
}

.evento.cita img{
    width: 100%;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.evento.cita svg{
    width: 24px;
    fill: #267c52;
}

.title-actor-line{
    margin-bottom: 0;
}

.title-actor-line i{
    text-transform: uppercase;
}

.subtitle-actor-line{
    margin-top: 5px;
}


.popup-wrap{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0000007d;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup-wrap.is-open{
    display: flex;
}

.popup-content{
    width: 100%;
    background-color: #fff;
    max-width: 500px;
    position: relative;
}

.featur .fecha-evento span {
    color: #5c5b5b;
}

.eln .popup-content {
    background-color: #daaea8;
}

.emc .popup-content {
    background-color: #b6d1a2;
}

.sm .popup-content {
    background-color: #ece9ab;
}

.agc .popup-content {
    background-color: #d4bbe5;
}

.acsn .popup-content {
    background-color: #a2cee9;
}

.bvent .popup-content {
    background-color: #e2c8a6;
}

.mde .popup-content {
    background-color: #afb7e5;
}

.qui .popup-content {
    background-color: #c5cad3;
}

.polley .popup-content {
    background-color: #bbe3d1;
}



.fecha-evento{
    font-size: 2rem;
    font-family: 'Work Sans';
    font-weight: 900;
}

.popup-text{
   padding: 2rem;
}

.popup-text p{
    font-weight: 400;
    font-size: 0.9rem;
}

.fecha-evento span{
    font-size: 1rem;
    color: #999;
}

.popup-text .fecha-evento .icon{
    width: 25px;
    height: 60px;
    background-image: url(../img/ficha.svg);
    background-repeat: no-repeat;
    margin-top: -57px;
}

.popup-text .fecha-evento .icon.icon-eln{
    background-image: url(../img/fr.svg);
}

.popup-text .fecha-evento .icon.icon-emc{
    background-image: url(../img/ficha.svg);
}

.popup-text .fecha-evento .icon.icon-sm{
    background-image: url(../img/fa.svg);
}

.popup-text .fecha-evento .icon.icon-agc{
    background-image: url(../img/fm.svg);
}

.popup-text .fecha-evento .icon.icon-acsn{
    background-image: url(../img/faf.svg);
}

.popup-text .fecha-evento .icon.icon-bvent{
    background-image: url(../img/fn.svg);
    width: 27px;
}

.popup-text .fecha-evento .icon.icon-mde{
    background-image: url(../img/fac.svg);
    width: 27px;
}

.popup-text .fecha-evento .icon.icon-qui{
    background-image: url(../img/fg.svg);
    width: 27px;
}

.popup-text .fecha-evento .icon.icon-polley{
    background-image: url(../img/fi-p.svg);
    width: 30px;
}

.popup-wrap .popup-close{
    position: absolute;
    top: -7px;
    right: -6px;
    width: 25px;
    height: 25px;
    background-color: #96d469;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 25px;
    font-weight: 300;
    cursor: pointer;
}



.flex{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.quote{
    display: flex;
}

.quote svg{
    width: 40px;
    margin-right: 1rem;
    fill: #999;
}

.popup-text img{
    width: 50px;
    border-radius: 50%;
    position: absolute;
    right: 2rem;
    top: 2rem;
    filter: grayscale(1);
}


/* animation */

.animation{
    width: 70%;
    margin: auto;
    position: relative;
}

.animation .tablero{
    width: 90%;
    display: block;
    margin: auto;
    margin-top: 100px;
    animation-name: tablero;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.mano2{
    position: absolute;
    right: 0;
    width: 539px;
    top: 143px;
    animation-name: mano2;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-delay: 2.3s;
    opacity: 0;
}

.mano1{
    position: absolute;
    left: -24px;
    width: 404px;
    top: 252px;
    animation-name: mano1, mano1hover;
    animation-duration: 1.5s, 1.5s;
    animation-fill-mode: forwards, forwards;
    animation-delay: 2s, 4s;
    animation-iteration-count: 1, infinite;
    animation-timing-function: ease-in;
    opacity: 0;
}

.mano1:hover{
    filter: drop-shadow(3px 3px 0 #fff);
    cursor: pointer;
}

.name{
    position: absolute;
    top: -20px;
    z-index: 10;
    width: 550px;
    left: 100px;
    animation-name: name;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-delay: 2.6s;
    
    opacity: 0;
}

.analisis-fip{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 490px;
    background: #fff;
    z-index: 100;
    transform: translateX(100%);
    transition: all 0.3s;
    padding: 2rem;
    overflow-y: scroll;
}

.analisis-fip.is-open{
    transform: translateX(0);
}

.indi{
    display: none;
}

@keyframes mano1 {
    from {
        left: -100px;
        opacity: 0;
    }
  
    to {
       left: -24px;
       opacity: 1;
    }
  }

  @keyframes mano1hover {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    25%{
        transform: translateY(30px);
        opacity: 1;
    }
  
    50%{
        transform: translateY(30px);
        opacity: 1;
    }

    75%{
        transform: translateY(30px);
        opacity: 1;
    }

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

  @keyframes mano2 {
    from {
        right: -80px;
        opacity: 0;
    }
  
    to {
       right: 0;
       opacity: 1;
    }
  }

  @keyframes name {
    from {
        left: 20px;
        opacity: 0;
    }
  
    to {
       left: 100px;
       opacity: 1;
    }
  }

  @keyframes tablero {
    from {
        opacity: 0;
    }
  
    to {
       opacity: 1;
    }
  }


  @media (max-width: 768px) {
    .animation{
        display: none;
    }

    header{
        flex-direction: column;
        align-items: center;
        height: 59vh;
    }

    .lead {
        font-size: 1rem;
        text-align: center;
        width: 85%;
        margin: 60px auto;
    }

    nav {
        display: flex;
        padding: 1rem 2rem;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0 0.5rem;
    }

    .mb-logo{
        display: block;
        width: 100%;
        margin-top: 67px;
    }

    .actores {
        width: 78%;
        overflow-x: scroll;
    }

    .actor-link{
        margin-right: 2.5rem;
    }

    .flex {
        flex-direction: column-reverse;
        width: 90%;
        margin: auto;
    }

    .popup-content {
        width: 90%;
    }

    .analisis-fip{
        width: 100%;
    }

    .nota-meto {
        align-items: flex-start;
        overflow-y: scroll;
        padding: 1rem;
    }

    .content-nota {
        width: 90%;
    }

    .indi{
        display: block;
        margin: auto;
        font-size: 0.8rem;
        text-align: center;
        width: 300px;
        background-color: #96d469;
    }

    .men-line-mb{
        position: relative;
        font-size: 14px;
        background-color: #96d469;
        width: 100%;
        display: block;
        margin-bottom: 10px;
        margin-left: 20px;
        padding-left: 5px;
    }

    .men-line-mb::before {
        content: '';
        position: absolute;
        top: 0;
        left: -17px;
        display: block;
        width: 0;
        height: 0;
        border-top: 9px solid transparent;
        border-right: 17px solid #96d469;
        border-bottom: 10px solid transparent;
        }
  }