#rules {
    display: block;
    padding: 1em;
    max-width: 90vw;
    margin: 0 auto;

    h2 {
        text-align: center;
        color: rgba(161, 19, 103);
        margin-bottom: 2rem;
        font-size: 25px;
        font-weight: bold;
        line-height: 30px;
    }

    h3 {
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 15px;
        margin: 1rem 0;
        background-color: rgba(111, 174, 35);
        color: #fff;
        padding: 0.2rem 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    p {
        margin: 15px 0;
        text-align: justify;
        line-height: 1.4rem;

        span {
            font-weight: bold;
        }
    }
}

.infos-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 1rem;
    background-color: rgb(217, 214, 214);
    max-width: 600px;
    padding: 15px;

    p {
        font-weight: bold;
    }
}

// Nouveau design pour la page accessibilité
.accessibility-container {
    max-width: 720px; // 900px * 0.8
    margin: 0 auto;
    padding: 0 0.8rem 1.6rem 0.8rem; // Sin padding-top
    text-align: center;

    h2 {
        text-align: center;
        color: $primary;
        margin-bottom: 1.6rem; // 2rem * 0.8
        font-size: 1.6rem; // 2rem * 0.8
        font-weight: bold;
    }

    .accessibility-intro {
        text-align: center;
        margin-bottom: 2.4rem; // 3rem * 0.8
        max-width: 640px; // 800px * 0.8
        margin-left: auto;
        margin-right: auto;

        p {
            font-size: 0.88rem; // 1.1rem * 0.8
            line-height: 1.28; // 1.6 * 0.8
            color: #333;
            font-weight: normal;
        }
    }

    .accessibility-features {
        width: 100%;
        max-width: 640px; // 800px * 0.8
        margin: 0 auto 2.4rem; // 3rem * 0.8
        display: flex;
        flex-direction: column;
        gap: 0.8rem; // 1rem * 0.8

        .feature-item {
            background: #ffffff;
            border-radius: 12px; // 15px * 0.8
            padding: 0.72rem 1.2rem; // Reducido 10% en altura (0.8rem * 0.9)
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 1.08rem; // Reducido 10% (1.2rem * 0.9)
            text-align: left;

            .feature-icon {
                width: 61.2px; // Reducido 15% (72px * 0.85)
                height: 61.2px; // Reducido 15% (72px * 0.85)
                min-width: 61.2px; // Reducido 15% (72px * 0.85)
                background: #4A90E2;
                border-radius: 10px; // 12px * 0.8
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                overflow: visible !important;
                position: relative;

                // Estilos para cualquier elemento dentro (i, svg, etc)
                * {
                    width: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                    height: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                    max-width: none !important;
                    max-height: none !important;
                }

                i.fa-solid,
                i[class*="fa-"] {
                    font-size: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                    color: #ffffff !important;
                    position: relative;
                    z-index: 1;
                    width: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                    height: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                    max-width: none !important;
                    max-height: none !important;
                    line-height: 1 !important;
                    display: inline-flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    
                    // Para SVG de FontAwesome
                    svg {
                        width: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        height: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        font-size: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                    }
                    
                    // Para fuentes de FontAwesome (pseudo-elemento)
                    &::before {
                        font-size: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        line-height: 1 !important;
                    }
                }
            }

            .feature-content {
                flex: 1;

                .feature-options {
                    display: flex;
                    gap: 0.8rem; // 1rem * 0.8
                    align-items: center;
                    margin-bottom: 0.36rem; // Reducido 10% (0.4rem * 0.9)

                    .option {
                        font-size: 0.8rem; // 1rem * 0.8
                        font-weight: bold;
                        padding: 0.22rem 0.8rem; // Reducido 10% en altura (0.24rem * 0.9)
                        border-radius: 4px; // 5px * 0.8
                        color: #666;
                        background: #f0f0f0;

                        &.active {
                            color: #ffffff;
                            background: $secondary;
                        }

                        &.non.active {
                            color: #ffffff;
                            background: #e74c3c;
                        }
                    }
                }

                .feature-description {
                    color: #333;
                    font-size: 0.76rem; // 0.95rem * 0.8
                    line-height: 1.01; // Reducido 10% (1.12 * 0.9)
                    margin: 0;
                }
            }
        }
    }

    .accessibility-contact {
        margin-top: 2.4rem; // 3rem * 0.8
        width: 100%;
        max-width: 640px; // 800px * 0.8
        margin-left: auto;
        margin-right: auto;

        .contact-box {
            background: $pink;
            border-radius: 12px; // 15px * 0.8
            padding: 1.6rem; // 2rem * 0.8
            display: flex;
            align-items: center;
            gap: 1.6rem; // 2rem * 0.8
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

            i {
                font-size: 2.4rem; // 3rem * 0.8
                color: $primary;
                flex-shrink: 0;
            }

            div {
                flex: 1;
                text-align: left;

                h3 {
                    color: $primary;
                    font-size: 1.2rem; // 1.5rem * 0.8
                    margin-bottom: 0.4rem; // 0.5rem * 0.8
                    font-weight: bold;
                }

                p {
                    color: #333;
                    line-height: 1.28; // 1.6 * 0.8
                    margin-bottom: 0.8rem; // 1rem * 0.8
                    font-weight: normal;
                }

                .contact-link {
                    display: inline-block;
                    background-color: $primary;
                    color: #ffffff;
                    padding: 0.6rem 1.2rem; // 0.75rem 1.5rem * 0.8
                    border-radius: 6px; // 8px * 0.8
                    text-decoration: none;
                    font-weight: bold;
                    transition: background-color 0.3s ease;

                    &:hover {
                        background-color: darken($primary, 10%);
                    }
                }
            }
        }
    }
}


