/* Spinner */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(38, 82, 81, 0.7); /* Fondo semitransparente */
    z-index: 9999; /* Asegura que esté por encima de otros elementos */
  }
  
  .spinner {
    border: 6px solid #f09b6c; /* Cambio de color */
    border-top: 6px solid #f3f3f3;
    border-radius: 50%;
    width: 70px; /* Ajuste del tamaño */
    height: 70px; /* Ajuste del tamaño */
    animation: spin 0.5s linear infinite; /* Duración de 500 milisegundos */
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Ocultar el spinner cuando la página se ha cargado completamente */
  .loaded #spinner {
    display: none;
  }


/* Home */

.card-custom {
    background-color: #265251;
    opacity: 0.9;
    color: white;
    max-width: 25rem;
    margin: 2% 10% 15vh 10%;
    transition: all 0.2s;
}

.card-custom:hover {
    content: '--';
    border-top: 10px solid #F09B6C;
    border-left: 10px solid #F09B6C;
    border-width: 8px;
    transition: all 0.2s;
}

.container-aboutUs {
    background-color: white;
    opacity: 0.9;
    transition: all 1s;
    padding: 2% 20% 2% 20%;
    margin-top: 30%;
    text-align: justify;
}

.container-aboutUs:hover {
    opacity: 1;
    transition: all 1s;
}

@media (max-width: 767px) {
    .container-aboutUs {
        margin-top: 40%;
    }
}

.title-custom {
    color: #265251;
    opacity: 0.9;
    transition: all 1s;
}

.title-custom:hover {
    color: #F09B6C;
    opacity: 1;
    transition: all 1s;
}

.image {
    max-width: 75%;
    height: auto;
}

@media screen and (max-width: 1000px) {
    .hide-image {
        display: none;
    }
}


/* Services */

