@media screen and (min-width: 1025px) {
    .hide-dt {
        display:none;
    }

    .head-tools {
        height: 100%;
    }
}

@media screen and (max-width: 768px) {
    html, body {
        font-size: 15px;
    }
}

@media screen and (max-width: 1024px) {
    body:has(.header .mobile-drawer.is-open) {
        height: 100dvh;
        overflow: hidden;
    }

    .lg-h2 {
        font-size: 3rem;
    }

    br {
        display: none;
    }

    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .grid--1-col-mb {
        grid-template-columns: 1fr;
    }

    .lg-mar-top {
        margin-top: 80px;
    }

    .v-flex-mb {
        display: flex;
        flex-flow: column;
        gap: 20px;
    }

    .v-flex--reverse-mb {
        display: flex;
        flex-flow: column-reverse;
        padding: 20px;
        gap: 20px;
        margin-top: 0;
    }

    .sm-pad-all {
        padding: 20px;
    }

    form {
        padding: 0;
    }

    .main-menu {
        flex-flow: column;
        align-items: flex-start;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .form-container {
        padding: 40px 30px !important;
        margin-bottom: 30px;
    }

    form label {
        gap: 20px !important;
    }

    form button {
        width: 100%;
    }

    .divider {
        margin: 30px 0;
    }

    .hide-mb {
        display: none;
    }

    .header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .mobile-drawer .menu--item, .mobile-drawer .dropdown {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--color-bright);
        height: 40px;
        display: flex;
        align-items: center;
        min-width: 100%;
        min-height: 60px;
        flex-flow: row nowrap;
        gap: 1rem;
        justify-content: flex-start;
        font-size: 1rem;
    }

    .dropdown:has(.dropdown-content.open) {
        height: auto;
        min-height: unset;
        display: block;
    }

    a.dropbtn.menu--item.heading {
        transform: none !important;
    }

    .page-padding {
        padding-left: 20px;
        padding-right: 20px;
    }

    .w-90-mb {
        width: 90%;
        height: auto;
        max-height: 200px;
        margin: 20px auto;
    }

    .sm-pad-bottom {
        padding-bottom: 20px;
    }

    .grid-col--span12-mb {
        grid-column: span 12;
    }

    .v-flex--center-mb {
        display: flex;
        flex-flow: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-nav {
        flex-flow: column;
        gap: 0;
    }

    .footer-nav .v-flex--top {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--color-bright);
    }

    .footer-nav .v-flex--top:first-of-type {
        padding-top: 0;
    }

    .footer-nav h3 {
        font-weight: 700;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .footer-nav h3 span {
        width: 14px;
    }

    .footer-submenu.is-open {
        display: flex;
        flex-flow: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .slide.grid.grid--12-col.v-flex-mb {
        min-height: unset;
        max-height: unset;
        background-size: contain !important;
        background-position: top !important;
    }

    .slider-content.grid-col--span5 {
        padding: 50px 30px;
        margin-top: 30dvh;
        gap: 20px;
        border-radius: 0;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 20px 30px;
    }

    .search-title {
        padding: 40px 20px;
    }

    .grid--col.col-overlay {
        width: 100%;
        transform: none;
        padding: 50px 20px 0;
        max-width: 290px;
        text-align: center;
        margin: 0 auto;
        position: static;
    }

    .col-overflown {
        position: static !important;
        padding: 30px 20px;
    }

    .static-mb {
        position: static;
        transform: none;
        margin-top: 1rem
    }

    .full-w-mb {
        width: 100%;
        max-width: unset;
    }

    .overlay-top {
        margin-top:0;
    }

    .no-pad-mb {
        padding: 0 !important;
    }

    section.md-pad-top.sm-pad-bottom.bg-highlight {
        padding: 50px 20px;
    }

    .md-pad-bottom {
        padding-bottom: 50px;
    }
    .md-pad-top {
        padding-top: 50px;
    }

    .sm-pad-sides-mb {
        padding-left: 20px;
        padding-right: 20px;
    }

    .order-2-mb {
        order: 2;
    }

    .no-pad-bottom-mb {
        padding-bottom: 0;
    }

    h2 {
        font-size: 2.5rem;
    }

    .more-articles {
        grid-column: span 4;
        order: 2;
        padding: 0;
    }

    .article-list-title {
        padding-bottom: 1rem;
    }

    .more-articles h3 {
        padding-bottom: 0;
    }

    .featured-articles {
        grid-column: span 4;
        order: 1;
        margin-bottom: 50px;
    }

    .post {
        background-size: 100% 20rem !important;
        background-position: top center !important;
    }

    .top-20r-mb {
        margin-top: 20rem;
    }

    .post .sm-pad-mb {
        padding: 40px 20px;
    }

    .sm-pad-mb {
        padding: 50px 20px;
    }

    .modal-content {
        width: 90dvw;
        padding: 50px 20px;
    }

    thead tr, tbody tr {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: flex-start;
        padding: .5rem;
    }

    table {
        display: flex;
        flex-flow: row nowrap;
        min-width: 100%;
        margin: 0;
    }

    thead {
        flex: 1;
    }

    tbody {
        flex: 1 0 auto;
    }

    .close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .modal-login .modal-content, .modal-psw .modal-content {
        width: 100%;
        min-width: unset;
        max-width: 90dvw;
    }

    .other-login {
        flex-flow: column;
        align-items: center;
        gap: 10px;
    }

    button#loginBtn.hide-mb {
        display: none;
    }

    button#loginBtn {
        background: var(--color-foreground);
        border-radius: 50px;
        margin-top: 2rem;
        width: 100%;
        gap: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px;
    }

    button#loginBtn .menu--item.heading {
        border: none;
        justify-content: center;
        height: unset;
        width: unset;
        min-width: unset;
    }

    .dropdown .menu--item {
        border: none;
    }

    .dropdown-content {
        display: flex;
        flex-flow: column;
        align-items: flex-start;
        height: 0;
        overflow: hidden;
        position: relative;
        box-shadow: none;
        margin: 0;
        transition: all ease .3s;
        gap: 0;
    }

    .dropdown-content.open {
        height: auto;
        margin: 0 0 1rem 1rem;
        top: 0;
    }

    .dropdown-content a {
        padding: 0;
        height: 50px;
        display: flex;
        align-items: center;
        font-size: 1rem;
    }

    .dropdown:has(.dropdown-content.open) img {
        transform: rotate(180deg);
    }

    .menu--item:hover, .nosotros #nosotros, .rastreo #rastreo, .sucursales #sucursales, .servicios-logisticos #servicios-logisticos, .logistica-verde #logistica-verde, .blog #blog, .contacto #contacto {
        transform: none;
        text-decoration: underline !important;
        text-underline-offset: 8px;
        text-decoration-thickness: 1px !important;
    }

    .max-w-240-mb {
        max-width: 240px;
    } 
    
    .center-mb {
        margin: 0 auto;
    }

    .sucursales + .body article, .blog + .body article {
        box-shadow: 0px 6px 6px rgba(0,0,0,0.05);
    }

    .rastreo + .body .bg-left {
        background-size: auto 32dvh !important;
        background-repeat: no-repeat;
        height: auto;
        background-position: top;
        display: block;
        padding-top: 32dvh;
        min-height: unset;
    }

    .recent-posts article .image-container {
        height: 18rem;
    }

    .blog + .body .article-content {
        padding: 20px;
    }

    .page-logo {
        position: relative;
        z-index: 99999;
    }

    .hero-slider .slide {
        height: 100dvh;
        gap: 0;
    }

    .bg-video {
        position: relative;
    }

    .slider-content.grid-col--span5 {
        margin: 0;
    }

    .main-menu {
        overflow-y: auto;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .main-menu::-webkit-scrollbar {
        display: none;
    }

    .header-tools {
        display: flex;
        flex-flow: row nowrap;
        gap: 1rem;
        margin: 2rem 0;
        width: 100%;
        max-width: 100dvw;
    }

    .header-tools a.menu--item.heading {
        width: 100%;
        min-width: unset;
        background: none;
        border: 1px solid var(--color-background);
        border-radius: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: column;
        padding: 0;
        height: 80px;
        min-height: unset !important;
        transition: all ease-in-out .5s;
    }

    .header-tools .menu--item span.menu--item {
        padding: 0;
        display: block;
        width: auto;
        text-align: center;
        height: auto;
        min-width: unset;
        min-height: unset;
        text-decoration: none !important;
        border: none !important;
    }

    .header-tools {
        gap: 10px;
        margin: 2rem 0 0;
    }

    .header-tools a.menu--item.heading {
        padding: 0;
        height: 50px;
    }

    .rastreo + .body .bg-left {
        background-size: 100% !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    html, body {
        font-size: 20px !important;
    }

    .header {
        height: 100px;
    }

    .menu-toggle {
        display: block;
    }

    .page-padding {
        padding-left: 30px;
        padding-right: 30px;
    }

    .mobile-drawer {
        padding: 30px;
    }

    .mobile-drawer .menu--item, .mobile-drawer .dropdown, .dropdown-content a  {
        padding: 2rem 0;
    }

    .slide.grid.grid--12-col.bg-left.bg-50w.v-flex-mb {
        background-repeat: no-repeat;
        background-position: top left !important;
        height: auto;
    }

    .slide.bg-50vw .slider-content {
        width: 50%;
        height: 100%;
    }
    
    .col-overflown, .sm-pad-all {
        padding: 30px;
    }

    button#loginBtn {
        margin-top: 2rem;
    }

    .slider-content.grid-col--span5.grid-half-right.full-height {
        margin: 0;
        width: 50%;
    }

    .btn {
        width: auto;
        text-align: center;
        padding: 20px 60px;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1rem auto;
    }

    .grid-tb {
        display: grid;
    }

    .grid--col.col-overlay {
        max-width: 50dvw;
    }

    .txt-center-tb { text-align: center; }

    .full-w-tb {
        max-width: unset !important;
        width: 100%;
    }    
    
    .align-center-tb {
        align-items: center;
    }

    .rastreo + .body .bg-left, .logistica-verde + .body .bg-left {
        background-size: auto 50dvh !important;
        padding-top: 50dvh;
        background-repeat: no-repeat;
        background-position: top left;
    }

    .rastreo-form button {
        width: 100%;
        margin: 0;
    }

    .two-col-tb {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .max-w-30r-tb {
        max-width: 30rem;
        margin: 0 auto;
    }

    .shadow-tb {
        box-shadow: 0 45px 20px -43px rgba(0, 0, 0, 0.1);
    }

    .bg-50h-tb {
        max-height: 50dvh;
    }

    .lg-mar-bottom-tb {
        margin-bottom: 5rem;
    }

    div#posts-recent {
        flex-flow: row nowrap;
    }

    div#posts-articles {
        flex-flow: row wrap;
    }

    div#posts-recent article, div#posts-articles article {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .no-overflow-tb {
        overflow: hidden;
    }
}