:root {
    --polymaths-white: #FFFEFF;
    --polymaths-green: #00A443;
    --polymaths-dark: #00402A;
    --polymaths-black: #3A3735;
    --polymaths-brown: #615D5A;
    --polymaths-brown-alt: #3A3735;
    --polymaths-border: #D8CFC7;
    --polymaths-orange: #FF9C1A;
    --polymaths-sand: #FFF5EC;
    --polymaths-sky: #0DA9FF;
}

#polymaths {
    width: 100%;
    max-width: 980px;
    padding: 24px 16px;
    margin: 20px auto;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    background-color: var(--polymaths-white);
    border: 1px solid var(--polymaths-border);
}

#polymaths * {
    font-family: 'IberPangea' !important;
    font-style: normal;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#polymaths h2,
#polymaths h3,
#polymaths h4 {
    margin-top: 0 !important;
}

#polymaths ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#polymaths ul li:before {
    content: none !important;
    display: none !important;
}

#polymaths img {
    display: block;
    width: 100%;
}

#polymaths .polymaths_title {
    color: var(--polymaths-green) !important;
    font-size: 32px;
    line-height: 1.125;
    font-style: normal;
    font-weight: 600;
    text-align: left;
    margin-right: auto;
    margin-bottom: 16px;
}

#polymaths .polymaths_content {
    position: relative;
    padding-left: 64px;
    margin-bottom: 16px;
}

#polymaths .polymaths_content:before {
    content: '';
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 3px;
    background-color: var(--polymaths-dark);
    position: absolute;
    top: 0;
    left: 28px;
}

#polymaths .polymaths_item {
    position: relative;
    margin-bottom: 12px;
}

#polymaths .polymaths_item:last-child {
    margin-bottom: 0;
}

#polymaths .polymaths_item_year {
    border-radius: 30px;
    background: var(--polymaths-green);
    padding: 4px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--polymaths-white);
    font-size: 16px;
    line-height: 1;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    position: absolute;
    left: -64px;
    top: 50px;
}

#polymaths .polymaths_item_header {
    border-radius: 15px;
    background: var(--polymaths-sand);
    padding: 16px;
    width: 100%;
    position: relative;
}

#polymaths .polymaths_item_name {
    color: var(--polymaths-dark) !important;
    font-size: 24px;
    line-height: 1.16;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    padding-right: 40px;
}

#polymaths .polymaths_item_header img {
    max-width: 90px;
    margin-bottom: 10px;
}

#polymaths .polymaths_item .polymaths_item_header:after {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    background-image: url('/wcorp/gc/prod/es_ES/estaticos/polimatas-famosos/images/ico-mas.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    top: 16px;
    right: 16px;
    transform: rotate3d(0deg);
    transition: all 0.5s;
}

#polymaths .polymaths_item.active .polymaths_item_header {
    border-radius: 12px 12px 0 0;
}

#polymaths .polymaths_item.active .polymaths_item_header:after {
    background-image: url('/wcorp/gc/prod/es_ES/estaticos/polimatas-famosos/images/ico-mas-hover.svg');
    transform: rotate(45deg);
}

#polymaths .polymaths_item_content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    border-radius: 0 0 15px;
    background: var(--polymaths-sand);
    padding-left: 16px;
    padding-right: 16px;
}

#polymaths .polymaths_item.active .polymaths_item_content {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

#polymaths .polymaths_item_content .polymaths_item_data {
    color: var(--polymaths-brown) !important;
    font-size: 12px;
    line-height: 1.28;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin-bottom: 12px;
}

#polymaths .polymaths_item_content .polymaths_item_data strong {
    border-right: 1px solid var(--polymaths-green);
    padding-right: 6px;
    margin-right: 2px;
}

#polymaths .polymaths_item_content .polymaths_item_text {
    color: var(--polymaths-brown) !important;
    font-size: 14px;
    line-height: 1.28;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin-bottom: 16px;
}

#polymaths .polymaths_note {
    color: var(--polymaths-brown) !important;
    font-size: 14px;
    line-height: 1.28;
    font-style: italic;
    font-weight: 400;
    text-align: left;
}

@media (min-width: 700px) {

    #polymaths {
        padding: 24px 29px;
    }

    #polymaths .polymaths_title {
        margin-bottom: 24px;
    }

    #polymaths .polymaths_content {
        padding-left: 78px;
    }

    #polymaths .polymaths_item_year {
        left: -78px;
    }

    #polymaths .polymaths_item_year:after {
        content: '';
        display: block;
        width: 15px;
        height: 1px;
        background-color: var(--polymaths-green);
        position: absolute;
        top: 50%;
        left: 100%;
    }

    #polymaths .polymaths_item .polymaths_item_header {
        border-radius: 12px 12px 0 0;
    }

    #polymaths .polymaths_item .polymaths_item_header:after {
        content: none;
        display: none;
    }

    #polymaths .polymaths_item .polymaths_item_header {
        display: flex;
        padding-left: 130px;
        padding-bottom: 4px;
    }

    #polymaths .polymaths_item .polymaths_item_header img {
        position: absolute;
        left: 16px;
    }

    #polymaths .polymaths_item .polymaths_item_content {
        max-height: 500px;
        padding-left: 130px;
        border-radius: 0 0 12px 12px;
        display: flex;
        flex-direction: column;
        min-height: 79px;
    }

    #polymaths .polymaths_item_content .polymaths_item_text {
        order: -1;
        margin-bottom: 12px;
    }

    #polymaths .polymaths_item_content .polymaths_item_data {
        margin-top: auto;
    }

}

