﻿
.ofertaAutomotriz {
    height: 100vh;
    /* Location of the image */
    background: url('../Img/anuncios2/ofertaAutos.png');
    /* Image is centered vertically and horizontally at all times */
    background-position: center center;
    /* Image doesn't repeat */
    background-repeat: no-repeat;
    /* Makes the image fixed in the viewport so that it doesn't move when 
     the content height is greater than the image height */
    background-attachment: fixed;
    /* This is what makes the background image rescale based on its container's size */
    background-size: cover;
    /* Pick a solid background color that will be displayed while the background image is loading */
    /* SHORTHAND CSS NOTATION
   * background: url(background-photo.jpg) center center cover no-repeat fixed;
   */
}

.ofertaInmobiliaria {
    height: 100vh;
    background: url('../Img/anuncios2/ofertaInmobiliaria.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.ofertaViajes {
    height: 100vh;
    background: url('../Img/anuncios2/ofertaViajes.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.ofertaBazar {
    height: 100vh;
    background: url('../Img/anuncios2/ofertaBazar.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
/*
        .box {
            width: 90%;
            height: auto;
            border-radius: 10px;
            box-shadow: 2px 10px 12px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            box-sizing: border-box;
            margin: 20px 10px;
        }
*/
.model {
    background-color: #ffffff00;
    padding: 10px;
    width: 100%;
}

    .model img {
        width: 100%;
        height: auto;
    }

.logo {
    height: 80px;
    color: #ffffff;
    font-size: 25px
}


.layerAnuncios {
    background: rgb(0,85,184);
    background: linear-gradient(143deg, rgba(0,85,184,0.29173676306460083) 0%, rgba(0,85,184,0.3561625333727241) 35%, rgba(0,153,168,0.3785714969581583) 100%);
    position: absolute;
    width: 100%;
    height: 100vh;
}

.headerAnuncios {
    width: 100%;
    height: 30vh;
    display: flex;
    align-items: flex-end;
}

    .headerAnuncios .container {
        max-width: 80%
    }

    .headerAnuncios h1 {
        margin-top: 10px;
        float: left;
        color: #ffffff;
        font-size: 40px
    }

    .headerAnuncios img {
        margin-top: 20px;
        float: right;
        width: 70px;
        height: auto;
    }

    .headerAnuncios hr {
        border: 1px solid #ffffff;
        width: 100%;
        display: flex;
    }


/*responsive form mobile*/
@media only screen and (max-width: 320px) and (max-width: 375px) {
    .headerAnuncios .container {
        max-width: 100%
    }

    .headerAnuncios h1 {
        font-size: 18px
    }

    .headerAnuncios img {
        width: 30px;
        height: auto
    }
}

@media only screen and (max-width: 425px) {
    .headerAnuncios .container {
        max-width: 100%
    }

    .headerAnuncios h1 {
        font-size: 25px
    }

    .headerAnuncios img {
        width: 45px;
        height: auto
    }
}





.top-content {
    height: 50%;
    display: flex;
    align-items: center;
}

.container-fluid {
    width: 80%;
}

.carousel-control-prev {
    left: -6rem;
}

.carousel-control-next {
    right: -6rem;
}

/*.carousel-inner {
    display: flex;
    justify-content: center;
}*/

.carousel-item img {
    transition: all 0.4s;
}

    .carousel-item img:hover {
        background-color: #0055B8;
        transform-style: preserve-3d;
        transform: scale(1.02);
        transition: all ease 0.3s;
    }
.carousel-control-next, .carousel-control-prev {
    background-color: #000;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    margin-top: 5rem;
}
.carousel-control-next:hover, .carousel-control-prev:hover {
    background-color: mediumaquamarine;
}


@media only screen and (max-width: 475px) {
    .container-fluid {
        width: 85%;
    }
    .carousel-control-prev {
        left: -2.1rem;
    }
    .carousel-control-next {
        right: -2.1rem;
    }
    .carousel-control-next, .carousel-control-prev {
        width: 25px;
        height: 25px;
        margin-top: 4rem;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    /*Show 4th slide on md if col-md-4*/
    .carousel-inner .active.col-md-4.carousel-item + .carousel-item + .carousel-item + .carousel-item {
        position: absolute;
        top: 0;
        right: -33.3333%; /*change this with javascript in the future*/
        z-index: -1;
        display: block;
        visibility: visible;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
     /*Show 3rd slide on sm if col-sm-6*/
    .carousel-inner .active.col-sm-6.carousel-item + .carousel-item + .carousel-item {
        position: absolute;
        top: 0;
        right: -50%; /*change this with javascript in the future*/
        z-index: -1;
        display: block;
        visibility: visible;
    }
}

@media (min-width: 576px) {
    .carousel-item {
        margin-right: 0;
    }
     /*show 2 items */
    .carousel-inner .active + .carousel-item {
        display: block;
    }

    .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left),
    .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item {
        transition: none;
    }

    .carousel-inner .carousel-item-next {
        position: relative;
        transform: translate3d(0, 0, 0);
    }
     /*left or forward direction */
    .active.carousel-item-left + .carousel-item-next.carousel-item-left,
    .carousel-item-next.carousel-item-left + .carousel-item,
    .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item {
        position: relative;
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
     /*farthest right hidden item must be also positioned for animations */
    .carousel-inner .carousel-item-prev.carousel-item-right {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        display: block;
        visibility: visible;
    }
    /* right or prev direction */
    .active.carousel-item-right + .carousel-item-prev.carousel-item-right,
    .carousel-item-prev.carousel-item-right + .carousel-item,
    .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item {
        position: relative;
        transform: translate3d(100%, 0, 0);
        visibility: visible;
        display: block;
        visibility: visible;
    }
}
/* MD */
@media (min-width: 768px) {
     /*show 3rd of 3 item slide */
    .carousel-inner .active + .carousel-item + .carousel-item {
        display: block;
    }

    .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item {
        transition: none;
    }

    .carousel-inner .carousel-item-next {
        position: relative;
        transform: translate3d(0, 0, 0);
    }
   /*  left or forward direction */
    .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item {
        position: relative;
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
     /*right or prev direction */
    .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item {
        position: relative;
        transform: translate3d(100%, 0, 0);
        visibility: visible;
        display: block;
        visibility: visible;
    }
}
/* LG */
@media (min-width: 991px) {
     /*show 4th item */
    .carousel-inner .active + .carousel-item + .carousel-item + .carousel-item {
        display: block;
    }

    .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item + .carousel-item {
        transition: none;
    }
     /*Show 5th slide on lg if col-lg-3 */
    .carousel-inner .active.col-lg-3.carousel-item + .carousel-item + .carousel-item + .carousel-item + .carousel-item {
        position: absolute;
        top: 0;
        right: -25%; change this with javascript in the future
        z-index: -1;
        display: block;
        visibility: visible;
    }
    /* left or forward direction */
    .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item + .carousel-item {
        position: relative;
        transform: translate3d(-100%, 0, 0);
        visibility: visible;
    }
     /*right or prev direction //t - previous slide direction last item animation fix */
    .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item + .carousel-item {
        position: relative;
        transform: translate3d(100%, 0, 0);
        visibility: visible;
        display: block;
        visibility: visible;
    }
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio : 2) {
    .headerAnuncios {
        height: 40vh;
    }

    .top-content {
        height: 60%;
    }

    .container-fluid {
        width: 70%;
    }
    .carousel-control-prev {
        left: -4rem;
    }

    .carousel-control-next {
        right: -4rem;
    }
}