@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirLTStd-Black.otf') format('truetype');
}

@font-face {
    font-family: 'Flexo-Regular';
    src: url('../fonts/Flexo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Flexo-Heavy';
    src: url('../fonts/Flexo-Heavy.ttf') format('truetype');
    /* font-weight: 800; */
}

@font-face {
    font-family: 'Flexo-Demi';
    src: url('../fonts/Flexo-Demi.ttf') format('truetype');
}

@font-face {
    font-family: 'Flexo-Medium';
    src: url('../fonts/Flexo-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Adellesans';
    src: url('../fonts/adellesans-semibold-webfont.ttf') format('truetype');
}

* {
    font-family: 'Flexo-Regular', sans-serif;
}

html, body {
    font-family: "Flexo-Regular";
}

.flexo-medium {
    font-family: "Flexo-Medium";
}

h1 {
    font-size: 1.8rem;
}

h1, .avenir {
    font-family: 'Avenir';
}

h4.avenir {
    font-size: 1.4rem;
}

h2, h3 {
    font-family: "Flexo-Heavy";
}

h4, h5, h6 {
    font-family: "Flexo-Demi";
}

.bg-transparent {
    background-color: transparent;
}

.overlay {
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
    background-color: #315C41;
    opacity: 0.88;
}

hr {
    opacity: 1;
    display: block;
    border: 0;
    width: 100%;
    margin: 2px auto;
    background-color: red;
    height: 3px;
}

nav.bg-body-tertiary .navbar-nav .nav-link {
    text-transform: uppercase;
    font-family: 'Flexo-Medium';
    padding-left: 12px;
    padding-right: 12px;
}

nav.bg-body-tertiary .navbar-nav .nav-link:hover {
    color: white;
    background-color: #32337E;
}

#categorias hr {
    width: 20%;
}

#categorias a:not(.btn) {
    font-weight: bold;
    text-decoration: none;
    color: #32337E;
}

.text-primary {
    color: #32337E !important;
}

.border-primary {
    border-color: #32337E !important;
}

.bg-primary, .btn-primary {
    background-color: #32337E !important;
}

.bg-primary-dark {
    background-color: #1E1F71;
}

.bg-form {
    background-color: rgba(255, 255, 255, 0.7)
}

.bg-form .form-label {
    font-size: 0.8rem;
    font-weight: bold;
}

.bg-concreto {
    background-image: url('../images/concreto.webp');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.bg-contacto {
    background-image: url('../images/contacto.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ft-item span {
    padding: 0;
    width: 210px;
    height: 210px;
    line-height: 219px;
    display: inline-block;
    border: 1px solid #f8f8f8;
    border-radius: 210px;
    background: #fff;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}

.ft-item2 span {
    padding: 0;
    position: absolute;
    top: -50px;
    width: 100px;
    height: 100px;
    line-height: 60px;
    display: inline-block;
    border: 1px solid #f8f8f8;
    border-radius: 100px;
    background: #fff;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}

#servicios .row>div {
    flex-direction: column;
}

.laboratorio>div {
    flex-direction: column;
}

.laboratorio .badge {
    font-size: 1rem;
}

.laboratorio .bg-primary {
    color: #ccc;
    font-size: 1.2rem;
}

#myCarousel .carousel-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


#myCarousel .carousel-item .container {
    position: relative;
}


#myCarousel .carousel-item {
    height: 60vh;
}

.item .card-body div.texto {
    height: 150px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#clientes img {
    filter: grayscale(1);
}

.item {
    position: relative;
    border: 0;
}

a.item {
    position: relative;
    border: 1px solid #ccc;
    display: block;
}

.item:hover .card-image-top {
    background-size: 80%;
    transition: background-size 0.2s ease-in;
    -moz-transition: background-size 0.2s ease-in;
    -ms-transition: background-size 0.2s ease-in;
    -o-transition: background-size 0.2s ease-in;
    -webkit-transition: background-size 0.2s ease-in;
}

.item>.card-image-top {
    min-height: 370px;
    display: block;
    background-size: 70%;
    transition: background-size 0.2s ease-in;
    -moz-transition: background-size 0.2s ease-in;
    -ms-transition: background-size 0.2s ease-in;
    -o-transition: background-size 0.2s ease-in;
    -webkit-transition: background-size 0.2s ease-in;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: center;
}

.footer a {
    color: white;
}

.footer a:hover {
    color: #ccc;
}

.social-icons li {
    text-align: center;
    padding: 5px;
    background: white;
    margin-left: 1px;
    margin-right: 1px;
    border-radius: 5px;
    width: 36px;
    font-size: 1rem;
}

@media(min-width:980px) {
    .bg-fondo1 {
        background-image: url('../images/fondo1.webp');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: bottom right;
    }

    .bg-fondo2 {
        background-image: url('../images/fondo2.webp');
        background-repeat: no-repeat;
        background-size: contain;
        background-position: left top;
    }
}

@media(max-width:480px) {
    #myCarousel .carousel-item {
        height: 18vh;
    }
}