/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #17418a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Contenedor principal */
.carousel-wrapper {
    max-width: 1200px;
    width: 100%;
}

.carousel-wrapper h2 {
    text-align: center;
    color: #17418a;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 600;
}

/* Contenedor del carrusel con fade en los bordes */
.carousel-container {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* Track con animación de scroll infinito */
.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* Animación del scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tarjeta de cada logo */
.logo-card {
    flex: 0 0 220px;
    height: 140px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Imagen del logo */
.logo-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== RESPONSIVE ========== */

/* Tablets */
@media (max-width: 768px) {
    .logo-card {
        flex: 0 0 160px;
        height: 120px;
        padding: 20px;
    }

    .logo-card img {
        max-height: 60px;
    }

    .carousel-wrapper h2 {
        font-size: 1.5rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .logo-card {
        flex: 0 0 140px;
        height: 100px;
        padding: 15px;
    }

    .carousel-wrapper h2 {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    body {
        padding: 20px 10px;
    }
}
