/* Bellota V2 — Card grid + product-card + news-card (compartido home/news/otros) */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-5);
}

/* ---------------------------------------------------------------
   Product card
   --------------------------------------------------------------- */
.product-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
    border-color: var(--c-brand);
    color: inherit;
}
.product-card-img {
    aspect-ratio: 4/3;
    background: var(--c-surface-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body {
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card-family {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-brand);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-2);
}
.product-card-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    margin: 0 0 var(--sp-2);
    color: var(--c-text-strong);
}
.product-card-ref {
    margin-top: auto;
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
}

/* ---------------------------------------------------------------
   News card
   --------------------------------------------------------------- */
.news-card {
    background: var(--c-surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    color: inherit;
}
.news-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body {
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card time {
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-2);
}
.news-card-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    margin: 0 0 var(--sp-3);
    color: var(--c-text-strong);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: var(--sp-8);
}
