/* =====================================================
   CAR//LAB
   GLOBAL
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #FFFFFF;
    color: #10243A;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid #DFE8F0;
}

.logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: #0076B8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #52677B;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #10243A;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-favorites {
    border: 1px solid #CDDCE8;
    background: #FFFFFF;
    color: #10243A;

    padding: 10px 15px;
    border-radius: 6px;

    transition: 0.2s;
}

.nav-favorites:hover {
    border-color: #0076B8;
    color: #0076B8;
}

.nav-sell {
    padding: 11px 17px;

    background: #0076B8;
    color: #10243A;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;

    transition: 0.2s;
}

.nav-sell:hover {
    background: #00649D;
    transform: translateY(-1px);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 700px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 100px 8%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(255, 59, 0, 0.14),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #FFFFFF,
            #F3F7FB,
            #FFFFFF
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.9),
            transparent
        );

    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 45px,
            rgba(255,255,255,0.015) 46px,
            transparent 47px
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 800px;
}

.hero-tag {
    color: #0076B8;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(60px, 8vw, 120px);
    line-height: 0.9;

    font-weight: 950;
    letter-spacing: -5px;

    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
    color: #0076B8;
}

.hero p {
    max-width: 600px;

    color: #52677B;

    font-size: 18px;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 14px 22px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;

    border: 1px solid transparent;

    transition: 0.2s;
}

.button-light {
    background: #0076B8;
    color: #10243A;
}

.button-light:hover {
    background: #00649D;
    transform: translateY(-2px);
}

.button-outline {
    border-color: #547087;
    color: #10243A;
}

.button-outline:hover {
    border-color: #0076B8;
    color: #0076B8;
}

.hero-stats {
    position: absolute;

    right: 8%;
    bottom: 70px;

    display: flex;
    gap: 55px;

    z-index: 2;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 30px;
}

.hero-stats span {
    color: #52677B;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    padding: 110px 7%;
}

.section-dark {
    background: #F3F7FB;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;
}

.eyebrow {
    color: #0076B8;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 3px;

    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: clamp(35px, 5vw, 65px);

    line-height: 0.95;

    letter-spacing: -3px;
}

.results-counter {
    color: #52677B;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.section-intro {
    max-width: 650px;

    color: #52677B;

    margin-bottom: 35px;
}


/* =====================================================
   CATEGORY TABS
===================================================== */

.category-tabs {
    display: flex;
    gap: 8px;

    margin-bottom: 25px;

    padding: 6px;

    width: fit-content;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;

    border-radius: 8px;
}

.category-tab {
    border: 0;

    background: transparent;

    color: #52677B;

    padding: 13px 22px;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 1px;

    transition: 0.2s;
}

.category-tab:hover {
    color: #10243A;
}

.category-tab.active {
    background: #0076B8;
    color: #10243A;

    box-shadow: 0 0 20px rgba(255, 59, 0, 0.18);
}


/* =====================================================
   SEARCH
===================================================== */

.search-box {
    position: relative;

    margin-bottom: 18px;
}

.search-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    color: #52677B;

    font-size: 23px;
}

.search-box input {
    width: 100%;

    padding: 18px 20px 18px 50px;

    background: #F3F7FB;

    border: 1px solid #DFE8F0;
    border-radius: 7px;

    color: #10243A;

    outline: none;

    transition: 0.2s;
}

.search-box input:focus {
    border-color: #0076B8;

    box-shadow: 0 0 0 3px rgba(255, 59, 0, 0.08);
}

.search-box input::placeholder {
    color: #666;
}


/* =====================================================
   FILTERS
===================================================== */

.filters {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(130px, 1fr))
        auto;

    gap: 10px;

    margin-bottom: 40px;
}

.filter-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.filter-group label {
    color: #666;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.filter-group select,
.market-tools select {
    width: 100%;

    padding: 12px;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;
    border-radius: 5px;

    color: #ddd;

    outline: none;

    cursor: pointer;
}

.filter-group select:focus,
.market-tools select:focus {
    border-color: #0076B8;
}

.clear-filters {
    align-self: end;

    height: 41px;

    padding: 0 18px;

    background: transparent;

    border: 1px solid #CDDCE8;
    border-radius: 5px;

    color: #52677B;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;

    transition: 0.2s;
}

.clear-filters:hover {
    color: #0076B8;
    border-color: #0076B8;
}


/* =====================================================
   CARS GRID
===================================================== */

.cars-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-top: 45px;

    min-height: 45px;
}

