* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

bold {
    font-weight: 700;
}

header {
    margin: 20px 10px;
}

main {
    margin-left: 10px;
    margin-right: 10px;
}

.header-logo {
    display: flex;
    flex-direction: row;
}
.header-logo div:first-child{
    display: inline-flex;;
}

.header-logo a {
    display: block;
}

.header-logo img {
    max-width: 100%;
    height: auto;
}

.row {
    width: 100%;
}

h1 {
    padding: 0;
    margin: 0;
    font-size: 2.5em;
    line-height: 1.3em;
    font-weight: 700;
}

h1 .subtitulo {
    font-size: .8em;
    display: block;
}

h3 {
    padding: 0;
    margin: 0;
    font-size: 1.3em;
}

.hero-image {
    background-image: url(../img/banner.jpg);
    background-position: 30% center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 35vh;
    min-height: 230px;
}

@media (min-width: 1600px) {
    .hero-image {
        height: 20vh;
    }
}

.hero-caption {
    position: absolute;
    padding: 20px 60px;
    left: 0;
    height: 100%;
    min-width: 50%;
    z-index: 10;
    background-color: rgba(0, 0, 0, .7);
}

.hero-text {
    color: #fff;
    text-align: left;
    line-height: 1.5;
    top: 50%;
    transform: translate(0, -50%);
    position: relative;
}

div.texto {
    width: 80%;
    text-align: left;
    margin: 4em auto;
    font-size: 1em;
}

main .row {
    margin-bottom: 6em;
    margin-left: 0;
    margin-right: 0;
}

main .col-md-6 {
    margin-top: 20px;
    margin-bottom: 20px;
}

@media all and (-ms-high-contrast: active), all and (-ms-high-contrast: none) {
    main .col-md-6 {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.card {
    width: 100%;
    height: 100%;
    flex-direction: row;
    background: #fff;
    border: 1px solid #ddd;
    max-width: 700px;
}

.card-img {
    position: relative;
    overflow: hidden;
    width: 40%;
}

.card img {
    position: absolute;
    right: 0;
    height: 100%;
}

.card-title {
    margin-bottom: .5rem;
    color: #336699;
    font-weight: 700;
}

.card-body {
    margin: auto;
    padding: 20px;
    text-align: center;
    font-size: 1em;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #336699;
    border: none;
    width: 100%;
    padding: .600rem 0;
    font-size: .9em;
    border-radius: 0;
}

.btn:hover {
    background-color: #76a3d1;
    color: #fff;
}

.btn:active {
    background-color: #132639;
    ;
    color: #fff;
}

.libreria-logos {
    padding-top: 20px;
    padding-bottom: 20px;
    background: #ebebeb;
}

.footer_img_logos {
    overflow: hidden;
    margin: 10px 10px;
    display: inline-block;
}

footer {
    background-color: #336699;
    color: #fff;
    font-size: .9em;
}

footer .row {
    padding: 20px;
    margin: 0;
}

footer .col-sm-4:not(:last-child) {
    padding-right: 20px;
    padding-bottom: 30px;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: #c1d1e0;
}
footer a:active {
    color: #132639;
}

footer .bi {
    width: 1.5em;
    height: 1.5em;
}

footer .bi:hover {
    fill: #c1d1e0;
}
footer .bi:active {
    fill: #132639;
}

footer h4 {
    font-weight: 700;
    font-size: 1em;
}


@media (max-width: 400px) {
    .card img {
        transform: translate(-50%, 0);
    }
}


@media (max-width: 1250px) {
    .hero-caption {
        width: 100%;
    }
    .hero-text {
        text-align: center;
    }
}


@media (max-width: 700px) {
    .card {
        flex-direction: column;
    }
    main .col-md-6 {
        margin: 20px 0;
        min-width: 50px;
    }
    .card-img {
        margin: 0 auto;
        width: 100%;
    }
    .card img {
        left: 50%;
        position: relative;
        transform: translate(-50%, 20px);
    }
    .hero-caption {
        right: 0;
    }
    .hero-text {
        transform: translate(2%, -50%);
    }
}

@media (max-width: 500px) {
    .hero-image {
        background: initial;
        position: static;
        margin-top: 80px;
        margin-right: 10px;
        margin-left: 10px;
        height: auto;
        min-height: auto;
    }
    .hero-caption {
        background: initial;
        position: static;
        height: auto;
        padding: 0;
    }
    .hero-text {
        color: initial;
        transform: none;
    }
    h1 {
        color: #336699 !important;
    }
    div.texto {
        width: auto;
    }
    .row:first-child {margin:0;}
    .header-logo {
        flex-direction: column;
        text-align: center;
    }
    .header-logo div:first-child{margin:30px auto;}
}

@media all and (-ms-high-contrast: active) and (max-width: 500px), all and (-ms-high-contrast: none) and (max-width: 500px) {
    .hero-image {
        background: none;
    }
    .hero-caption {
        background: none;
    }
    .hero-text {
        color: none;
    }
}

