﻿/* =============================================
   AUTO SLIDER — Infinite scrolling cards
   ============================================= */

.msc-wrap {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg-soft) 100%);
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* Header */
.msc-header {
    width: 100%;
    padding: 52px 40px 32px;
    text-align: center;
}

.msc-titulo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary);
    -webkit-text-stroke: 2px #000000;
    paint-order: stroke fill;
    line-height: 1.2;
    margin: 0;
}

/* Track outer — clips overflow */
.msc-track-outer {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

    .msc-track-outer:active {
        cursor: grabbing;
    }

/* Track — flex row, no wrap */
.msc-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    will-change: transform;
    padding: 16px 0 24px;
}

/* ── Card ── */
.msc-track-outer .msc-col {
    flex: 0 0 300px;
    width: 300px;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    flex-shrink: 0;
}

    .msc-track-outer .msc-col:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 44px rgba(0,0,0,0.20);
    }

/* Background image */
.msc-track-outer .msc-col__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.msc-track-outer .msc-col:hover .msc-col__img {
    transform: scale(1.06);
}

/* Colour overlay per card */
.msc-track-outer .msc-col__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.msc-track-outer .msc-col:nth-child(3n+1) .msc-col__overlay {
    background: rgba(34,197,94,0.45);
}

.msc-track-outer .msc-col:nth-child(3n+2) .msc-col__overlay {
    background: rgba(163,230,53,0.45);
}

.msc-track-outer .msc-col:nth-child(3n+3) .msc-col__overlay {
    background: rgba(74,222,128,0.45);
}

.msc-track-outer .msc-col:hover .msc-col__overlay {
    opacity: 0.20;
}

/* Content */
.msc-track-outer .msc-col__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 48px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.msc-track-outer .msc-col:hover .msc-col__content {
    opacity: 1;
    transform: translateY(0);
}

.msc-track-outer .msc-col__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.msc-track-outer .msc-col__cta {
    display: inline-block;
    background: #ffffff;
    color: #111111;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 50px;
}

/* Plus icon */
.msc-track-outer .msc-col__plus {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    line-height: 1;
    padding-bottom: 2px;
}

.msc-track-outer .msc-col:hover .msc-col__plus {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .msc-track {
        animation: none !important;
    }

    .msc-col, .msc-col__img, .msc-col__content {
        transition: none !important;
    }
}