.pagination button {
    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;

    border-radius: 5px;

    color: #52677B;

    font-size: 11px;
    font-weight: 900;

    transition: 0.2s;
}

.pagination button:hover {
    border-color: #0076B8;
    color: #10243A;
}

.pagination button.active {
    background: #0076B8;

    border-color: #0076B8;

    color: #10243A;

    box-shadow:
        0 0 20px rgba(255,59,0,0.2);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .pagination-info {
    margin: 0 10px;

    color: #547087;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* =====================================================
   NO RESULTS
===================================================== */

.no-results {
    grid-column: 1 / -1;

    padding: 80px 20px;

    text-align: center;

    border: 1px dashed #DFE8F0;

    border-radius: 8px;

    color: #666;
}

.no-results strong {
    display: block;

    color: #52677B;

    font-size: 20px;

    margin-bottom: 8px;
}


/* =====================================================
   COMPARISON CATEGORY
===================================================== */

.comparison-category {
    display: flex;

    gap: 8px;

    margin-bottom: 30px;

    padding: 5px;

    width: fit-content;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;

    border-radius: 7px;
}

.comparison-category-button {
    padding: 11px 20px;

    background: transparent;

    border: 0;
    border-radius: 5px;

    color: #52677B;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;

    transition: 0.2s;
}

.comparison-category-button:hover {
    color: #10243A;
}

.comparison-category-button.active {
    background: #0076B8;
    color: #10243A;
}


/* =====================================================
   COMPARATOR
===================================================== */

.compare-selector {
    display: grid;

    grid-template-columns: 1fr 80px 1fr;

    align-items: end;

    gap: 20px;

    max-width: 1000px;

    margin: 0 auto 40px;
}

.compare-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.compare-field label {
    color: #666;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;
}

.compare-field select {
    width: 100%;

    padding: 15px;

    background: #F3F7FB;

    border: 1px solid #DFE8F0;
    border-radius: 6px;

    color: #10243A;

    outline: none;
}

.compare-field select:focus {
    border-color: #0076B8;
}

.compare-vs {
    display: flex;

    justify-content: center;
    align-items: center;

    height: 50px;

    color: #0076B8;

    font-size: 15px;
    font-weight: 950;
}

.comparison {
    max-width: 1100px;

    margin: auto;
}

.comparison-table {
    width: 100%;

    border-collapse: collapse;

    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;

    border-radius: 8px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;

    border-bottom: 1px solid #DFE8F0;

    text-align: center;
}

.comparison-table th {
    color: #10243A;

    font-size: 14px;
}

.comparison-table td:first-child {
    color: #666;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;
}

.comparison-table td {
    color: #ccc;
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.comparison-empty {
    padding: 50px;

    text-align: center;

    color: #547087;

    border: 1px dashed #DFE8F0;

    border-radius: 8px;
}


/* =====================================================
   MARKETPLACE
===================================================== */

.market-tools {
    display: grid;

    grid-template-columns: 1fr 220px;

    gap: 10px;

    margin-bottom: 35px;
}

.market-tools input {
    width: 100%;

    padding: 14px 16px;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;
    border-radius: 5px;

    color: #10243A;

    outline: none;
}

.market-tools input:focus {
    border-color: #0076B8;
}

.publish-panel {
    margin-bottom: 35px;

    padding: 30px;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;

    border-radius: 8px;
}

.hidden {
    display: none !important;
}

.publish-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 30px;
}

.publish-header h3 {
    font-size: 28px;
}

.close-button,
.modal-close {
    border: 0;

    background: transparent;

    color: #52677B;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s;
}

.close-button:hover,
.modal-close:hover {
    color: #0076B8;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.form-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-field label {
    color: #666;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 13px;

    background: #F3F7FB;

    border: 1px solid #DFE8F0;

    border-radius: 5px;

    color: #10243A;

    outline: none;

    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #0076B8;
}

.form-wide {
    grid-column: 1 / -1;
}

.submit-button {
    margin-top: 25px;
}

.market-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =====================================================
   LEARN
===================================================== */

.learn-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.learn-card {
    padding: 30px;

    background: #FFFFFF;

    border: 1px solid #DFE8F0;

    border-radius: 8px;

    transition: 0.25s;
}

.learn-card:hover {
    transform: translateY(-4px);

    border-color: #0076B8;
}

.learn-number {
    color: #0076B8;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

.learn-card h3 {
    font-size: 21px;

    margin-bottom: 15px;
}

.learn-card p {
    color: #52677B;

    font-size: 14px;
}

.learn-tags {
    margin-top: 25px;

    color: #547087;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}


/* =====================================================
   MODAL
===================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 25px;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0,0,0,0.85);

    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;

    z-index: 2;

    width: min(900px, 100%);

    max-height: 90vh;

    overflow: auto;

    background: #FFFFFF;

    border: 1px solid #CDDCE8;

    border-radius: 10px;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.7);
}

.modal-close {
    position: absolute;

    top: 15px;
    right: 18px;

    z-index: 3;

    color: #10243A;
}

.modal-image {
    width: 100%;

    height: 400px;

    object-fit: cover;

    background: #F3F7FB;
}

.modal-body {
    padding: 30px;
}

.modal-brand {
    color: #0076B8;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 2px;
}

.modal-name {
    font-size: 40px;

    margin: 5px 0 15px;
}

.modal-description {
    color: #52677B;

    margin-bottom: 25px;
}

.modal-specs {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;
}

.modal-spec {
    padding: 15px;

    background: #F3F7FB;

    border-radius: 5px;
}

.modal-spec span {
    display: block;

    color: #666;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}

.modal-spec strong {
    font-size: 14px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 55px 7% 25px;

    background: #F3F7FB;

    border-top: 1px solid #DFE8F0;
}

.footer-main {
    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 40px;
}

.footer-main p {
    max-width: 300px;

    color: #666;

    margin-top: 10px;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 25px;

    align-items: flex-start;
}

.footer-links a {
    color: #52677B;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    transition: 0.2s;
}

.footer-links a:hover {
    color: #0076B8;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    padding-top: 20px;

    border-top: 1px solid #1d1d1d;

    color: #CDDCE8;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

    .cars-grid,
    .market-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .filters {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-stats {
        position: relative;

        right: auto;
        bottom: auto;

        margin-top: 70px;

        gap: 30px;
    }

    .cars-grid,
    .market-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .learn-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .filters {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .navbar {
        padding: 0 20px;
    }

    .nav-sell {
        display: none;
    }

    .section {
        padding: 75px 20px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 55px;

        letter-spacing: -3px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-stats {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 15px;

        width: 100%;
    }

    .hero-stats strong {
        font-size: 23px;
    }

    .hero-stats span {
        font-size: 8px;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .category-tabs {
        width: 100%;

        overflow-x: auto;
    }

    .category-tab {
        white-space: nowrap;

        flex: 1;
    }

    .filters {
        grid-template-columns:
            1fr;
    }

    .cars-grid,
    .market-grid,
    .learn-grid {
        grid-template-columns:
            1fr;
    }

    .compare-selector {
        grid-template-columns:
            1fr;
    }

    .compare-vs {
        height: 25px;
    }

    .comparison-category {
        width: 100%;
    }

    .comparison-category-button {
        flex: 1;
    }

    .market-tools {
        grid-template-columns:
            1fr;
    }

    .form-grid {
        grid-template-columns:
            1fr;
    }

    .form-wide {
        grid-column: auto;
    }

    .modal-image {
        height: 240px;
    }

    .modal-name {
        font-size: 30px;
    }

    .modal-specs {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }

    .pagination {
        flex-wrap: wrap;
    }

}

/* =====================================================
   CAR//LAB — CARD FIX
   Correcciones visuales para las tarjetas de vehículos
   ===================================================== */

/* La tarjeta mantiene una estructura limpia y consistente */
.car-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #DFE8F0;
    border-radius: 10px;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    border-color: #0076B8;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(255, 59, 0, 0.08);
}

/* Imagen */
.car-card .car-image {
    width: 100%;
    height: 210px;
    display: block;
    object-fit: cover;
    background: #F3F7FB;
    flex-shrink: 0;
}

/* Cuerpo */
.car-card .car-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 18px;
}

/* Marca */
.car-card .car-brand {
    margin-bottom: 4px;
    color: #52677B;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Nombre */
.car-card .car-name {
    margin: 5px 0 16px;
    color: #f5f5f5;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
}

/* Especificaciones */
.car-card .car-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.car-card .car-spec {
    min-width: 0;
    padding: 9px 10px;
    background: #F3F7FB;
    border: 1px solid #EAF3FA;
    border-radius: 5px;
}

.car-card .car-spec span {
    display: block;
    margin-bottom: 2px;
    color: #666;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
}

.car-card .car-spec strong {
    display: block;
    overflow: hidden;
    color: #ddd;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Precio */
.car-card .car-price {
    margin-top: auto;
    color: #0076B8;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

/* Acciones */
.car-card .car-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.car-card .car-action {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: #F3F7FB;
    border: 1px solid #DFE8F0;
    border-radius: 5px;
    color: #52677B;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.car-card .car-action:hover {
    color: #fff;
    background: #EAF3FA;
    border-color: #0076B8;
    transform: translateY(-1px);
}

/* Botón favorito:
   antes quedaba como un botón HTML blanco/default */
.car-card .car-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;

    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(8, 8, 8, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    color: #fff;
    font-size: 17px;
    line-height: 1;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.car-card .car-favorite:hover {
    color: #fff;
    background: #0076B8;
    border-color: #0076B8;
    transform: scale(1.08);
}

.car-card .car-favorite.active {
    color: #fff;
    background: #0076B8;
    border-color: #0076B8;
}

/* Badge de condición:
   lo fijamos arriba de la imagen, separado del favorito */
.car-card .car-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    min-height: 27px;
    padding: 5px 9px;

    background: rgba(8, 8, 8, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;

    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    line-height: 1;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Si el JS coloca NEW dentro del badge */
.car-card .car-category .new {
    color: #fff;
    background: #00A6FF;
    padding: 4px 5px;
    margin: -5px 0 -5px -9px;
    border-radius: 4px 0 0 4px;
    font-size: 8px;
    font-weight: 900;
}

/* Si el JS usa "used" */
.car-card .car-category .used {
    color: #fff;
}

/* Evita que el contenido de la tarjeta quede pegado */
.car-card-body > *:last-child {
    margin-bottom: 0;
}

/* En pantallas chicas */
@media (max-width: 650px) {
    .car-card .car-image {
        height: 230px;
    }

    .car-card .car-card-body {
        padding: 16px;
    }

    .car-card .car-name {
        font-size: 20px;
    }

}

/* El contenedor de imagen fija la referencia de los controles superpuestos. */
.car-image-wrapper { position: relative; flex-shrink: 0; min-height: 210px; background: #F3F7FB; }
.car-card .car-category { right: 58px; width: fit-content; max-width: calc(100% - 70px); }
.car-category.new { border-color: #00A6FF; }
.car-category.used { border-color: #52677B; }
.car-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.car-card .car-action, .car-card .car-favorite { cursor: pointer; font-family: inherit; }
.car-card .car-action:focus-visible, .car-card .car-favorite:focus-visible { outline: 2px solid #0076B8; outline-offset: 3px; }
.car-year { color: #52677B; font-size: 12px; margin-bottom: 12px; }
.modal-open { overflow: hidden; }
.nav-favorites.active { color: #0076B8; }
.comparison-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.comparison-car { background: #FFFFFF; padding: 20px; border: 1px solid #DFE8F0; border-radius: 8px; }
.comparison-brand, .marketplace-label { color: #0076B8; font-size: 11px; font-weight: 900; }
.comparison-result .comparison-table { grid-column: 1 / -1; overflow-x: auto; }
.comparison-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 15px; border-bottom: 1px solid #DFE8F0; font-size: 13px; }
.comparison-row span { color: #52677B; }
.marketplace-card { overflow: hidden; background: #FFFFFF; border: 1px solid #DFE8F0; border-radius: 8px; }
.marketplace-image { height: 210px; background: #F3F7FB; }
.marketplace-image img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-content { padding: 18px; overflow-wrap: anywhere; }
.marketplace-content h3 { margin: 8px 0; }
.marketplace-content p { color: #52677B; font-size: 13px; margin-top: 8px; }
.marketplace-content strong { display: block; margin-top: 12px; color: #0076B8; }
.empty-state, .marketplace-empty { grid-column: 1 / -1; padding: 35px; text-align: center; color: #52677B; }
@media (max-width: 650px) { .car-image-wrapper { min-height: 230px; } .comparison-row { font-size: 11px; gap: 8px; padding: 10px; } }
.car-bottom .car-actions { margin-top: 0; }
