body {
    background-size: 16px 16px;
    margin: 0.5%;
}

header {
    background-color: rgb(0,0,139);
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

header div:nth-child(3) {
    width: 92.5%;
    margin-left: 4%;
}

header div:nth-child(3) ul li label {
    width: 99.5%;
    height: 250px;
    margin-left: 0.2%;
    font-family: "Arial", sans-serif;
}

header div:nth-child(3) ul li img {
    width: 100%;
    height: 250px;
    border-top-left-radius:16px;
    border-top-right-radius:4px;
    border-bottom-left-radius:4px;
    border-bottom-right-radius:16px;
}

header div {
    width: 100%;
    padding-top: 2.2%;
    border-radius: 3px;
}

header div table {
    width: 100%;
}

header div table tr td:nth-child(1) {
    width: 50%;
    padding-left: 3.5%;
}

header div table tr td:nth-child(2),
header div table tr td:nth-child(3),
header div table tr td:nth-child(4) {
    width: 6%;
    text-align: center;
}

header div table tr td:nth-child(5) {
    width: 44%;
}

header div table tr td em {
    font-size: 0.9em;
    font-family: "Arial", sans-serif;
    font-weight: normal;
    color: white;
    display: block;
    text-align: right;
    margin-bottom: 1.4%;
    margin-right: 10%;
}

header div table tr td label {
    font-size: 0.8em;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    color: white;
}

header div table tr td:nth-child(1) img {
    width: 60%;
    background-color: white;
    border: 4px solid transparent;
    border-top-left-radius:16px;
    border-top-right-radius:4px;
    border-bottom-left-radius:4px;
    border-bottom-right-radius:16px;
}

header div table tr td:nth-child(2) img,
header div table tr td:nth-child(3) img,
header div table tr td:nth-child(4) img {
    margin-top: 1%;
    margin-bottom: 1%;
    border: 1px solid transparent;
    border-radius: 0.5em;
    width: 55%;
}

header div table tr td:nth-child(2) img:hover, 
header div table tr td:nth-child(3) img:hover, 
header div table tr td:nth-child(4) img:hover {
    border: 1px solid transparent;
    border-radius: 0.5em;
    transition: border 0.2s;
    background-color: white;
    cursor: pointer;
}

header div table tr td nav ul {
    list-style-type: none;
    margin: 0%;
    padding: 0%;
}

header div table tr td nav ul li {
    padding: 2%;
    display: inline;
    font-family: "Arial", sans-serif;
}

header div table tr td nav ul li a {
    font-size: 0.9em;
    font-family: "Arial", sans-serif;
    text-decoration: none;
    color: white;
}

header div table tr td nav ul li:hover {
    cursor: pointer;
    border-radius: 0.5em;
    border: 1.0px solid white;
    font-size: 1.0em;
    color: white;
    background: rgba(0, 174, 226, 1);
    transition-duration: 100ms;
}

header div table tr td div {
    width: 100%;
    padding-left: 1%;
    padding-bottom: 1%;
}

header div table tr td div label {
    font-size: 0.8em;
    margin-left: 35%;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    color: white;
}

header div table tr td div input {
    width: 40%;
    margin-left: 2%;
    border-radius: 1.2em;
    text-transform: uppercase;
    margin-top: 1%;
    margin-bottom: 5%;
    text-align: center;
    font-weight: bold;
    outline: 0px;
    font-family: "Arial", sans-serif;
}

header div table tr td div input:focus {
    border: 1px solid gold;
}

.maincontent section div {
    width: 64%;
    padding-left: 18%;
    padding-right: 18%;
}

.maincontent section div table {
    width: 100%;
    margin-top: 4%;
    border: 0.1px solid rgba(10, 174, 226, 1);
}

.maincontent section div table tr:nth-child(1) {
    background-color: rgba(0, 174, 226, 1);
}

.maincontent section div table tr:nth-child(1) td{
    color: navy;
    display: block;
    font-size: 0.9em;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    text-align: center;
}

.maincontent section div table tr:nth-child(6) td:nth-child(1) button {
    height: 40px;
    width: 50%;
    border-radius: 3px;
    border: 0px solid rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 1%;
    background: rgba(0, 174, 226, 0.8);
    color: white;
    font-weight: normal;
    font-size: 1.2em;
    transition: background 0.4s;
    cursor: pointer;
    font-family: "Arial", sans-serif;
}

.maincontent section div table tr:nth-child(6) td:nth-child(1) button:hover {
    background: rgba(0, 174, 226, 1);
}

.maincontent section div table tr:nth-child(7) td:nth-child(1) label {
    font-size: 0.8em;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    visibility: hidden;
}

.maincontent section div table tr:nth-child(6) td:nth-child(1) {
    text-align: center;
}

.maincontent section div table tr:nth-child(7) td:nth-child(1) {
    text-align: center;
}

.maincontent section div table tr:nth-child(2) td:nth-child(1) div select,
.maincontent section div table tr:nth-child(3) td:nth-child(1) div select,
.maincontent section div table tr:nth-child(4) td:nth-child(1) div input,
.maincontent section div table tr:nth-child(5) td:nth-child(1) div input{
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    box-sizing: border-box;
    padding: 10px;
    text-transform: uppercase;
    font-family: "Arial", sans-serif;
    height: 40px;
    
    margin-bottom: 2%;
    margin-top: 2%;
	width:100%;
}

.maincontent section div table tr:nth-child(4) td:nth-child(1) div input:focus,
.maincontent section div table tr:nth-child(5) td:nth-child(1) div input:focus{
    outline: none;
    border: 2px solid rgba(0, 174, 226, 1);
    color: rgba(0, 174, 226, 1);
}

footer {
    clear: both;
}

footer div ul {
    list-style: none;
}

footer div ul li div table tr td img {
    margin-top: 27%;
    margin-bottom: 8%;
    border: 1px solid transparent;
    border-radius: 0.5em;
    transform: scale(1);
    width: 90%;
}

footer div:nth-child(2) {
    
    background-color: rgb(0,0,139);
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

footer div:nth-child(2) table {
    width: 97.4%;
    margin-left: 1.3%;
    margin-right: 1.3%;
    padding-top: 2.8%;
    padding-bottom: 2%;
}

footer div:nth-child(2) table tr td {
    width: 25%;
}

footer div:nth-child(2) table tr td label {
    color: white;
    margin-left: 5%;
    font-family: "Arial", sans-serif;
}

footer div:nth-child(2) table tr td em {
    font-weight: bold;
    font-size: 0.7em;
    color: white;
    margin-left: 5%;
    font-family: "Arial", sans-serif;
}

footer div:nth-child(2) table tr td hr {
    width: 90%;
}

footer div:nth-child(2) table tr td p {
    font-weight: bold;
    font-size: 0.9em;
    color: white;
    margin-left: 5%;
    font-family: "Arial", sans-serif;
}

footer div:nth-child(2) table tr td ul {
    list-style-type: none;
    margin: 2%;
    padding: 2%;
}

footer div:nth-child(2) table tr td ul li a {
    padding: 1.8%;
    font-size: 0.8em;
    font-weight: bold;
    font-family: "Arial", sans-serif;
    color: white;
    text-decoration: none;
}

footer div:nth-child(2) table tr td ul li a:hover {
    color: #99fdf3;
    text-decoration: underline;
    font-size: 1.0em;
}

footer div:nth-child(2) table tr:nth-child(2) td{
    text-align: center; 
    width: 5%;
}

footer div:nth-child(2) table tr:nth-child(2) td label{
    margin-left: 0.1%;
    font-family: "Arial", sans-serif;
}

/* Media query based on width devices */
@media only screen and (max-width: 1024px){
    #headerdesktop, #enlacedesktop, #progresodesktop, #footerdesktop {
        display: none
    }

    #headermobile > table tr:nth-child(1) > td {
        padding-top: 7%;
        padding-bottom: 3%;
        padding-right: 5.5%;
    }

    #headermobile > table tr:nth-child(1) td img {
        width: 98%;
        background-color: white;
        border: 4px solid transparent;
        border-top-left-radius:9px;
        border-top-right-radius:4px;
        border-bottom-left-radius:4px;
        border-bottom-right-radius:9px;
    }

    #headermobile > table tr:nth-child(2) td:nth-child(1){
        width: 33.33%;
        text-align: center;
        padding-top: 1%;
        padding-bottom: 1%;
    }

    #headermobile > table tr:nth-child(2) td:nth-child(2){
        width: 33.33%;
        text-align: center;
    }

    #headermobile > table tr:nth-child(2) td:nth-child(3){
        width: 33.33%;
        text-align: center;
    }

    #headermobile > table tr:nth-child(2) td img {
        width: 32%;
        background-color: white;
        border-top-left-radius:6px;
        border-top-right-radius:4px;
        border-bottom-left-radius:4px;
        border-bottom-right-radius:6px;
    }

    #unslider {
        width: 91%;
        height: 250px;
        margin-left: 4%;
        border-top-left-radius:16px;
        border-top-right-radius:4px;
        border-bottom-left-radius:4px;
        border-bottom-right-radius:16px;
    }

    #btnmenumobile {
        border-radius: 3px;
        border: 0px solid rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
        padding: 7px;
        background: rgba(0, 174, 226, 0.8);
        color: white;
        font-weight: bold;
        font-size: 1.0em;
        transition: background 0.4s;
        cursor: pointer;
        font-family: "Arial", sans-serif;
    }

    #txtbusquedamobile {
        text-align: center;
    }

    #trmenumobile td nav div {
        width: 92%;
        padding-top: 2%;
        padding-bottom: 2%;
        text-align: left;
        margin-left: 0%;
        border-bottom: 1px solid white;
        padding-right: 0.2%;
        border-radius: 0px;
    }

    #trmenumobile td nav div:hover {
        cursor: pointer;
        font-size: 1.1em;
        color: white;
        background: rgba(0, 174, 226, 1);
        transition-duration: 100ms;
    }

    #trmenumobile td nav div a {
        text-decoration: none;
        padding-left: 5%;
        color: white;
        font-weight: bold;
        font-family: "Arial", sans-serif;
        font-size: 0.8em;
    }

    #menumobile {
        display: none;
    }

    .maincontent aside{
        float: none;
        width: 100%;
    }

    .maincontent aside table{
        width: 100%;
    }

    .maincontent section{
        float: none;
        width: 100%;
    }

    .maincontent section div {
        width: 90%;
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;
    }

    .maincontent section div table tr:nth-child(2) td:nth-child(1) div select, 
    .maincontent section div table tr:nth-child(3) td:nth-child(1) div select, 
    .maincontent section div table tr:nth-child(4) td:nth-child(1) div input, 
    .maincontent section div table tr:nth-child(5) td:nth-child(1) div input {
        margin-left: 0%;
    }

    .maincontent section div table tr:nth-child(1) td,
    .maincontent section div table tr:nth-child(4) td{
        color: navy;
        display: block;
        font-size: 0.8em;
        font-family: "Arial", sans-serif;
        font-weight: bold;
        text-align: center;
    }

    #unsliderfootermobile table tr td img{
        width: 90%;
        padding-top: 15%;
    }

    #footermobile div:nth-child(2) table {
        padding-top: 8%;
        padding-left: 2%;
    }

    #footermobile div:nth-child(2) table tr td ul li a:hover {
        color: #95F9EF;
        text-decoration: underline;
        font-size: 0.9em;
    }

    #footermobile div:nth-child(2) table tr:nth-child(3) td {
        text-align: center;
        padding-top: 3%;
        padding-bottom: 3%;
    }

    #categoriasfootermobile {
        display: none;
    }

    footer div:nth-child(2) table tr td em {
        margin-left: 0%;
    }

    footer div:nth-child(2) table tr td label {
        margin-left: 0%;
    }

    #datecopyrightmobile {
        margin-left: 0%;
    }
}

@media only screen and (min-width: 1025px) {
    #headermobile, #footermobile {
        display: none
    }
}