:root {
    --colorprimary: #a6b8fa;
    --colorsecundary: #000;
    --fondo: #f5f5f5;
    --guardar: #3c8504;
    --editar: #e0c200;
    --eliminar: #f90000;
}

* {
    margin: 0;
    padding: 0;
    font-family: Arial;
    font-size: 16px;
    outline: none;
}

body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100vh;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    background-color: var(--fondo);
}

main {
    width: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
select:-webkit-autofill,
select:-webkit-autofill:hover {
    color: #000;
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    -webkit-transition: background-color 5000s ease-in-out 0s;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
    color: #000;
    -webkit-box-shadow: 0 1px #000;
    box-shadow: 0 1px #000;
    border-bottom: 1px solid #000;
}


/*Scroll Bar*/

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    background-clip: padding-box;
    border: solid transparent;
    border-radius: 50px;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--colorprimary);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: #000;
    background-clip: padding-box;
}

::-webkit-scrollbar-track {
    background-clip: padding-box;
    border: solid transparent;
    border-width: 1px;
    background-color: transparent;
    border-radius: 50px;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
    border-radius: 50px;
}


/* Buttons */

::-webkit-scrollbar-button:single-button {
    background-color: #fff;
    display: block;
    border-style: solid;
    height: 0.7em;
    width: 1em;
}


/* Up */

::-webkit-scrollbar-button:single-button:vertical:decrement {
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #000 transparent;
}

::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
    border-color: transparent transparent #777777 transparent;
}


/* Down */

::-webkit-scrollbar-button:single-button:vertical:increment {
    border-width: 8px 8px 0 8px;
    border-color: #000 transparent transparent transparent;
}

::-webkit-scrollbar-button:single-button:vertical:increment:hover {
    border-color: #777 transparent transparent transparent;
}


/* Left */

::-webkit-scrollbar-button:single-button:horizontal:decrement {
    border-width: 8px 8px 8px 0;
    border-color: transparent #000 transparent transparent;
}

::-webkit-scrollbar-button:single-button:horizontal:decrement:hover {
    border-color: transparent #777777 transparent transparent;
}


/* Right */

::-webkit-scrollbar-button:single-button:horizontal:increment {
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #000;
}

::-webkit-scrollbar-button:single-button:horizontal:increment:hover {
    border-color: transparent transparent transparent #777;
}


/*-----------------*/

