/* =========================================================
   BYSAA — CATEGORY CAROUSEL
   Sección modular y reusable
   ========================================================= */

.cc-section {
    padding: 28px 0 34px;
}

.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.cc-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.cc-shell {
    position: relative;
}

.cc-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 2px 2px 12px 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cc-track::-webkit-scrollbar {
    display: none;
}

.cc-card {
    flex: 0 0 calc((100% - 36px) / 3.5);
    max-width: calc((100% - 36px) / 3.5);
    min-width: calc((100% - 36px) / 3.5);
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    scroll-snap-align: start;
    transition: transform .22s ease, box-shadow .22s ease;
    text-decoration: none;
}

.cc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.cc-card img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: all .2s ease;
}

.cc-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.cc-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.cc-arrow-left {
    left: -14px;
}

.cc-arrow-right {
    right: -14px;
}

.cc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.cc-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
}

.cc-dot.is-active {
    background: #0f172a;
    transform: scale(1.15);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
    .cc-card {
        flex: 0 0 calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }

    .cc-title {
        font-size: 24px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .cc-section {
        padding: 22px 0 28px;
    }

    .cc-title {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .cc-track {
        gap: 14px;
        padding-bottom: 10px;
    }

    .cc-card {
        flex: 0 0 88%;
        max-width: 88%;
        min-width: 88%;
        border-radius: 18px;
    }

    .cc-card img {
        aspect-ratio: 1.45 / 1;
    }

    .cc-arrow {
        display: none;
    }
}