
/* ==========================================================================
   COMPONENTE: MK-STOCK-GRID (Editorial Limpio)
   ========================================================================== */
.mk-stock-grid {
    --mk-accent: #ba1010;
    --mk-text-title: #111827;
    --mk-text-meta: #64748b;
    --mk-border-line: #f1f5f9;
    
    padding: clamp(3rem, 6vh, 5rem) 0;
    background-color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border-top: 1px solid var(--mk-border-line);
}

.mk-stock-grid .mk-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* HEADER FLEX */
.mk-stock-grid__header-flex {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
    gap: 1rem;
}

.mk-stock-grid__title {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 600;
    color: var(--mk-text-title);
    letter-spacing: -0.015em;
    margin: 0;
    line-height: 1.25;
}

/* ENLACE AL CATÁLOGO EN NEGRO */
.mk-link-catalogo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mk-text-title); /* Negro #111827 */
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.mk-link-catalogo svg {
    transition: transform 0.2s ease;
}

.mk-link-catalogo:hover {
    color: var(--mk-accent); /* Rojo de acento en hover */
}

.mk-link-catalogo:hover svg {
    transform: translateX(3px);
}

/* GRILLA DE 3 COLUMNAS */
.mk-stock-grid__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
}

/* CARDS SIN CAJA NI SOMBRA */
.mk-car-card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.mk-car-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8fafc;
    margin-bottom: 0.9rem;
}

.mk-car-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mk-car-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mk-car-card:hover .mk-car-card__img {
    transform: scale(1.04);
}

/* CONTENIDO Y TIPOGRAFÍA */
.mk-car-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mk-car-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mk-text-title);
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.mk-car-card__title a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.mk-car-card__title a:hover {
    color: var(--mk-accent);
}

.mk-car-card__meta {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mk-text-meta);
    margin: 0 0 0.85rem 0;
}

/* ACCIONES */
.mk-car-card__actions {
    margin-top: auto;
}

.mk-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #504e4e;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mk-btn-action i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.mk-btn-action:hover {
    color: var(--mk-accent) !important;
    transform: translateX(4px);
}

.mk-btn-action:hover i {
    transform: translateX(2px);
}

.mk-car-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .mk-stock-grid__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mk-stock-grid__header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    
    .mk-stock-grid__wrapper {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}
