/* 15. ALIANZAS Y COOPERANTES GRID */
.allies-group-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 50px 0 30px;
    position: relative;
}

.allies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ally-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 140px;
    transition: all 0.3s ease;
}

.ally-card:hover {
    border-color: var(--color-mint);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.ally-name {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-top: 10px;
}

.ally-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e8f5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-size: 24px;
    color: var(--color-primary);
    font-weight: bold;
}

/* =========================================================
   INFINITE SCROLLING MARQUEE - ALIANZAS (ADEL MORAZAN)
   ========================================================= */
.adel-marquee-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 30px 0;
}

/* Degradados para suavizar las orillas */
.adel-marquee-wrapper::before,
.adel-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.adel-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #F2F6F3 0%, transparent 100%);
}

.adel-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #F2F6F3 0%, transparent 100%);
}

.adel-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}

.marquee-reverse .adel-marquee-track {
    animation: scroll-right 65s linear infinite;
}

.adel-marquee-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tarjeta con Toque Distintivo ADEL Morazán */
.adel-marquee-card {
    display: inline-flex;
    margin: 0 15px;
    background: var(--color-white);
    /* Figura asimétrica orgánica, no todo redondeado */
    border-radius: 40px 6px 40px 6px;
    padding: 20px 30px;
    width: 250px;
    height: 130px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(26, 92, 46, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

/* Borde de gradiente y elevación en Hover */
.adel-marquee-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(45, 138, 78, 0.15);
    border-color: var(--color-mint);
    z-index: 10;
}

.adel-marquee-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adel-marquee-card-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%);
    transition: all 0.4s ease;
}

.adel-marquee-card:hover .adel-marquee-card-inner img {
    filter: grayscale(0%) opacity(100%);
}

/* Pausar la animación cuando se hace hover sobre el track */
.adel-marquee-wrapper:hover .adel-marquee-track {
    animation-play-state: paused;
}

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

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

@media (max-width: 768px) {
    .adel-marquee-card {
        width: 180px;
        height: 110px;
        padding: 15px;
        border-radius: 30px 4px 30px 4px;
        margin: 0 10px;
    }
    .adel-marquee-wrapper::before,
    .adel-marquee-wrapper::after {
        width: 10vw;
    }
}
