/* Estilos para la Cinta de Aliados / Patrocinadores */
.allies-marquee-container {
    width: 100%;
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.allies-marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.allies-marquee-content:hover {
    animation-play-state: paused;
}

.ally-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.ally-name-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #198754;
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ally-item:hover .ally-name-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ally-logo {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.ally-item:hover .ally-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Offcanvas Styles */
#offcanvasAlly {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.ally-detail-header {
    background: rgba(248, 249, 250, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.ally-detail-logo {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.impact-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 4px solid var(--bs-info);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ally-logo {
        max-height: 60px;
        max-width: 120px;
    }
    .ally-item {
        padding: 0 20px;
    }
}
