.navbar-light .navbar-nav .active {
    color: #0b58a6 !important;
    background-color: transparent !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #0b58a6;
}

.nav-item > .nav-link {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
}

.carousel-principal {
    padding-top: 8rem;
}

.carousel-principal .flickity-page-dots {
    bottom: 20px;
}

.carousel-principal .flickity-page-dots .dot {
    border: 2px solid #424242;
}

.carousel-principal .flickity-page-dots .dot.is-selected {
    background: #424242;
}

.flickity-prev-next-button {
    top: 57% !important;
}

.frontpage-sb {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.frontpage-sb h1 {
    margin: auto;
    color: #ffffff;
    font-weight: 300;
    text-shadow: 1px 1px 1px #333333;
}

.kenburns-effect-sb {
    width: 100%;
    animation: move 40s ease;
    /* Add infinite to loop. */
    -ms-animation: move 40s ease;
    -webkit-animation: move 40s ease;
    -0-animation: move 40s ease;
    -moz-animation: move 40s ease;
    position: absolute;
}

.section-sb {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    height: auto;
    overflow: hidden;
    position: relative;
    padding: 80px 0;
    -o-transition:.9s;
    -ms-transition:.9s;
    -moz-transition:.9s;
    -webkit-transition:.9s;
    transition:.9s;
}

.section-sb >* h1, .section-sb > h1  {
    color: #666666;
    line-height: 2.2rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.section-sb >* h4 {
    margin: 30px 0 60px;
}

.section-sb >* p {
    color: #666666;
    margin-bottom: 15px;
}

.seguridad-sb {
    background-image: url('../images/secciones/seguridad2.jpg');
    border-bottom: 4px solid #cccccc;
}

.section-sb > .section-content-left {
    margin: auto;
    text-align: left;
    position: relative;
    width: 70%;
    max-width: 680px;
    left: 15%;
    pointer-events: auto;
}

.section-sb > .section-content-right {
    margin: auto;
    text-align: left;
    position: relative;
    width: 50%;
    max-width: 500px;
    right: 15%;
    pointer-events: auto;
}

.section-sb >* .logos-sb > img {
    max-width: 130px;
    max-height: 50px;
    vertical-align: middle;
    margin-right: 20px;
}

.lista-footer > .list-group-item, .lista-footer > a > .list-group-item {
    background-color: transparent;
    border: 0;
    font-size: 14px;
}

ul.dropdown-servicios {
    border: none;
    background-color: #fefefe;
    text-align: center;
    border: none;
    text-align: center;
    width: fit-content;
    margin: auto;
    background-color: #eee;
    padding: 15px 25px;
    line-height: 2.5;
}

ul.dropdown-servicios > hr {
    display: none;
}

ul.dropdown-servicios > li > a {
    white-space: nowrap;
    color: #555;
}

ul.dropdown-servicios > li:hover > a {
    color: #0b58a6;
}

.servicios2 >* .col-md-3 {
    margin-bottom: 25px;
}

.servicios2 >* .col-md-3 > h3 {
    margin: 15px 0 20px;
}

a.btn-default {
    background-color: #0b58a6;
    color: white;
}

a.btn-default:hover {
    background-color: #2b78c6;
    color: white;
}

.servicios2 >* li.list-group-item:last-child {
    border-bottom: none;
}

@-webkit-keyframes move {
  0% {
    -webkit-transform-origin: top center;
    -moz-transform-origin: top center;
    -ms-transform-origin: top center;
    -o-transform-origin: top center;
    transform-origin: top center;
    transform: scale(1.15);
    -ms-transform: scale(1.15);
    /* IE 9 */
    
    -webkit-transform: scale(1.15);
    /* Safari and Chrome */
    
    -o-transform: scale(1.15);
    /* Opera */
    
    -moz-transform: scale(1.15);
    /* Firefox */
  }
  100% {
    transform: scale(1.0);
    -ms-transform: scale(1.0);
    /* IE 9 */
    
    -webkit-transform: scale(1.0);
    /* Safari and Chrome */
    
    -o-transform: scale(1.0);
    /* Opera */
    
    -moz-transform: scale(1.0);
    /* Firefox */
  }
}

@keyframes fadeInOutA {
  0% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeInOutB {
  0% {
    opacity: 0;
  }

  0.0012% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

span.first-sb {
    opacity: 0;
    animation-name: fadeInOutA;
    animation-delay: 2s;
    animation-duration: 4s;
    position: absolute;    
}

span.second-sb {
    opacity: 0;
    animation-name: fadeInOutB;
    animation-delay: 6.5s;
    animation-duration: 99999s;
    position: absolute;
}

.video-pan {
    margin-top: 0;
}

.video-pan:after{
    background-color: rgba(29, 72, 45, 0.8);
}

footer {
    background-color: #333333;
}

.carousel-servicios >* .gallery-cell {
    width: 100% !important;
}

.descripcion > h4 {
    margin: 0 auto 15px;
}

.descripcion > p {
    width: 80%;
    margin: auto;
}

.carousel-servicios > .flickity-prev-next-button {
    visibility: hidden !important;
}

.carousel-servicios > .flickity-page-dots {
    margin-bottom: -10px;
}

/* LOADER */

#status {
    width:265px;
    height:200px;
    position:absolute;
    left:50%; /* centers the loading animation horizontally one the screen */
    top:50%; /* centers the loading animation vertically one the screen */
    background-image:url(../images/loader.gif); /* path to your loading animation */
    background-repeat:no-repeat;
    background-position:center;
    background-size: 240px;
    margin:-100px 0 0 -132px; /* is width and height divided by two */
}



/* SIDENAV TAB */

#sidenav-tab-gsb a {
    position: fixed;
    right: -220px;
    transition: 0.3s;
    padding: 20px 12px;
    width: 325px;
    height: 90px;
    text-decoration: none;
    font-size: 20px;
    color: white;
    border-radius: 0 5px 5px 0;
    top: 50vh;
    background-color: rgba(255,255,255,0.7);
    border-radius: 10px 0 0 10px;
    border: 1px solid rgba(180,180,180,0.7);
    color: #777;
    margin-top: -55px;
    z-index: 99999;
    text-align: center;
}

#sidenav-tab-gsb a:hover {
  right: -1px; /* On mouse-over, make the elements appear as they should */  
}

#sidenav-tab-gsb a:hover > .pestana {
  visibility: hidden;
}

#sidenav-tab-gsb .pestana {
     position: absolute;
     top: 43%;
     left: 52%;
     white-space: nowrap;
}


.parallax {
  /* Set a specific height */
  height: auto;

  /* Create the parallax scrolling effect */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.valores >* h1 {
    font-weight: bold;
    font-size: 60px;
    color: white;
    padding: 40px 0 15px;
}

.valores >* p {
    color: white;
    font-size: 20px;
}

.valores >* i {
    font-size: 50px;
    color: #005852;
}

@media (min-width: 992px) {

    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }


    ul.dropdown-servicios {
        border: none;
        background-color: white;   
        padding: 20px;
        width: fit-content;
        border-radius: 0;
        line-height: 25px;
        box-shadow: 8px 8px 20px rgba(0,0,0,0.15);
        text-align: left;
    }

    ul.dropdown-servicios > hr {
        display: block;
    }

    ul.dropdown-servicios > li > a {
        white-space: nowrap;
        color: #555;
    }

    ul.dropdown-servicios > li:hover > a {
        color: #0b58a6;
    }
}


@media (max-width: 620px) {


    #servicios >* .col-md-4 {
        order: 1;
    }

    #servicios >* .col-md-8 {
        order: 2;
    }
}