* {
    padding: 0;
    margin: 0;
    font-family: Verdana, Arial;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

h2 {
    color: #FF0101;
}

h3 {
    color: #8B3A08;
}

h4 {
    color: #F46913;
}

article p {
    color: #043A5C;
}

p a {
    color: #0DAA07;
}

body {
    background: #FEFEFE;
}


/* ----------------------------------Slides */

.main {
    width: 100%;
    /* max-width: 900px; */
    margin: 5px auto;
}

/* tamaño de las fotos*/

.d-block {
    width: 100%;
    height: 370px;
}


/*es el marco */

.extra {
    width: 20%;
    float: left;
    background: rgba(245, 251, 239, 0.2);
    box-shadow: 1px 2px 1px #EDEAF3;
}

.extra p {
    color: white;
    width: 95%;
    margin-left: 5px;
}

.extra h4 {
    color: #333333;
}


/* ----------------------------------Nuevo  Menu */
.menu {
    background: #e3f2fd;
    transition: all 1s;
}
.fixed {
    position: fixed;
    width: 105%;
    top: 0;
    left:0;
    background: rgba(17, 150, 103, 0.8);

}
.navbar .collapse a {
    color: #EAF110;
    font-size: 15px;
}

.navbar .collapse .navbar-nav a:hover {
    /* background: #CDD6D5; */
    color: #FCFBF8;
    /* font-size: 13px; */
}

.navbar .collapse .navbar-nav a {
    color: #791A17;
    font-size: 15px;
}

.navbar .collapse .navbar-nav .nav-item a:hover {
    /* background: #CDD6D5; */
    color: #3D4774;
    width: 100%;
    /* font-size: 13px; */
}


header nav ul li a {
    /*color: #BEB508;*/
    color: #FFF;
    width: 105%;
    display: block;
    text-decoration: none;
    padding: 5px;
    /*border-right: 2px inset #F1EDED;*/
}

header nav ul li a span {
    margin-right: 10px;
}

header div a {
    /*color: #BEB508;*/
    color: #FFF;
    font-size: 10px;
}

.tit_persp h2 {
    width: 45%;
    margin: 20px 0px 10px 40px;
    text-align: center;
    font-size: 20px;
    /* text-shadow: 2px 2px 2px #866A6A; */
}

.tit_persp h2 a {
    width: 45%;
    margin: 20px 0px 10px 40px;
    text-align: center;
    font-size: 15px;
    /* text-shadow: 2px 2px 2px #866A6A; */
}

/* ----------------------------------- footer */

footer {
    width: 95%;
    /*height: 400px;*/
    /* background: rgba(38, 41, 40, 0.8); */
    background: rgba(14, 13, 13, 0.8);
    position: relative;
    /* top: 900px;*/
    clear: both;
    padding: 5px 0px;
    margin-left: 30px;
    margin-right: 30px;
}

footer .llamar {
    /* background: rgba(17, 150, 103, 0.8); */
    background: #0489B1;
    color: #F5E611;
    padding: 10px;
    text-align: center;
    margin-top: -5px;
}

footer .pie ul li a {
    font-size: 20px;
    color: #E9F1F1;
    margin-top: 25px;
    padding-top: 15px;
}

.pie {
    width: 25%;
    height: 150px;
    /*display: inline-block;*/
    color: #ECE518;
    text-align: left;
    margin: 15px 0px 25px 50px;
}

.pie ul li a:hover {
    color: #C5EEE6;
}

.piea {
    width: 25%;
    /* display: inline-block;*/
    font-size: 12px;
    color: #C5EEE6;
    text-align: left;
    margin: 1px 20px 3px 25px;
    /*float: right;*/
}

.piea:hover {
    color: #F7EF15;
    font-size: 14px;
}

.contador {
    margin-right: 20px;
    /*background: rgba(167, 245, 218, 0.8);*/
    text-shadow: 2px 2px 3px #109477;
}

.regresa {
    width: 15%;
    margin-left: 50px;
    font-size: 20px;
    color: #3D1F1F;
    /* box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.3);
    background: rgba(230, 241, 241, 0.9);*/
    border-radius: 10px;
}

.regresa ul li a {
    color: #ECE2E2;
    text-shadow: 2px 1px 2px #804422;
}


/* --------------------- Celulares y Tabletas*/

@media screen and (max-width: 750px) {
    body {
        padding-top: 87px;
    }
    .logo {
        display: none;
    }
    .slide {
        width: 100%;
    }
    .menu_bar {
        display: block;
        width: 100%;
        position: fixed;
        top: 0px;
        /*background: #043A5C;*/
        background: rgba(5, 247, 166, 0.8);
    }
    .menu_bar img {
        width: 8%;
        float: left;
        margin: 5px 0px 0px 5px;
        border-radius: 10px;
        box-shadow: 2px 5px 3px #10122E;
    }
    .menu_bar a {
        font-size: 10px;
    }
    .menu_bar .bt-menu {
        display: block;
        padding: 20px;
        color: #fff;
        overflow: hidden;
        font-size: 18px;
        font-weight: bold;
        text-decoration: none;
    }
    .menu_bar span {
        float: right;
        font-size: 40px;
    }
    header nav {
        width: 80%;
        height: calc(100% - 80px);
        position: fixed;
        right: 100%;
        margin: 0;
        overflow: scroll;
    }
    header nav ul li {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
    header nav ul li a {
        display: block;
    }
    header nav ul li:hover .children {
        display: none;
    }
    header nav ul li .children {
        width: 100%;
        position: relative;
    }
    header nav ul li .children li a {
        margin-left: 20px;
    }
    header nav ul li .caret {
        float: right;
    }
    .extra {
        display: none;
    }
    .card-header {
        width: 100%;
    }

    .container .card {
        width: 100%;
    }
    .container .card .card-header h5 a {
        font-size: 18 px;
        margin-left: 0px;
        padding-left: 0px;
    }
    .contador p {
        font-size: 10px;
    }
    .quitar {
        display: none;
    }
    .tit h4 {
        font-size: 12px;
    }
}

/* ------------------------------ tarjeta 3d */
    
a {
    text-decoration: none;
}

.contenedor {
    max-width: 1200px;
    margin: 50px auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.contenedor_tarjeta {
    margin: 20px;
}

.contenedor_tarjeta a {
    display: inline-block;
}

.contenedor_tarjeta:hover figure {
    transform: perspective(600px) rotateY(180deg);
    -webkit-box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.25);
}


figure {
    width: 150px;
    height: 160px;
    margin: 0;
    position: relative;
    transition: all ease .5s;
    transform-style: preserve-3d;
    /* Nota:
        Establecemos que la imagen tendra una rotacion de 0grados al inicio porque si no
        ponemos esta propiedad nos da un poco de problemas en algunos navegadores al pasar el cursor.
    */
    transform: perspective(600px) rotateY(0deg);
}

figure .frontal,
figure .trasera {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    transition: all ease .5s;
}

figure .frontal {
    display: block;
    background: #000;
    /* Podemos ocultar la imagen al da la vuelta si lo queremos */
    /*backface-visibility: hidden;*/
}

figure .trasera {
    position: absolute;
    top: 0;
    padding: 10px;
    color: #fff;
    transform: perspective(600px) rotateY(180deg);
    backface-visibility: hidden;
    overflow: auto;
}

.contenedor_tarjeta:nth-child(1) figure .trasera {
    background: rgba(95, 58, 53, 0.7);
    background: -moz-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(221, 32, 47, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(95, 58, 53, 0.7)), color-stop(100%, rgba(221, 32, 47, 1)));
    background: -webkit-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(221, 32, 47, 1) 100%);
    background: -o-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(221, 32, 47, 1) 100%);
    background: -ms-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(221, 32, 47, 1) 100%);
    background: linear-gradient(to bottom, rgba(95, 58, 53, 0.7) 0%, rgba(221, 32, 47, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#5f3a35', endColorstr='#dd202f', GradientType=0);
}

.contenedor_tarjeta:nth-child(2) figure .trasera {
    background: rgba(95, 58, 53, 0.7);
    background: -moz-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(0, 128, 255, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(95, 58, 53, 0.7)), color-stop(100%, rgba(0, 128, 255, 1)));
    background: -webkit-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(0, 128, 255, 1) 100%);
    background: -o-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(0, 128, 255, 1) 100%);
    background: -ms-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(0, 128, 255, 1) 100%);
    background: linear-gradient(to bottom, rgba(95, 58, 53, 0.7) 0%, rgba(0, 128, 255, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#fbe8ca', endColorstr='#192c48', GradientType=0);
}

.contenedor_tarjeta:nth-child(3) figure .trasera {
    background: rgba(95, 58, 53, 0.7);
    background: -moz-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(8, 138, 8, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(95, 58, 53, 0.7)), color-stop(100%, rgba(8, 138, 8, 1)));
    background: -webkit-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(8, 138, 8, 1) 100%);
    background: -o-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(8, 138, 8, 1) 100%);
    background: -ms-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(8, 138, 8, 1) 100%);
    background: linear-gradient(to bottom, rgba(95, 58, 53, 0.7) 0%, rgba(8, 138, 8, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#5f3a35', endColorstr='#dd202f', GradientType=0);
}

.contenedor_tarjeta:nth-child(4) figure .trasera {
    background: rgba(95, 58, 53, 0.7);
    background: -moz-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(250, 204, 46, 1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(95, 58, 53, 0.7)), color-stop(100%, rgba(250, 204, 46, 1)));
    background: -webkit-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(250, 204, 46, 1) 100%);
    background: -o-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(250, 204, 46, 1) 100%);
    background: -ms-linear-gradient(top, rgba(95, 58, 53, 0.7) 0%, rgba(250, 204, 46, 1) 100%);
    background: linear-gradient(to bottom, rgba(95, 58, 53, 0.7) 0%, rgba(250, 204, 46, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#dfeaf1', endColorstr='#0f6390', GradientType=0);
}

figure .trasera .titulo {
    color: #fff;
    font-weight: normal;
    margin-bottom: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
}

figure .trasera hr {
    height: 2px;
    background: #fff;
    border: none;
    margin-bottom: 2px;
    opacity: .5;
}

figure .trasera p {
    font-family: 'Open Sans', sans-serif;
    line-height: 22px;
    font-size: 9px;
}