﻿/* =========================
   PORTADA FLOTILLAS
   ========================= */

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

.fleet-home {
    width: 100%;
    min-height: 100vh;
    background: #020124;
    display: flex;
    flex-direction: column;
}


/* Slider */

.fleet-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 145px);
    min-height: 600px;
    overflow: hidden;
    background: #020124;
}

.fleet-carousel .carousel-inner,
.fleet-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.fleet-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* Degradado inferior */

.fleet-carousel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34%;
    background:
        linear-gradient(
            to bottom,
            rgba(2, 1, 36, 0) 0%,
            rgba(2, 1, 36, .18) 35%,
            rgba(2, 1, 36, .86) 100%
        );
}


/* Tarjeta */

.fleet-request-card {
    position: absolute;
    z-index: 3;
    top: 8%;
    left: 6.1%;

    width: 515px;
    max-width: calc(100% - 60px);

    padding: 36px 25px 32px;

    background: #fff;
    color: #14213d;

    border-radius: 15px;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, .18);
}

.fleet-request-card h1 {
    margin: 0 0 21px;

    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(29px, 2.5vw, 38px);
    line-height: 1.1;
    font-weight: 700;
}

.fleet-request-card p {
    margin: 0 0 32px;

    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(25px, 2.4vw, 37px);
    line-height: 1.4;
    font-weight: 400;
}

.fleet-request-btn {
    width: 242px;
    height: 57px;

    padding: 0 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    border-radius: 7px;

    background:
        linear-gradient(
            161.34deg,
            #5221a8 4.1%,
            #174bdc 95.44%
        );

    color: #fff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition:
        transform .2s ease,
        filter .2s ease;
}

.fleet-request-btn:hover {
    color: #fff;
    filter: brightness(1.08);
}

.fleet-request-btn:active {
    transform: scale(.98);
}

.fleet-arrow {
    font-size: 31px;
    line-height: 1;
    font-weight: 300;
}


/* Navegación */

.fleet-slide-info {
    position: absolute;
    z-index: 4;

    right: 6%;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 13px;

    color: #fff;

    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
}

.fleet-nav {
    position: static;

    width: 26px;
    height: 35px;

    padding: 0;

    opacity: 1;

    background: transparent;
    border: 0;

    color: #fff;
}

.fleet-nav span:first-child {
    font-size: 34px;
    line-height: 1;
    font-weight: 200;
}

.fleet-counter {
    min-width: 35px;
    text-align: center;
}


/* Marcas */

.fleet-brands {
    position: relative;
    z-index: 5;

    min-height: 145px;

    display: flex;
    align-items: center;

    background: #020124;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.fleet-brands-inner {
    width: min(1280px, calc(100% - 80px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 38px;
}

.fleet-brand {
    flex: 1 1 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.fleet-brand img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 66px;

    object-fit: contain;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {

    .fleet-carousel {
        height: calc(100vh - 125px);
        min-height: 620px;
    }

    .fleet-request-card {
        left: 30px;
        top: 35px;

        width: 430px;
    }

    .fleet-request-card p {
        font-size: 28px;
    }

    .fleet-brands {
        min-height: 125px;
    }

    .fleet-brands-inner {
        width: calc(100% - 35px);
        gap: 22px;
    }

    .fleet-brand img {
        max-height: 48px;
    }
}


@media (max-width: 767.98px) {

    .fleet-brands {
        min-height: 105px;
        width: 100%;
        overflow: hidden;
    }

    .fleet-brands-inner {
        width: 100%;
        margin: 0;
        padding: 0 15px;

        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .fleet-brands-inner::-webkit-scrollbar {
        display: none;
    }

    .fleet-brand {
        flex: 0 0 33.3333%;
        min-width: 33.3333%;

        display: flex;
        align-items: center;
        justify-content: center;

        scroll-snap-align: start;
    }

    .fleet-brand img {
        width: auto;
        max-width: 105px;
        max-height: 48px;
        object-fit: contain;
    }
}

@media (max-width: 575.98px) {

    .fleet-brand {
        flex-basis: 50%;
        min-width: 50%;
    }

    .fleet-brand img {
        max-width: 110px;
    }
}


@media (max-width: 575.98px) {

    .fleet-carousel {
        min-height: 610px;
    }

    .fleet-request-card {
        top: 18px;
    }

    .fleet-request-card h1 {
        font-size: 23px;
    }

    .fleet-request-card p {
        font-size: 20px;
        line-height: 1.35;
    }

    .fleet-request-btn {
        width: 190px;
    }

    .fleet-slide-info {
        max-width: calc(100% - 36px);
        left: auto;
        right: 18px;
    }
}


.fleet-carousel .carousel-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.fleet-banner {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
