:root {
    --red: #e31b23;
    --red-dark: #af1016;
    --black: #070707;
    --dark: #101010;
    --card: #161616;
    --border: #2b2b2b;
    --gray: #929292;
    --white: #ffffff;
    --container: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background: var(--black);
    color: white;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
}


/* ===================================================== */
/* HEADER */
/* ===================================================== */

.header {
    height: 95px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5,5,5,.98);
    border-bottom: 1px solid #202020;
}

.header-container {
    max-width: var(--container);
    height: 100%;
    margin: auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ===================================================== */
/* LOGO REAL TR3S */
/* ===================================================== */

.logo {
    width: 220px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.logo-image {
    width: 100%;
    max-width: 220px;
    max-height: 72px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}


/* ===================================================== */
/* NAV */
/* ===================================================== */

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav a:hover {
    color: var(--red);
}

.nav a::after {
    content: "";
    width: 0;
    height: 3px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--red);
    transition: width .25s;
}

.nav a:hover::after {
    width: 100%;
}


/* ===================================================== */
/* WHATSAPP HEADER */
/* ===================================================== */

.header-whatsapp {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #25d366;
    border-radius: 7px;
}

.whatsapp-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: white;
}

.whatsapp-icon svg {
    width: 25px;
    height: 25px;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
}

.whatsapp-text small {
    color: #999;
    font-size: 7px;
}

.whatsapp-text strong {
    margin-top: 3px;
    font-size: 12px;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 25px;
}


/* ===================================================== */
/* SLIDER */
/* ===================================================== */

.hero-slider {
    height: 650px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .8s, visibility .8s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.96),
            rgba(0,0,0,.83) 35%,
            rgba(0,0,0,.35) 65%,
            rgba(0,0,0,.08)
        );
}

.slide-container {
    max-width: var(--container);
    height: 100%;
    margin: auto;
    padding: 0 75px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 720px;
}

.slide-label {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.slide h1 {
    font-size: clamp(54px,6vw,92px);
    line-height: .94;
    letter-spacing: -4px;
}

.slide h1 strong {
    display: block;
    color: var(--red);
}

.slide p {
    max-width: 580px;
    margin-top: 22px;
    color: #d1d1d1;
    font-size: 15px;
    line-height: 1.7;
}

.slide-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ===================================================== */
/* BOTONES */
/* ===================================================== */

.button {
    min-height: 51px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
}

.button-primary {
    background: var(--red);
}

.button-primary:hover {
    background: var(--red-dark);
}

.button-outline {
    border: 1px solid rgba(255,255,255,.7);
}


/* ===================================================== */
/* SLIDER CONTROLES */
/* ===================================================== */

.slider-arrow {
    width: 49px;
    height: 49px;
    position: absolute;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: white;
    font-size: 29px;
}

.slider-arrow:hover {
    background: var(--red);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    z-index: 30;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 20px;
    background: rgba(255,255,255,.5);
}

.slider-dot.active {
    width: 30px;
    background: var(--red);
}


/* ===================================================== */
/* BUSCADOR */
/* ===================================================== */

.search-section {
    padding: 0 25px;
    background: white;
}

.search-box {
    max-width: var(--container);
    margin: auto;
    padding: 17px;
    position: relative;
    top: -35px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4,1fr) 200px;
    gap: 8px;
    background: #111;
    border-radius: 8px;
}

.filter {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #303030;
    background: #171717;
}

.filter label {
    color: #777;
    font-size: 8px;
}

