.fc-showcase-grid {
    display: grid;
    grid-template-columns: repeat(var(--fc-cols-desktop, 3), 1fr);
    gap: 24px;
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

.fc-showcase-card {
    position: relative;
    background: #16171a;
    border: 1px solid #2b2d33;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.fc-showcase-card:hover {
    transform: translateY(-5px);
    border-color: var(--fc-hover-border, #d4a338);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* Enlace absoluto cuando el botón está oculto para que toda la tarjeta sea clickeable */
.fc-card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
}

.fc-showcase-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #0f1012;
}

.fc-showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fc-showcase-card:hover .fc-showcase-thumb img {
    transform: scale(1.05);
}

/* Badge de Oferta Activa con texto parametrizable */
.fc-sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fc-sale-badge-bg, #e63946);
    color: var(--fc-sale-badge-fg, #ffffff);
    padding: 5px 11px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 4;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Botón / Etiqueta de Importe */
.fc-showcase-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--fc-offer-bg, rgba(18, 18, 20, 0.92));
    color: var(--fc-offer-fg, #d4a338);
    border: 1px solid var(--fc-offer-border, #d4a338);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    z-index: 4;
}

.fc-showcase-price * {
    color: inherit !important;
}

.fc-showcase-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título con altura fija de exactamente 2 líneas para un tamaño uniforme en todas las tarjetas */
.fc-showcase-title {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.35;
    height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);
    overflow: hidden;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fc-showcase-title a,
.fc-showcase-title span {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fc-showcase-title a:hover {
    color: #d4a338;
}

.fc-showcase-specs {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.fc-showcase-specs li {
    display: flex;
    align-items: center;
    background: #1f2126;
    border: 1px solid #2e3038;
    padding: 8px 10px;
    border-radius: 6px;
    gap: 9px;
}

/* Color configurable de los iconos de características */
.fc-showcase-specs li i {
    color: var(--fc-icon-color, #d4a338);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.fc-spec-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fc-spec-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #8e929b;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.fc-spec-val {
    font-size: 13px;
    font-weight: 600;
    color: #f2f2f4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón "Ver vehículo" configurable */
.fc-showcase-btn {
    position: relative;
    z-index: 4;
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--fc-btn-bg, #d4a338);
    color: var(--fc-btn-fg, #111111) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fc-showcase-btn:hover {
    opacity: 0.9;
}

@media (max-width: 992px) {
    .fc-showcase-grid {
        grid-template-columns: repeat(var(--fc-cols-tablet, 2), 1fr);
    }
}

@media (max-width: 640px) {
    .fc-showcase-grid {
        grid-template-columns: repeat(var(--fc-cols-mobile, 1), 1fr);
    }
}
