* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto',Helvetica Neue,Helvetica,Arial,sans-serif;
}

:root {
    --dark: #101115;
    --darkLight: #151B1B;
    --textColor: #FFF;
    --textColorDark: #808892;
    --textColorHint: rgba(255, 255, 255, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark);
    color: white;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100px;
    color: white;
    padding: 25px 6%;
    z-index: 5;
}

header .brand {
    font-size: 2.2em;
    cursor: pointer;
}

header .items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

header .items .item {
    position: relative;
    padding: 7px 0px;
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

header .items .item::before {
    position: absolute;
    left: 50%;
    bottom: 0;
    content: '';
    width: 0%;
    height: 3px;
    transition: .5s;
    background-color: white;
}


header .items .item.active::before,
header .items .item:hover::before {
    left: 0%;
    width: 100%;
}

header ion-icon {
    display: none;
    font-size: 2em;
}

main {
    background: var(--dark);
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 4% 8%;
    overflow: hidden;
}

.principal {
    position: relative;
    background: var(--darkLight);
    width: 100%;
    height: 100vh;
    padding: 0;
}

.principal .carrousel {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.principal .carrousel .container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    width: calc(400vw - 80px);
    height: 100%;
}

.principal .carrousel .container .item {
    position: relative;
    width: calc(100vw - 20px);
    height: 100%;
}

.principal .carrousel .container .item .background {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 100%;
    height: 100%;
}

.principal .carrousel .container .item .background img {
    height: 100%;
    object-fit: cover;
}

.principal .carrousel .container .item .background .point {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
    background: white;
    transition: .5s;
    cursor: pointer;
}

.principal .carrousel .container .item .background .point p {
    color: #333;
    z-index: 5;
}

.principal .carrousel .container .item .background .point span {
    position: absolute;
    left: calc(100% + 20px);
    color: white;
    text-wrap: nowrap;
    transition: .5s;
    z-index: 5;
}

.principal .carrousel .container .item .background .point:hover {
    background: rgba(255, 255, 255, 0.8);
}

.principal .carrousel .container .item .background .point::before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: white;
    transition: .5s;
    z-index: 1;
}

.principal .carrousel .container .item .background .point:nth-child(2):hover::before {
    width: calc(350% + 5px);
}

.principal .carrousel .container .item .background .point:nth-child(3):hover::before {
    width: calc(400% + 20px);
}

.principal .carrousel .container .item .background .point:hover span {
    left: calc(100% - 5px);
    color: #333;
}

.principal .carrousel .container .item .background .point:nth-child(2) {
    top: 29%;
    left: calc(70% - 30px);
}

.principal .carrousel .container .item .background .point:nth-child(3) {
    top: 74.5%;
    left: calc(52.5% - 30px);
}

.principal .carrousel .container .item .content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 50%;
    height: 100%;
    color: white;
    padding: 0 7%;
}

.principal .carrousel .container .item .content h1 {
    font-size: 3.9em;
    letter-spacing: 2px;
}

.principal .carrousel .container .item .content p {
    margin-top: 20px;
    width: 80%;
    font-size: 1.2em;
    color: var(--textColorHint);
}

.principal .carrousel .container .item .video-container {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    width: 450px;
    height: 150px;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.principal .carrousel .container .item .video-container .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 30px;
    width: 100%;
    color: white;
    gap: 10px;
}

.principal .carrousel .container .item .video-container .text p:first-child {
    font-size: 1.2em;
}

.principal .carrousel .container .item .video-container .text p:last-child {
    color: var(--textColorHint);
}

.principal .carrousel .container .item .video-container img {
    height: 100%;
    object-fit: contain;
}

.principal .controls {
    position: absolute;
    top: 0;
    right: 3%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.principal .controls .items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
}

.principal .controls .items .item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: var(--textColorHint);
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    transition: .5s;
    cursor: pointer;
}

.principal .controls .items .item:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.principal .controls .items .item.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.car-brands .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.car-brands .container img {
    width: calc(100%/7 - 160px);
    object-fit: cover;
}

.about {
    width: 100%;
}

.about .content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    color: white;
}

.about .content h2 {
    width: 45%;
}

.about .content p {
    width: 55%;
}

.about .image {
    margin-top: 80px;
    width: 100%;
}

.about .image img {
    width: 100%;
    object-fit: cover;
}

.title {
    font-size: 2.9em;
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
}

