: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;
    }
}


/* ===================================================== */
/* TR3S - ACTUALIZACIÓN VISUAL V2                         */
/* Mantiene estructura y funcionamiento original          */
/* ===================================================== */

:root {
    --red: #e31b23;
    --red-dark: #b90f16;
    --black: #111214;
    --dark: #1b1d20;
    --card: #ffffff;
    --border: #dedfe2;
    --gray: #6f7379;
    --white: #ffffff;
    --light: #f3f3f1;
    --light-2: #e9e9e6;
    --container: 1400px;
}

body {
    background: #f4f4f2;
    color: #151619;
}

/* HEADER: grafito, no negro plano */
.header {
    height: 88px;
    background: linear-gradient(90deg, #191b1e 0%, #25282c 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.header-container {
    padding: 0 32px;
}

.nav a {
    color: #f2f2f2;
    letter-spacing: .35px;
}

.header-whatsapp {
    background: rgba(37,211,102,.07);
    border-color: rgba(37,211,102,.55);
    border-radius: 999px;
}

/* HERO: foto protagonista, sin capa negra pesada */
.hero-slider {
    height: 620px;
    background: #2b2d31;
}

.slide {
    background: #2b2d31;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.01);
    transition: transform 7s ease;
}

.slide.active .slide-image {
    transform: scale(1.035);
}

.slide-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(18,19,21,.78) 0%,
            rgba(18,19,21,.57) 31%,
            rgba(18,19,21,.18) 58%,
            rgba(18,19,21,.02) 82%
        ),
        linear-gradient(
            0deg,
            rgba(18,19,21,.18) 0%,
            transparent 35%
        );
}

.slide-container {
    padding: 0 78px;
}

.slide-content {
    max-width: 650px;
    padding: 34px 38px 38px 0;
}

.slide-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
    color: #fff;
    font-size: 10px;
    letter-spacing: 2px;
}

.slide-label::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--red);
}

.slide h1 {
    max-width: 620px;
    color: #fff;
    font-size: clamp(50px,5.3vw,82px);
    line-height: .94;
    letter-spacing: -3px;
    text-shadow: 0 5px 24px rgba(0,0,0,.20);
}

.slide p {
    max-width: 520px;
    color: rgba(255,255,255,.84);
    font-size: 13px;
}

.button {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    letter-spacing: .5px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    box-shadow: 0 10px 24px rgba(227,27,35,.26);
}

.button-outline {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
}

.slider-arrow {
    background: rgba(26,28,31,.48);
    backdrop-filter: blur(8px);
}

.slider-dots {
    bottom: 22px;
}

.slider-dot {
    width: 22px;
    height: 3px;
    border-radius: 10px;
}

.slider-dot.active {
    width: 48px;
}

/* BUSCADOR */
.search-section {
    background: #f4f4f2;
}

.search-box {
    top: -31px;
    padding: 12px;
    background: #24272b;
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(23,24,27,.18);
}

.filter {
    min-height: 60px;
    border-color: #3a3d42;
    border-radius: 8px;
    background: #2d3035;
}

.filter label {
    color: #9da1a8;
    font-weight: 700;
    letter-spacing: .8px;
}

.search-button {
    border-radius: 8px;
}

/* BENEFICIOS */
.services {
    padding: 10px 25px 62px;
    background: #f4f4f2;
}

.services-container {
    gap: 10px;
}

.service {
    min-height: 112px;
    padding: 22px;
    border: 1px solid #dfdfdc;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(17,18,20,.045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(17,18,20,.09);
}

.service:last-child {
    border-right: 1px solid #dfdfdc;
}

.service-icon {
    border: 0;
    border-radius: 10px;
    background: #f9e9ea;
}

.service h3 {
    font-size: 10px;
    letter-spacing: .4px;
}

.service p {
    font-size: 9px;
    line-height: 1.5;
}

/* TITULOS */
.section-label {
    font-size: 9px;
}

