﻿body {
    font-family: Arial, sans-serif;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .header h2 {
        margin: 0 10px 0 0;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

        .switch input[disabled] + .slider {
            cursor: not-allowed; /* Cursor de bloqueado */
            opacity: 0.6; /* Para que se note que está inactivo */
            pointer-events: none; /* Evita interacción en el slider */
        }


.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(14px);
    }

.navarea-container {
    margin: 20px;
}

.navarea-header {
    background-color: #f2f2f2;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #ccc;
    margin-bottom: 5px;
}

    .navarea-header.disabled {
        color: #999;
        cursor: not-allowed;
        background-color: #e0e0e0;
    }

.navarea-content {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

    .navarea-content.active {
        display: block;
    }

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.card {
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    text-align: center;
}

    .card img {
        width: 100px;
        margin-top: 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.card p {
    margin: 5px 0;
    font-size: 14px;
}

a[href="#"] {
    color: gray;
    pointer-events: none;
    text-decoration: none;
}

.card .bandera-activa {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

    .card .bandera-activa.verde {
        border: 2px solid var(--colorVerdeOscuro);
        background-color: var(--colorVerdeOscuro);
    }

    .card .bandera-activa.rojo {
        border: 2px solid var(--SJDrojo);
        background-color: var(--SJDrojo);
    }

input:disabled + .slider {
    background-color: #999;
    cursor: not-allowed;
}