.info {
    font-size: 1.5em;
    color: var(--textColorHint);
}

.info span {
    color: white;
    cursor: pointer;
}

.features .info:nth-child(1) {
    text-align: center;
}

.collection .info:nth-child(1) {
    text-align: center;
}

.choices {
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.choices .choice {
    display: flex;
    flex-direction: column;
    width: calc(100%/3 - 20px);
    gap: 20px;
}

.choices .choice .number {
    font-size: 2.1em;
    color: var(--textColorHint);
}

.choices .choice .title {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 2px;
}

.choices .choice .info {
    font-size: 1.3em;
}

.labels {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: calc(100% - 120px);
}

.labels .label-container {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50px;
}

.labels .label-container::before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.labels .label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100%/4);
    height: 100%;
    padding: 20px 0;
    font-size: 1.4em;
    color: var(--textColorHint);
    cursor: pointer;
}

.labels .label::before {
    position: absolute;
    content: '';
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    transition: .5s;
    background-color: white;
}

.labels .label:hover::before {
    left: 0;
    width: 100%;
}

.labels .label:hover,
.labels .label.active {
    color: white;
}

.labels .label.active::before {
    left: 0;
    width: 100%;
}

.cars {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

.cars .car {
    width: calc(100%/3 - 40px);
    background: var(--darkLight);
}

.cars .car img {
    width: 100%;
    object-fit: cover;
}

.cars .car .details {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 20px;
}

.cars .car .details .price {
    font-size: 1.6em;
    font-weight: bold;
    color: orange;
}

.cars .car .details .location {
    position: absolute;
    top: 23px;
    right: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.6);
}

.cars .car .details .price span {
    margin-left: 7px;
    color: white;
}

.cars .car .details .button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
    background: white;
    color: var(--dark);
    font-size: 1.3em;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.button-cars {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 50px;
    gap: 15px;
    padding: 0 30px;
    color: var(--dark);
    font-weight: bold;
    font-size: 1.3em;
    background: white;
    transition: .5s;
    cursor: pointer;
}

.button-cars:hover,
.cars .car .details .button:hover {
    background: rgba(255, 255, 255, 0.6);
}

footer {
    background: var(--darkLight);
    height: 80vh;
}

@media screen and (max-width: 450px) {

    header .items {
        display: none;
    }

    header ion-icon {
        display: block;
    }

    section {
        padding: 20px;
    }

    .principal {
        height: calc(40vh + 150px);
    }
    
    .principal .carrousel .container {
        width: 400vw;
    }
    
    .principal .carrousel .container .item {
        width: 100vw;
    }

    .principal .carrousel .container .item .background {
        height: 40vh;
    }

    .principal .carrousel .container .item .background img {
        width: 100%;
    }
    
    .principal .carrousel .container .item .background .point {
        display: none;
    }

    .principal .carrousel .container .item .content {
        /*display: none;*/
        width: 100%;
        padding: 0 20px;
    }

    .principal .carrousel .container .item .content h1 {
        margin-bottom: 140px;
        font-size: 1.3em;
        width: calc(100% - 40px);
    }

    .principal .carrousel .container .item .content p {
        display: none;
    }

    .principal .carrousel .container .item .video-container {
        justify-content: end;
        width: 100%;
    }

    .car-brands .container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .car-brands .container img {
        width: calc(100%/4 - 30px);
    }

    .about .content {
        flex-direction: column;
    }

    .title {
        text-align: start;
        width: 100%;
        font-size: 1.7em;
    }

    .about .content h2 {
        width: 100%;
    }

    .info {
        text-align: start;
        width: 100%;
        font-size: 1.2em;
    }

    .about .content p {
        width: 100%;
    }
    
    .about .image {
        margin-top: 20px;
    }

    .choices {
        margin-top: 30px;
        flex-direction: column;
        gap: 50px;
    }

    .choices .choice {
        width: 100%;
    }

    .labels {
        justify-content: start;
        width: 100%;
        overflow-x: scroll;
    }

    .labels::-webkit-scrollbar {
        display: none;
    }

    .labels .label-container {
        justify-content: start;
        width: fit-content;
    }

    .labels .label {
        text-wrap: nowrap;
        padding: 0 20px;
        font-size: 1.1em;
    }

    .cars {
        flex-direction: column;
    }

    .cars .car {
        width: 100%;
    }

    .button-cars {
        width: 100%;
    }

}