@import url(root.css);
@import url(fonts.css);
@import url(swiper.css);


* {
    margin         : 0;
    padding        : 0;
    box-sizing     : border-box;
    scroll-behavior: smooth;
    scroll-margin  : 120px;
}

body {
    font-family: var(--main-font);
    color      : var(--main-font-color);
    font-size  : 15px;
    font-weight: 400;
}

section:not(:first-of-type) {
    margin: 100px 0;
}

a {
    text-decoration: none;
}

hr {
    border-top: 1px solid #666;
}

h1,
h2,
h3 {
    font-family: var(--main-font);
    font-weight: 500;
    line-height: 1.1;
}

h1 {
    font-size    : 45px;
    margin-bottom: 40px;
}

h2 {
    font-size: 35px;
}

strong {
    font-size: 16px;
}

.contenido {
    max-width: 1100px;
    /*1360px;*/
    margin   : 10px auto;
    padding  : 0 14px;
    position : relative;
}

ul {
    margin-left: 15px;
}

header .franja {
    text-align      : right;
    background-color: #00001f;
    color           : white;
    position        : fixed;
    width           : 100%;
    z-index         : 999;
}

header .franja .contenido {
    margin        : 0 auto;
    padding       : 7px 14px;
    letter-spacing: 2px;
}

.idioma .activo {
    font-weight: bold;
}

header nav {
    text-transform: uppercase;
    position      : fixed;
    top           : 35px;
    width         : 100%;
    z-index       : 999;
    transition    : background-color 0.3s ease;
}

header nav hr {
    border-top: 1px solid white;
}

header.scrolled nav {
    background-color: rgba(0, 0, 0, 0.7)
}

header.scrolled .logo {
    width: 170px;
}

header.scrolled hr {
    display: none;
}



header nav .contenido div {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    color          : white;
}

header nav .contenido div div {
    display        : flex;
    justify-content: space-between;
    gap            : 10px;
    width          : min(650px, 100%);
    font-size      : 20px;
    letter-spacing : 2px;
}

header .logo {
    width     : 250px;
    transition: width 0.3s ease;
}


.img-fondo {
    position           : relative;
    background-position: center;
    background-repeat  : no-repeat;
    background-size    : cover;
    height             : 100%;
}

.btn,
button {
    padding         : 10px 30px;
    border          : 2px solid white;
    color           : white;
    text-transform  : uppercase;
    border-radius   : 30px;
    background-color: transparent;
    font-size       : 20px;
    margin          : 50px auto 0;
    display         : block;
    width           : max-content;
}

.btn-oscuro {
    color : var(--main-font-color);
    border: 2px solid var(--main-font-color);
}

.social img {
    margin-left: 15px;
    width      : 20px;
}

.grid {
    display: grid;
    gap    : 15px
}

.g-2 {
    grid-template-columns: repeat(2, 1fr);
}

.g-3 {
    grid-template-columns: repeat(3, 1fr);
}


#home #la-empresa .img-fondo {
    height: 100%;
}

#home #la-empresa h1,
#home #anuncios h1,
#home #servicios-logistica h1,
#servicios #servicios-logistica h1,
#anuncios #anuncios-section h1,
#contacto .titulo h1 {
    display         : inline-block;
    padding-right   : 15px;
    background-color: white;
}

#home #servicios-logistica {
    margin-bottom: 100px;
}

#home #servicios-logistica h1 {
    background-color: initial;
    color           : white;
}

#home #anuncios h1 {
    padding-right: 0;
    padding-left : 15px;
}

#home #la-empresa hr,
#home #anuncios hr,
#home #servicios-logistica hr,
#servicios #servicios-logistica hr,
#anuncios #anuncios-section hr,
#contacto .titulo hr {
    position: absolute;
    z-index : -1;
    top     : 21px;
    width   : 100%
}

#home #servicios-logistica hr {
    border-top: 1px solid white;
    z-index   : 1
}

#home #servicios-logistica hr {
    right: 0;
    width: calc(100% - 514px);
}

#home #servicios-logistica.en hr {
    width: calc(100% - 430px);
}

#home #la-empresa span,
#home #anuncios span,
#home #servicios-logistica span,
#servicios #servicios-logistica span,
#anuncios #anuncios-section span,
#contacto .titulo span {
    position: absolute;
    right   : 0;
    top     : 45px;
}

#home #servicios-logistica span {
    color: white;
}

#home #anuncios span {
    left     : 0;
    max-width: max-content;
}

.anuncio .img-fondo {
    height: 250px;
}

.anuncio .g-2 {
    grid-template-columns: 60% 1fr;
}

.anuncio .grid {
    padding: 50px 0;
}

