        :root {
            --brand: #9000bf;
            --brand-glow: rgba(144, 0, 191, 0.4);
            --brand-accent: #d94dff;
            --bg-card: rgba(16, 11, 22, 0.85);
            --border-card: rgba(144, 0, 191, 0.25);
            
            --badge-gtp: #ffc362;
            --badge-lmp2: #3498db;
            --badge-gt3: #ff0000;
            --badge-pcup: #af7ac5;
            --badge-default: #9000bf;
        }

        body {
            background: #070709;
            color: #f0f0f2;
            font-family: "Rubik", sans-serif;
            min-height: 100vh;
        }

        .garage-hero {
            padding: 120px 20px 30px;
            text-align: center;
        }

        .garage-title {
            font-size: 38px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 8px;
        }

        .garage-subtitle {
            font-family: "Roboto Mono", monospace;
            font-size: 13.5px;
            color: rgba(255, 255, 255, 0.5);
            max-width: 600px;
            margin: 0 auto 30px;
        }

        .garage-filters {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        .filter-btn {
            background: rgba(144, 0, 191, 0.08);
            border: 1px solid var(--border-card);
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 18px;
            border-radius: 6px;
            font-family: "Roboto Mono", monospace;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--brand);
            border-color: var(--brand-accent);
            color: #fff;
            box-shadow: 0 0 14px var(--brand-glow);
            transform: translateY(-2px);
        }

        .garage-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
            gap: 24px;
            max-width: 1400px;
            margin: 0 auto 80px;
            padding: 0 24px;
        }

        .livery-card {
            background: var(--bg-card);
            border: 1px solid var(--border-card);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .livery-card:hover {
            transform: translateY(-6px);
            border-color: rgba(217, 77, 255, 0.6);
            box-shadow: 0 12px 36px rgba(144, 0, 191, 0.35);
        }

        .livery-preview {
            position: relative;
            width: 100%;
            height: 230px;
            background: radial-gradient(circle at center, rgba(144, 0, 191, 0.15) 0%, rgba(5, 4, 8, 0.95) 75%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0px;
            overflow: hidden;
        }

        .livery-preview img {
            max-width: 95%;
            max-height: 95%;
            object-fit: contain;
            filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .livery-card:hover .livery-preview img {
            transform: scale(1.06) rotate(-1deg);
        }

        .class-badge {
            position: absolute;
            top: 14px;
            right: 14px;
            padding: 4px 8px;
            border-radius: 4px;
            font-family: "Roboto Mono", monospace;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 1px;
            color: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.5);
            z-index: 2;
        }

        .class-badge.GTP { background: var(--badge-gtp); color: #000; }
        .class-badge.LMP2 { background: var(--badge-lmp2); }
        .class-badge.GT3 { background: var(--badge-gt3); }
        .class-badge.PCUP { background: var(--badge-pcup); }
        .class-badge.OTHER { background: var(--badge-default); }

        .livery-info {
            padding: 18px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(10, 6, 14, 0.6);
        }

        .livery-title-group h3 {
            font-size: 15.5px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 3px;
        }

        .livery-title-group span {
            font-family: "Roboto Mono", monospace;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
        }

        .btn-tp {
            background: rgba(144, 0, 191, 0.15);
            border: 1px solid rgba(144, 0, 191, 0.4);
            color: var(--brand-accent);
            width: 38px;
            height: 38px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .btn-tp:hover {
            background: var(--brand);
            border-color: var(--brand-accent);
            color: #fff;
            box-shadow: 0 0 14px var(--brand-glow);
            transform: scale(1.08);
        }

                /* Contenedor principal de la vista previa */
.livery-preview {
    position: relative;
    width: 100%;
    height: 220px;
    background: #07050a; /* Color base oscuro */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* 1. Capa de Fondo (Patrón morado / textura por defecto) */
.car-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ruta de tu patrón líquido o textura de fondo por defecto */
    background-image: url('/img/liquid-purple-pattern.jpg'); 
    background-size: cover;
    background-position: center;
    opacity: 0.85; /* Ajusta la intensidad del fondo */
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 1;
}

/* Oscurecedor/Viñeta para que el auto resalte más */
.car-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(7, 7, 9, 0.85) 100%);
}

/* 2. Capa del Auto (PNG transparente sobre el fondo) */
.car-render-img,
.livery-preview img {
    position: relative;
    width: 110%;              /* 2. Permite que el render aproveche el ancho */
    max-width: none;          /* 3. Rompe el límite estándar de ancho */
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1.35) translateY(4px); /* 4. Escala directa para compensar márgenes transparentes */
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.9));
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efecto Hover interactivo */
/* Efecto al pasar el cursor (Hover) */
.livery-card:hover .car-render-img,
.livery-card:hover .livery-preview img {
    transform: scale(1.45) translateY(-2px) rotate(-1deg); /* Ligera inclinación y zoom */
}