html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Forzar que la sección de aficionados ocupe todo el ancho en desarrollo */
#aficionados {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.desarrollo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    /* Ajuste aproximado para dejar espacio a header y footer */
    background-color: #f5f7fa;
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Logos animados de fondo */
.floating-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shield-logo {
    position: absolute;
    width: 90px;
    height: auto;
    opacity: 0;
    filter: brightness(1.1); /* Más nítido, sin escala de grises */
    animation: pulse-logo 7s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% {
        opacity: 0;
        transform: scale(0.85);
    }
    50% {
        opacity: 0.4; /* Nítido pero elegante */
        transform: scale(1.05);
    }
}

/* Posicionamiento estético (12 logos) */

/* ESQUINAS Y BORDES SUPERIORES */
.shield-logo:nth-child(1)  { top: 5%;   left: 3%;   animation-delay: 0.2s; width: 90px; }
.shield-logo:nth-child(2)  { top: 8%;   left: 92%;  animation-delay: 1.5s; width: 70px; }
.shield-logo:nth-child(3)  { top: 2%;   left: 48%;  animation-delay: 4.2s; width: 50px; }

/* LATERALES CENTRADOS (Evitando el centro horizontal) */
.shield-logo:nth-child(4)  { top: 45%;  left: 5%;   animation-delay: 0.8s; width: 110px; }
.shield-logo:nth-child(5)  { top: 55%;  left: 90%;  animation-delay: 3.1s; width: 85px; }

/* ESQUINAS Y BORDES INFERIORES */
.shield-logo:nth-child(6)  { top: 85%;  left: 4%;   animation-delay: 2.3s; width: 65px; }
.shield-logo:nth-child(7)  { top: 88%;  left: 93%;  animation-delay: 0.5s; width: 100px; }
.shield-logo:nth-child(8)  { top: 92%;  left: 50%;  animation-delay: 5.4s; width: 45px; }

/* DISTRIBUCIÓN INTERMEDIA (Fuera del centro) */
.shield-logo:nth-child(9)  { top: 20%;  left: 20%;  animation-delay: 1.1s; width: 55px; }
.shield-logo:nth-child(10) { top: 25%;  left: 75%;  animation-delay: 3.8s; width: 95px; }
.shield-logo:nth-child(11) { top: 75%;  left: 25%;  animation-delay: 2.6s; width: 80px; }
.shield-logo:nth-child(12) { top: 72%;  left: 80%;  animation-delay: 0.9s; width: 60px; }

/* Bloque de posicionamiento de 25 logos eliminado */

.loader {
    --col1: #0b1c3d;
    /* Azul marino C.F. Atlético Gilet */
    --col2: #2563eb;
    /* Azul brillante C.F. Atlético Gilet */
    font-size: 5rem;
    font-weight: 800;
    perspective: 800px;
    position: relative;
}

.loader::after,
.loader::before,
.loader .text::after,
.loader .text::before {
    perspective: 800px;
    animation: anim 2s ease-in-out infinite, dotMove 10s ease-out alternate infinite, move 10s linear infinite 1s;
    content: '●';
    color: var(--col1);
    position: absolute;
    translate: -60px 500px;
    width: 12px;
    height: 12px;
}

.loader::before {
    animation-delay: 3s;
    color: var(--col1);
}

.loader .text::before {
    color: var(--col2);
    animation-delay: 2s;
}

.loader .text::after {
    color: var(--col2);
}

.loader .text {
    animation: anim 20s linear infinite, move 10s linear infinite 1s;
    color: transparent;
    background-image: linear-gradient(90deg,
            var(--col1) 0%,
            var(--col2) 100%);
    background-clip: text;
    background-size: 100%;
    background-repeat: no-repeat;
    transform: skew(5deg, -5deg);
    -webkit-background-clip: text;
    position: relative;
    text-align: center;
    line-height: 1.2;
}

@keyframes anim {

    0%,
    100% {
        text-shadow: 2px 0px 4px rgba(11, 28, 61, 0.3);
    }

    50% {
        background-size: 0%;
        background-position-x: left;
        text-shadow: 2px 10px 10px rgba(11, 28, 61, 0.5);
    }
}

@keyframes move {
    50% {
        translate: 0px 0px;
        rotate: x 60deg;
        transform: skew(-5deg, 5deg);
    }
}

@keyframes dotMove {

    0%,
    100% {
        translate: -100px 150px;
    }

    50% {
        translate: 160px -150px;
        scale: .5;
        opacity: .85;
    }
}

/* Ajustes responsivos */
@media(max-width: 1024px) {
    .loader {
        font-size: 2em;
    }

    .desarrollo-container {
        min-height: calc(100vh - 150px);
        padding: 10px;
    }

    /* Redimensionar logos para pantallas pequeñas */
    .shield-logo {
        width: 50px !important; /* Tamaño base reducido */
    }

    /* Ajuste fino de posiciones y tamaños en móvil */
    .shield-logo:nth-child(1)  { top: 5%;   left: 4%;   width: 45px !important; }
    .shield-logo:nth-child(2)  { top: 12%;  left: 12%;  width: 40px !important; }
    .shield-logo:nth-child(3)  { top: 4%;   left: 48%;  width: 35px !important; }
    
    .shield-logo:nth-child(4)  { top: 40%;  left: 6%;   width: 65px !important; }
    .shield-logo:nth-child(5)  { top: 60%;  left: 88%;  width: 55px !important; }

    .shield-logo:nth-child(6)  { top: 82%;  left: 5%;   width: 40px !important; }
    .shield-logo:nth-child(7)  { top: 85%;  left: 90%;  width: 60px !important; }
    .shield-logo:nth-child(8)  { top: 92%;  left: 50%;  width: 30px !important; }

    .shield-logo:nth-child(9)  { top: 18%;  left: 20%;  width: 35px !important; }
    .shield-logo:nth-child(10) { top: 22%;  left: 70%;  width: 55px !important; }
    .shield-logo:nth-child(11) { top: 78%;  left: 22%;  width: 50px !important; }
    .shield-logo:nth-child(12) { top: 72%;  left: 75%;  width: 40px !important; }
}