#home #banner {
    position: relative;
    z-index : -1
}

#home .banner {
    position: relative;
    height  : 100vh
}

#home .banner h1,
#home .banner .w3-display-left strong,
#servicios .img-fondo .w3-display-left strong,
#servicios .img-fondo .w3-display-left h1,
#anuncios .img-fondo .w3-display-left h1,
#anuncios .img-fondo .w3-display-left strong,
#contacto .img-fondo .w3-display-left h1,
#contacto .img-fondo .w3-display-left strong {
    text-shadow: 1px 1px 5px #333
}

#servicios .img-fondo .w3-display-left,
#anuncios .img-fondo .w3-display-left,
#contacto .img-fondo .w3-display-left {
    margin-top: 70px;
}

.info {
    height   : 100%;
    position : absolute;
    width    : 100%;
    max-width: 1100px;
    right    : 50%;
    transform: translateX(50%);
}

#home .banner .bottom {
    bottom         : 20px;
    position       : absolute;
    width          : 100%;
    padding        : 14px;
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    color          : white;
}

.w3-display-left {
    color  : white;
    padding: 14px;
}

#home .banner .social img {
    filter: invert(1);
}

#home #mision strong {
    display   : block;
    text-align: center;
}

#home #necesitas-apoyo,
#servicios #necesitas-apoyo {
    height : auto;
    color  : white;
    padding: 100px 0;
}

#home section:last-of-type {
    margin-bottom: 50px;
}

#home #mision strong {
    text-transform: uppercase;
}

#home #servicios-logistica {
    color    : white;
    position : relative;
    font-size: 20px;
}

#home #servicios-logistica span {
    font-size: 15px;
}

#home #servicios-logistica p:first-of-type {
    margin-top: 20px;
}

#home #servicios-logistica img {
    padding: 100px 0;
    width  : min(100%, 950px);
}

#home #servicios-logistica .contenido {
    padding: 100px 14px;
}

#home #servicios-logistica .btn {
    margin-top: 30px;
}

#servicios .grid {
    gap   : 100px 15px;
    margin: 55px 0;
}

#servicios .grid .servicio-consultoria-img {
    height: 300px;
}

#servicios .grid li:not(:last-of-type) {
    margin-bottom: 20px;
}

footer {
    font-weight: 500;
}

footer .contenido div {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    padding        : 30px 0
}

#btn-collapse {
    display  : none;
    font-size: 2.5em;
    cursor   : pointer;
}

.w3-input {
    border: 1px solid #ccc
}

label {
    display: block;
    margin : 15px 0 10px;
}

input[type="submit"] {
    cursor: pointer;
}

.msj-error {
    color: red;
}

#modal-respuesta .w3-modal,
#modal-proyecto .w3-modal {
    padding: 15px;
}

#modal-contacto .w3-modal-content {
    max-width: 450px;
}

#modal-contacto .w3-container {
    padding: 0.01em 16px 23px;
}

#modal-contacto .w3-modal-content {
    background-color: white;
    border-radius   : 20px;
    margin          : auto;
    padding         : 20px;
}

#modal-contacto .cerrar {
    right    : 10px;
    top      : 0px;
    font-size: 2em;
    cursor   : pointer;
}

.swiper {
    z-index: -1;
    height : 100%;
}

.wa-flotante {
    position: fixed;
    z-index : 10;
    bottom  : 21px;
    right   : 25px;
}

.wa-flotante img {
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.5));
    width : 60px;
}

@media only screen and (min-width:601px) {
    .cflex {
        display: -webkit-flex;
        /* Safari */
        display: flex;
    }
}

@media only screen and (min-width: 771px) {
    #contacto .grid .w3-center {
        margin-top: -100px;
    }
}

@media only screen and (max-width:770px) {
    #btn-collapse {
        display: block;
    }

    #collapse-menu a {
        display      : block;
        margin-bottom: 10px;
    }

    header nav .contenido div div {
        display: none;
    }

    header .logo {
        width: 170px;
    }

    .centrar-small {
        text-align: center !important
    }

    .g-2,
    .g-3 {
        grid-template-columns: 1fr !important;
    }

    #home #la-empresa .img-fondo {
        height: 400px;
    }

    #home #la-empresa h1 {
        margin-bottom: 65px;
    }

    h1 {
        font-size    : 25px;
        margin-bottom: 60px;
    }

    h2 {
        font-size: 20px;
    }

    #home #servicios-logistica hr {
        width: 100%;
    }

    #home #servicios-logistica {
        font-size: 16px;
    }

    #servicios .grid {
        gap: 50px;
    }

    #servicios .grid .img-fondo {
        height: 300px;
    }
}