.container-gestionUsr {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    margin-top: 20px;
}

.header-gestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-gestion h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.header-gestion p {
    margin: 0;
    color: #666;
}

.btn-nuevo {
    background: #090d26;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-nuevo:hover {
    opacity: 0.8;
}

.buscador {
    margin: 18px 0;
}

.buscador input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.acciones {
    text-align: center;
}


.acciones i {
    color: #f14d4d;
    cursor: pointer;
    font-size: 19px;
}


/* Fondo oscuro */
.modal.action {
    display: none;
    /* oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Caja del modal */
.modal-content.funciones {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
}

/* Botón cerrar */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
}

.form-contenedor {
    background-color: rgb(255, 255, 255);
    border-radius: 15px;
    border: 1px solid rgb(214, 214, 214);
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    margin: 5px auto;
    padding: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.wrapper-doble {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.wrapped-select {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.wrapped-select select {
    width: 100%;
}


.campo {
    border: 1px solid #edeeee !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background-color: #f6f6f8 !important;

}

.seleccion_modal {
    padding: 8px !important;
    border: 1px solid #edeeee !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    background-color: #f6f6f8 !important;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 15px !important;
}

.botones {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-top: 10px;
}

.btn-Cancelar {
    background-color: #fff;
    color: #090d26;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #e4e4e4;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-registrar {
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    padding: 5px 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-registrar:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

/* HOVER CANCELAR */
.btn-Cancelar:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* HOVER REGISTRAR */
.btn-registrar:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#Exito-icono {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #218602;
    font-size: 48px;
    font-weight: 600;
    text-align: center;
}

.contenido_password {
    background: #f2f2f2;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.btn-registrar.copiado {
    background-color: #22c55e;
    /* verde */
    color: #fff;
    transform: scale(1.05);
    transition: all 0.3s ease;
}



@media (max-width: 768px) {
    .table {
        font-size: 14px;
    }

    .acciones i {
        font-size: 16px;
        margin: 0 4px;
    }

    .table th,
    .table td {
        white-space: nowrap;
        padding: 8px;
    }


    .modal-content.funciones {
        max-width: 330px;
        padding: 15px;
        border-radius: 10px;
    }

    .form-contenedor {
        max-width: 100%;
        padding: 15px;
    }

    .campo,
    #rol {
        font-size: 16px !important;
        padding: 10px !important;
    }

    .wrapped-select,
    .wrapper-doble label,
    .form-group label {
        font-size: 14px !important;
    }

    /* Botones en columna y ancho completo */
    .botones {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-Cancelar,
    .btn-registrar {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    .btn-registrar:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed;
    }

    .close {
        font-size: 22px;
        right: 10px;
        top: 8px;
    }
}



@media (max-width: 500px) {
    .header-gestion {
        display: grid;
        justify-content: center;
        gap: 20px;
    }

    .table {
        font-size: 12px;
    }

    .acciones i {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 6px;
    }
}