﻿/************ INICIA ENCABEZADO *********/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0c66a1;
    z-index: 2;
    height: 80px;
    overflow: hidden;
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    transition: height 0.3s;
    line-height: 100px;
}

    .header.shrink {
        height: 100px;
        line-height: 80px;
    }

    .header h1 {
        font-size: 30px;
        font-weight: normal;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        transition: all 0.3s;
    }

    .header.shrink h1 {
        font-size: 24px;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        transition: all 0.3s;
    }

#cstitulo {
    color: white;
    text-shadow: 2px 2px 2px #2E2D2D;
    font-size: 30px;
    font-family: Helvetica;
    font-weight: bold;
    top: -12px;
}

.item1 {
    grid-area: linea1;
    height: 18px;
    color: white;
    font-size: calc(0.5em + 0.5vw);
    font-weight: bold;
    font-family: Helvetica;
    text-shadow: 1px 1px 1px #2E2D2D;
}

.item2 {
    grid-area: linea2;
    height: 5px;
    color: white;
    font-size: calc(1em + 1vw);
    font-weight: bold;
    font-family: Helvetica;
    text-shadow: 1px 1px 1px #2E2D2D;
}

.grid-container {
    display: grid;
    grid-template-areas: 'linea1' 'linea2';
    grid-gap: 10px;
    width: 250px;
    position: relative;
    top: -25px;
}

    .grid-container > div {
        text-align: center;
    }

.grid-titulo {
    display: grid;
    grid-template-areas: 'titulo1 titulo3' 'titulo2 titulo3';
    grid-gap: 10px;
    position: relative;
    top: -10px;
    left: 0px;
}

.itemtit1 {
    grid-area: titulo1;
    height: 10px;
    font-size: calc(0.688em + 0.5vw);
}

.itemtit2 {
    grid-area: titulo2;
    height: 10px;
    font-size: calc(0.688em + 0.5vw);
}

.itemtit3 {
    grid-area: titulo3;
    height: 5px;
    font-size: calc(1.375em + 1.375vw);
    position: relative;
    top: 10px;
    left: -8px;
}

/************  TERMINA ENCABEZADO ************/
.content-listado {
    position: relative;
    top: 80px;
}

/* RESET STYLES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
    --level-1: #8dccad;
    --level-2: #f5cc7f;
    --level-3: #7b9fe0;
    --level-4: #f27c8d;
    --black: black;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ol {
    list-style: none;
}

body {
    margin: 50px 0 100px;
    text-align: center;
    font-family: "Inter", sans-serif;
}

.container {
    max-width: 1000px;
    padding: 0 10px;
    margin: 0 auto;
}

.rectangle {
    position: relative;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.container a:hover {
    color: #FFF;
    text-decoration: none;
    font-weight: normal;
}

.container a {
    color: #333333;
}

/* LEVEL-1 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-1 {
    width: 50%;
    margin: 0 auto 40px;
    background: var(--level-1);
    text-align: center;
}

    .level-1::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
        background: var(--black);
    }

    .level-1:hover{
        cursor:pointer;
        top:-2px;
    }

.level-1A {
    width: 50%;
    margin: 0 auto 40px;
    background: var(--level-1);
    text-align: center;
}

    .level-1A::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 40px;
        background: var(--black);
    }

    .level-1A:hover {
        cursor: pointer;
        top: -2px;
    }

.level-1B {
    width: 50%;
    margin: 0 auto 40px;
    background: var(--level-1);
    text-align: center;
}

    .level-1B::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 0px;
        background: var(--black);
    }

    .level-1B:hover {
        cursor: pointer;
        top: -2px;
    }

/* LEVEL-2 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-2-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

    .level-2-wrapper::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 25%;
        width: 50%;
        height: 2px;
        background: var(--black);
    }

    .level-2-wrapper::after {
        display: none;
        content: "";
        position: absolute;
        left: -20px;
        bottom: -20px;
        width: calc(100% + 20px);
        height: 2px;
        background: var(--black);
    }

    .level-2-wrapper li {
        position: relative;
    }

    .level-2-wrapper > li::before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
        background: var(--black);
    }

.level-2 {
    width: 70%;
    margin: 0 auto 40px;
    background: var(--level-2);
    text-align: center;
}

    .level-2::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 20px;
        background: var(--black);
    }

    .level-2::after {
        display: none;
        content: "";
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-100%, -50%);
        width: 20px;
        height: 2px;
        background: var(--black);
    }

    .level-2:hover {
        cursor: pointer;
        top: -2px;
    }


/* LEVEL-3 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-3-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    width: 90%;
    margin: 0 auto;
}

    .level-3-wrapper::before {
        content: "";
        position: absolute;
        top: -20px;
        left: calc(25% - 5px);
        width: calc(50% + 10px);
        height: 2px;
        background: var(--black);
    }

    .level-3-wrapper > li::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, -100%);
        width: 2px;
        height: 20px;
        background: var(--black);
    }

.level-3 {
    margin-bottom: 20px;
    background: var(--level-3);
    text-align: center;
}

.level-3:hover {
    cursor: pointer;
    top: -2px;
}


/* LEVEL-4 STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.level-4-wrapper {
    position: relative;
    width: 80%;
    margin-left: auto;
}

    .level-4-wrapper::before {
        content: "";
        position: absolute;
        top: -20px;
        left: -20px;
        width: 2px;
        height: calc(100% + 20px);
        background: var(--black);
    }

    .level-4-wrapper li + li {
        margin-top: 20px;
    }

.level-4 {
    font-weight: normal;
    background: var(--level-4);
    text-align: center;
}

    .level-4::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-100%, -50%);
        width: 20px;
        height: 2px;
        background: var(--black);
    }

    .level-4:hover {
        cursor: pointer;
        top: -2px;
    }


/* MQ STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media screen and (max-width: 700px) {
    .rectangle {
        padding: 20px 10px;
    }

    .level-1,
    .level-2 {
        width: 100%;
    }

    .level-1 {
        margin-bottom: 20px;
    }

        .level-1::before,
        .level-2-wrapper > li::before {
            display: none;
        }

    .level-2-wrapper,
    .level-2-wrapper::after,
    .level-2::after {
        display: block;
    }

    .level-2-wrapper {
        width: 90%;
        margin-left: 10%;
    }

        .level-2-wrapper::before {
            left: -20px;
            width: 2px;
            height: calc(100% + 40px);
        }

        .level-2-wrapper > li:not(:first-child) {
            margin-top: 50px;
        }
}


/* FOOTER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
    position: fixed;
    right: 0;
    bottom: 20px;
    display: flex;
    align-items: center;
    padding: 5px;
}

    .page-footer a {
        margin-left: 4px;
    }