.filter select {
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.filter option {
    color: black;
}

.search-button {
    border: 0;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 800;
}


/* ===================================================== */
/* SERVICIOS */
/* ===================================================== */

.services {
    padding: 5px 25px 45px;
    background: white;
    color: #111;
}

.services-container {
    max-width: var(--container);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.service {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #ddd;
}

.service:last-child {
    border-right: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
    border-radius: 50%;
    color: var(--red);
    font-weight: 800;
}

.service h3 {
    font-size: 10px;
}

.service p {
    margin-top: 5px;
    color: #666;
    font-size: 10px;
}


/* ===================================================== */
/* SECCIONES */
/* ===================================================== */

.section-container {
    max-width: var(--container);
    margin: auto;
}

.section-label {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-header {
    margin: 7px 0 35px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2,
.about h2,
.contact h2 {
    font-size: clamp(32px,4vw,53px);
}

.section-header strong,
.about h2 strong,
.contact h2 strong {
    color: var(--red);
}


/* ===================================================== */
/* VEHÍCULOS */
/* ===================================================== */

.vehicles-section {
    padding: 80px 25px 100px;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.vehicle-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--card);
    cursor: pointer;
    transition: transform .25s, border-color .25s;
}

.vehicle-card:hover {
    transform: translateY(-6px);
    border-color: #555;
}

.vehicle-image-container {
    height: 225px;
    overflow: hidden;
    position: relative;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-status {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 6px 9px;
    background: var(--red);
    border-radius: 3px;
    font-size: 8px;
    font-weight: 800;
}

.vehicle-body {
    padding: 18px;
}

.vehicle-brand {
    color: #777;
    font-size: 9px;
}

.vehicle-name {
    margin-top: 4px;
    font-size: 17px;
    text-transform: uppercase;
}

.vehicle-info {
    margin: 14px 0;
    padding: 13px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
}

.vehicle-info div {
    display: flex;
    flex-direction: column;
}

.vehicle-info span {
    color: #777;
    font-size: 8px;
}

.vehicle-info strong {
    margin-top: 3px;
    font-size: 10px;
}

.vehicle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-price {
    color: var(--red);
    font-size: 17px;
    font-weight: 800;
}

.vehicle-view {
    padding: 9px 12px;
    border: 1px solid #444;
    background: transparent;
    color: white;
    font-size: 9px;
    font-weight: 700;
}


/* ===================================================== */
/* NOSOTROS */
/* ===================================================== */

.about {
    padding: 100px 25px;
    background: #f4f4f4;
    color: #151515;
}

.about-container {
    max-width: var(--container);
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
}

.about p {
    margin-top: 20px;
    color: #555;
    line-height: 1.8;
}

.about-card {
    padding: 40px;
    background: #111;
    color: white;
}

.about-card > span {
    color: var(--red);
    font-size: 9px;
}

.about-card h3 {
    margin-top: 12px;
    font-size: 25px;
}

.about-card p {
    margin-bottom: 25px;
    color: #aaa;
}


/* ===================================================== */
/* CONTACTO */
/* ===================================================== */

.contact {
    padding: 90px 25px;
}

.contact-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.contact-grid article {
    padding: 25px;
    border: 1px solid #292929;
    background: #111;
}

.contact-grid span {
    color: var(--red);
    font-size: 8px;
}

.contact-grid h3 {
    margin-top: 12px;
    font-size: 14px;
}

.contact-grid p {
    margin-top: 7px;
    color: #999;
    font-size: 10px;
}

.second-contact {
    margin-top: 16px !important;
}


/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.footer {
    padding: 30px 25px;
    background: #050505;
    border-top: 1px solid #222;
}

.footer-container {
    max-width: var(--container);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 9px;
}

.footer-logo {
    width: 180px;
}

.footer-logo img {
    width: 100%;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
}


/* ===================================================== */
/* WHATSAPP */
/* ===================================================== */

.floating-whatsapp {
    width: 62px;
    height: 62px;
    position: fixed;
    z-index: 1000;
    right: 23px;
    bottom: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: white;
}

.floating-whatsapp svg {
    width: 36px;
}


/* ===================================================== */
/* MODAL */
/* ===================================================== */

.vehicle-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.vehicle-modal.open {
    display: flex;
}

.vehicle-modal-background {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.90);
    backdrop-filter: blur(7px);
}

.vehicle-modal-window {
    width: min(1180px,100%);
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    background: #111;
    border: 1px solid #333;
    border-radius: 9px;
}

.modal-close {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 20;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: white;
    font-size: 26px;
}

.modal-gallery {
    background: #080808;
}

.modal-main-image-container {
    height: 570px;
    position: relative;
    overflow: hidden;
    background: #161616;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-arrow {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: white;
    font-size: 29px;
}

.gallery-arrow:hover {
    background: var(--red);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    position: absolute;
    right: 20px;
    bottom: 17px;
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,.7);
    font-size: 10px;
}

.gallery-thumbnails {
    padding: 15px;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    background: #0d0d0d;
}

.gallery-thumbnail {
    width: 105px;
    height: 70px;
    flex: 0 0 105px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-thumbnail.active {
    border-color: var(--red);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-information {
    padding: 38px;
}

.modal-brand {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.modal-title {
    margin-top: 5px;
    font-size: 34px;
    text-transform: uppercase;
}

.modal-version {
    margin-top: 5px;
    color: #aaa;
}

.modal-specs {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.modal-spec {
    padding: 15px;
    border: 1px solid #292929;
    background: #171717;
}

.modal-spec span {
    display: block;
    color: #777;
    font-size: 8px;
}

.modal-spec strong {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.modal-price {
    margin-top: 28px;
    color: var(--red);
    font-size: 30px;
    font-weight: 900;
}

.modal-equipment {
    margin-top: 25px;
    color: #bbb;
    line-height: 1.8;
    white-space: pre-line;
}

.modal-buttons {
    margin-top: 28px;
}


/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media(max-width:1050px) {

    .header-whatsapp {
        display: none;
    }

    .vehicles-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .services-container {
        grid-template-columns: repeat(2,1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .search-box {
        grid-template-columns: repeat(2,1fr);
    }

    .search-button {
        min-height: 55px;
        grid-column: 1/-1;
    }
}


@media(max-width:750px) {

    .header {
        height: 75px;
    }

    .header-container {
        padding: 0 20px;
    }

    .logo {
        width: 155px;
        height: 60px;
    }

    .logo-image {
        max-width: 155px;
        max-height: 58px;
    }

    .menu-button {
        display: block;
    }

    .nav {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        height: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        background: #080808;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        height: auto;
        padding: 15px 0;
    }

    .hero-slider {
        height: 600px;
    }

    .slide-container {
        padding: 0 23px 80px;
        align-items: flex-end;
    }

    .slide h1 {
        font-size: 47px;
        letter-spacing: -2px;
    }

    .slider-arrow {
        display: none;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .search-button {
        grid-column: auto;
    }

    .services-container,
    .vehicles-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .modal-main-image-container {
        height: 330px;
    }

    .modal-specs {
        grid-template-columns: repeat(2,1fr);
    }

    .vehicle-modal {
        padding: 8px;
    }

    .footer-logo {
        width: 130px;
    }
}