.to_top {
    position: fixed;
    display: block;
    bottom: -50;
    right: 20;
    width: 45px;
    height: 45px;
    background-color: var(--morado);
    border-radius: 50%;
    opacity: 0;
    transition: all 300ms ease-in-out;
    border: solid 3px grey;
    padding: 5px;
}

.lado {
    bottom: 20;
    opacity: 0.4;
}

.to_top:hover {
    opacity: 0.71;
}

.to_top:hover img {
    transform: translateY(-2px);
}

.to_top img {
    width: 80%;
    transition: all 0.2s ease-in-out;
}

ul {
    list-style: none;
}

header {
    width: 100vw;
    height: auto;
    background: var(--fondo);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: auto;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.25);
    transition: all 300ms ease-in-out;
}

.div__header {
    width: 80%;
    height: 100%;
    text-align: center;
    margin: auto;
}

.activo {
    height: 80px;
    transition: all 300ms ease-in-out;
    opacity: 1;
}

.logo {
    grid-column: 1/2;
    grid-row: 1/2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 300ms ease-in-out;
    transition-delay: 250ms;
    padding: 20px 0 15px 0;
}

.logo img {
    width: 150px;
    margin: auto;
    transition: all 300ms ease-in-out;
    transition-delay: 80ms;
}

.logo__small img {
    width: 180px !important;
}

nav {
    grid-row: 2/3;
    grid-column: 1/3;
    height: 0;
    overflow: hidden;
    width: 100%;
    margin: 0;
    transition: all 300ms ease-in-out;
    transition-delay: 250ms;
    display: flex;
    justify-content: center;
}

nav ul {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    font-family: avenir;
    display: flex;
    color: var(--oscuro);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: initial;
    transition: all 200ms ease-in-out;
    transform: scale(1);
    transform-origin: 50%;
    padding: 10px 0 10px 0;
    justify-content: center;
}

nav a:hover {
    transform: scale(1);
    color: var(--purpura);
}

.muestra {
    opacity: 0 !important;
    transition: all 300ms ease-in-out;
    transform: scale(1, 0);
    height: 5px;
}

.lenguaje {
    grid-column: 2/3;
    grid-row: 1/2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lenguaje ul {
    display: flex;
    flex-direction: row;
    padding: 10px 0;
    margin: 0;
}

.lenguaje li {
    padding: 0 5px 0 5px;
}

.lenguaje a {
    display: block;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 200ms ease-in-out;
    transform-origin: 50%;
    font-family: avenir_b;
    color: var(--morado);
}

.lenguaje a:hover {
    color: var(--azulclaro);
}

.menu__act {
    grid-column: 1/3;
    grid-row: 3/4;
    display: block;
    cursor: pointer;
    margin-top: 10px;
    width: 40px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.open .menu {
    transform: rotate(45deg);
}

.open .menu::before {
    opacity: 0;
}

.open .menu::after {
    transform: translateY(-3px) rotate(-90deg);
}

.menu {
    display: block;
}

.menu,
.menu::after,
.menu::before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--purpura);
    border-radius: 10%;
    border: none;
    transition: all 500ms ease-in-out;
}

.menu::after {
    transform: translateY(-9px);
}

.menu::before {
    transform: translateY(6px);
}

/* tarjeta */
.caja {
    display: block;
    position: fixed;
    z-index: 998;
    left: 75px;
    top: -90;
    transition: all 300ms ease-in-out;
    transition-delay: 60ms;
}

.caja_up {
    top: -120;
}

.tarjeta {
    position: absolute;
    top: 0;
    padding-top: 10px;
    background-color: #00456f;
    border-radius: 0 0 15px 15px;
    transition: all 300ms ease-in-out;
    cursor: pointer;
    box-shadow: 0px 2px 2px 2px rgba(0, 0, 0, 0.2);
}

/* /tarjeta */

.contenido {
    width: 170px;
    height: 200px;
    justify-content: flex-start;
}

.contenido img {
    width: 150px;
}

.pad {
    width: 170px;
    height: 30px;
    color: var(--claro);
    font-weight: 900;
    font-size: 20px;
    margin: 0;
    padding-bottom: 10px;
    letter-spacing: 2px;
}

.tarjeta:hover {
    top: 200;
}

.cambiar {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 25px;
    border: solid 2px grey;
    border-radius: 25px;
    padding: 1px;
    background-color: #d0d0d0;
}

.cambiar_act {
    background-color: #6b6b6b;
    border-color: #4e4e4e;
}

.circle {
    position: absolute;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: gray;
    margin: 0;
    left: 1;
    transition: all 300ms ease-in-out;
}

.circle_act {
    background-color: rgb(77, 208, 77);
    transform: translateX(14px);

}

@media screen and (max-width: 900px) {
    .caja {
        display: none;
    }
}