.background-services {
    background-image: url('../img/services/services-bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-services {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.card-img-top {
    width: 100%;
    height: 200px;
    transition: 0.5s;
}

.card-img-top:hover {
    padding: 1%;
    border-style: double;
    color: #F09B6C;
    transition: 0.5s;
}

.card-body-service {
    padding: 2%;
    text-align: center;
}

@media screen and (min-width: 1000px) {
    .card-adjust {
        width: auto;
        min-width: 350px;
    }
}

.btn-service {
    color: #265251;
    margin-left: 10%;
    border: none;
    text-decoration: none;
}

.btn-service:hover {
    color: #F09B6C;
}

.services-link {
    color: #265251;
    border: none;
    text-decoration: none;
    transition: 0.5s;
}

.services-link:hover {
    color: #F09B6C;
    transition: 0.5s;
}

/* Forwarding */
.container-forwarding {
    background-color: white;
    opacity: 0.9;
    transition: all 1.5s;
    margin-top: 30%;
    text-align: justify;
}

.container-forwarding:hover {
    opacity: 1;
    transition: all 1s;
}

@media (max-width: 767px) {
    .container-forwarding {
        margin-top: 40%;
    }
}

/* Contact */

.background-contact {
    background-image: url('../img/contact/contact-bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.btn-contact {
    color: #265251;
    border: none;
    text-decoration: none;
    text-align: end;
}

.btn-contact:hover {
    color: #F09B6C;
}

.contact-map {
    overflow: hidden;
    padding-bottom: 30%;
    position: relative;
    height: 0;
}

.contact-map iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

@media screen and (max-width: 1000px) {
    .contact-map {
        padding-bottom: 100%;
    }
}


/* Logistics */

.background-logistics {
    background-image: url('../img/logistics/logistics.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-logistics {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.card-body-logistics {
    padding: 2%;
    text-align: center;
}

/* Logistic Hub */

.background-logisticHub {
    background-image: url('../img/logistics/logisticHub.jpeg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-logisticHub {
    background-color: white;
    opacity: 0.9;
    transition: all 1s;
    padding: 1% 10% 1% 10%;
    text-align: justify;
}

.card-body-logisticHub {
    padding: 2%;
    text-align: center;
}


/* International Transport */

.background-internationalTransport {
    background-image: url('../img/internationalTransport/internationalTransport.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-internationalTransport {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.card-body-internationalTransport {
    padding: 2%;
    text-align: center;
}


/* Foreign Trade */

.background-foreignTrade {
    background-image: url('../img/foreignTrade/foreignTrade.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-foreignTrade {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.card-body-foreignTrade {
    padding: 2%;
    text-align: center;
}


/* Airport and Port */

.background-airportAndPort {
    background-image: url('../img/airportAndPort/airportAndPort.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-airportAndPort {
    background-color: white;
    opacity: 0.9;
    transition: all 1s;
    padding: 1% 10% 1% 10%;
    text-align: justify;
}

.container-airportAndPort:hover {
    opacity: 1;
    transition: all 1s;
}

.image {
    max-width: 75%;
    height: auto;
}


/* Free Zone */

.background-freeZone {
    background-image: url('../img/freeZone/freeZone.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.container-freeZone {
    background-color: white;
    opacity: 0.9;
    transition: all 1s;
    padding: 1% 10% 1% 10%;
    text-align: justify;
}

.container-freeZone:hover {
    opacity: 1;
    transition: all 1s;
}

.image {
    max-width: 75%;
    height: auto;
}

/* Gallery */
.background-gallery {
    background-image: url('../img/gallery/gallery-bg.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.expand-image {
    transition: all 1s ease;
    border: white solid;
    border-width: 25px;
}

.expand-image:hover {
    border: #265251 solid;
}

.row-gallery {
    padding: 2%;
    margin-top: 10%;
}

@media (max-width: 767px) {
    .row-gallery {
        margin-top: 40%;
    }
}

/* Common */

.background-home {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.navbar-custom {
    top: -25px;
    left: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0.9;
    transition: background-color 0.5s, opacity 0.5s;
    position: fixed;
    background-color: white;
}

.navbar-custom.collapsed {
    background-color: #265251;
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-custom.scrolled {
    background-color: white;
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: #265251;
    position: relative;
}

.navbar-custom.scrolled {
    background-color: white;
    opacity: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Cambia el color del texto a blanco cuando no se ha hecho scroll */
.navbar-custom:not(.scrolled) .navbar-brand,
.navbar-custom:not(.scrolled) .nav-link {
    color: grey;
}

/* Cambia el color del texto a #265251 cuando se hace hover, solo cuando no se ha hecho scroll */
.navbar-custom:not(.scrolled) .nav-link:hover {
    color: #F09B6C;
    transition: all 0.5s;
}

/* Cambia el color del texto a #F09B6C cuando se hace hover, solo cuando se ha hecho scroll */
.navbar-custom.scrolled .nav-link:hover {
    color: #F09B6C;
    transition: all 0.5s;
}

.nav-item {
    position: relative;
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    transition: opacity 0.5s, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .submenu {
      display: none !important; 
    }
  }

.nav-item:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.submenu li {
    padding: 15px;
    text-align: left;
    transition: all 0.5s;
}

.submenu a {
    text-decoration: none;
    transition: all 0.5s;
    color: #265251;
    white-space: nowrap;
}

.submenu a:hover {
    color: #F09B6C;
    text-decoration: underline;
}

.menu-item:hover .submenu {
    display: block;
}

.nested-submenu {
    background: white;
    display: none;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 100%;
}

.submenu-item:hover .nested-submenu {
    display: block;
}

ul.submenu, ul.nested-submenu {
    list-style: none;
}

.submenu-item, .submenu-item:hover, .nested-submenu li, .nested-submenu li:hover {
    left: 100%;
    text-decoration: none;
}

.services-link {
    color: #333;
}

.services-link:hover {
    color: #007bff;
}

.dropdown-custom {
    background-color: white;
    color: #265251;
    margin: 1% 0% 0% 1%;
    opacity: 0.9;
    transition: 1s;
    position: relative;
    border: none;
}

.dropdown-custom:hover {
    color: #F09B6C;
    transition: all 0.5s;
}

.dropdown-menu-custom {
    background-color: white;
    color: #265251;
    font-size: large;
}

.dropdown-item-custom {
    background-color: white;
    color: #265251;
}

.dropdown-item-custom:hover {
    background-color: white;
    color: #F09B6C;
}

.footer {
    position: sticky;
}

.hiden-info {
    color: #34383f;
    transition: all 1s;
}

.hiden-info:hover {
    color: #F09B6C;
    transition: all 1s;
}

.container-pageTitle {
    background-color: white;
    opacity: 0.9;
    transition: all 1s;
    padding: 1% 10% 1% 10%;
    margin-top: 8%;
    text-align: justify;
    animation-name: goingDown;
    animation-duration: 1s;
}

.go-back {
    color: #265251;
    transition: 0.5s;
    text-decoration: underline;
    padding-top: 5%;
    padding-left: 20%;
}

.go-back:hover {
    color: #F09B6C;
    cursor: pointer;
    transition: 0.5s;
}

.card-title-custom {
    text-align: center;
    color: white;
    background-color: #265251;
}

video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 105%;
    min-height: 100%;
    transform: translateX(calc((100% - 100vw) / 2));
    z-index: -2;
}

@keyframes goingDown {
    0% {
        opacity: 0.2;
    }

    25% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.8;
    }
}