﻿.oscw-root, .oscw-root * {
    box-sizing: border-box;
}

.oscw-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    min-width: 0; /* evita que se desborde dentro de columnas grid/flex */
}

/* ===== CARD CONTENEDORA ===== */
/* width: 100% hace que ocupe siempre todo el ancho del elemento que la contenga */
.oscw-card {
    width: 100%;
    min-width: 0;
    background: transparent;
    border-radius: 20px;
    padding: 10px;
}

/* ===== VIEWPORT CON MASK (fade en los bordes) ===== */
.oscw-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    min-width: 0;
    -webkit-mask-image: linear-gradient( to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100% );
    mask-image: linear-gradient( to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100% );
}

/* ===== TRACK ANIMADO ===== */
.oscw-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: oscw-scroll-left 18s linear infinite;
}

.oscw-viewport:hover .oscw-track {
    animation-play-state: paused;
}

@keyframes oscw-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== TARJETA DE CADA ORGANIZADOR ===== */
.oscw-item {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background: #16213a;
}

    .oscw-item .oscw-bg-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .oscw-item .oscw-name-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 6px 8px;
        background: rgba(10, 14, 26, 0.55);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }

    .oscw-item .oscw-name {
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
    }

    .oscw-item .oscw-badge {
        font-size: 8px;
        font-weight: 700;
        color: #16213a;
        background: #f2c744;
        padding: 2px 7px;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

@media (prefers-reduced-motion: reduce) {
    .oscw-track {
        animation: none;
        overflow-x: auto;
    }
}
