* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

.hidden {
    visibility: hidden;
}

.mar {
    margin: 0 100px;
}


/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

:root {
    --principal: #009fe3;
    --colorTexto: #2c2c2b;
}


/*header*/

.header-nav {
    background-color: var(--principal);
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #ffffff;
    width: 100%;
    height: 70px;
}

.header-nav a {
    color: #ffffff;
    margin-left: 10px;
}

.nav-header {
    margin: 30px 0;
    position: relative;
    z-index: 10;
    height: 50px;
}

.icono-menu img {
    vertical-align: top;
    width: 40px;
    cursor: pointer;
    z-index: 12;
}

.cont-menu {
    background-color: rgb(42, 42, 42);
    box-shadow: 2px 0px 5px 2px rgb(66, 66, 66);
    width: 150px;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .5s ease;
    z-index: 12;
}

.active {
    transform: translate(-600px);
}

.opacity {
    background-color: rgba(0, 0, 0, 0.5);
    transition: all .5s ease;
}

.cont-menu ul {
    padding: 100px 0px 20px 0px;
}

.cont-menu ul li a {
    display: block;
    font-size: 15px;
    padding: 10px 50px;
    cursor: pointer;
}

.cont-menu ul li a:hover {
    background-color: rgb(228, 228, 228);
    color: rgb(42, 42, 42)
}

.margen {
    margin: 5% 10%;
}


/*carrusel*/

.owl-carousel {
    margin-top: 2em;
    margin-bottom: 2em;
}

.owl-carousel .item {
    background: linear-gradient(#69C86B, #82D584, #A0D5A1);
    min-height: 20vh;
}

.owl-carousel .item h4 {
    background: rgba(255, 255, 255, .5);
    margin: 0;
    padding: 5px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.item img {
    width: 200px;
    height: 150px;
}


/*Nosotros*/

.nosotros {
    display: flex;
    justify-content: space-evenly;
    height: 350px;
    margin-bottom: 50px;
}

.nosotros_titulo {
    width: 20%;
    background-color: var(--principal);
    color: #ffffff;
    padding: 130px 40px;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}
.fa-address-card{
    font-size: 1rem;
}


.nosotros_titulo h2{
    font-size: 1rem;
}

.mar {
    margin-right: 10px;
    padding-top: 8px;
}

.nosotros_descripcion {
    width: 45%;
    color: var(--colorTexto);
    margin-top: 15px;
}

.nosotros_descripcion h3 {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: bold;
}

.nosotros_descripcion p {
    color: var(--colorTexto);
    font-size: 10px;
}


/*Servicios Index*/

#servicios_index {
    background-color: #dddddc;
    width: 100%;
    height: 100%;
    margin: 30px 0;
}

.servicios_index {
    width: 100%;
}

.servicios_titulo_index {
    color: var(--colorTexto);
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.servicios_card {
    display: flex;
    flex-direction: column;
    margin: 0 20%;
}

.card {
    margin-bottom: 10px;
}

.card_body {
    width: 250px;
    background-image: url(../img/contabilidad.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    position: relative;
}

.card_body1 {
    width: 250px;
    background-image: url(../img/nomina.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    position: relative;
}

.card_body2 {
    width: 250px;
    background-image: url(../img/impuestos.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    position: relative;
}

.card_body3 {
    width: 250px;
    background-image: url(../img/legal.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    position: relative;
}

.card {
    background-color: #ffffff;
    cursor: pointer;
}

.card_body:before,
.card_body1:before,
.card_body2:before,
.card_body3:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.card_text {
    text-align: center;
    padding-top: 160px;
    color: #2c2c2b;
    z-index: 12;
    position: relative;
}

.card_text h3 {
    color: #ffffff;
    z-index: 12;
}


/*Footer*/

.footer {
    background-color: var(--principal);
    width: 100%;
    height: 100%;
    padding: 25px 0;
}

.footer_div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 10%;
}

#redes {
    margin-top: 50px;
}

#redes nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

#redes nav a {
    color: #ffffff;
    margin-left: 25px;
    margin-bottom: 15px;
}

#mapaSitio {
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

#mapaSitio ul li a {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 20px;
}


/*Servicios*/

#servicios {
    display: flex;
}

#servicios_selector li {
    cursor: pointer;
}

.servicio {
    margin: 20px 0;
}

.servicio h2 {
    text-align: center;
}

.servicio img {
    width: 50%;
    height: 20%;
    margin: 10px 25%;
}


/*Contacto*/

.titulo-contacto {
    margin-top: 10px;
    font-size: 40px;
    text-align: center;
}

#contacto {
    margin: 60px 15%;
    display: flex;
    flex-direction: column;
}

#formulario {
    margin-bottom: 20px;
}

.formulario_campo {
    display: flex;
    align-items: right;
}

.formulario_campo label {
    width: 20%;
}

