.pc-carrusel-wrapper {
    --pc-altura: 120px;
    --pc-anchura: 200px;
    --pc-gap: 30px;
    --pc-duration: 30s;
    --pc-borde-radio: 12px;

    overflow: hidden;
    width: 100%;
    padding: 25px 0;
    position: relative;
    box-sizing: border-box;
}

.pc-carrusel-track {
    display: flex;
    animation: pc-scroll var(--pc-duration) linear infinite;
    width: max-content;
}

.pc-carrusel-wrapper:hover .pc-carrusel-track.pc-paused {
    animation-play-state: paused;
}

.pc-carrusel-group {
    display: flex;
    gap: var(--pc-gap);
    padding-right: var(--pc-gap);
    flex-shrink: 0;
    align-items: center;
}

/* Card and spacing styles */
.pc-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--pc-altura);
    width: var(--pc-anchura);
    padding: 12px 16px; /* Ajuste para dar más altura al logo */
    box-sizing: border-box;
    border-radius: var(--pc-borde-radio);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                background-color 0.3s ease,
                border-color 0.3s ease;
}

.pc-logo-inner-link,
.pc-logo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.pc-logo-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

/* Style: tarjeta (Light premium glassmorphism) */
.pc-style-tarjeta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
.pc-style-tarjeta:hover {
    background: #ffffff;
    border-color: #cbd5e0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

/* Style: oscuro (Dark premium glassmorphism) */
.pc-style-oscuro {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.pc-style-oscuro:hover {
    background: rgba(28, 28, 28, 0.95);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
}

/* Style: plano (Flat - no card background) */
.pc-style-plano {
    background: transparent;
    border: none;
    box-shadow: none;
}
.pc-style-plano:hover {
    transform: translateY(-3px);
}

/* Image containment and normalization */
.pc-logo-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

/* Sponsor label text styling */
.pc-logo-label {
    flex: 0 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    color: #555555;
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
    transition: color 0.3s ease;
}

.pc-style-oscuro .pc-logo-label {
    color: #cbd5e0;
}

/* Grayscale toggle logic */
.pc-grayscale img {
    filter: grayscale(100%);
    opacity: 0.65;
}

.pc-grayscale:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.04);
}

.pc-grayscale .pc-logo-label {
    opacity: 0.75;
}

.pc-grayscale:hover .pc-logo-label {
    opacity: 1;
    color: #111111;
}

.pc-style-oscuro.pc-grayscale:hover .pc-logo-label {
    color: #ffffff;
}

.pc-no-grayscale img {
    filter: none;
    opacity: 0.9;
}

.pc-no-grayscale:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.pc-carrusel-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

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

/* Sección de Patrocinadores Principales (arriba) */
.pc-principales-seccion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 35px;
}

.pc-principales-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--pc-gap);
    margin-bottom: 20px;
}

/* Modificaciones específicas para la tarjeta del patrocinador principal */
.pc-logo-item.pc-item-principal {
    width: calc(var(--pc-anchura) * 1.6);
    height: calc(var(--pc-altura) * 1.5);
    padding: 10px; /* Menor padding interno para que el logo se vea más grande */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                background-color 0.3s ease,
                border-color 0.3s ease;
}

.pc-logo-item.pc-item-principal:hover {
    transform: scale(1.03) translateY(-4px) !important;
}

/* Espacio ampliado entre el logo y su texto descriptivo */
.pc-logo-item.pc-item-principal .pc-logo-inner-link,
.pc-logo-item.pc-item-principal .pc-logo-inner {
    gap: 12px;
}

/* Reducir el tamaño si es demasiado grande en pantallas pequeñas */
@media (max-width: 600px) {
    .pc-logo-item.pc-item-principal {
        width: calc(var(--pc-anchura) * 1.25);
        height: calc(var(--pc-altura) * 1.25);
    }
}

.pc-logo-item.pc-item-principal .pc-logo-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: 0.5px;
}

.pc-style-oscuro .pc-logo-item.pc-item-principal .pc-logo-label {
    color: #ffffff;
}

.pc-principal-divider {
    width: 85%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.12), transparent);
    margin-top: 30px;
}

.pc-style-oscuro .pc-principal-divider {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.18), transparent);
}