header {
    position: relative;
    background-color: var(--colorprimary);
    width: 100%;
    height: 100%;
    border-bottom: 5px solid #fff;
    -webkit-box-shadow: 0 -4px 0 var(--colorsecundary) inset;
    box-shadow: 0 -4px 0 var(--colorsecundary) inset;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

header h1 {
    position: absolute;
    text-align: center;
    width: 100%;
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    line-height: 1em;
}

header h1 span:nth-child(1) {
    font-size: 3em;
}

header h1 span:nth-child(3) {
    font-size: 1em;
}

header h1 span:nth-child(5) {
    font-size: 0.8em;
}

header .logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

header img {
    height: 80px;
    margin: 10px;
}

header .inicio {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
}

header .botonesheader {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-bottom: 5px;
}

header .fotousuario {
    border-radius: 50%;
    background-color: var(--colorsecundary);
    height: 54px;
    width: 54px;
    cursor: pointer;
    border: 4px solid #fff;
    overflow: hidden;
}

header .fotousuario img {
    height: 100%;
    width: auto;
    display: block;
    margin: auto;
    -webkit-transition: .5s;
    transition: .5s;
}

header .fotousuario img:hover {
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
}

header .botoncerrarsesion {
    border-radius: 50%;
    background-color: var(--colorsecundary);
    height: 54px;
    width: 54px;
    border: 4px solid #fff;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
}

header .botoncerrarsesion .iconosalir {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    font-size: 2em;
    font-weight: bolder;
}


/* Contenedor del Tooltip */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 20px;
    padding: 6px 0;
    position: absolute;
    z-index: 1;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.tooltip .tiptext p {
    margin: 5px;
    font-size: 1.2em;
}

.tooltip .tiptext::after {
    content: "";
    position: absolute;
    border-width: 5px;
    border-style: solid;
}

.tooltip:hover .tiptext {
    visibility: visible;
}

.tooltip.bottom .tiptext {
    margin: 0;
    top: 150%;
    left: 50%;
}

.tooltip.bottom .tiptext::after {
    margin-left: 0;
    bottom: 100%;
    left: 50%;
    border-color: transparent transparent #2E2E2E transparent;
}

.tooltip.bottom.grupos {
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8em;
}

header .inicio .saludousuario {
    color: #000;
    font-size: 1em;
    text-align: right;
    padding: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    margin-top: -5px;
    border-radius: 20px 20px 0 0;
}

.headerinicio .botoncerrarsesion {
    position: absolute;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    background-color: var(--colorsecundary);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 55px;
    width: 55px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-left: 80%;
    cursor: pointer;
}

.headerinicio .botoncerrarsesion .iconosalir {
    color: #fff;
    text-shadow: 2px 2px 2px #000;
    font-size: 2em;
}

.headerinicio .inicio .saludousuario {
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-size: 0.8em;
    text-align: right;
    margin-right: 20px;
    margin-top: -20px;
    padding-bottom: 5px;
    padding-top: 5px;
}

footer {
    -ms-flex-item-align: end;
    align-self: flex-end;
    background-color: var(--colorprimary);
    text-align: center;
    bottom: 0;
    width: 100%;
    position: relative;
    /*Arriba, Derecha, Abajo, Izquierda*/
    padding: 10px 0 20px 0;
    border-top: 4px solid #fff;
    -webkit-box-shadow: 0 4px 0 var(--colorsecundary) inset;
    box-shadow: 0 4px 0 var(--colorsecundary) inset;
}

footer h1 {
    color: #000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px;
    font-size: 1.3em;
    margin: auto;
}

footer img {
    height: 70px;
}

footer .footerlogo {
    position: absolute;
    right: 20px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}


/*Botón WhatsApp*/

.redessociales {
    position: fixed;
    bottom: 70px;
    left: 20px;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
    -webkit-transition: all 0.8s ease;
    transition: all 0.8s ease;
}

.redessociales.activo {
    visibility: visible;
    bottom: 80px;
    opacity: 1;
}

.botonredessociales {
    position: fixed;
    width: 120px;
    height: 40px;
    padding: 5px;
    background-color: #00bb2d;
    border-radius: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-shadow: 0 2px 10px #000;
    box-shadow: 0 2px 10px #000;
    cursor: pointer;
}

.botonredessociales span {
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    text-decoration: underline;
}


/* .botonredessociales::before {
    content: "\f232";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    color: #fff;
    font-size: 30px;
    padding: 10px;
    text-shadow: 1px 1px 1px #000;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
} */

.botonredessociales i {
    font-weight: 900;
    color: #fff;
    font-size: 30px;
    padding: 10px;
    text-shadow: 1px 1px 1px #000;
}

.botonredessociales.activo i {
    display: none;
}

.botonredessociales.activo::before {
    content: "\f00d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
    font-size: 30px;
    padding: 10px;
    text-shadow: 1px 1px 1px #000;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.redessociales .listaredes {
    background-color: rgba(0, 187, 45, 0.96);
    font-weight: bold;
    width: 100%;
    border: 4px solid #fff;
    border-radius: 20px;
    -webkit-box-shadow: 0 2px 10px var(--colorprimary);
    box-shadow: 0 2px 10px var(--colorprimary);
}

.redessociales .listaredes p {
    display: inline-block;
    margin-left: 10px;
}

.redessociales .listaredes ul li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    padding: 10px;
    text-shadow: 1px 1px 1px #000;
}

.redessociales .listaredes ul li:not(:last-child) {
    border-bottom: 3px solid #fff;
}

.redessociales .listaredes ul li .tipousuario {
    color: #ffff00;
}

.redessociales .listaredes ul li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    color: #fff;
    text-decoration: underline;
}

.redessociales .listaredes ul li i {
    font-size: 2em;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

@media screen and (max-width:768px) {
    .headerinicio h1 {
        display: none;
    }
    header .inicio .saludousuario {
        font-size: 0.8em;
    }
    .tooltip.bottom .tiptext {
        margin-left: -40px;
    }
    footer img {
        height: 50px;
    }
    footer .footerlogo {
        position: relative;
        margin-left: 40px;
    }
}