:root {
    --main-color: #00214d;
}

* {
    margin: 0;
    padding: 0;
    font-family: Helvetica, sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

section {
    padding: 80px 0;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex !important;
    justify-content: flex-end;
    transition: 0.7s;
    padding: 15px 3em;
    background-color: #00000020;
    align-items: center;
    z-index: 2;
}

.logo {
    height: 40px;
    display: none;
}

.logo.abajo {
    height: 1.5em;
    transition: 0.7s;
    display: block;
}


.menu {
    display: flex;
    justify-content: center;
    align-items: center;

}


header.abajo {
    transition: 0.2s;
    background-color: var(--main-color);
    z-index: 2;
    padding: 10px 2em;
    justify-content: space-between;
}

header nav ul {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

header ul {
    margin: 0;
}

header ul li {
    list-style: none;
}

header ul li a {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: start;
    justify-content: start;
    margin: 0 0.5em;
    text-decoration: none;
    color: #d7d7d7;
    letter-spacing: 1.5px;
    transition: 0.2s;
}

header ul.sub-menu li a {
    font-size: 0.8em;
}

header ul li a:hover {
    /* font-size: 0.9em; */
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    text-decoration-line: underline;
    transition: 0.2s;
    color: #fff;
}

#menu {
    display: none;
}

.menu-icon {
    width: 1.8em;
}

#label {
    cursor: pointer;
    display: none;
}

.sub-menu {
    width: 15rem;
    height: auto;
    padding: 1rem;
    background-color: var(--main-color);
    border-radius: 5px;
    position: absolute;
    display: none;
    flex-direction: column;
    text-align: start;
    -webkit-box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.75);
}

.sub-menu>li {
    margin: 1em 0;
}

header ul li:hover>.sub-menu {
    display: flex;
}

@media(max-width: 991px) {
    header.abajo {
        padding: 15px 2em;
    }

    #label {
        cursor: pointer;
        display: initial;
    }

    .menu {
        top: 100%;
        left: 0;
        right: 0;
        position: absolute;
        background-color: var(--main-color);
        ;
        padding: 3em;
        display: none;
        -webkit-box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.75);
        -moz-box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.75);
        box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.75);
    }

    .item {
        margin: 0 0 20px 0;
        width: 100%;
    }

    #menu:checked~.menu {
        display: initial;
    }

}

/*--------------------------------------------------------------
# Banner
--------------------------------------------------------------*/

#banner {
    z-index: -10;
    margin: 0;
    width: 100%;
    height: 25em;
    padding: 80px 0;
}

#banner .content {
    position: relative;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 10em;
}

#banner video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    margin-right: 100%;
    z-index: -20;
}

video {
    position: fixed;
    left: 0;
    top: 0;
    min-width: 105%;
    z-index: -2;
}

@media (max-width: 800px) {
    #banner {
        height: 50%;
    }
}


/*--------------------------------------------------------------
# Carousel
--------------------------------------------------------------*/
.swiper {
    width: 100%;
    padding: 100px 0 50px 0;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px !important;
    height: 300px;
}

.swiper-slide img {
    display: block;
    width: 100%;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    margin-top: 80px;
    background: transparent;
}


/*--------------------------------------------------------------
# Trasnports
--------------------------------------------------------------*/
#transport {
    background: linear-gradient(rgba(56, 56, 56, 0.150), rgba(0, 21, 78, 0.15)), url("../assets/images/bg-lineas.jpg") fixed center;
    filter: drop-shadow(0px 0px 15px black);
    background-size: cover;
    color: #ffffffab;
}

#transport h2 {
    color: #ffffff;
}

.section-title {
    text-align: center;
    padding-bottom: 30px;
    margin-top: 20px;
}

#lineas {
    position: relative;
    min-width: 200px;
    max-width: 500px;
    min-height: 250px;
    width: 100%;
    color: #ffffff;
    text-align: left;
    line-height: 1.4em;
    background-color: #bfbfbfba;
    font-size: 13px;
    border-radius: 20px;
}

#lineas * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
}

