:root {
    --primary-blue: #2d4f95;
    --text-dark: #1a2b4d;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sociedades-section {
    padding: 10px 0;
    /* Ajustado para mejor balance */
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.sociedades-header {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 5%;
    text-align: center;
    /* Centrado para look más institucional */
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45, 79, 149, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.pulse-icon {
    width: 7px;
    height: 7px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse-blue 2s infinite;
}

.sociedades-subtitle {
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 2px;
    font-size: 0.7rem;
    margin: 0;
}

.sociedades-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.sociedades-title .highlight {
    color: var(--primary-blue);
}

/* --- Carrusel Moderno --- */
.sociedades-carousel {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

/* Sombras laterales para ocultar el corte de los logos */
.carousel-mask-left,
.carousel-mask-right {
    position: absolute;
    top: 0;
    z-index: 5;
    width: 150px;
    height: 100%;
    pointer-events: none;
}

.carousel-mask-left {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.carousel-mask-right {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
    /* Más lento = más elegante */
}

.logos-group {
    display: flex;
    align-items: center;
    gap: 100px;
    /* Más espacio entre logos */
    padding: 0 50px;
}

.soc-logo {
    flex: 0 0 auto;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    /* TRUCO: Eliminar fondo blanco de JPGs */
    mix-blend-mode: multiply;
    filter: grayscale(100%);
    opacity: 0.6;
}

.soc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

/* Animación Infinita */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 79, 149, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(45, 79, 149, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 79, 149, 0);
    }
}

/* Móvil */
@media (max-width: 768px) {
    .logos-group {
        gap: 50px;
    }

    .soc-logo {
        width: 110px;
    }

    .carousel-mask-left,
    .carousel-mask-right {
        width: 80px;
    }
}