﻿.clientes-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #f7faff 0%, #eef3f9 100%);
    overflow: hidden;
}

.clientes-header {
    text-align: center;
    margin-bottom: 35px;
}

    .clientes-header h2 {
        font-size: 34px;
        font-weight: 800;
        color: #1f2d3d;
        margin-bottom: 10px;
    }

    .clientes-header p {
        font-size: 15px;
        color: #6b7280;
        margin: 0;
    }

.clientes-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
}

    .clientes-marquee::before,
    .clientes-marquee::after {
        content: "";
        position: absolute;
        top: 0;
        width: 90px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .clientes-marquee::before {
        left: 0;
        background: linear-gradient(to right, #f7faff, transparent);
    }

    .clientes-marquee::after {
        right: 0;
        background: linear-gradient(to left, #f7faff, transparent);
    }

.clientes-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollClientes 32s linear infinite;
}

.clientes-marquee:hover .clientes-track {
    animation-play-state: paused;
}

.cliente-item {
    flex: 0 0 auto;
    margin: 0 18px;
}

.cliente-card {
    width: 320px;
    height: 150px;
    background: #ffffff;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .cliente-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
    }

.cliente-img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    display: block;
    filter: grayscale(100%) opacity(0.75);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.cliente-card:hover .cliente-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.03);
}

.mensaje-error,
.mensaje-info {
    max-width: 820px;
    margin: 0 auto 20px auto;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.mensaje-error {
    background: #fdeaea;
    color: #a12626;
    border: 1px solid #f2c5c5;
}

.mensaje-info {
    background: #eef6ff;
    color: #174a7a;
    border: 1px solid #c8def5;
}

@keyframes scrollClientes {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .clientes-section {
        padding: 50px 0;
    }

    .clientes-header h2 {
        font-size: 28px;
    }

    .clientes-marquee::before,
    .clientes-marquee::after {
        width: 40px;
    }

    .cliente-item {
        margin: 0 10px;
    }

    .cliente-card {
        width: 170px;
        height: 120px;
        border-radius: 18px;
        padding: 14px;
    }

    .cliente-img {
        max-height: 70px;
    }

    .clientes-track {
        animation-duration: 24s;
    }
}

.clientes-wrapper {
    max-width: 1600px;
    margin: 0 auto;
}