.formulario_campo input,
.formulario_campo textarea {
    width: 70%;
    margin: 10px 55px;
    border: none;
    outline: none;
}

.formulario_campo input {
    height: 20px;
    width: 70%;
}

.formulario_campo textarea {
    height: 40px;
    width: 70%;
    border: 1px solid var(--principal);
    text-align: left;
}

.boton-enviar {
    background-color: #A0D5A1;
    font-size: 18px;
    width: 70px;
    height: 30px;
    border: none;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
}


/*Aviso de privacidad*/

.aviso h2 {
    text-align: center;
    margin-bottom: 10px;
}

.aviso p {
    text-align: justify;
    margin-bottom: 10px;
    font-weight: 600;
}

.aviso ol {
    margin-bottom: 10px;
}

.aviso ol li {
    list-style: decimal;
    margin-left: 40px;
}


/*Mediaquerys*/


/*Tablet*/

@media(min-width: 380px) {
    .cont-menu {
        width: 250px;
    }
    /*carrusel*/
    .item img {
        width: 300px;
        height: 180px;
    }
    /*Nosostro*/
    .nosotros_titulo {
        width: 20%;
        font-size: 20px;
        font-weight: bold;
    }
    .nosotros_descripcion h3 {
        font-size: 15px;
    }
    .nosotros_descripcion p {
        font-size: 12px;
    }
    /*Servicios*/
    .servicios {
        margin: 0 80px;
    }
    .servicios p {
        height: 100px;
        width: 100%;
    }
    .servicio img {
        width: 70%;
        height: 150px;
        margin: 0 10%;
    }

    .fa-address-card{
        font-size: 2rem;
    }
    
    
    .nosotros_titulo h2{
        font-size: 1.3rem;
    }
}

@media(min-width: 480px) {
    /*Menu*/
    .cont-menu {
        width: 250px;
    }
    .cont-menu ul li a {
        font-size: 18px;
    }
    /*carrusel*/
    .item img {
        width: 300px;
        height: 180px;
    }
    /*Nosostro*/
    .nosotros_titulo {
        width: 20%;
        font-size: 28px;
        font-weight: bold;
    }
    .nosotros_descripcion h3 {
        font-size: 20px;
    }
    .nosotros_descripcion p {
        font-size: 16px;
    }
    /*Servicios*/
    .servicios_card {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .servicios {
        margin: 0 80px;
    }
    .servicio img {
        width: 80%;
        height: 60%;
        margin: 10% 10%;
    }
    .card_body {
        margin-bottom: 10px;
        margin-right: 10px;
    }
    .fa-address-card{
        font-size: 2rem;
    }
    
    
    .nosotros_titulo h2{
        font-size: 1.5rem;
    }
}

@media(min-width: 768px) {
    /*Menu*/
    .cont-menu {
        width: 250px;
    }
    .cont-menu ul li a {
        font-size: 22px;
    }
    /*carrusel*/
    .item img {
        width: 400px;
        height: 280px;
    }
    .servicios {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .servicio {
        width: 100%;
        height: 400px;
    }
    .servicio img {
        width: 100%;
        height: 250px;
        margin: 10px 25px;
    }
    .fa-address-card{
        font-size: 3rem;
    }
    
    
    .nosotros_titulo h2{
        font-size: 2rem;
    }
}

@media(min-width: 980px) {
    /*Menu*/
    .cont-menu {
        width: 250px;
    }
    .cont-menu ul li a {
        font-size: 18px;
    }
    /*carrusel*/
    .item img {
        width: 400px;
        height: 430px;
    }
    /*Nosostro*/
    .nosotros_titulo {
        width: 20%;
        font-size: 28px;
        font-weight: bold;
    }
    .nosotros_descripcion h3 {
        font-size: 20px;
    }
    .nosotros_descripcion p {
        font-size: 16px;
    }
    /*Servicios*/
    .servicios_card {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100px;
    }
    .servicios {
        margin: 30px 1px0;
    }
    .card_body,
    .card_body1,
    .card_body2,
    .card_body3 {
        margin-bottom: 10px;
        margin-right: 10px;
    }
    .titulo-contacto {
        margin-top: 10px;
        font-size: 40px;
        text-align: center;
    }
    /*Contacto*/
    #contacto {
        margin: 60px 15%;
        display: flex;
    }
    .formulario_campo {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    .formulario_campo label {
        width: 80%;
    }
    .formulario_campo input,
    .formulario_campo textarea {
        margin: 10px 55px;
        border: none;
        outline: none;
    }
    .formulario_campo input {
        height: 20px;
        width: 400px;
    }
    .formulario_campo textarea {
        height: 40px;
        width: 400px;
    }
    .servicio p {
        height: 150px;
        width: 550px
    }
    .servicio img {
        margin: 0 25px;
        width: 500px;
    }
}