
/*========== Globales =========*/
body{
    font-family: Tahoma;
    font-size: 18px;
    margin: 0px;
    padding: 0px;
}

header{
    position: relative;
}
header button{
    width: 80px;
    position: absolute;
    left: calc(100% - 90px);
    top: 0px;
    font-size: 12px;
    padding: 5px;
}

button{
    background: rgb(70, 130, 180);
    border: none;
    color: #f2f2f2;
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 14px;
    border-radius: 5px;
    box-sizing: border-box;
    transition: background 500ms ease;
}
button:hover{
    background: rgb(95, 153, 201);
    box-shadow: 0px 0px 50px white;
}
@keyframes brillo{
    from { background: rgb(255, 69, 0); }
    to   { background: rgb(250, 128, 114); }
}
button:focus{
    /*background: rgb(255, 69, 0);*/
    animation-name: brillo;
    animation-duration: 0.6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
}

h1{
    font-size: 20px;
    margin: 0px;
    padding: 0px;
}

/*========== Formulario estandar =========*/
.cForm{
    max-width: 450px;
    background: rgb(255, 255, 255);
    width: 95%;
    border-radius: 7px;
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex; flex-direction: column; align-items: center;
}
.cForm h1{
    background: rgb(0, 191, 255);
    color: white;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    text-align: center;
}
.cForm .cContForm{
    width: calc(100% - 30px);
    display: flex; flex-direction: column; align-items: center;
    padding: 15px;
}
.cForm label{
    font-size: 15px;
    color: rgb(50, 50, 50);
    padding: 3px;
    text-shadow: 0px 0px 1px white; 
}
.cForm input, .cForm select{
    background: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 3px;
    border: 1px solid rgb(133, 225, 241);
}
.cForm .cCampoForm{
    width: 100%;
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    margin-bottom: 5px;
}
.cForm .cCampoForm label{
    text-align: right;
    min-width: 100px;
    max-width: 100px;
    margin-right: 5px;
}
.cForm .cCampoForm input, .cForm .cCampoForm select{
    width: 100%;
}
.cForm .cCampoForm .cLabelCheckbox{
    display: flex; flex-direction: row; align-items: center;
    max-width: 70px;
    min-width: 70px;
}
.cForm .cCampoForm input[type="checkbox"]{
    max-width: 20px;
    color: red;
}
.cForm .cContBotones{
    width: 100%;
    background: rgba(173, 216, 230, 0.6);
    padding-top: 15px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}
.cForm button{
    min-width: 100px;
}
.cForm .cBotonDesp{
    width: 30px;
    height: 30px;
    min-width: 0px;
    margin: 0px;
}


/*================= Clase fondo de estructuras ====================*/
.cFondo{
    background: rgb(240, 240, 240);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*================= Tablas ====================*/
table{
    background: white;
    border-spacing: 0px;
}
table th{
    background: rgb(255, 100, 0);
    color: rgb(255,255,255);
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 6px;
    padding-bottom: 6px;
}
table tr:nth-child(even){
    background: rgb(255, 255, 255);
}
table tr:nth-child(odd){
    background: rgb(230, 230, 230);
}
table td{
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
}
table .cCeldaNum{
    text-align: right;
}
table .cCeldaFec{
    text-align: center;
}


/*================= Estructura de la ventana ====================*/
header{
    min-height: 50px;
    width: 100%;
    display: flex; flex-direction: row; align-items: center; justify-content: center;
}
header h1{
    width: 100%;
    text-align: center;
    font-size: 20px;
}

.cCuerpo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
@media only screen and (max-width: 800px) {
    .cCuerpo{
        flex-direction: column;
        justify-content: center;
    }
}

nav{
    width: 200px;
}
@media only screen and (max-width: 800px) {
    nav{
        width: 100%;
    }
}

main{
    width: 100%;
    min-height: 200px;
}

aside{
    width: 200px;
}
@media only screen and (max-width: 800px) {
    aside{
        width: 100%;
    }
}




footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}