/* ==========================================
   SISTEMA DE ALIADOS VANGUARDISTA (Premium)
   Nombres camuflados para evitar AdBlock
   ========================================== */

/* 1. CONTENEDOR MAESTRO */
.seccion-socios {
    width: 100%;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    height: auto;
    min-height: 50px;
    padding-top: 5px;
    padding-bottom: 0px;
}

#zona-aliados {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* ==========================================
   TARJETA ESTILO "FRAME"
   ========================================== */
#socio-wrapper {
    position: relative;
    width: 100%;
    /* Proporción exacta 640x120 */
    aspect-ratio: 640 / 120;

    background: #0a0c12;
    border-radius: 12px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

    contain: content;
    transform: translateZ(0);
}

/* ==========================================
   IMAGEN Y EFECTOS
   ========================================== */
#socio-dinamico {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    /* Vital para el flash */
}

.story-link,
.story-image-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto Flash Premium al cambiar */
@keyframes flashPremium {
    0% {
        filter: brightness(1);
    }

    15% {
        filter: brightness(1.5);
    }

    100% {
        filter: brightness(1);
    }
}

.active-flash {
    animation: flashPremium 1s ease-out forwards;
}

/* ==========================================
   BADGES Y DECORACIÓN (ESTILO ORO)
   ========================================== */
.socio-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 20;
}

#socio-bar {
    height: 100%;
    background: #ff4500;
    /* naranja */
    width: 0;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.socio-header {
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

/* BADGE 5 ESTRELLAS */
#socio-badge {
    font-family: 'Montserrat Bold', sans-serif;
    font-size: 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #ff4500;
    /* Borde naranja */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Las estrellas */
#socio-badge::after {
    content: "★★★★★";
    color: #ffd700;
    font-size: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

/* Efecto Brillo que cruza el badge */
#socio-badge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    animation: shimmerBadge 3.5s infinite;
}

@keyframes shimmerBadge {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }

    20% {
        transform: translateX(150%) rotate(45deg);
    }

    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

.socio-tag {
    font-family: 'Montserrat Black', sans-serif;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ==========================================
   MEDIA QUERIES
   ========================================== */
@media (min-width: 768px) {
    .seccion-socios {
        height: 110px;
        padding: 0;
    }

    #zona-aliados {
        max-width: 500px;
    }
}

@media (min-width: 992px) {
    .seccion-socios {
        height: 110px;
        padding: 0;
        margin-top: -15px;
    }

    #zona-aliados {
        width: 580px;
        max-width: 580px;
    }

    #socio-badge {
        font-size: 10px;
        padding: 4px 12px;
    }

    .story-img:hover {
        transform: scale(1.02);
    }
}