@media screen and (min-width: 608px) {
    .infos-img {
        margin: 0 auto;
    }
}

@media screen and (min-width: 768px) {
    #rules {
        max-width: 900px;
    }

    .accessibility-container {
        padding: 0 1.6rem 2.4rem 1.6rem; // Sin padding-top

        h2 {
            font-size: 2rem; // 2.5rem * 0.8
        }

        .accessibility-features {
            .feature-item {
                padding: 0.86rem 1.6rem; // Reducido 10% en altura (0.96rem * 0.9)

                .feature-icon {
                    width: 73.1px; // Reducido 15% (86px * 0.85)
                    height: 73.1px; // Reducido 15% (86px * 0.85)
                    min-width: 73.1px; // Reducido 15% (86px * 0.85)
                    overflow: visible !important;

                    // Estilos para cualquier elemento dentro (i, svg, etc)
                    * {
                        width: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        height: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        max-width: none !important;
                        max-height: none !important;
                    }

                    i.fa-solid,
                    i[class*="fa-"] {
                        font-size: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        width: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        height: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        max-width: none !important;
                        max-height: none !important;
                        line-height: 1 !important;
                        display: inline-flex !important;
                        align-items: center !important;
                        justify-content: center !important;
                        
                        // Para SVG de FontAwesome
                        svg {
                            width: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                            height: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                            font-size: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                        }
                        
                        // Para fuentes de FontAwesome (pseudo-elemento)
                        &::before {
                            font-size: 3.3048rem !important; // Reducido 10% adicional (3.672rem * 0.9)
                            line-height: 1 !important;
                        }
                    }
                }

                .feature-content {
                    .feature-options {
                        .option {
                            font-size: 0.88rem; // 1.1rem * 0.8
                            padding: 0.36rem 0.96rem; // Reducido 10% en altura (0.4rem * 0.9)
                        }
                    }

                    .feature-description {
                        font-size: 0.8rem; // 1rem * 0.8
                        line-height: 1.01; // Reducido 10% para mantener proporción
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    .accessibility-container {
        .accessibility-features {
            .feature-item {
                flex-direction: column;
                text-align: center;
                gap: 0.8rem; // 1rem * 0.8

                .feature-content {
                    .feature-options {
                        justify-content: center;
                    }

                    .feature-description {
                        text-align: center;
                    }
                }
            }
        }

        .accessibility-contact {
            .contact-box {
                flex-direction: column;
                text-align: center;

                div {
                    text-align: center;
                }
            }
        }
    }
}