#lineas #img_lineas {
    position: absolute;
    right: 18%;
    top: 50%;
    opacity: 1;
    width: 65%;
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}

#lineas figcaption {
    position: absolute;
    width: 50%;
    top: 50%;
    left: 0;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 20px 0 20px 20px;
}

#lineas h4,
#lineas p {
    margin: 0;
    width: 100%;
    -webkit-transform: translateX(20px);
    transform: translateX(20px);
    opacity: 0;
}

#lineas h4 {
    text-transform: uppercase;
    text-decoration: underline;
    margin-bottom: 5px;
    color: #0c2150;
}

#lineas p {
    font-size: 1em;
    color: #084789;
}

#lineas a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#lineas:hover #img_lineas,
#lineas:hover #img_lineas {
    width: 55%;
    right: -2%;
}

#lineas:hover figcaption h4,
#lineas.hover figcaption h4,
#lineas:hover figcaption p,
#lineas.hover figcaption p {
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
    opacity: 1;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

footer {
    background-color: var(--main-color);
    color: #FFF;
    padding-bottom: 5rem;
}

#link {
    position: relative;
    display: flex;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    font-size: 1em;
    text-decoration: none;
    transition: 0.2s;
}

/* position: relative;
    display: flex;
    flex-direction: column;
    text-align: start;
    justify-content: start;
    margin: 0 1em;
    text-decoration: none;
    color: #d7d7d7;
    letter-spacing: 1.5px;
    transition: 0.2s; */
#link:hover {
    transform: scale(0.9);
    transition: 0.2s;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: #00214d;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #00214dba;
    color: #fff;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}


/* busca tu destino */
#buscadorDestino {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 40em;
    height: 20em;
    padding: 10px 1px;
    margin: 10px 0;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 25, 80, 0.4), 0 4px 6px -4px rgba(0, 25, 80, .4);
    border-radius: 10px;
    background-color: #00214d;
    background: linear-gradient(45deg, #00214def 0%, #0047a3ef 100%);
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 300px !important;
}

.dropdown-menu {
    max-height: 500px !important;
    min-height: 250px !important;
    top: 100% !important;
    width: 300px !important;
}

.selectpicker>span {
    color: #000 !important;
}

.caret {
    display: none !important;
}

.bootstrap-select span {
    color: #000;
}

.buscar_destino {
    width: 100%;
    max-width: 220px;
    height: 45px;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid lightgrey;
    outline: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0px 0px 20px -18px;
}

.buscar_destino :hover {
    border: 2px solid lightgrey;
    box-shadow: 0px 0px 20px -17px;
}

.buscar_destino :active {
    transform: scale(0.95);
}

.buscar_destino :focus {
    border: 2px solid grey;
}

.btn_buscar_destino {
    position: relative;
    font-size: 17px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.7em 2em;
    display: inline-block;
    border-radius: 6em;
    transition: all .2s;
    border: none;
    font-family: inherit;
    font-weight: 500;
    color: black;
    background-color: white;
}

.btn_buscar_destino:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn_buscar_destino:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn_buscar_destino::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}

.btn_buscar_destino::after {
    background-color: #fff;
}

.btn_buscar_destino:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

/* The Modal (background) */
.modal-buscar {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 11;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content-buscar {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    height: 40em;
    width: 40em;
    border-radius: 10px;

}
.close  {
    color: #ff0000 !important;
    font-size: 2.5em !important;
    line-height: 0 !important; 
    opacity: .9 !important;

}
.modal-content-buscar p {
    margin-top: 1em;
    color: #000 !important;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


/* The Modal (background) */
.modal-servicios {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 11;
    /* Sit on top */
    padding-top: 100px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content-servicios {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888; 
    width: 35%;
    border-radius: 10px;
    
}
.modal-content-servicios h3 {
    font-weight: bold;
}



@media(max-width: 991px) {
    .modal-content-buscar {
        width: 95%;
    }
    .modal-content-servicios { 
        width: 90%;
    }
}

@media screen and (max-width: 736px) {
    span {
        font-size: 2rem !important;
    }
}