.section-header h2,
.about h2,
.contact h2,
.financing h2 {
    color: #151619;
    font-size: clamp(36px,4vw,56px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.contact h2 {
    color: #fff;
}

/* FINANCIACION REAL */
.financing {
    padding: 92px 25px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 10%, rgba(227,27,35,.06), transparent 30%),
        #ffffff;
    color: #151619;
}

.financing::after {
    content: "TR3S";
    position: absolute;
    right: -20px;
    bottom: -92px;
    color: rgba(20,21,24,.025);
    font-size: 250px;
    font-weight: 900;
    letter-spacing: -18px;
    pointer-events: none;
}

.financing-container {
    max-width: var(--container);
    margin: auto;
    position: relative;
    z-index: 1;
}

.financing-heading {
    max-width: 780px;
}

.financing-heading h2 {
    margin-top: 8px;
}

.financing-heading h2 strong {
    color: var(--red);
}

.financing-heading > p {
    max-width: 680px;
    margin-top: 18px;
    color: #666a70;
    font-size: 13px;
    line-height: 1.75;
}

.financing-grid {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.finance-card {
    min-height: 190px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e2e4;
    border-radius: 14px;
    background: #f7f7f5;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.finance-card:hover {
    transform: translateY(-5px);
    border-color: #d2d3d6;
    box-shadow: 0 16px 34px rgba(20,21,24,.09);
}

.finance-index {
    display: block;
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.finance-card h3 {
    margin-top: 28px;
    font-size: 15px;
    text-transform: uppercase;
}

.finance-card p {
    margin-top: 10px;
    color: #6e7278;
    font-size: 10px;
    line-height: 1.65;
}

.financing-cta {
    margin-top: 18px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: 14px;
    background:
        linear-gradient(100deg, #222428, #303339);
    color: #fff;
}

.financing-cta > div > span {
    color: #ff5c62;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.financing-cta h3 {
    margin-top: 7px;
    font-size: 22px;
}

.financing-cta p {
    margin-top: 6px;
    color: #b7bac0;
    font-size: 9px;
}

/* STOCK: fondo claro y tarjetas más de concesionaria */
.vehicles-section {
    padding: 92px 25px 108px;
    background: #eeeeeb;
    color: #151619;
}

.vehicles-grid {
    gap: 16px;
}

.vehicle-card {
    border: 1px solid #d8d9dc;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(20,21,24,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vehicle-card:hover {
    transform: translateY(-6px);
    border-color: #c9cbd0;
    box-shadow: 0 18px 38px rgba(20,21,24,.12);
}

.vehicle-image-container {
    height: 235px;
    background: #e5e5e3;
}

.vehicle-status {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(25,27,30,.86);
    color: #fff;
    backdrop-filter: blur(6px);
}

.vehicle-brand {
    color: var(--red);
    font-weight: 800;
    letter-spacing: 1px;
}

.vehicle-name {
    color: #151619;
    font-size: 19px;
}

.vehicle-info {
    border-color: #e6e6e6;
}

.vehicle-info span {
    color: #92969c;
}

.vehicle-info strong {
    color: #42454a;
}

.vehicle-price {
    color: #151619;
    font-size: 19px;
}

.vehicle-view {
    border: 0;
    border-radius: 999px;
    background: #ededeb;
    color: #222428;
}

.vehicle-card:hover .vehicle-view {
    background: var(--red);
    color: #fff;
}

/* NOSOTROS */
.about {
    padding: 100px 25px;
    background:
        linear-gradient(115deg, #fafafa 0%, #f0f0ed 100%);
}

.about-card {
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(227,27,35,.28), transparent 34%),
        #24262a;
    box-shadow: 0 18px 45px rgba(20,21,24,.16);
}

.about-card::after {
    content: "";
    width: 8px;
    position: absolute;
    inset: 0 0 0 auto;
    background: var(--red);
}

/* CONTACTO: grafito en vez de negro */
.contact {
    padding: 92px 25px;
    background:
        linear-gradient(135deg, #24262a 0%, #303338 100%);
    color: #fff;
}

.contact-grid article {
    min-height: 165px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.contact-grid article::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--red);
}

.contact-grid h3 {
    color: #fff;
}

.contact-grid p {
    color: #b2b5ba;
}

/* CIERRE */
.closing-strip {
    padding: 0 25px;
    background: #303338;
}

.closing-strip-inner {
    max-width: var(--container);
    margin: auto;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #fff;
}

.closing-strip-inner div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.closing-strip-inner div span {
    color: #ff5c62;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.closing-strip-inner strong {
    font-size: 15px;
}

.closing-strip-inner > a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.closing-strip-inner > a span {
    color: var(--red);
    font-size: 20px;
}

/* FOOTER */
.footer {
    background: #1b1d20;
    border-top: 0;
}

.footer-container {
    color: #8e9298;
}

/* MODAL: se mantiene oscuro para que las fotos destaquen */
.vehicle-modal-window {
    border-radius: 13px;
    background: #202226;
}

.modal-information {
    background: #202226;
}

.modal-spec {
    border-radius: 8px;
    background: #292c31;
}

/* ===================================================== */
/* RESPONSIVE V2 */
/* ===================================================== */

@media(max-width:1050px) {
    .financing-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media(max-width:750px) {
    .header {
        height: 75px;
    }

    .nav {
        background: #202226;
    }

    .hero-slider {
        height: 650px;
    }

    /* En celular se muestra la foto completa arriba para evitar cortar el auto */
    .slide-image {
        height: 56%;
        object-fit: contain;
        object-position: center center;
        background: #34373b;
    }

    .slide-overlay {
        background:
            linear-gradient(
                0deg,
                #25272b 0%,
                rgba(37,39,43,.97) 38%,
                rgba(37,39,43,.38) 63%,
                rgba(37,39,43,.06) 100%
            );
    }

    .slide-container {
        padding: 0 22px 66px;
        align-items: flex-end;
    }

    .slide-content {
        max-width: 100%;
        padding: 0;
    }

    .slide h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .slide p {
        font-size: 11px;
    }

    .search-section,
    .services {
        padding-left: 16px;
        padding-right: 16px;
    }

    .financing {
        padding: 70px 16px;
    }

    .financing-grid {
        grid-template-columns: 1fr;
    }

    .finance-card {
        min-height: 150px;
    }

    .finance-card h3 {
        margin-top: 18px;
    }

    .financing-cta {
        padding: 26px 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicles-section {
        padding: 72px 16px 82px;
    }

    .about,
    .contact {
        padding-left: 16px;
        padding-right: 16px;
    }

    .closing-strip {
        padding: 0 16px;
    }

    .closing-strip-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media(max-width:480px) {
    .hero-slider {
        height: 620px;
    }

    .slide-image {
        height: 50%;
    }

    .slide h1 {
        font-size: 41px;
    }

    .slide-actions .button {
        width: 100%;
    }

    .financing-cta .button {
        width: 100%;
    }
}


/* ===================================================== */
/* FIX HEADER WHATSAPP - CONTRASTE Y LEGIBILIDAD          */
/* ===================================================== */

.header-whatsapp {
    background: #25282c !important;
    border: 1px solid #25d366 !important;
}

.header-whatsapp .whatsapp-text small {
    color: #c9cbd0 !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
}

.header-whatsapp .whatsapp-text strong {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .2px !important;
}

.header-whatsapp:hover {
    background: #202327 !important;
}


/* AJUSTE CONTACTO: solo igualar segundo numero y email al primer numero */
.contact-grid article:last-child p {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* ===================================================== */
/* WHATSAPP FLOTANTE - SELECTOR DE DOS NÚMEROS           */
/* ===================================================== */

.floating-whatsapp-wrapper {
    position: fixed;
    z-index: 1000;
    right: 23px;
    bottom: 23px;
}

.floating-whatsapp-wrapper .floating-whatsapp {
    position: relative;
    right: auto;
    bottom: auto;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.floating-whatsapp-menu {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 220px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #2f3236;
    border-radius: 14px;
    background: #151719;
    box-shadow: 0 14px 36px rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.floating-whatsapp-wrapper.open .floating-whatsapp-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-whatsapp-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    background: #202326;
    color: #fff;
    text-decoration: none;
    transition: background .18s ease;
}

.floating-whatsapp-menu a:hover {
    background: #292d31;
}

.floating-whatsapp-menu span {
    display: block;
    margin-bottom: 3px;
    color: #25d366;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.floating-whatsapp-menu strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 750px) {
    .floating-whatsapp-wrapper {
        right: 18px;
        bottom: 18px;
    }
}

/* TECHLAB+ development credit */
.footer-meta {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}
.developer-credit {
    color: #a9adb3;
    letter-spacing: .02em;
}
.developer-credit strong {
    color: #fff;
    font-weight: 800;
}
@media (max-width: 700px) {
    .footer-container {
        gap: 18px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-meta {
        align-items: center;
    }
}


/* =====================================================
   INSTAGRAM
===================================================== */
.instagram-section{
    padding:84px 20px;
    background:#f6f6f6;
}
.instagram-container{
    max-width:1180px;
    margin:0 auto;
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(320px,1.2fr);
    gap:48px;
    align-items:center;
}
.instagram-copy h2{
    margin:10px 0 16px;
    font-size:clamp(32px,4vw,52px);
    line-height:1.04;
}
.instagram-copy p{
    max-width:520px;
    line-height:1.7;
    color:#4e4e4e;
    margin-bottom:24px;
}
.instagram-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 20px;
    border-radius:10px;
    background:#111;
    color:#fff;
    text-decoration:none;
    font-weight:700;
}
.instagram-button:hover{opacity:.88}
.instagram-embed-card{
    width:100%;
    display:flex;
    justify-content:center;
    min-height:220px;
}
.instagram-fallback{
    min-height:220px;
    width:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:8px;
    text-align:center;
    text-decoration:none;
    color:#111;
    border:1px solid #e0e0e0;
    border-radius:18px;
    background:#fff;
    padding:28px;
}
.instagram-fallback strong{font-size:24px}
.instagram-fallback span{color:#666}
@media(max-width:820px){
    .instagram-section{padding:60px 16px}
    .instagram-container{grid-template-columns:1fr;gap:28px}
    .instagram-copy{text-align:center}
    .instagram-copy p{margin-left:auto;margin-right:auto}
}


/* ===================================================== */
/* TR3S - AJUSTES UX SOLICITADOS 24/09/2026              */
/* ===================================================== */

.vehicle-view{
    min-width: 98px;
    min-height: 42px;
    padding: 12px 18px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .4px;
    border-radius: 999px;
}

.vehicle-modal-window,
.modal-information{
    background:#202226 !important;
    color:#fff !important;
}

.modal-information{
    padding: 40px !important;
}

.modal-brand{
    color:#ff4148 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.modal-title{
    color:#fff !important;
    font-size: clamp(30px,3vw,46px) !important;
    line-height:1.05;
    font-weight:900 !important;
}

.modal-spec{
    background:#292c31 !important;
    border:1px solid rgba(255,255,255,.12) !important;
    padding:18px !important;
}

.modal-spec span{
    color:#b9bdc5 !important;
    font-size:10px !important;
    font-weight:600;
}

.modal-spec strong{
    color:#fff !important;
    font-size:15px !important;
    line-height:1.3;
}

.modal-equipment{
    color:#f1f3f5 !important;
    font-size:14px !important;
    line-height:1.75 !important;
}

.modal-price{
    font-size:36px !important;
}

.modal-buttons .button-primary{
    min-height:48px;
    padding:14px 20px;
    font-size:11px;
    font-weight:900;
}

@media(max-width:750px){
    .vehicle-view{
        min-width:104px;
        min-height:44px;
        font-size:11px !important;
    }
    .modal-information{
        padding:24px 18px !important;
    }
    .modal-title{
        font-size:30px !important;
    }
    .modal-specs{
        grid-template-columns:repeat(2,1fr) !important;
    }
    .modal-spec strong{
        font-size:14px !important;
    }
    .modal-equipment{
        font-size:13px !important;
    }
}

/* ===================================================== */
/* TR3S - HOTFIX VISUAL 24/09/2026 v2                    */
/* Fuerza contraste y tamaño en la web pública           */
/* ===================================================== */
.vehicle-view{
    min-width:112px !important;
    min-height:46px !important;
    padding:13px 22px !important;
    font-size:12px !important;
    font-weight:900 !important;
    letter-spacing:.5px !important;
    border-radius:999px !important;
    background:#e31b23 !important;
    color:#fff !important;
    border:2px solid #e31b23 !important;
    box-shadow:0 6px 14px rgba(227,27,35,.18) !important;
}
.vehicle-view:hover{
    background:#b90f16 !important;
    border-color:#b90f16 !important;
    transform:translateY(-1px);
}
.vehicle-modal-window{
    background:#181a1e !important;
    color:#fff !important;
}
.modal-information{
    background:#202226 !important;
    color:#fff !important;
    padding:42px !important;
}
.modal-brand{
    color:#ff3c43 !important;
    font-size:14px !important;
    font-weight:900 !important;
    letter-spacing:1.5px !important;
}
.modal-title{
    color:#fff !important;
    font-size:42px !important;
    line-height:1.05 !important;
    font-weight:900 !important;
    margin-top:8px !important;
}
.modal-specs{
    gap:12px !important;
}
.modal-spec{
    background:#2a2d32 !important;
    border:1px solid rgba(255,255,255,.14) !important;
    padding:20px !important;
    border-radius:10px !important;
}
.modal-spec span{
    color:#c8ccd3 !important;
    font-size:11px !important;
    font-weight:700 !important;
    letter-spacing:.2px !important;
}
.modal-spec strong{
    color:#fff !important;
    font-size:17px !important;
    line-height:1.3 !important;
    margin-top:7px !important;
}
.modal-price{
    color:#ff2b32 !important;
    font-size:38px !important;
    font-weight:900 !important;
}
.modal-equipment{
    color:#fff !important;
    font-size:16px !important;
    line-height:1.8 !important;
}
.modal-buttons .button-primary{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:50px !important;
    padding:15px 24px !important;
    font-size:12px !important;
    font-weight:900 !important;
}
@media(max-width:750px){
    .vehicle-view{
        min-width:110px !important;
        min-height:46px !important;
        font-size:12px !important;
        padding:12px 18px !important;
    }
    .modal-information{
        padding:26px 18px !important;
    }
    .modal-title{
        font-size:32px !important;
    }
    .modal-specs{
        grid-template-columns:1fr 1fr !important;
    }
    .modal-spec{
        padding:16px !important;
    }
    .modal-spec strong{
        font-size:15px !important;
    }
    .modal-equipment{
        font-size:15px !important;
    }
    .modal-price{
        font-size:32px !important;
    }
}
\n\n/* =====================================================
   TR3S - INTRO ANIMADO + LOGO RECURRENTE
   ===================================================== */

body.tr3s-intro-active {
    overflow: hidden;
}

.tr3s-intro {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 48%, rgba(237,28,36,.16), transparent 34%),
        linear-gradient(180deg, #101113 0%, #070809 100%);
    animation: tr3sIntroExit .75s cubic-bezier(.65,0,.35,1) 5.05s forwards;
}

.tr3s-intro::before,
.tr3s-intro::after {
    content: "";
    position: absolute;
    left: -25%;
    width: 150%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    opacity: .35;
}
.tr3s-intro::before { top: 42%; }
.tr3s-intro::after  { top: 61%; }

.tr3s-intro-logo {
    position: relative;
    width: min(620px, 78vw);
    aspect-ratio: 3.25 / 1;
    filter: drop-shadow(0 18px 35px rgba(0,0,0,.55));
    transform: translateZ(0);
}

.tr3s-logo-slice {
    position: absolute;
    inset: 0;
    background-image: url("assets/logo/logo-tr3s.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    transform: translate3d(110px,0,0) skewX(-7deg);
    filter: blur(7px);
    animation: tr3sSliceIn 1.35s cubic-bezier(.12,.78,.16,1) forwards;
}

.tr3s-logo-slice.slice-1 { clip-path: inset(0 80% 0 0); animation-delay: .35s; }
.tr3s-logo-slice.slice-2 { clip-path: inset(0 60% 0 20%); animation-delay: .75s; }
.tr3s-logo-slice.slice-3 { clip-path: inset(0 40% 0 40%); animation-delay: 1.15s; }
.tr3s-logo-slice.slice-4 { clip-path: inset(0 20% 0 60%); animation-delay: 1.55s; }
.tr3s-logo-slice.slice-5 { clip-path: inset(0 0 0 80%); animation-delay: 1.95s; }

.tr3s-intro-glow {
    position: absolute;
    width: min(700px, 88vw);
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(237,28,36,.22), transparent 70%);
    transform: translateY(118px) scaleX(.65);
    opacity: 0;
    animation: tr3sGlowIn 1.2s ease 2.4s forwards;
    pointer-events: none;
}

.tr3s-intro-road {
    position: absolute;
    left: 50%;
    top: 72%;
    width: min(900px, 95vw);
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(237,28,36,.9), rgba(255,255,255,.85), transparent);
    opacity: 0;
    animation: tr3sRoad 1.6s ease 2.3s forwards;
}

@keyframes tr3sSliceIn {
    0% { opacity:0; transform:translate3d(110px,0,0) skewX(-7deg); filter:blur(7px); }
    62% { opacity:1; filter:blur(0); }
    82% { transform:translate3d(-5px,0,0) skewX(1deg); }
    100% { opacity:1; transform:translate3d(0,0,0) skewX(0); filter:blur(0); }
}
@keyframes tr3sGlowIn {
    from { opacity:0; transform:translateY(118px) scaleX(.45); }
    to   { opacity:1; transform:translateY(118px) scaleX(1); }
}
@keyframes tr3sRoad {
    0% { opacity:0; transform:translateX(-82%) scaleX(.15); }
    35% { opacity:1; }
    100% { opacity:.45; transform:translateX(-50%) scaleX(1); }
}
@keyframes tr3sIntroExit {
    0% { opacity:1; visibility:visible; transform:scale(1); }
    100% { opacity:0; visibility:hidden; transform:scale(1.025); pointer-events:none; }
}

/* Logo chico: recrea el ingreso por segmentos cada 5 segundos */
.tr3s-animated-logo {
    position: relative;
    overflow: visible;
    isolation: isolate;
}
.tr3s-mini-slice {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("assets/logo/logo-tr3s.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
}
.tr3s-animated-logo.tr3s-mini-run > .logo-image {
    animation: tr3sBaseLogoDim 1.65s ease both;
}
.tr3s-animated-logo.tr3s-mini-run .tr3s-mini-slice {
    animation: tr3sMiniSlice .92s cubic-bezier(.12,.78,.16,1) forwards;
}
.tr3s-animated-logo.tr3s-mini-run .tr3s-mini-slice:nth-of-type(1) { clip-path: inset(0 80% 0 0); animation-delay:.02s; }
.tr3s-animated-logo.tr3s-mini-run .tr3s-mini-slice:nth-of-type(2) { clip-path: inset(0 60% 0 20%); animation-delay:.14s; }
.tr3s-animated-logo.tr3s-mini-run .tr3s-mini-slice:nth-of-type(3) { clip-path: inset(0 40% 0 40%); animation-delay:.26s; }
.tr3s-animated-logo.tr3s-mini-run .tr3s-mini-slice:nth-of-type(4) { clip-path: inset(0 20% 0 60%); animation-delay:.38s; }
.tr3s-animated-logo.tr3s-mini-run .tr3s-mini-slice:nth-of-type(5) { clip-path: inset(0 0 0 80%); animation-delay:.50s; }

@keyframes tr3sMiniSlice {
    0% { opacity:0; transform:translateX(24px) skewX(-7deg); filter:blur(3px); }
    55% { opacity:1; filter:blur(0); }
    80% { transform:translateX(-2px) skewX(1deg); }
    100% { opacity:1; transform:translateX(0) skewX(0); filter:blur(0); }
}
@keyframes tr3sBaseLogoDim {
    0%,8% { opacity:1; }
    12%,72% { opacity:.10; }
    100% { opacity:1; }
}

@media (max-width: 700px) {
    .tr3s-intro-logo { width: 84vw; }
    .tr3s-intro-glow { transform: translateY(86px) scaleX(.65); }
    @keyframes tr3sGlowIn {
        from { opacity:0; transform:translateY(86px) scaleX(.45); }
        to   { opacity:1; transform:translateY(86px) scaleX(1); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr3s-intro { animation-duration: .15s; animation-delay: .4s; }
    .tr3s-logo-slice { animation-duration: .2s; animation-delay: 0s !important; }
    .tr3s-animated-logo .tr3s-mini-slice { display:none; }
}
