/* ============================================================
   SECCIÓN CLIENTES
============================================================ */

.seccionClientes {
    position: relative;
    overflow: hidden;

    padding: 180px 0 170px;

    background: #000000;
}

/* ============================================================
   GLOW CENTRAL
============================================================ */

.clientes-glow {
    position: absolute;

    left: 50%;
    top: 52%;

    transform: translate(-50%, -50%);

    width: 1100px;
    height: 620px;

    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 40, 255, 0.28) 0%,
            rgba(0, 20, 160, 0.18) 34%,
            rgba(0, 10, 90, 0.10) 52%,
            transparent 74%
        );

    filter: blur(70px);

    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   TITULO
============================================================ */

.seccionClientes h2 {
    position: relative;
    z-index: 2;

    color: #ffffff;

    text-align: center;

    line-height: 1.2;
    font-weight: 500;

    margin-bottom: 70px;

    letter-spacing: -1px;
}

/* ============================================================
   CARRUSEL
============================================================ */

.clientes-carousel {
    position: relative;
    z-index: 2;

    overflow: hidden;
    width: 100%;
}

.clientes-carousel::before,
.clientes-carousel::after {
    content: "";

    position: absolute;
    top: 0;

    width: 140px;
    height: 100%;

    z-index: 5;
    pointer-events: none;
}

.clientes-carousel::before {
    left: 0;

    background: linear-gradient(
        90deg,
        #000000 0%,
        transparent 100%
    );
}

.clientes-carousel::after {
    right: 0;

    background: linear-gradient(
        270deg,
        #000000 0%,
        transparent 100%
    );
}

.clientes-track {
    display: flex;
    align-items: center;

    gap: 18px;

    width: max-content;

    animation: clientesScroll 30s linear infinite;
}

.clientes-carousel:hover .clientes-track {
    animation-play-state: paused;
}

@keyframes clientesScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   CARD LOGOS
============================================================ */

.cliente-logo-card {
    width: 170px;
    height: 106px;
    min-width: 170px;

    border-radius: 16px;

    border: 2px solid rgba(255, 255, 255, 0.22);

    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.08) 34%,
            rgba(255, 255, 255, 0.02) 35%,
            rgba(15, 18, 22, 0.86) 100%
        );

    backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 25px rgba(0,0,0,0.35);
}

.cliente-logo-card img {
    max-width: 100%;
    max-height: 62px;

    object-fit: contain;

    filter:
        brightness(1.1)
        contrast(1.05);
}

/* ============================================================
   BANDERAS
============================================================ */

.clientes-flags {
    position: relative;
    z-index: 2;

    margin-top: 95px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;
}

.flag-item {
    width: 46px;
    height: 46px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 0 14px rgba(71, 120, 255, 0.48),
        0 0 28px rgba(71, 120, 255, 0.16);

    transition:
        transform 0.3s var(--nx-ease),
        box-shadow 0.3s var(--nx-ease);
}

.flag-item:hover {
    transform: translateY(-4px) scale(1.06);

    box-shadow:
        0 0 22px rgba(71, 120, 255, 0.65),
        0 0 42px rgba(71, 120, 255, 0.22);
}

.flag-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}
/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {

    .seccionClientes {
        padding: 110px 0;
    }

    .seccionClientes h2 {
        margin-bottom: 42px;
    }

    .clientes-carousel::before,
    .clientes-carousel::after {
        width: 55px;
    }

    .clientes-track {
        gap: 14px;
        animation-duration: 22s;
    }

    .cliente-logo-card {
        width: 145px;
        height: 90px;
        min-width: 145px;

        border-radius: 12px;

        padding: 18px;
    }

    .clientes-flags {
        margin-top: 62px;
        gap: 12px;
    }

    .flag-item {
        width: 36px;
        height: 36px;
    }
}

